Archive for June, 2008

Eclipse 3.4 Ganymede Review — Bloated and dissappointing

Thursday, June 26th, 2008

Eclipse Ganymede (3.4) was released yesterday and I had a first look at it by configuring both the versions -- jee & java. Here are my first impressions and review after migrating my 3.3 workspace of projects into the new one: - Reduced memory foot print? No. Reduced distribution size? No. Java distro ...

Install multiple IE (IE4, IE5, IE5.5, IE6) as a standalone for testing

Tuesday, June 10th, 2008

Although, most UI Javascript frameworks say that their script "works" in all browsers, it's quite the opposite. As a developer, you might wanna save your ass till a last moment surprise. And you would want to test your web application or website on all web browsers, atleast for a sanity ...

Automated Unit Testing with DBUnit, Hsqldb in Spring & Hibernate projects

Saturday, June 7th, 2008

If your project has a lot of unit testing in Java and you use continuous builds (CruiseControl) to automate, it is often difficult to automate tests which connect to Database (Dao and integration tests). For most companies, having a dedicated Oracle schema for testing is expensive. Also, sometimes, developers ...

Grails Extended ManyToMany GORM Example

Friday, June 6th, 2008

This is a variation on this article. Having never been a big fan of writing XML, I'll gladly opt for the XML-less version. The first example online I found has some formatting issues and just seems a little hard to follow. My step by step example follows after the jump. Call ...

Amazon.com site is down with a very helpful error message

Friday, June 6th, 2008

[Update: 2 hours, something]. Look's like the folks at Amazon, finally brought back the site again. Here's a report at Wired [Update: 1 hours 30 minutes] Ok, they added a nicer error message. But click on the link, it gives back the same Http/1.1 Service Unavailable message back! What's worst ...

Configuring Tomcat 5.5 JNDI Datasources with Spring

Wednesday, June 4th, 2008

First of all, make sure you're looking at the Tomcat 5.5 JNDI HowTo, not the Tomcat 5, and definitely not Tomcat 4. Yes, I know this sounds obvious, but once you start googling you'll find it's hard to distinguish the versions. Place a context definition in /META-INF/context.xml - this is the ...

Extending Hibernate Validator for BigDecimal Range validation

Wednesday, June 4th, 2008

Hibernate Validator is a very precise framework written in the hibernate umbrella of frameworks. Using the inbuilt validators should solve most of your column constraints. However, if you have Decimal types (Float, Double of BigDecimal), there is no inbuilt validator to validate both the precision and scale. Also, I've stopped ...