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 :)


import zipfile
import sys
import re


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)
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"

How to use:
1. Download python from
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."

12 September 2011

Build a Change

You may know what you know and what you don't know and may be you never know :P Break for a Bang to Build a Change :)