Posts

Existence: Absolute & Relative

Image
 Who am I? Why am I? Where am I? How did I happen exactly? So many unanswered questions. Continuing the premise from my previous post about life and death . I believe I am real. I am real because I perceive the world through my senses. I witness my physical existence. Taking a closer look at my existence, I feel I should revise my statement to I believe I physically exist . I am associated with a medium (my physical body) that enables me to perceive the physical universe. So probably I'm just a consciousness that is aware of this physical world as long as its attached to a functioning medium.  May be this feeling of awareness within me, till my consciousness is aware of this perceivable physical universe, can be referred to as the feeling of being alive.  The association of consciousness with a functioning body is a function of time and is commonly referred as life.   This association deteriorates with time due to limitations of physical body. Of course, it would change with time,

Life and Death: An NP Hard Problem

Image
Finally, I thought of documenting my thoughts, perspective and my incomplete yet ongoing and probably incorrect or partially correct understanding on my beliefs in the concept of life and death, the two widely accepted states of living beings. My apologies to the state(s) that may be there but I missed to include them here due to my limited awareness. Let's start with the physical and tangible world we believe we exist in and cohabitate. I believe this physical world is real to me (we will come to real later) as I can perceive it through my accessible sense organs and my brain interprets the signals of following known categories: sight, sound, smell, taste and touch. Observable Universe These sense organs receive raw stimuli from the physical world and translate them into signals the nervous system can use. Nerves relay the signals to the brain, which interprets them as sight (vision), sound (hearing), smell (olfaction), taste (gustation), and touch (tactile perception). Detailed e

Hyperlocal Startups Creating a Better Living

Image
Recently, I read about this article on yourstory: IIT alumni startup creating a better living experience and it made me go down the memory lane when I used to work in a small real estate based startup in Bengaluru, India. Startups are growing like mushrooms in India and most of them claim to be solving a real world problem. I am specifically intrigued, surprised and sometimes disappointed by some of these startups. These startups, specifically the hyperlocal ones, when claim to create a better living experience, a better lifestyle or quality of life makes me rethink about the life I'm living. Am I doing something wrong? Am I wasting my time in buying groceries or washing my clothes or cooking lunch? Further, I would like to emphasize that its not just the services in the hyperlocal sector that makes me rethink. Its also what they claim to achieve by doing so is astonishing. This umbrella euphoria of every startup claiming to create a better living experience is making me

Facebook Messenger Chat Bot Tutorial - AI powered by wit.ai

Image
Facebook has provided interesting way to allow you to build a chat bot for your FB page. I will guide you step by step to build this chat bot. This chat bot essentially is something that will receive the fb messages send to your page, process them and send back response. To start with, we need an app that would receive fb messages. To know how to step up a free app: click here Once we have setup your app and its up and running, we need to goto FB Developers  . Signin using the same FB account that is an admin to the required FB page we are setting up our BOT. After signin, create a new appId. Screen looks like: Fill up and create the app. Post app creation, we need to goto the app and click "Add Product" at the bottom left corner and select "Messenger" from the options. After adding messenger, we need to setup Webhook. Click "Add Product" again and select Webhook, it should come under your products list now. Click on webhook, foll

Facebook Messenger Chat Bot Tutorial - AI powered by wit.ai

Facebook has provided interesting way to allow you to build a chat bot for your FB page. I will guide you step by step to build this chat bot. This chat bot essentially is something that will receive the fb messages send to your page, process them and send back response. To start with, we need an app that would receive fb messages. To know how to step up a free app: click here Once we have setup your app and its up and running, we need to goto FB Developers and create an FB APP.

Facebook Integration with your website

Trie Tree Implementation in Java

Trie is supposedly the best suited DS for auto-suggest feature. package challenges; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; public class TrieTreeImpl { public static void main(String[] args) throws IOException, InterruptedException { File file = new File("/home/sundaramtiwari/Documents/CodeEval/trieTree.txt"); BufferedReader buffer = new BufferedReader(new FileReader(file)); String line = buffer.readLine().trim(); List<String> wordList = Arrays.asList(line.split(",")); Collections.sort(wordList); Map<Character, Node> children = new HashMap<Character, Node>(); TrieTree trie = new TrieTree(children); for (String word : wordList) { addW