Archive | September, 2009

Might go down with flu

Hmm.. I was wondering why I didnt catch flu when the whole world around me was coughing and sneezing..and here I am now, nose closed.. Might be into my 2nd day of flu, which means I have nearly 5 more days to go according to Rajnikant(in Chandramukhi(translated) – If you take medicine it will leave [...]

Continue Reading

Unnaipol Oruvan Not Released In Mumbai? :(

Frankly, I feel a bit dejected. I was so eager to watch this Kamal Flick but all I can do now is read the reviews and get the idea of how the movie was since there are no signs of any shows in Mumbai yet. Though I have watched the original movie 2-3 times already, [...]

Continue Reading

Using MessageResources in Struts

MessageResources allows you to internationalize your application by defining fields and their values in a global file and accessing them elsewhere in the application. This is a simple example of how you can use MessageResources. 1. Create a file, say “ApplicationResource.properties” in your package, say at “com.michaelfernando.resource” and type the following into this new file: [...]

Continue Reading

Officially 26!!!

Am officially 26 years old now(Its midnight in India). Well, add a few more minutes cos this Airtel GPRS took a long time to connect. No! Couldnt use my broadband as there’s no power here. What am I living in, a stone age? You bet!!! And No!!! Thats not my cake in the photo…

Continue Reading

MDB to CSV conversion in Java using Jackcess

1. Download jackcess from here 2. Write this code in your Utility Package: import com.healthmarketscience.jackcess.Column; import com.healthmarketscience.jackcess.Cursor; import com.healthmarketscience.jackcess.Database; import com.healthmarketscience.jackcess.Index; import com.healthmarketscience.jackcess.Table; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.Iterator; import java.util.Map; void dumpDatabase(Database mdb, BufferedWriter out, String sourceFilePathWithName, String destinationFilePathWithName) throws Exception { Database db = null; BufferedWriter out = null; [...]

Continue Reading