Saturday, December 27, 2008

My mom is better than your mom

I know it's a little late to be making Sarah Palin Jokes ...

"Screw you, boy .. My momma's gonna be the wize-presideynt and kick yo momma's ass."

I guess the boy had the last laugh though.

Tuesday, December 23, 2008

No space for F(7) = 21

This proves three things:
  • I'm a big math/CS nerd.
  • I'm addicted to Coke Zero.
  • I'm jobless.

Friday, December 12, 2008

caste operators

Q: What are the caste operators in C++? With examples, explain the different caste operators. (10 marks) [VTU CS321 May 2009]

A: The caste operators are used to change the caste of a person.The four different caste operators in C++ are explained below.

a) static_caste
static_caste operator is used to change the caste of a person for a long period of time. Note that the effects of this operator are permanent.
Eg: Ramaswamy Krishnamachari Iyyer comes from an ultra-orthodox brahmin family from T-nagar, Chennai. After writing IIT exam three times and not getting through, RKI bribes the Tahsildar to produce a caste certificate pronouncing him a scheduled caste person. He then goes to IIT, then IIM and finally becomes a Big Shot. Later when he finds that he is no longer allowed into Guruvayur temple, he drowns his sorrow in Beluga Caviar and Dom Perignon.

b) dynamic_caste
dynamic_caste operator changes the caste of a person for a short period. While the benefit of using this is less than that of static_caste, there are no long term effects.
Eg: Ramaswamy Krishnamachari Iyyer has an unholy liking for mutton biriyani, but his amma carefully audits his spending. He buys a cap, goes to some arbit muslim wedding, says random phrases like "khuda haafiz", "wah wah" and "mubaarak" to everyone, and gorges on mutton and chicken. He then goes to Guruvayur temple for dessert (their prasadam is delicious).

c) reinterpret_caste
reinterpret_caste doesn't change the caste, but changes the way the rules of the caste are implemented.
Eg: When confronted with a bucketful of chicken, Ramaswamy Krishnamachari Iyyer recites from Skandapurana 11:38 "Thou shalt eat meat and all shall be happy". While his mother and granny debate whether Skandapurana comes above Ishopanishad, Rama gorges on the chicken.

d) const_caste
const_caste is used to remove the orthodoxy from the caste.
Eg: Centuries ago, konkani brahmins used to be as orthodox as Tamil ones, but over time succumbed to the temptation of fried fish and fenni. A konkani brahmin youth of today can be identified by the joint in his right band, a beer bottle in his left hand and a slutty girl on his lap.


This is how a geek does it.
Many happy returns of the day
Dedic to some fellow in Yankmenistan.