Author Archives: Matt Nohr

Grails Tip: Deploy to the Cloud with AppFog

Post by Matt Nohr

AppFog (appfog.com, @appfog) is a relatively new cloud platform that lets you deploy your applications to one of a number of different cloud providers like HP Openstack, Rackspace, and Amazon Web Services. It supports a number of languages and databases, … Continue reading

Posted in Software Development | Tagged , , | 6 Comments

Reserved Words as Grails Domain Objects

Post by Matt Nohr

I recently ran into a SQL exception creating a simple domain class called “Group” that looked like this: class Group { static constratints = {} } When I ran my application I got this not-exactly-helpful error: | Compiling 1 source … Continue reading

Posted in Software Development | Tagged , , , | 3 Comments

GR8Conf Overview

Post by Matt Nohr

This week was the United States GR8Conf, and we were lucky enough to have it right here in Minneapolis. GR8Conf is a conference focusing on Groovy and Grails and is held in the US, Europe, and Australia. Refactr was one … Continue reading

Posted in Agile Processes, Software Development | Tagged , , | Leave a comment

Understanding Grails Aliases

Post by Matt Nohr

In Grails 2.1 (RC2 available at time of writing), Grails introduced a new “alias” command. Like the rest of Grails, there is good high-level documentation for this command. However, here are a few more details. Quick Overview You can use … Continue reading

Posted in Agile Processes, Software Development | Tagged | 7 Comments

Partial Mocks with Spock on Groovy/Grails

Post by Matt Nohr

The Spock testing framework currently does not support partial mocks. It is easy to mock out a class, but not individual methods in a class. In almost all cases, this makes sense to me. If you really only want to … Continue reading

Posted in Software Development | Tagged , , , | 4 Comments

Zombie Run

Post by Matt Nohr

On Saturday Ben, Luke, Matt, Matt, and Spencer completed the Zombie run in Milleville, MN. It was a 5k obstacle course that was full of people dressed as zombies. You start the race with three flags (like in flag football) … Continue reading

Posted in Misc | Tagged , , | Leave a comment

Grails JMX Configuration Using Annotations

Post by Matt Nohr

I have a grails application that uses the JMX plugin to expose MBeans. The good part is that it automatically exposes some built in MBeans like hibernate and log4j. The bad part is that it exposes too much information for … Continue reading

Posted in Agile Processes | Tagged , , , , | 2 Comments

Grails In-Memory Cache using Google’s Guava Library

Post by Matt Nohr

In a Grails application, there are a couple of cases where you may want to consider storing data in a in-memory cache. ¬†For example: If it is expensive to read/create the data (reading across the network) If the data will … Continue reading

Posted in Software Development | Tagged , , , | 1 Comment

Create a Heat Map Using Google Docs

Post by Matt Nohr

Using Google Docs new Fusion Tables makes it really easy to create heat maps with just a list of longitudes and latitudes. In this example, I will use the GPS data from my watch to create a heat map that … Continue reading

Posted in Agile Processes, Misc | Tagged , , , , | 7 Comments

Switching to Eclipse/STS For Grails Development

Post by Matt Nohr

My preferred tool for doing Grails development is the SpringSource Tool Suite (STS), which is built on the free Eclipse IDE that you download with a number of plugins already installed. It is totally free and has a number of … Continue reading

Posted in Software Development | Tagged , , | 5 Comments