Saturday, October 16, 2010

The Rubber Duck Method

This might be of help while debugging a code or solving a problem. :)

1) Beg, borrow, steal, buy, fabricate or otherwise obtain a rubber duck
   (bathtub variety)
2) Place rubber duck on desk and inform it you are just going to go over
   some code with it, if that's all right.
3) Explain to the duck what you code is supposed to do, and then go into
   detail and explain things line by line
4) At some point you will tell the duck what you are doing next and then
   realise that that is not in fact what you are actually doing.  The duck
   will sit there serenely, happy in the knowledge that it has helped you
   on your way.

The perfect combination of humor and advice! 
 
Source: http://lists.ethernal.org/oldarchives/cantlug-0211/msg00174.html

Friday, October 15, 2010

Sleep, among other things

3:29 AM

Is there something wrong with the clock? I wonder, as usual. I guess I am just living in the wrong side of Earth. I am sure 80% of the people in my campus are sleeping right now. It is too late even for the students who sleep 'late' at night. It is but early morning. Just an hour or so before the early birds wake up. 3 AM is supposed to be the darkest hour before dawn. I also read somewhere that due to this reason people often refer to 3 AM as the 'devil's hour'. 4 AM is supposedly the 'brahma muhurtam', an auspicous time. People are advised to wake up (and get up) at 4 AM and pray to God. One person takes this belief even further and conducts IIT-JEE coaching classes at 4 AM sharp in the morning. Of course, he strongly believes this will make the students understand every bit of information that is taught in the class. I just sigh. Poor little kids during the height of their teenage years being woken up by alarms(when termed more appropriately parents) before 4 AM so that they are in time for the class. And ironically, this coaching centre is very popular at my hometown, ranks first in the minds of many to-be-students-and-parents-of-students-of-IITJEE-classes.

Now, for an average teenager this is perhaps a torture. But, I would gladly welcome it. My attention-span, motivation, alert-ness and energy starts rising at 1 AM and peaks at 3 AM and begins to gradually fall down around 7 AM or so. Ironically, my classes start at 8 AM :-). This isn't a new thing though. On a fateful day, I was born at 9 PM and I remember my parents telling me that I, as a child, would sleep all day and wake up bright at 9 PM when my dad and uncle come home from work and lovingly hug me. This often means sleepless nights for my mom and dad. Poor mom and dad. For no fault of theirs, they had to fight of sleep for the entire night. I hear its common for children to wake up randomly at midnight screaming, but boy, I was sweet in that I was a lot more predictable. Gradually, as my adolescence started, my parents could sleep :D. And I would be the one watching my younger brother sleep. It had become less and less difficult as I got used to it. Getting used to the late night snacks stolen from the fridge, the books(fiction and non-fiction alike) which were my best friends and my imagination. Imagination - day dreaming should be the term but I find it very inappropriate. Night dreaming? This term is useless at best. Everyone dreams at night right? Fantasy sounds better.

Much thanks to my curiosity, I gathered there is a circadian rhythm that tells the body when to sleep, eat and wake up. Mostly feedback mechanisms that sense sunlight, temperature, stress etc. I wonder if my professor of the Advanced level course on Control Systems I take should look at this. It doesn't need a controls prof to understand the controllers is running haywire. Of course, the What? and the Why? will perhaps be a lot harder to answer. Now I shall pause this stream of thoughts and get back to the the "Midnight Sun" by Stephenie Meyer...

4:15 AM

The novel's interesting. Fiction has always amazed me. Especially the fantastic and the supernatural. The cause for this indulgence is perhaps just the hope of something different, different than what the world had offered to me till now. Again it is a strange hobby for someone who feels revulsion towards the beliefs that are not proven completely. Most of the times, people find me annoying when I point out that what they believe is true is just a belief and not a fact... yet. Like belief in religion, avoiding cutting nails on the tuesdays, avoiding rahukalam while going out, turning back if you see a cat cross your path and definitely turning back if it's a black one, avoiding non-vegetarian foods on thursdays etc. The list seems endless. Some of them are downright foolish beliefs. Some of them are unproven and intricately laced with the mysterious and the unknown-

An interruption as a I glance at my notes and the things-to-do-today list. I have a class for two hours starting at 8 AM and one hour at 1 PM. Should I try to sleep again? The morning two hours should be easy if I don't sleep till then. The 1 PM class should be the harder thing to endure and more importantly to attend on time. Sleepless nights and heavy lunches spell doom to the productivity of afternoon schedules. Usually Thursdays and Fridays irritate me because of the afternoon schedules. But today should be good. I have slept for 13 hours in the last two nights. That, by experience means that I can last till the tonight. At times, I really feel like changing the 24-hour to make it 72 hours or something of that sort. Anyway, now for a little indulgence... something different.





Monday, April 26, 2010

Slices of time

t=0, t=0+e, t=0+2e, ...

It is all about awareness of different slices of time. Everything is still at each instant. Awareness just moves from one slice of time to another. Non-living beings are things that are without this sense of awareness. Living beings usually can only sense one slice of time at a time. Simultaneous awareness of more than one slice of time would cause terrible confusion from which the only way out is stopping the awareness as it becomes too overwhelming to deal with.

What if you don't resort to the state where you run away from awareness? What if you are prepared; armed with the knowledge that reason, harmony and clarity will be lost once you become aware of more than one instances of time. Maybe, you can be prepared to see that which only few have seen.

Dreams are an indicator of the potential of simultaneous awareness. They are but a leap towards the aspect of multiple sensations of time. But, dreams are often forgotten. They are termed as unreal because the awareness is inconsistent with the state of slice of time that a human is more readily aware of. What if dreams were awareness of a state of a different slice of time. Would you then call them real?

What is real? Only the awareness of states that make sense together? Only those that
are consistent with each other?

Is it that, missing the finer slices of time that would induce a sense of consistency of the "unreal" dreams, is sufficient to call an instance of time as unreal?

The slices of time are pre-determined and free will is just an illusion. You are only here to sense the instances of time, not to change the state of the slice of time. But then, it is much difficult to convince a man who is blinded by the illusion of freewill, that there is no reason, no greater purpose and no significant meaning. The sense of nothingness is too hard to endure. For we all have been brought up with ideals, morals and ethics. That there is a greater purpose that we are supposed to serve.

The only thing there is to learn, is perhaps, that there is nothing to learn.

Friday, December 19, 2008

30Q

Apparently, someone else is more worried about my rusting blog than me. This post is just another way to while away the days of jobless winter vacation. ;)

1. Last movie you saw in a theater?
A. Harry Potter and the Order of the Phoenix. (Long long ago...)

2. What book are you reading?
A. The A.B.C murders by Agatha Christie.

3. Favourite board game?
A. Scotland Yard.

4. Favourite magazine/s?
A. Never bothered about magazines much.

5. Favourite smells?
A. Uh... I don't think I know its name.

6. Favourite sounds?
A. Keeps changing.

7. Worst feeling in the world?
A. How about happiness? :P

8. What is the first thing you think of when you wake up?
A. My music playlist.

9. Favourite fast food place?
A. None.

10. Future child’s name?
A. No clue.

11. Finish this statement. “If I had lot of money I’d…?”
A. Spend it.

12. Do you drive fast?
A. No.

13. Do you sleep with a stuffed animal?
A. Er. Now I'm really doubting if this tag is directed at everyone :P

14. Storms - cool or scary?
A. Cool.

15. What was your first car?
A. Yet to own one.

16. Favourite drink?
A. Black coffee.

17. Finish this statement, “If I had the time I would...”?
A. Get bored.

18. Do you eat the stems on broccoli?
A. :|

19. If you could dye your hair any colour, what would be your choice?
A. :)) Mine is the best!

20. Name all the different cities/towns you’ve lived in?
A. Hyderabad, Chennai.

21. Favourite sports to watch?
A. Swimming.

22. One nice thing about the person who sent this to you?
A. Just one?

23. What’s under your bed?
A. A cat :P

24. Would you like to be born as yourself again?
A. Yes.

25. Morning person, or night owl?
A. Night owl.

26. Over easy, or sunny side up?
A. No idea what this question means.

27. Favourite place to relax?
A. My room.

28. Favourite pie?
A. Never had a pie!

29. Favourite ice cream flavour?
A. Butterscotch.

30. Of all the people you tagged this to, who’s most likely to respond first?
A. None!

Monday, July 14, 2008

Star-crossed Lovers

"If you wish to converse with me, define your terms" - Voltaire

A discussion is trivial if the so called "arguments" involved are no arguments at all. Instead, it should be termed "Rant race". And it's even more fun when someone is talking to himself.

A: Are you clear on what I meant?

B: Yeah! But you don't understand me-

A: Yes, I understood you.

B: No! But you aren't doing it-.

A: I'm not going to do that and I understood what you said.

B: Then, you didn't get what I'm saying-

A: :|
Things like this happen because of the mental filter in our brain. We don't always hear what the other person says. Actually, that other person has an equally good chance of not meaning a word he says.

When did "Understanding" become equivalent to "Agreement" ?
and "Contrary opinion" become an "Insult" ?
"Selfish" = "Cruel" ?

Basically, if people talk to each other in two different languages, say English and French; we easily get the point that it isn't a conversation. There is no 'interchange of information'. "Language Barrier" is the figurative phrase used to indicate this type of difficulty.

Now, if two people converse in English and still have difficulties such as the above, can we attribute it to "Mental Barrier" ?

Define your terms - says Voltaire.

This might be a nice theoretical solution though not very feasible. We can't cross-check with a dictionary before we speak every word. We can, however, do this when we value debate per se and when we get the hint that the "argument" is tending towards rant race.

It's usually taken that a clearer understanding is reached with attentive listening. This might not be so true, when the speaker itself says things that they don't mean. One of the worst things that can happen is two people meaning the same thing in their head and still fighting about it.

Some of the minds who have thought about this problem suggest the "Common sense" theory. It is believed that for the most part a specific group of people think in a specific way.

Things are not all good with the "common sense" theory. As my cousin says, 'But what is logic? I doubt many people will agree on that'

If many people don't agree on a neutral word like "logic", common sense theory is doomed.

(Oh and by the way, I think the word 'logic' is neutral - just so that you 'understand' :p)

There are two things that you can do to minimize the problem of a rant race -

1. Stop talking altogether. (This works well when applied in the middle of a rant race too)
2. Define your terms and argue with only those people who define their terms.

Neither of the alternatives is extremely pragmatic, perhaps "Language" and "Communication" are star-crossed lovers.

123rd page

So, this blog is returning from a long hiatus and well, let's just clear off some arrears first.

I'm not very certain as to why this "Tagged" phenomenon erupted all of a sudden. Possibly, people have just nothing left to write/post.

This tag is from Smilee.

The rules: Pick up the nearest book. Go to page 123. Find the fifth sentence. Post the next three sentences. Tag five people, and acknowledge the person who tagged you.

The competitive advantage is maximized by the surprise factor. The English longbow was a shock-and-awe weapon in the fifteenth century, comparable to the Colt revolvers and Winchester repeating rifles of the Wild West. Not all new weapons are as fearsome as these, but the fear of unknown is itself a powerful weapon.
This quote is from, "How Life Imitates Chess" by Garry Kasparov.

Tag five people huh? Since most people I know who would continue the tag are already tagged. I tag Nobody, Nobody, Nobody, Nobody and Nobody. :p

Friday, May 23, 2008

Real Time Analytics