28 December 2011

Heart Touching and True Life Fact

Heart Touching and True ...

Kabhi pehli bar school jaane mein dar lagta tha,
Aaj har rasta khud hi chunte hai..

Kabhi mummy-papa ki har baat sacchi lagti thi,
Aaj unhi se jhooth bolte hai...

Kabhi chhoti si chot kitna rulati thi,
Aaj DIL TOOT JAATA HAI FIR bhi SAMBHAL jaate hai..

Pehle dost bus saath khelne tak yaad rehte the,
Aaj kuch dost jaan se zyada pyare lagte hai..

Ek din tension ka meaning maa se puchna padta tha,
Or aaj tension soulmate lagta hai..

Ek din tha jab pal me ladna, pal me manana to roj ka kam tha,
Aaj ek baar jo juda hue to rishtetak kho jate hai..

Sachi, zindagi ne bahut kuch sikha diya...

Na Jaane Rab ne humko itne jaldi bada kyun(kab) bana diya.

05 October 2011

Always remember

Everybody is a genius:

But if you judge a fish by its ability to climb a tree,
it will live its whole life believing that it is stupid.

29 September 2011

How to identify J2SE version used to compile JAR FIle

Recently I come to condition when I needed to check the version of J2SE used to compile JAR file.

The following is python code to check the same :)

#!/usr/bin/python

import zipfile
import sys
import re

class_pattern=re.compile("/?\w*.class$")

for arg in sys.argv[1:]:
print '%s:' % arg,
file=zipfile.ZipFile(arg, "r")

for entry in file.filelist:
if class_pattern.search(entry.filename):
bytes = file.read(entry.filename)
maj_version=ord(bytes[7])
if maj_version==45:
print "Your JAR file is compile with JDK 1.1"
elif maj_version==46:
print "Your JAR file is compile with JDK 1.2"
elif maj_version==47:
print Your JAR file is compile with "JDK 1.3"
elif maj_version==48:
print "Your JAR file is compile with JDK 1.4"
elif maj_version==49:
print "Your JAR file is compile with JDK 5.0"
elif maj_version==50:
print "Your JAR file is compile with JDK 6.0"
elif maj_version==60:
print "Your JAR file is compile with JDK 7.0"
break


How to use:
1. Download python from
Python
2. Save above code to testVer.py file into Python installation folder
3. Go to Command Prompt from python folder
4. python testVer.py yourJarFile.jar
this will give you version of jdk used to compile JAR File.

24 September 2011

How to get the new Facebook 'Timeline'

No Bakwass only gyan :)

1. Go to the Facebook developers page .
2. Click on the "Apps" button and give the app permission to access your information.
3. You will now find yourself on a page that gives you the option to "create new app." Click on that button.
4. Here you will enter an "app display name" and an "app namesake."
5. Read the "platform privacy policy" and check the box to agree to it. Click continue.
6. Click the "open graph" button on the left side.
7. Type in an action such as "watch" and "TV show" and click "get started."
8. Keep saving changes until you are done.
9. Wait a few minutes and then head to the Facebook home page. You will see a message to enable "Timeline."

and you will get like this

16 September 2011

Dare to Win

"Happy are those who dare courageously to defend what they love."