Thursday, September 24, 2009

Birthdays!!

Birthdays are the most difficult thing to remember( or may be second most difficult after names or faces :P). So people put reminders on various websites creating birthday calendars. But what if you are not allowed to access external emails? So wrote simplest of scripts to do it and sharing it here in case anyone needs it.

#!/bin/ksh

TODAY_DATE=`date +'%m%d'`

BIRTHDAY_FILE=birthday

RECIPIENTS="your mail ID"

TO_BE_MAILED=mail

NAME=`grep $TODAY_DATE birthday|awk '{FS=" "} {print $2}'`

if [[ -n $NAME ]];
then
echo "To: $RECIPIENTS">$TO_BE_MAILED
echo "Subject: Birthday Reminder" >>$TO_BE_MAILED
echo "Mime-Version: 1.0">>$TO_BE_MAILED
echo "Content-Type: text/html" >>$TO_BE_MAILED
echo "<><>">>$TO_BE_MAILED
echo "< equiv ="\" content="\" charset="UTF-8\">">>"$TO_BE_MAILED
echo "< /HEAD><>">>$TO_BE_MAILED
echo "Today is $NAME's birthday">>$TO_BE_MAILED
echo "< /BODY>< /HTML>">>$TO_BE_MAILED
`cat $TO_BE_MAILED|/usr/lib/sendmail -t `
fi

You can refine and modify it according to your needs. I just was too lazy to improve it once it started working.Add the script to your ".profile". And as soon as you login you will get an email reminding you of any birthday :). One important thing, because blogger doesnt allow me to write HTML tags i have added space before ever HTML tag, please remove that .All birthday's are saved in a file named birthday in the below format : birthday , followed by name
0101 PAPA
0202 MUMMY
0303 SIS

Wednesday, May 27, 2009

A lil Poem!!


First day at school, first sight of the English teacher,
and next day you are the love preacher.

Next you fall in love with the first girl you talk,
and start learning from childhood how to stalk

you notice her every move, her every chat,
who she talks with , with whom she sat.

you add her on gtalk,yahoo and facebook,
even take the same tuitions as she took.

Slowly and surely you become friends,
but you are just one in a list of thousands.

Then you move to college which your hopes high,
you see competition is tougher.Sigh!!

You send a SOS friends, to find Miss right,
You need the hard disk night after night ;)

You ask your friends to propose from your side,
one of them is daring, other finds laith machine to hide.

With all courage in the world you go and propose,
in front of hundreds with a bunch of rose.

She says nothing, but her brother gets mad,
you get a tight slap, tighest have ever had.

You go and propose your childhood friend,
little sceptic as your friendship too can end.

You have a breakup and someone new comes into your Kholi,
her lips remind you of Angelina Jolie ;)

You are happy that IIT is tough,
as if you havent had religious names enough ;)

he is CK, not the Calvin Cleen,
with only girls was this guy seen.

he like matchsticks, nothing to do with smoke,
play it slow man, you have a bike not a ferrari 8 stroke :)

he likes every girl in the MMM group,
it wasnt a city but a whole drama troup.

he liked one, with the donald duck walk,
took 3 years to do the first talk :)


PS - 1. Not everything written is intended for everyone. So if you dont unerstand something, its not your fault.
2. Some people might find it familiar, its not unintentional ;).
3. I know i spelled Klien wrongly. That was just to rhyme ;).
4. Feel free to post any queries :)

Monday, May 18, 2009

Photogenic Dada!!


Saale pandit bahut photo kheechta hai na...match these ;) :P.

Sunday, May 17, 2009

Stay Hungry, Stay Foolish!!


This has nothing to do with the book but with Steve Jobs' Stanford speech.He told you few stories, I will do the same.

The first story is about connecting the dots.
Like him i too wasnt interested in whatever was taught in college. So I bunked classes and did what i found interesting i.e. play cricket, play quake. It was great.Those frags, scoring flags, holy shits everything. those cricket fights, that passion to prevent every run scored. But looking back now I think it was the stupidest thing i ever did. I completely wasted those 4 years doing something that's never gonna do any good to me in future. So though Steve Jobs says it difficult to connect dots looking forward, i would say its neccessary to connect dots looking forward. You can connect dots looking backward only if you drop out of college and still study. But according to me if you are bunking college , studies is the last thing on your mind ;).

His second story was about "Love and Loss".
He found early what he loved doing, I havent. I even dont know what I love doing( May be just sitting on a sofa watching cricket on a giant 50" TV with a McDonals burger in hand and a alrge Coke..yeah that might be it). Anyways i never knew what i wanted to do, but certainly knew what i didnt want to do. Waking up early, working late, lots of meetings and formal attire was certainly on my list. And guess what...I am doing all that and for 2 years now. So again it goes back to the first story, If I would have not wasted those 4 years...

Any Steve Jobs lovers dont take me wrong, I am not trying to make fun of what he said. That was one of the most inspriring speeches you will ever hear. And he is the greatest innovator world has seen, its just some people dont have the courage to follow their heart and throughout their lives will blame it on luck for what they are doing.
Neither is this blog written out of frustation, I am fairly happy with my life...but its certainly not what I love doing :D.

"Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle."-Steve Jobs

Sunday, March 29, 2009

5 people I would like to meet in heaven!!



Who will be the five people i would like to meet in heaven?
*Sachin Tendulkar
Sachin fans, please dont take me wrong. I dont want him to die, may he live long enough so that my granchildren can see him alive. Its just that i dont see any chance of me meeting him here, so may be i get a chance to do so in heaven :).
*Mahatma Gandhi
Not because he was a great man. Not because he fought for us. But because i want to ask him a question. Could he have saved Bhagat Singh if he wanted to? Anyone who has seen "The Legend of Bhagat Singh" will understand what i am talking about. Its not that i disrespect the guy, but i think he already has too many followers and he can do away with me not being one.
*Bill Gates
I am an apple guy. Confused?Then why do i want to meet Bill Gates and not Steve Jobs ;) ? Answer is simple. Just have one question for him. Did he really copy Mac to create Windows 3.1 as shown in "Pirates of the Silicon Valley" ? I kinda know the answer but want to give him a chance to explain himself (As if he cares what i think about him;)).
*Melissa Theuriau
What the heck? How can a newsreader be so beautiful? Anyone who doesnt know about her please click the link mentioned below or mail me and i can send some really good pics of her. Its not that hollywood doesnt have pretty girls but a news reader and so beautiful kinda makes me believe that beauty can exist with brains :D.
On the topic of pretty girls from hollywood, a special mention to Charlize Theron. I simply adore her, so dont mind meeting her in heaven either :D.
*Dont have a strong opinion about the 5th one. So can be anyone of these :)
a)Robert J Oppenheimer
People say inventions are not bad but bad people use them in a bad way. But i just want to ask this guy what good was he thinking an Atom Bomb can do?
b)Pandit Nehru/ Jinnah
Why did they think of only Pakistan and Hindustan? Why didnt we create a Sikhistan and a Catholistan? We would have more wars that way ;).
c)Ray Croc
Thanks a lot dood. McDonalds rock!! Please create something similar by the time i come up :D.


PS - a) This blog has in no way related to the image. I havent read the book yet :).
b) Apologies to all who have missed being in this list :P





Sunday, February 15, 2009

SRK vs SRT

The debate has been ongoing since long that who is the bigger superstar?
Shall we look at their resume?

Shahrukh Khan
Also known as King Khan. Has done around 53 movies till date(excluding special appearances)*.
Most of them were superhit blockbusters.
Is he famous? No doubt about that.
Is he a role model?For some, probably.
Was he under immense pressure due to crowd expectation? Should be.

Sachin Tendulkar
ODIs:422, Tests:156, T20: 1 = Around 1203 days of international cricket.
Like Shahrukh he also is a master in his field. Also known as the master blaster.
Did he do any service to nation making those runs? Arguable, but yes.
Is he a role model? I dont have any doubts about that.
Was he under immense pressure due to crowd expectation? You bet.

Shahrukh has given hit films singlehandedly without much support. And how many times has Sachin done one man army act? Numerous occassions.

So whats the conclusion...isnt it pretty obvious ;)
Watching a hit shahrukh khan movie with your girlfriend at the PVRs -- Rs 500
while having some popcorn and cold drink -- Rs 300
Watching Sachin bat at his prime -- priceless.

*Courtesy Wikipedia.org
PS- I am a big Sachin fan and not so big fan of Shahrukh so this blog might be biased towards Sachin. But would surely like to hear someone's version who can term Shahrukh to be greater than Sachin.

Friday, February 13, 2009

Can you marry someone blindly?


Nah this is not a blog dedicated to frustated singles. But a blog that will help them realize how lucky they are ;).Also whosoever amongst you thought of marrying whoever their parents will choose..please think again. Believe me you wouldnt want to be engaged with someone like:
Cleanser
All cleaning freak girls. Why is your pillow so dirty? Oh God!! I see spiderwebs in your room.
A girl like this has the power to completely destroy your life. Beware!
Expecting
Dont think wild. Its not that 'expecting' but a super-senti girl with high *EQ. Gets senti if you dont call her 10 times a day.Expects you to be a living calendar who remembers everyday...first left cheek kiss day ;). 
GORI-lla
Can be a model for whitener ad. Half the time you will be worried about your complexion getting darker. Grow up dood, staart using 'fair and Lovely, for men' :P.
Behenji
How many times  you say that you like a seedhi saadhi gaon ki gori but no one likes to have a behenji when your friends ask you to come to disc, pub, bowling ;). 
Richie Rich
This category doesnt mean rich by birth but a girl earning more than you do. Sorry didnt get a better name for the category. But dood take a break, how does it matter if she earns more than you,sit at home,relax. Execute the swimming pool plan ;). Easier said than done, i know this could be an issue.
Flirt
You have her but you know you dont have her. She will have more male friends that you have friends on facebook ;).  Do you really wanna have someone like this??
Game Over
Last but the most dangerous one. A girl who hates sachin, doesnt know a word about Sampras and thinks 'Formula 1' to be a formula given by Einstein. 
Aunty Scrooge
She keeping note of every penny spent. Asks your friend to eat less at your party;). (Highly exaggerated...but who cares..its my blog !! :)
Is there any girl left after filtering them on above categories?

*EQ- Emotional Quotient
PS- This blog has been written based on authors own experiences/preferences.Any resembelence to anyone living is purely coincidental. Also i would advise every boy reading this, that he  should not think about this crap seriously else he wont get a girl throughout his life. 

Wednesday, January 28, 2009

Wisden people have no wisdom!!

For all those Sachin fans who felt as offended as I did because Sachin didnt find place in 100 best test innings.
Following are the parameters on which each innings was judged and then ranked. I am not sure of the weightage given to each so assuming equal weightage to all lets compare two innings.
Lara's 375 against England in 1993 and the other Sachin's 136 V Pakistan in 1999.

1.Batting base points
Assuming that this means absolute runs scored and  considering 400 to be equal to 1, we get  375 == 0.9375
136 == 0.34
So Lara's score 0.9375 and Sachin's 0.34. Lara's innings chosen to be in top100 at this point is fair enough.
2.Pitch index
Again name doesnt help much. Guessing it to mean the no of runs scored/per wicket lost on the pitch.
For WI V Eng Pitch Index comes out to be 81.9333
For Ind V Pak Pitch Index comes out to be 25.9
So sachin scored 136 on a pitch that had average of 25.9 and Lara scored 375 on a pich with a average of 81.933. So sachin' sscore for this one will be 136/25.9=5.21 and for Lara it will be 375/81.933=4.577. Total scores this far. Sachin 1 and Lara 1.
3.Bowling quality index
Its Fraser,Lewis,Tufnell and Caddick V Akram, Waqar, Saqlain and Afridi.
Total wickets, bolwing averages everything will suggest that Pakistan bowling attack is better. So this one goes to Sachin.
4.Percentage of score index
Lara 63.2%. Sachin 52.7. So this one goes to Lara.
5.Point of entry index
Lara came in at 1-11 and Sachin at 2-6 so this one will go to Sachin.
6.After point of entry index
Lara had partnerships of 179,183,219.
Sachin had partnerships of 44,23,9,136,36.
I guess this index means how much support he got from teammates. So this one should also go to Sachin.
7.Wickets falling at crease index
For Lara it was 3
For Sachin it was 4.
So sachin gets this one too.
8.Support index
If you see After point of entry index it would suggest that Sachin got less support and should get the benefit here too.
9.Shepherding of tail enders index
Lara was the fifth man out. So no question of tailenders by then unless they playing 7 bowlers ;).
Sachin was the 7th man out, so only person who could have done any sort of shepherding is Sachin.
10.Highest score index
For both players it was the highest score of the innings. So its a tie.
11.Match status index
WI drew the match whereas India sadly lost it. So this one would go to Lara inpite of the fact that cricket is not a one man's game. And India losing doent make Sachin's innings any less great than it is. Still rules are rules. So this one to Lara.
12.Result contribution index
Sachin definitely didnt contribute to loose but still India lost and Lara drew the match so again Lara gets this one.

So in case i have done my primary mathematics course correctly and assuming equal weightage to all criterias we declare Sachin as winner against 10th best innings of all times. There are still 90 lesser innings than Lara's and no place for Sachin, what a shame!!

PS- Lara is a great batsmen and I am in no way undervaluing his innings. Chose this innings to compare just because it was easy to find stats for it.

Wednesday, January 14, 2009

DADAism!! - Beta

#I cannot play at the cost of my indicator.
Everyone present on this day will never forget this statement said by Dada. We all went to play cricket but the ground was occupied by some kids playing football. Right when Dada was parking his bike a football came flying and hit Dada's bike's indicator. Suddenly we see Dada taking his bike on the way back and on asking Dada uttered this unforgettable line with utmost seriousness.

#Wearing a wrist band on his left shoe.
Yup , you read it right. Dada wears a wrist band on his left shoe so that shoe doesnt become dirty when he changes gears while riding a bike.

#Writing diary to make notes for blogging.
Yes Dada makes notes in order to write a blog :). Very spontaneous :P.

#Following Roadies and Indian Idol like hell.
He will go to sleep at around 7 and will wake up by the smallest sound of Indian Idol theme song. He follows it so religiously as one would follow Sachin Tendulkar's batting.


PS- On a serious note it just shows how much he takes care of his stuff and is fully dedicated to whatever he does be it a recreational activity like blogging. Very unlike guys like me ;)