Nakshatra

Wednesday, January 20, 2010 0 Comments »
I created another blog to write about Nakshatra - my Chess engine, as well as some general stuff about Chess engines, Chess programming and more. Check it out here. Feel free to subscribe to RSS feeds and do comment :-)

New Year Resolutions

Saturday, January 02, 2010 2 Comments »
I've had resolutions in my life before. Lots of them in fact. However, I never had any "new year resolution". I never thought of aligning my resolutions with the beginning of a new calendar year. I created resolutions as and when I felt necessary and worked towards them right away. In most cases, my resolutions did not materialize as I simply quit working on them after some time or sometimes even forgot what those resolutions were! But now I want to experiment with how a new year resolution would work out. With the foolish hope that a "new year resolution" would turn out better than my stand-alone ones, here I write up my list:

1. 2.5 years of working in a Software Company + irregular gymming + some great free food in office + awesome home food has truly gotten into me, literally. My belly has bulged with quite a few layers of fat deposition. In the beginning of 2009, this was hardly visible but now it is more pronounced... to the extent that some friends have teased me about it. Back in College, I would have laughed at the proposition of me getting fat but now, well, its there for the world to see :-(. So, in 2010, I resolve to work out "regularly" at the gym with a single-minded focus on getting back into shape and become the cynosure in the eyes of hot girls yet again ;-).

2. I have mostly been a night-person throughout my life. I am usually up late into the night and wake up late in the morning. On weekdays when I have to leave for office, I get up between 7 and 7:30 AM. On weekends, its usually 9+ these days. However, I have always felt really nice whenever I managed to get up early (like 5-6 AM) in the morning. And in 2009, I had resolved many times in my mind to change my habit and do a "early to bed, early to rise" thing. But due to lack of determination, this has never lasted for more than 1-2 days on multiple occasions :-(. But its said that failure is not achieved until you stop trying. So in 2010, I again (for the n'th time) resolve to become an early-riser. In addition to that, I should start going for a jog/run in the nearby park after getting up (this again will fuel my resolution #1). I really gotta stop myself from switching off my alarm first. I probably have to buy one of these [Alarm clock that runs away!].

3. I resolve to practice a more balanced diet. South Indians just relish rice dishes and rice being a high-carb food directly leads to high blood pressure, obesity and diabetes in the 40s and 50s of our lives. This is one thing where I can claim I have planned 20 years ahead (for an otherwise visionless person). In 2010 I plan to have a better and balanced diet with reduced intake of rice :-).

4. Meditation and Yoga: In 2010, I have this desire to begin practicing meditation and yoga. This is a pretty lofty resolution because this is something I have been wanting to do for ages now and never got around to even begin! I thought of not mentioning this on my resolution list but then I hope I might get motivated if I at least write it down some place!

5. Read more books: In 2009, I did not read as many books as I liked to. So in 2010 I wish to read books of all different types and genre and expand the horizons of my knowledge and at the same time enjoy doing it.

6. Presence of mind and Clarity of thought: Sometimes I feel that software engineers dumb down over a period of time. Even the street-smart college kids who enter software profession tend to become absent minded and lose clarity in thinking. I, for one, feel I have become substantially more absent minded than I was a year or so ago. This process has to be reversed in 2010.

7. Be bolder and stop procrastinating: There are a thousand things I don't do because I am not bold enough or do not feel its worth taking the risk (even when, perhaps, it is worth taking the risk). There are another thousand things that I haven't done because I procrastinated long enough. 2010 it is, when I will change myself and become bolder, smarter and less-procrastinating.

8. Connect and make useful relationships: This is something I am probably really bad at - making new friends and develop existing relationships (professional or otherwise) in a meaningful manner. I am not yet sure if there is some personality disorder in me which is causing me to be too introvertish but I think not. I have developed a lot of useful relationships in 2009 but sometimes I feel its not enough. These relations are required in a lot of different aspects of life. I sort of realized how important professional relationships can be, in 2009 and I hope to do a better job in 2010.

9. When I was interviewed by Thoughtworks back in 2006, I was asked a question by one of the interviewers: "Where do you see yourself 5 years from now?" and I gave such a crappy answer (which I dare not mention here to save some embrassment) that it became the single most important reason for not being offered the job (the interviewer almost said so) despite what I would claim to be very good technical interviews. Now 4 years later, I have finally decided to find out what I really want to be doing 5 years from now. This is going to be a herculean task for sure but hell, I'm gonna make it my resolution anyway.

10. Do something wonderful/creative: One of the biggest turn-ons for me is to create something new. In 2009 there were a couple of things that I did outside of my work (like Nakshatra - the chess engine, which I will talk about in a separate blog post later on) which sort of soothed my creative cravings. I wish to do something even bigger and really wonderful in 2010.

11. Going offline: I have sort of become addicted to my virtual online persona. I stay on gmail chat most of the day (even on weekends when I am at home) and browse Orkut, Facebook, Twitter, Reader plenty of times. This is probably utterly out of boredom and part of the "procrastination" I mentioned earlier. At the end of the day, no productive work is done and there is a feeling of guilt because of wasting time on useless things. For instance, I have played about 2500 chess matches in 2009 :-O. Can you believe it? Its such a useless thing to do. Probably I was too bored in 2009 to have done this. Its too bad I should say that considering that I work for the best Software company out there! Although I improved my ratings, it wasn't an achievement considering the amount of time I might have spent on playing these games! I have to drastically reduce my chess addiction and also cut down totally on Orkut, facebook and such useless stuff. I could spend this time working on my other resolutions or just talking to my parents and relatives which I do less because I would be online and they wouldn't be.

12. Not be an insensitive clod: Lately I feel I have become more insensitive to people around me. I hurl jokeful insults just for the kick of it, that make people feel bad sometimes (I get bashed up too for this, sometimes, but thats besides the point). I gotta really be more sensitive to people around me and their needs.


Ok the above 12 are the resolutions that I can think of at the moment and by no means complete. After having written them once, I went over them and realized how much of a personality transformation I expect out of myself in 2010. Will it be possible? Only time has to tell. Probably some of the goals I have set for myself are not worth pursuing (so that I don't lose some of my original qualities) and probably I haven't thought of some other important goals that could be beneficial. Most of these resolutions have passed through my mind often in the past but I never wrote them down anywhere. In that sense, these are a sum total of all that I wanted to do but never got around to doing them. I will be happy if I can achieve a majority of them if not all. Wish me good luck!

Avatar - an amazing experience

Sunday, December 20, 2009 3 Comments »
I was too excited about this movie after reading plenty of good reviews on DH and elsewhere. I was even regularly checking IMDB to see how well the movie was faring over the last 3-4 days. At the moment, Avatar is rated 8.9 on IMDB!! Thats like amaaazing. And thanks to my friends (Haseeb and Shashi), I watched the movie today @ Urvashi theater. The movie is insanely awesome, visually spellbinding and will definitely take movie-making to the next level! The plot is rather simple but very much enjoyable. The graphics is stunning. Never before has anyone seen such high quality special effects before! Even the expressions on the faces of Na'vi people (humanoid natives of Pandora) are so insanely real-life-ish that its just mind-blowing! Directory James Cameron has done a great job in creating a whole new imaginary World of Pandora - which is as fantastic and amusing as the Middle Earth of Lord of the Rings, if not better.

If you are a fan of the Sci-fi genre or if you have really enjoyed watching movies such as the Lord of the rings trilogy, you will fall in love with Avatar. However, I highly recommend watching the movie at a good 3D theater. In my case, Urvashi in Bangalore wasn't really up to the mark with the 3D thingy (at least when compared to my previous 3D experience) but I expect the multiplexes to be better equipped in Bangalore. Before you go, watch the official trailor and the video intro to Pandora.

Different types of drivers

Sunday, September 27, 2009 5 Comments »
A brief compilation of different types of drivers of Indian roads (in no particular order of anything):

1. The snakers: Primarily characterized by their ability to snake around on our roads in the most efficient manner. The snakers get their pleasure from criss-crossing peacefully driving noble folks and transcending them into a state of sudden panic. Next time you get criss-crossed, there is a high probability that its a snaker (there could be others too as described below). When snakers get involved in accidents, its usually with other snakers... due to both trying to cross each other at the same time.

2. The honksters: Honksters are the ones who have an obsessive compulsion towards pressing horns in their vehicles. This makes them the most annoying on city roads. Honksters usually use the horn as an indicator for everything. Over time, they have also evolved different types of conventions in the pattern of sounds they create. Like fingerprints differentiate one human from another, the sound patterns created by honksters differentiate them from each other. Honksters are usually the most active at traffic signals. When the traffic signal turns green, all honksters engage in simultaneous orgy of honking, apparently to indicate the drivers in front to move forward, which in fact, is just an excuse to indulge their habit.

3. The road racers: Most road racers are aged between 15 and 30. They are avid fans of Formula 1 and racing video games. They get their kicks by such things as: driving at absurdly high speeds irrespective of the condition of the roads, disengaging the silencers of their bikes or cars, painting the exterior of their vehicles in extravagant fashions. Oh yes, the 2-wheel road racers are fond of wheelies. The most adept among them usually do wheelies with a pillon rider at their back. They are also averse to wearing helmets.

4. The Autorickshawwallas: An Autorickshawwalla is the highest embodiment of an Indian driver. They usually drive 3-wheeled vehicles and wear an uniform. That clearly makes them outstanding. An autorickshawwalla may simultaneously contain within him - a snaker, an honkster and a road racer or at least be capable of switching from one form to another when desired. Not having this quality disqualifies a driver from being considered as part of this elite category.

If you think you do not belong to any of the above categories then ask yourself if you are truly "driving Indian roads"?

My first open source contribution

Friday, May 08, 2009 3 Comments »
Last quarter, in my 20% time I worked on an open source project - "Google Web Toolkit bindings for Google Ajax Language API". Click here to understand what Google API libraries for Google Web Toolkit are. Among the listed libraries, I contributed Language Library (consisting of Translation and Transliteration API bindings). This was released on May 7th and you can see the blog post on GWT blog here.

Though not a big project, this project helped me make my first open source contribution (yay!). I also learned a lot of new things that I would not have as part of my day work.


xkcd on perception

Tuesday, April 14, 2009 2 Comments »

I have often wondered in the past if everybody really sees the same colors (and a few people I know have independently wondered the same!). I stumbled upon the below xkcd comic during a random browsing session that brought back some old memories :) (click on the image below if you cannot view it properly)



Kōans

Saturday, February 07, 2009 3 Comments »
I am reading a book "Godel, Escher, Bach: an Eternal Golden Braid" also popular by the abbreviation GEB written by Douglas R. Hofstadter. It is described by author as "A metaphorical fugue on minds and machines in the spirit of Lewis Carroll." Its hard to explain what this book is about in few words. You can always check wikipedia for that.

One of the topics in GEB is about Zen Buddhism. I didn't have any idea about this form of Buddhism but when i read about it in this book, it fascinated me. Zen is a form of Mahayana Buddhism founded by Bodhidharma. Zen emphasizes experimental wisdom, as realized in the form of meditation (zazen) and in that light, de-emphasizes both theoretical knowledge and study of religious texts. The goal of Zen practices is to train the mind to transcend duality and attain a state of enlightenment.

Zen Buddhists may practice something known as kōan inquiry during their meditation. A kōan is a story, dialogue question, or statement in the history and lore of Zen Buddhism, generally containing aspects that are inaccessible to rational understanding, yet may be accessible to intuition. kōans are supposed to be "triggers" which do not contain enough information in themselves to impart enlightenment but possibly be sufficient to unlock the mechanisms inside one's mind that lead to enlightenment. The Zen attitude is that words and truth are incompatible, or at least that no words can capture the truth.

Most kōans do not make any sense to the rational, logical mind. Take this for example:

Hogen of Seiryo monastery was about to lecture before dinner when he noticed that the bamboo screen, lowered for meditation, had not been rolled up. He pointed to it. Two monks arose wordlessly from the audience and rolled it up. Hogen, observing the physical moment, said, "The state of the first monk is good, not that of the second."

A Zen master Mumon comments on the above kōan in his 13th century work called Mumonkan ("No-gate barrier"). Here is his commentary:

I want to ask you: which of those two monks gained and which lost? If any of you has one eye, he will see the failure on the teacher's part. However, I am not discussing gain and loss.

Mumon follows it with a poem:

When the screen is rolled up the great sky opens,
Yet the sky is not attuned to Zen.
It is best to forget the great sky
And to retire from every wind.


It may come as a rude shock for a person who wants to have an "understanding" of the kōan as the commentary and poem are equally opaque and irrational.

Here is another kōan:

A monk asked Nansen: "Is there a teaching no master ever taught before?"
Nansen said: "Yes, there is."
"What is it?" asked the monk.
Nansen replied: "It is not mind, it is not Buddha, it is not things."


Mumon's commentary:

Old Nansen gave away his treasure-words. He must have been greatly upset.

Mumon's poem:

Nansen was too kind and lost his treasure.
Truly, the words have no power,
Even though the mountain becomes the sea,
Words cannot open another's mind.


The poem makes a little more sense and seems to de-emphasize the power of words (and thereby it is a paradox as it talks about its own ineffectiveness). Paradox is quite characteristic of Zen. The essence of a kōan seems to be to break the mind of logic in pursuit of enlightenment. But we can never be sure as one of the basic tenets of Zen Buddhism is that there is no way to characterize what Zen is!

Here is another kōan and this is my favorite:

The student Doko came to a Zen master, and said: "I am seeking the truth. In what state of mind should I train myself, so as to find it?"
Said the master, "There is no mind, so you cannot put it in any state. There is no truth, so you cannot train yourself for it."
"If there is no mind to train, and no truth to find, why do you have these monks gather before you every day to study Zen and train themselves for this study?"
"But I haven't an inch of room here," said the master, "so how could the monks gather? I have no tongue, so how could I call them together or teach them?"
"Oh, how can you lie like this?" asked Doko.
"But if I have no tongue to talk to others, how can I lie to you?" asked the master.
Then Doko said sadly, "I cannot follow you. I cannot understand you."
"I cannot understand myself," said the master.


Only by stepping outside of logic, so the theory goes, can one make the leap to enlightenment!

After GEB introduced me to the fascinating world of Zen Buddhism and kōan practice, I did a bit of search on the web and dug up some funny kōans (to a rational, logical mind they are funny but the Zen Buddhists take them seriously perhaps):

kōan:

Student asks master: "Why did Bodhidharma come from India to China?". Master says: "The oak tree in the garden."

kōan: Joshu's Mu

Joshu (A.D. 778-897) was a famous Chinese Zen Master who lived in Joshu, the province from which he took his name. One day a troubled monk approached him, intending to ask the Master for guidance. A dog walked by. The monk asked Joshu, "Has that dog a Buddha-nature or not?" The monk had barely completed his question when Joshu shouted: "MU!"

kōan: No Beard

Wakuan complained when he saw a picture of bearded Bodhidharma, "Why hasn't that fellow a beard?"

kōan: Everything is Best

One day Banzan was walking through a market. He overheard a customer say to the butcher, "Give me the best piece of meat you have." "Everything in my shop is the best," replied the butcher. "You can not find any piece of meat that is not the best." At these words, Banzan was enlightened.

kōan: Manjusri Enters the Gate

One day as Manjusri stood outside the gate, the Buddha called to him, "Manjusri, Manjusri, why do you not enter?" Manjusri replied, "I do not see myself as outside. Why enter?"

kōan: Joshu washes the bowl

A monk told Joshu: `I have just entered the monastery. Please teach me.'
Joshu asked: `Have you eaten your rice porridge?'
The monk replied: `I have eaten.'
Joshu said: `Then you had better wash your bowl.'
At that moment the monk was enlightened.


kōan:

What is the sound of one hand clapping?

kōan:

One day Chao-chou fell down in the snow, and called out, "Help me up! Help me up!" A monk came and lay down beside him. Chao-chou got up and went away.

kōan:

A monk asked Tozan when he was weighing some flax, "What is Buddha?"
Tozan said: "This flax weighs three pounds."