Configuring Eclipse to use a JDK at a location with spaces in it

Tags: , , , , , ,

I was setting up my Eclipse environment with some new plugins today and ran into some trouble, which seems to have bothered many souls as I gather from the posts I found when trying to fix the problem. Some tools/plugins/features in Eclipse may need to use a JDK rather than a JRE. Sometimes you may […]

Continue reading » 21 Comments

How to split a file, process the pieces in multiple threads and combine results using a shell script

Tags: , , , , , ,

Say you are in a situation where you have a file with a huge number of records to be processed and the processing of one record does not need data from the processing of previous records (ie. a perfectly paralellizable situation), what can you do to speed up things? Well, here’s what I did when […]

Continue reading » 4 Comments

Java Synchronization Benchmark

Tags: , , , , , , , , ,

Here is a very simple and straightforward benchmark to demonstrate how synchronization in Java can affect speed of execution to different extents in Java 1.4 and Java 6. In the attached image (click above for full size), you can see that for Java 1.4 the synchronized method needs over 700% more time to do its […]

Continue reading » 7 Comments

Don't post onto your blog too fast to avoid losing traffic!

Tags: , , , ,

So I had this bunch of posts that I had written that I recently decided to post to this blog too. I broke up the entire content into several posts and made 14 posts in quick succession (in about an hour which involved formatting, tagging, posting). My advice, don’t do that! I noticed that since […]

Continue reading » 3 Comments