Exploring Thoughtz..

Posts Tagged ‘Java

Change in behavior in Timestamp.valueOf() in JDK 6

Posted by: Vijay Dev on: October 21, 2009

Recently, when looking at a bug related to Timestamp, I found out that the valueOf() method in java.sql.Timestamp works differently in JDK 6 than the earlier versions.
Timestamp.valueOf(), when provided with a timestamp which contains a date or a month with a single digit. eg. 2009-9-20, 2009-9-3, 2009-12-4 etc., behaves differently in JDK 6 – it [...]

Using JODConverter

Posted by: Vijay Dev on: February 13, 2009

Converting files from one format to another is one of those problems that sound simple but actually is very complex to solve. In one of my projects, I needed to convert spreadsheets to comma separated files and I hit upon JODConverter, the Java OpenDocument Converter. This offers a variety of usage options – it can [...]

Back again!

Posted by: Vijay Dev on: November 23, 2008

Its been more than two weeks and I have nothing to write about ? Preposterous !! I ask myself – What all have happened in the areas that you do or follow closely? So here goes…
The final frontier was recaptured exactly where it fell the last time, 4 years ago. AK and SG left on [...]

Google Developer Day !

Posted by: Vijay Dev on: October 25, 2008

Google conducted the ‘Google Developer Day‘ (first time in India) in Bangalore on Oct 18, 2008. A team of eleven from HeyMath! went for the same and needless to say, I was there !
I attended one Tech Track session on App Engine and one on Google WebKits. And for the Code Lab session, I chose [...]

Web Services and XML Binding

Posted by: Vijay Dev on: September 24, 2008

Some days back, when I wanted to write a web service using Axis, I encountered a problem in passing objects to and returning objects from the methods exposed by the web service. I wanted to just write a jws and invoke it directly without worrying about the deployment processes of the web services like WSDL2Java, [...]

JForum & MemCached Integration

Posted by: Vijay Dev on: August 30, 2008

The default caching option in JForum is a simple Java Map which obviously will be effective only within a single JVM and will work only when the application is running on a single instance of the web server. But in a clustered environment, each JVM will maintain its own cache (because its just a Java [...]

Java IAQ

Posted by: Vijay Dev on: August 28, 2008

I came to know about these and much more in this Java IAQ by Peter Norvig.

Counting down (i.e. for (int i=n; i>0; i–)) is twice as fast as counting up: my machine can count down to 144 million in a second, but up to only 72 million.
Calling Math.max(a,b) is 7 times slower than [...]

Tags: , ,

Blog Stats

  • 21,956 Visitors

My Tweets

About Me

Journey so far…