InheritableThreadLocal and Tomcat

InheritableThreadLocal does not work with tomcat as tomcat thread pool does not clear the thread local contacts after a request has been executed. This results in no good way to share information information between the parent and the child threads that are created using thread local variables.
One way to solve this problem is to […]

No Comments » - Read More..>>

நீயே யென் வாழ்கையின் ஆராதனை

நீ பார்த முதல் ஒளிநான் கேட்டேன் உன் முதல் ஒலி
அரிந்தேன்னே வாழ்கையின் அர்தம்வியந்தேன்னே வாழ்கையின் அதிசயம்சூவைத்தேனே வாழ்கையின் அருமைநீயே யென் வாழ்கையின் ஆராதனை

1 Comment » - Read More..>>

ஆராதனா

ஆராதனா .. நீ கண் சிமிட்டும் நிமிடம் நீ பால் வேண்டாம் எண்று சொன்னா விதம் எண் மார்பில் தூங்கும் நேரம் தேங்கும், தேங்கும், மனதில் தேங்கும் […]

1 Comment » - Read More..>>

Finding if Multicast is supported

One way to easily find if mulitcast is supported in a *nix system is to issue
netstat -gn
which returns the membership groups of the mulitcast addresses in the system
e.g. output
Group Memberships: IPv4
Interface Group RefCnt
——— ——————– ——
lo0 […]

No Comments » - Read More..>>

Using Locks for more granular concurrent access

Locks introduced in Java 5 allow a more granular control on a shared resource. When a method is synchronized only the thread that obtains the lock is allowed to enter into that method or any other synchronized method of the class. However some times we may need a more granular control, typically when we have […]

No Comments » - Read More..>>

My First Marathon

I completed the Silicon Valley Marathon on the 29th October in 5 hours and 7 minutes. Its just an amazing feeling. The last 4 miles was particularly remember able, when every step was a huge effort and the crowd cheering you all the way ! Some runners who had completed the marathon walked back with […]

3 Comments » - Read More..>>

Joining all lines in a file using sed

Sed (Stream EDitor) is a very powerful stream editor to manipulate text files.
I needed an utility that would join all lines in a text file to a single line with “\n” as a separator so that I could easily cut and paste inline velocity templates into java code. Here is the final sed command !
sed […]

No Comments » - Read More..>>

Installing Internet Explorer on Linux

The easiest way to install IE in linux is to use IEs4Linux. This is a script that would download all required installables from Microsoft and install IE on your linux system. You need have wine and cabextract preinstalled on the linux box.

1 Comment » - Read More..>>