Thursday, July 10, 2008

Its not the money.

Me and muthu were doing our usual samosa outing on a weekday evening to fight out the boredom that had been creeping up on us throughout the day.. After a very lazy samosa session, we noticed a very old lady who could hardly stand, begging for alms at the pedestrians. Muthu, being the good hearted man that he is, decided to give a couple of rupees to her. I was in one of the rare generous moods that i too gave a couple of bucks to her.. When i first gave her the money, the expression on her face (of that of surprise and thankfulness) was something which put me in top of the world for that very moment and make me feel inexplicably great . I could not help smiling back at her and acknowledge her surprise. When muthu chipped in with his couple of rupees, it was her turn to go to the top of the world.
After washing out our hands, we turned our attention back to the beggar to see what she was doing. It was business as usual for her. The surprise and the smile was wiped out of her face and the poverty and pain was pasted back on her face, hoping to get the sympathy and a couple of rupees from the passers by.

Friday, June 13, 2008

I know.. its been a while.. I dont blame myself.. My primary blogs are hard enough to manage!! But anyways , i came across this interesting link today... As people might know.. BCCI has been trying (and are almost there) to gain complete monopoly not only over Indian cricket but over world cricket.. Of course ECB has been one of the major hurdles (European blood!!) but they will surely overcome that too..

Meanwhile, BCCI banning players who went into ICL and most recently its tiff with Kapil Dev has shown BCCI in a bad light..

Here is an article on cricinfo which superbly explains this

http://content-ind.cricinfo.com/magazine/content/current/story/354491.html

Monday, January 07, 2008

Listen to Suryan fm online

Today i tried out the online version of suryan fm the local fm station for chennai and many other cities in tamil nadu. I have always wanted to listen to a good local tamil fm radio station over here in bangalore (where there aint any..). There are a lot of online radio stations on shoutcast and mohankumars.com, but somehow i dont get the local flavor. They dont have proper RJs and also they dont put advertisements. Then i came to know about suryan fm online radio station. All you need is a login and password. And you are all set to listen to the chennai's version of suryan fm! I love it.. and i am addicted to it right now.

You can also listen to aaha fm online. You need to have an account at kumudam.com for that though. And even after creating an account there, i havent figured out how to listen to aaha fm yet. But hopefully, i will do it someday and then i can keep listening to tamil fm radio stations online.

Sunday, January 06, 2008

I want to use this blog in the future to write some blogs which are too dumb or stuff that i dont want to put in my other more known blog.. Hopefully i can dig up something sensible to put in here once in a while.

Tuesday, July 17, 2007

Today i had a round of interviews with google. Here are the puzzles that they asked.

1) Write a generator() and checker() method. The generator method genrates unique IDs. The checker method checks whether the ID that it receives is correct. (both of them could reside in different machines for example.) Note: no meta data can be transferred along with the generated id to the reciever. Assume that the generated id is 6 digits. The checker() method should be able to detect if there has been a change of even a single digit that has been transferred from the generator method. You need to find out the subset of all the six digit numbers that can be generated as IDs. For example, if the question was for 2 digit numbers then the valid subset would be "11, 22, 33, 44.. 99". These numbers when generated as IDs can be detected by the checker() method when received to see whether the generated ID was correct or not. Even if a digit changed, then it could be found. You need to find the satisfying condition for 6 digit numbers to form an ID. Also, find out how many such 6 digit numbers are possible.

2) There are two dice. One dice has numbers labeled from 1 to 6. Other die given to you is a blank die. You need to label the other die in such a way that each time you roll both the dice,the probability of getting a value between "1 and 12" (note: 1 and not 2) is the same.

3) You have an x-y plane on which you have "n" number of points. You need to write an efficient algorithm to find out the maximum number of points that are collinear.

4) You have a singly linked list whose size you do not know. Write an algorithm which picks up a random node from the linked list each time with equal probability(but node chosen once should not be chosen again). You should not traverse the linked list fully once to know the size of the list.

Sunday, July 02, 2006

I could not find out anything good to write about in my blog. All that i could think of right now were mostly dull or boring or either too technical. Considering that i am tied up with technical stuff for the better part of my day, doesnt make much excitement for me to take time off from my technical work and to write about.. duh.. technical work..

So. here i am, a bleak sunday evenining, nothing much better to do rather than to sit back and relax and blog about a theory on God, heaven and the whole stuff that hit me one fine sunday morning while i was snoozing in my hostel. Here it goes...

They say that necessity is the mother of invention. It was necessity that drove man to discovering and inventing new things. This was supposed to make life easier and do things more effeciently and fastly. Initially, there were simple things such as hammers, axes, knives etc.. As development went on, more and more inventions came in and finally very simple machines like this, made way to complex machines. These complex machines required some input, processed data and gave output.

This can be applied to any of the present modern day machines. Our vehicles have petrol/diesel as input and give out motion as output.
Other machines can have electricity as input for processing data and give out processed data as output.
Now, all these machines have a factor called effeciency. Some machines are much more effecient than others.. Some cars give a better mileage.. some computers consume lesser power but give more performance..

Now, lets shift the scenario to a level higher.. Lets consider the "Association of Gods". The basic assumption over here is that there is no single God.. Each religion is a separate "department". Each department controls certain aspects of the overall "Association of Gods" . Now, there can be many guesses about the functionality and purpose of such an association. I can think of numerous reasons.. But to give it the most simplest business purpose, let us assume that the association of Gods is to oversee the running of the earth and also survival of their (i mean the people in heaven and hell) clan.

Now, the people ( i mean the Gods)over there need "processing power". The size and complexity of the data that they have is so large that the power that they need is enormous. So, they have man as "processing centres" to process their data and give them their outptut. It is a well known fact that humans dont use 100% of their brain power.. The Gods use these unused part of the processing power to process their data. (i think there will be a point in the future where data management gets so large that humans may in itself require such enormous processing power.). Now, since each department represents each religion, the people in each religion constitute processing centers for that particular religion and the Gods and angels in that particular religion make up different levels of employees..

Since Hindusim is one of the oldest religions known, i suspect that this department is one of the oldest too.. As new religions came in, it meant that new departments evolved and new employees were added into the organization..

Now, one of the questions that may arise from this theory is, where does evolution fit in? After all man did not appear magically from nowhere all of a sudden..

When computers were created initially, the amount of power consumption was quite large. As newer versions came in, the power consumption reduced and the performance increased, increasing its effeciency. The same can be applied here.. First there was a little need for the processing of data.. This gave rise to simple living cells.. As the needs became more complex and advanced,
complex organisms evolved. Initially, since the organization out there was quite unstructured, religion wasnt introduced.. i.e. classification of processing power was not there. i.e. more structured organization based on departments was not there.. The complex organisms that evolved were just used as and when the needs arose.. Different organisms had diffent processing powers and were used depending on the processing powers the "modules" needed.

Now, there were organisms that were highly ineffecient.. Take for example the dinosaurs.. They had a very large input... But their brain size was small and persumably, so was their processing power.. This did not work well for the ASsociation. Hence they were wiped out from the face of the earth and so were a lot of other creatures.. Man at present happens to be one of the more effecient form of processing creatures around..

This theory also explains the various forms that God happens to appear on earth.. When evil forces arise and threaten the destruction of mankind, it is said that God comes to the rescue and saves the people. The avatars that God takes can be thought of some sort of "Support person"that comes to our house to fix stuff. These avatars can be thought of members coming in from the association to protect their procesing centers from destruction.. After a while, it became clear that since the amount of processing centers on earth was too large, these avatars model was becoming ineffecient and impossible. Hence the concept of medicenes was introduced. Tho, after a certain age as the processing centers wear out and become inefficient, they are taken out of service.. i.e. they die.. Sometimes the soul of the procesing power can show effectiveness if reinstalled in a new processing center.. ( a new body). This would explain the concept of reincarnation that some believe in..


Finally, at the end, it is natural to expect that in the future, some living organism may prove to be far more effecient than man.
This would make sustaining man as infeasible. This would be the time when man is wiped out from the face of the earth and the new species starts ruling the earth. Now, the way man would be wiped out from earth is anybody's guess.. God could make man fight against each other and hence destroy ourselves completely... or.. He Himself could come down and do it..