Saturday, February 4, 2012

Who's your daddy...(coder style) :D

Reply to "Who is your daddy" coder style.....:D :D

pid_t WhoisMyDaddy()
 {
 return getppid();
 }
int main() {
 printf("My daddy is %d\n",WhoisMyDaddy());
 return 0;
 }
Vote for me now!

The "IIT Rejects"

    "You are not qualified".It was a yet another fine summer morning.25th May 2009 it was if I am not mistaken.It was on that eventful day I was rechristened from "IIT aspirant to an IIT reject"
But as luck would have it,just a week later breaking my siesta another event thrusted into my life.CCB 2009 the site banner read,while the content read "AIR 5063".
That day my destiny was written.After 3 years i could feel,the lady luck grimming just like the cheshire cat summoning her patrons to seal my luck as I had to torture myself in an unproductive,suppressing environment for the next four years of my life.Yes I became an NIT'ian.

      Describing what an NIT'ian means is somewhat confusing.To be an IIT'ian means you belong to the blue blood.You are entitled with the right to look down upon others.(I am not aware of any other ....'ian).But our species found themselves  rather caught in the midway.It will be a shear case of hypocrisy if we look down upon others,or even call ourselves par with the BLUE BLOODS.I mean how can we?The reality of NIT's is we are just like the empty bucket.We signify optimism.
Taught by pseudo-intelligent  people who rather pretend to teach.Classes taken only to meet the official requirements.Yes we deserve to be looked down upon.
     
      Nevertheless i started this post with a positive mind.But somehow reality bites.What you just saw was an outburst of emotions.Dear teachers you are genious.Its my fault I can't tolerate your lectures.It indeed takes lot of efforts to browse for slides online,copy them,modify them,understand to pronounce the words in them.You guys are real gems forced to be the alma-mater of "IIT rejects".My sympathies with you.
     Though I was still pondering how merely the difference of certain points can be a basis on dividing the 300 million strong indian youth population.(A 60 odd marks and bingo I would have been rather working on some million dollar project at an IIT lab rather compiling this stupid post)
Yes its true that the real potential of the country lies in the prestigious institutes.But I find this rather baffling that people be rated on the basis of their college rather than their potentials.There is no way a 3 hour examination can determine the course of your life.I have find many of friends saying "Abe IIT valon ke samne hum log ki kya aukat?"(where do we stand in front of the IIT'ians) The answer I want to give is I don't know.(What I actually say : "sai keh rae ho be").In fact no one can.We have just entered the phase where we can structure out our lives.
     Yes I agree we are at -∞  when compared to the resources that IIT's have.But i still believe there is no reason why we can't compete the BLUE BLOOD.Many question me why i didn't gave a second attempt.Why i chose IIT reject over IIT aspirant.The simple answer is I believed in myself.I believed I don't need a brand to carve a niche for myself.
      

      This whole business of blogging had really turned on the limbic system of my brain.Infact I have seen some real gems here at NIT allahabad.unintrested_coder for example,i believe no one can beat him at developing algorithms,The khan of our college who ditched HCRA(F yeah,u rock buddy) and i dare say no IIT'ian can ever come close to his hunger for knowledge,our kabbadi champion who can spell out python codes in his dreams,our golu who has fixes for all problems......The list can go on and on if I start narrating it.In very short all my close friends are IIT rejects,but still I believe they are the best.


         To end this post that has gone a far too wayward i would urge my readers to read the following lines.Not only read them but imbibe them......(The road not taken,by Robert Frost)

Two roads diverged in a yellow wood,
And sorry I could not travel both
And be one traveller, long I stood
And looked down one as far as I could
To where it bent in the undergrowth.

Then took the other, as just as fair,
And having perhaps the better claim,
Because it was grassy and wanted wear;
Though as for that the passing there
Had worn them really about the same.

And both that morning equally lay
In leaves no step had trodden black.
Oh, I kept the first for another day!
Yet knowing how way leads on to way,
I doubted if I should ever come back.

I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I--
I took the one less travelled by,
And that has made all the difference.


Vote for me now!

Sunday, January 29, 2012

Handbook of love. By an idiot,for the idiots(part 1)

Disclaimer:  This is completely a work made under exceptional circumstances when my mind is unable to think and there is a derth of ideas.Hence anything I write from now onwards may be treated as a pure work of frustration that has nothing to do with my original personality.
Though you might get a feeling that its the hooch that's making me write this way,i assure you I don't need that to talk senselessly.

The Big Question:She loves me,she loves me not 


This one question that has haunted thinkers,philosophers,poets,writers,plumbers,engineers,professors(i.e. before they turned into warlocks) and every possible profession alike.She loves me ,She loves me not?
Here in a span of few  seconds i am going to shatter the sensibility of this question by the OMG theorem.

The OMG theorem


There is no possible way in this world to know whether your crush will ever say "I love you" to you irespective of how handsome you are,how high  your salary goes,or even how many A+ you have embedded in those grade sheets.


The proof:
I assume that you are familiar with the hello world problem.
Lets assume that there exists a way to know if your crush will ever say those 3 golden words (in the right order obviously) to you.Lets assume without any loss of generality that the only reason why she would do that is a subset of all the qualities(physical,emotional,material etc) in you.Thus we can reframe the problem as,given a girl which is fed a boy as an input (cool just imagine this scene :P) will she ever chose to become her life partner.

Lets assume there is a way to know that.So all we have to do is to change the meaning of sentences in English.Let's swap the meaning of hello world with that of I love you....And poof...Since you can solve the SHE LOVES ME NOT problem you have the solution  to the Hello World Problem.But as a very respected gentleman had once said,you can't solve the Hello World Problem,You can't solve the DOES SHE LOVE ME problem.As simple as that.Its another thing if you can somehow convince that gentleman to drop this stupid rule that comes between you and your lover.:)

And just now I have solved the biggest problem of man kind.You may thank me later by the way.
And with this proof i hope i have exposed the truth of those cheaply made websites that claim to give numbers to your love,merely by asking your and her (poor she) name.These sites merely exploit the fact that you are common people with very very ordinary thinking capacity(and that i am arrogant muddle head).I feel its an offence equivalent to
shaving a cat to drag mathematics into a problem which is unsolvable and that too by using only two variables(the respective names)

With this brilliant theorem i leave my ecstatic readers to enjoy this night of freedom.I also assume you will now delete those love calculator bookmarks.And god please spare those petals.You can just count the number of petals......
Here is the code that can do that...plz spare those lovely petals.

scanf("%d", &num_petal);
if(num_petal%2==0) puts("she loves me not");
else puts("she loves me");


Before signing off i will give my newly acquired fans(and haters) a wonderful application of multi-threading(you see my thoughts don't remain in one place).I thought of this idea when one of my senior was teaching multi-threading to me.

Here's the pseudo-code

volatile bool flag=false;
declare new thread Bachelor
{
bool cond=false;

while (cute girls available)
{
find next cute girl
if(cute_girl.distance<VISIBLE RANGE) 
  {
brag about your self
check out your hair clothes etc every 10 sec
try to check if she looks at you
look for a reason to talk(ask the time dammit)
if(talk==successful) Be happy :)
}
}
}//end of bachelor thread
Main thread()
{
execute bachelor thread;
while(flag!=true) {
wait for mr.fate to find you the miss perfect
if you meet the "miss perfect for me" flag=true //congo <3

}

kill thread bachelor
delete the list of pretty girls from your memory
wipe all proofs of your adventures as a bachelor(Especially the inbox,contacts etc)

Enjoy a life full of compromises 
} //end of main thread



Vote for me now!