Friday, October 30, 2009

Regex for replacing all non-ascii characters in java

line.replaceAll("[^\\p{ASCII}]", "")

source:http://forums.sun.com/thread.jspa?threadID=5370865

Thursday, October 29, 2009

Fixing issues with "JavaHL not available" in eclipse

It is finally a big relief to me as I was able to fix this issue and thought I should note it down this in my blog. It can be useful for others and also for myself in future.

Here is the issue

I installed eclipse ganymede and installed subclipse using http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA .
I tried both 1.4 and 1.6. However, I could see javaHL not available in preferences ->team ->svn.
And snvkit was not working for me


Fix to the above problem:
1. I used 1.4 version from subclipse.tigirs.org
2. I installed subversion client from collabnet. which is available at
http://www.collab.net/downloads/subversion/redhat1.5.html
(Note: You can use latest versions, how ever, older version worked for me) . I took the first one specified in the list (file name:CollabNetSubversion-client-1.5.7-1.i386.rpm)
3. Once the above is installed, you need to add /opt/CollabNet_Subversion/lib/ to LD_LIBRARY_PATH and /opt/CollabNet_Subversion/bin/ to PATH
and
4. Restart eclipse

Tuesday, October 27, 2009

Books and Opensource softwares

there are lot of things to write and I always think, I should write this in blog and forget.
Few quick updates. probably I will detail later when I get time

1. For the first time in my life, I finished two novels in consecutive months (people can finish in a day), but this is the biggest achievement for me as I always used to love short stories and novels were boring to me. I have read 1. one night at call centre 2. Forrest Gump

Currently reading one Telugu book on Swami Vivekananda.

2. Started learning "R". It is very interesting. though I am still learning A,B,C,D of it. Will update more once I get. :)