Thursday, March 31, 2011

इक और लिखा, सुनो

इक ज़माना था जब हम भी जवाँ होते थे,
अब तो बीते हुए बस कल की याद करते हैं।
मुस्कराते हैं वो सोच कर जो न हुआ हमसे,
जो किया भी, अब बस यादों में कैद रहते हैं।

Monday, March 28, 2011

The Indo-American pronunciation mess

Plenty you will see laughs at Indian pronunciations and use of words. But don't you dare to think you are right.
- What you say Flashlight we say Torch.
- What we say Torch you use it for arson.
- The way you say arson sounds an (Yoga) Aasan.
- When we mention Yogi you think of Baseball, while ball is Hair to us.
- We keep Hair Black and long, you kept Black away for long.
- Your money is on your Black leader, our leaders have a lot of black money.
- Even our common bond is (mis)pronounced by you as demaucracy the word we only use to demo.

Wednesday, March 16, 2011

Playing 11 against West Indies

So with all the dismal (not so impressive) to an absurd performance (Remember English and SA games?) by the Indian team they need to be extra cautious when they play West Indies next, if not for points but to rebuild the confidence. My opinion of the playing 11 be:

  • Sehwag
  • Tendulkar
  • Gambhir
  • Kohli
  • Yuvraj
  • Dhoni
  • Yusuf
  • R Ashwin
  • Zaheer
  • Harbhajan
  • Ashish Nehra

Tuesday, March 15, 2011

To find which class contains a method in a given jar

Okay.. I vaguely remembered a method that existed somewhere that could do what I wanted but could not recall the class it was in, and all I had was the jar. So I wrote this:


#!/bin/bash
for i in `jar tvf $1 | grep class | awk '{print $8}' | sed -e "s/\//./g" | sed -e "s/\.class//g"`;
do
echo $i;
javap -classpath $1 $i | grep $2;
done

Enjoy!