Friday, December 28, 2007

Groovy Encode / Decode

Recently, I needed to encode and decode some information for a project I was working on. I wrote a quick little snippet to show encoding and decoding a string in the same program.


def me = "Jim Shingler"
println "Me: ${me}"

// Encode it
def encoded = me.bytes.encodeBase64()
println "encoded: ${encoded}"

// because I need a string for decoding
StringWriter sw = new StringWriter()

// Decode it
String decoded = new String(sw.toString().decodeBase64())
assert decoded == me
println "decoded: ${decoded}"


Me: Jim Shingler
encoded: SmltIFNoaW5nbGVy
decoded: Jim Shingler

Tuesday, December 11, 2007

Grails 1.1 RC3 - Released

Grails 1.1 RC-3 has been released and it includes Groovy 1.5.

Wow, This is really getting exciting.

You can download it at

Sunday, December 9, 2007

Groovy 1.5 Released


Groovy 1.5 has been released.

You can download it here.

Sunday, December 2, 2007

Grails Exchange 2007 - Presentations posted

The Grails Exchange 2007 Presentations are Podcasts have been posted.

You can find it on the Grails Exchange site: (Just click on the sessions, you will find a PDF of the slides and google video.)

I have listed to many of the Podcasts, It looks like it was a really good conference. I wish I could have been there.

Check it out.

Tuesday, November 13, 2007

IOC Container for JavaME - FallME

How would you like to have a Inversion of Control container on the JavaME platform?

Chris Judd, a good friend, and I were developing a couple of JavaME applications and found ourselves wanting an IOC container on the JavaME platform. After some searching, we found that there aren't any.

So like all good IT Professionals, . . . If the tool you need doesn't exist, build it. And so we did.

As a play on words, we named it FallME.

Check out FallMe at:

Grails Book

I am currently writing a new Grails book with two good friends based upon Grails 1.0. The book is setup to compliment "The Definitive Guide to Grails". It will be available April 2008.

Practical Grails Projects: Agile Web Development for the Java Platform using Groovy and Grails

Saturday, January 20, 2007

Eclipse RCP and Handy Aspects

I finally figure out how to get HandyAspects ( working within an Eclipse RCP application. At least I think I did. I have to verify it.

The Secret is: -Xset:pipelineCompilation=false

This appears to be a bug in the AspectJ compiler. See this link

Trying out

I am looking at moving my Blog from Jroller to