Month: April 2010

Apathy of a married man

Posted by – April 14, 2010

This conversation took place today between Mr. X (Unknown for obvious reasons) and Mr. Y which is me.

Mr. X: hmm, like anybody else, he is pitiable after he got married
Mr. Y: hmm…
Mr. Y: you said it in just one line
Mr. Y: I am going to quote you everywhere
Mr. X: ruko bhai (Stop bro)
Mr. X: maine to aapke kuchh bura nahi kiya (I didnt harm you)
Mr. X: fir ye sabkyon (Then why all this?)
Mr. Y: aap ne satya vachan kahe (You said some thing very true)
Mr. Y: :-( !!!
Mr. X: hmm, like anybody else, he is pitiable after he got married
Mr. X: na prabhu (No dude)
Mr. X: aaj fir? pitvaoge (not today, I dont want a beating)
Mr. X:  :-)
Mr. Y: oh
Mr. X: She is also on FB
Mr. X: :-(
Mr. Y: lolz
Mr. Y: man
Mr. Y: i nagged my wife so much that she blocked me from FB
Mr. Y: and even from orkut
Mr. X: Oh teri di (Damn it)
Mr. X: signs are discouraging
Mr. Y: In any case this conversation needs to be “documented”
Mr. Y: I will document it
:-)

Do you know how to do Hello World in CakePHP?

Posted by – April 14, 2010

I just discovered its easy enough to do hello world in CakePHP. Read more

Real world example of Polymorphism

Posted by – April 5, 2010

OOPS is easy to understand and is most confusing concept. When I interview I usually ask my favorite question, real world example of polymorphism. I have met just one or two candidates who came up with an answer. Today was the day I met another candidate. As usual, I was expecting a formal or a normal reply. But…

Me: Can you give me a real world example of polymorphism?
Candidate: :-? I can say I am an example of polymorphism, yes I am an example of polymorphism, you see, I am a son for my parents, am a nephew and of course am a boyfriend for my girlfriend

Why the hell he he stressed upon his being a boyfriend. Show-off?

Problem with NULL in MySQL

Posted by – April 1, 2010

Ever tried to do 2+NULL and got NULL in response? Or tried to concatenate Hello World with NULL and again got NULL?

Read this  -> Problem with NULL in MySQL.