Archives
- October 2013 (1)
- September 2010 (2)
- April 2010 (1)
- February 2010 (1)
- November 2009 (2)
- September 2009 (3)
- August 2009 (3)
- July 2009 (2)
- June 2009 (3)
- May 2009 (1)
- April 2009 (5)
Monthly Archives: June 2009
Retrieving the Process ID (PID) in Java
Sometimes it is necessary for a Java application to retrieve it’s own process id. An example of where this could be required is for logging/debugging purposes. Below is a simple “Java way” (there are other ways to discover the process … Continue reading
GWT-Ext Date-Picker widget – Change the start of week
The GWT-Ext Date-Picker widget (the Calendar widget that allows for selection of a date) by default shows the starting day of a week as Sunday. Moreover, there is no API provided to change it to any other day. E.g. in one … Continue reading
BigDecimal and “java.lang.ArithmeticException: Non-terminating decimal expansion”
In one of my recent projects, I had to use java.math.BigDecimal to divide two values. I had to use BigDecimal instead of double as this was a financial application and required the results to be accurate. However, after running the … Continue reading