Here’s a little tidbit I wanted to share which demonstrates one of the coolest bits about Groovy. Similar to how one can use prototyping in JavaScript to enhance existing objects Groovy allows us to modify existing classes using the metaClass property. In the next example I will demonstrate how I...

Today I was working on a bit of code that had a big SWITCH statement in CFSCRIPT in ColdFusion that for each case would go through the motions of registering some input parameters, then getting a reference to a controller, or handler, for the specified input request. That code looked...

Here’s a little tidbit. If you need to determine what domain a request may have been referred from, such as when doing JSONP work, here’s a code snippet that might help. def uri = new java.net.URI(request.getHeader("referer")) def domainName = uri.getHost() The java.net package contains the URI class which aides in...

Slowly but surely I have been spending time learning how to develop web applications in Grails, a web application framework built on top of Groovy, Spring, and Hibernate. Last night I spent a good deal of time and effort trying to fit MongoDB into this framework stack, and met with...

A friend of mine is in school and taking some classes in Java, and also happens to be learning ColdFusion on the side. He was talking about the class and how they were learning about recursion and how they used the example of computing the factorial of a given number....

Last night I was working on an import script in Groovy to bring data back from a web service and into a MongoDB database. There’s a lot of data, and I wanted to know how much time the whole process was taking, as well as how much time certain pieces...

A super quick update: I have updated MailSlurper’s administrative interface to now have paging and column sorting!! And in Grails this was super easy to do. I totally need to blog about this later. Meanwhile check it out and go download it. Cheers!!

If you’ve ever worked with a database that contains sensitive data you may have had the task of “scrubbing”, or cleaning the data so it can be used by the average developer and QA engineer. Last week I was working on setting up a testing server and received a “scrubbed”...

While doing some experimentation with Groovy and Grails tied to a MongoDB database I was running into difficulties. I first tried the two plugins that are available for Grails and Mongo, but I just didn’t find them to work quite the way I liked, and didn’t feel like they fit...

I’m in the process of modifying pages in a ColdFusion application where I do not have the option of plugging in jQuery. ExtJs is available in certain parts of the application, but getting it in others is not always an option. As such I needed to attach additional click events...