How to use jQuery to send JSON data to a Grails app
This took me a while to figure out, so here it is for anyone else who’d like to know. Firstly, I was quite surprised to learn that jQuery doesn’t have a built in method for turning objects into JSON,...
View ArticleHibernate magic with lazy evaluation
I’ve just run across this phenomenon for the first time and it turns out that hibernate can be even lazier than I thought! To illustrate lets use this time-honoured example in Grails. Here are our...
View ArticleDeploying a grails app on a VPS
I recently set up a grails app on a Slicehost VPS. I’ve been very happy with the Slicehost setup so far; here are a few notes that might be helpful. I started out on a 256MB slice, but that was too...
View ArticleA pitfall to avoid when using the Grails UIPerformance plugin
A quick warning to anyone who’s using the excellent UIPerformance plugin for grails: don’t do what I did, and set up your bundles with identical names: uiperformance.bundles = [ [type: 'css', name:...
View ArticleBeware of the default acegi Grails plugin setup
This is firmly in the “putting it up here just in case anyone else has the same problem” category. There is a gotcha that bites when writing a Grails application that uses the acegi security plugin...
View ArticleExtending Java number classes with random functions in Groovy
Recently I’ve been playing around quite a bit with Processing.org, and one of the things that I often want to do is add a bit of noise to variables that represent positions, sizes, colours, etc. Most...
View Article