Archive for May, 2007

How ql is your sql? - Correlated subqueries or joins

Friday, May 25th, 2007 Posted in sql | No Comments »

A friend of mine set us a challenge to keep our grey cells from atrophy: The Tables: person person_idname 1Dan 2Chris 3Rafa 4Jose 5The Queen person_car_colour person_idname 1Blue 2Red 3Red 4Blue 4White 5Red 5White 5Blue And the questions --> Find in a single statement: 1. who has a red car and ... Read more..

Singleton - Pattern or antipattern?

Wednesday, May 23rd, 2007 Posted in java, rants and opinions | No Comments »

I have seen far too many CVs recently which just list every possible technology acronym, in no particular order. The latest applicant also helpfully listed patterns, and the four listed included ... Read more..

Why is Tomcat session replication not working?

Thursday, May 17th, 2007 Posted in java, web | No Comments »

Have you added the magic </distributable> element to the top of your web application's web.xml? How nodes in the cluster are identified Tomcats in the cluster identify themselves on a multicast address So ... Read more..

JTextArea with popup menu - JPopupTextArea

Thursday, May 17th, 2007 Posted in java, swing | 3 Comments »

I recently worked on a project which was using the old AWT TextArea component. OK, TextArea is pretty basic, but at least it gives you a right click popup menu with ... Read more..

Converting Java Dates to Xml Schema dateTime, with timezone

Friday, May 11th, 2007 Posted in java | 2 Comments »

One would think this might be easy. One would be wrong. One would not be reckoning with the cryptic Java Calendar and Date classes, officially one of the worst features ... Read more..

XSLT transformations work in IE and Stylus Studio but not in Firefox or Opera

Thursday, May 10th, 2007 Posted in xml | No Comments »

We were developing some stylesheets to convert xml to html in Stylus Studio and had the problem that IE would render them fine, but when we used Firefox/Opera we only ... Read more..

Millisecond comparison breaks tests after Sybase persist

Thursday, May 3rd, 2007 Posted in ORM | No Comments »

Still frustrated having wasted some precious time trying to debug some failing tests --> Tests were failing when comparing Date values on a business object before and after persistence to Sybase ... Read more..