Skip to content

Which version of Groovy am I using with this Grails version?

Two nights ago Jack Frosch gave a great summary of the new features in Grails 2.3 at the DFW Groovy – Grails User Group. At the end of the meeting somebody asked him what version of Groovy shipped with Grails 2.3. I could tell by the look on his face he wasn’t sure, so I came to the rescue.

Considering nobody else in the room could answer the question, I figured I would blog my answer. For starters, you have two easy options to get the version of Groovy used in your Grails distribution.

You can simply look at the Grails installation on your workstation. One of the benefits of Grails is that it ships with everything you need to build your webapp, including Groovy. Just drill down into the lib dir and look at the jar file.

Fri Dec 06 13:43 eweibust@RSNPLALT538 ~/dev/hello
$ ls $GRAILS_HOME/lib/org.codehaus.groovy/groovy-all/jars
groovy-all-2.1.6.jar          groovy-all-2.1.6-sources.jar
groovy-all-2.1.6-javadoc.jar

You can also get the version programatically with the following call:

println "groovy version: " + GroovySystem.getVersion()

Which prints:

groovy version: 2.1.6

Hey, Google, you should go ahead and crawl this one. Should be useful to others. ;)

Reading Machine…

I’m not sure what’s gotten into me, but I’ve been reading a lot more books then I normally do. I normally read technical blog posts, articles, whitepapers and too much garbage from twitter. Occasionally, taking the time to read a tech book from cover-to-cover.

Anyhow, not only am I reading more, but I’ve also got stuck in the middle of multiple books at one time. The brain isn’t multi-threaded, and juggling these books all at once is a challenge but I’m having fun with it. Reading some in the morning before work (the Bible), audio book on the way to/from work (Defending the Free Market). And the others in the evenings.

Here is the list:

And just for grins, for those keeping score. Here are the books I’ve just recently finished:

  • The Racketeer – 1/8/13 – I read all of Grisham’s books. Each one makes me wish I was a lawyer.
  • Killing Kennedy: The End of Camelot – 1/6/13 – Great book. Learned a ton about Kennedy. He made Bill Clinton look like a saint. Repeatedly cheated on his wife. Got a lot of people killed over his bad decisions in the Bay of Pigs,  Cuba. Solid job getting us through the Cuban Missile Crisis… Lots of enemies.

Testing Twitter Integration

Sorry for some good, old production testing… Trying to get my blog to tweet when I write a new blog post. I’ll further try my Selective Twitter hack for pushing a tweet into Facebook as a Status Update.

Not making New Year’s Resolutions, but…

I am going to set some goals for the year. :)

The first thing I plan to do is cut another 10 pounds this year. Last year, with a very weak effort of eating/living the Paleo Diet I went from 210 down to 200 lbs. I figure with a bit more dedication I should be able to get down to 190 by end-of-year. If I don’t look better come December, please take some shots at me for being a bit pudgy.

Next up on the list is the generic, “Exercise more,” goal. I started working on this one on 12/30. I’m being a bit more serious on this one, getting a 2-day head-start. ;) Anyhow, I’ve logged 5 workouts over an 8 day period. Some a bit easier than others, but this is a plan for the year, not an overnight crash-course in health.

The third personal goal is running  a 10 K. Back in high school I ran the mile and 2-mile, among the other sports I did. I have run on and off since high school. And have run a few 10 milers, so a 10K isn’t a distance record for me. It’s a distance record since I was introduced to beer and rare steaks, and I’ve had a lot of both since I used to run a lot.

I began my training today by hauling-off and running a 5K around our neighborhood. I haven’t run a 5K in a few years. The longest distance I’ve jogged the last couple of years has been 2 miles. Anyhow, I took it really easy today and finished in 37 minutes (here is the proof).

Please feel free to keep me honest. Ask me if I’ve been exercising (I plan to do it before work a few days a week and once on the weekend). Ask how I’m progressing on the 10K. Ask if I’ve signed up for one (anyone interested?). And lastly, be nice about it, but ask if I’ve lost any weight. ;)

Dang You, Taunting Me Old Blog…

I catch a good amount of crap from good friends about this old, dusty blog of mine. One guy in particular, not naming names, but he sits right next to me at work ;) , likes to make fun of me when I say stuff like, “I need to write a blog post about that,” or even worse, “I am going to write a blog post about that” (because I never get around to it). For you history buffs, I’d like to brag that I “birthed” Erik’s Hmm… almost nine years ago with this gem of a post.

Anyhow, the reason I don’t write those posts that I want to, even plan to, is simple. It’s Twitter. I love Twitter. It lets me say what I want, quickly and easily. It forces me to be concise, 140 short characters, concise. Which is definitely one of my biggest struggles when trying to make a point. So Twitter is perfect for me. I can quickly say something, or retweet somebody else that has said what I want to say. I get my point “out there”. You know what I think, what stance I’m taking (Obama sucks, the Aggies will dominate the SEC, the Cubs are pathetic, Grails is the one web framework to rule them all, etc.). It’s why I went as far as posting my tweets on this blog. The tweets were replacing my posts so I wanted them here.

Well, the urge to blog has been too strong lately and the 140 char wall has been to limiting. I’m gonna try to be more regular here. However, I’m going to be raw and unpolished. I’m just gonna type an entry and publish. Plan on lots of grammar issues, misspellings, half-baked thoughts, but best of all you will get my hand-crafted, hot-sports opinions, which is why the four of you line up to read this. :)

2012 NCAA Tourney Picks… Family Style

Well, it’s one of my favorite times of the year… March Madness. I’m on a 20+ year streak of sitting on my couch for the Thursday Tourney Tip-off. If you are a past high-school or college teacher…. I’m sorry, I wasn’t sick. If you are a past boss…. I’m sorry, I wasn’t sick…… However, if you are my current boss…. I am home sick with a terrible stomach bug. You don’t want to catch this. ;) Just kidding… I’ve actually taken the day off and am enjoying the action.

So this is the first year I’ve included my boys in the fun of filling out brackets. I took the time to explain the four regions, and how they are like four mini-tournaments. We talked about how all won-loss records aren’t equal, as some teams play in easier conferences. And we talked about each teams seed, and how normally the higher seed wins. You would think with that “crash course” in bracketology the boys would have filled in their brackets in a logical way. Nope…  :) Here is what the they went with.

Zachary (1st grader)

Elite Eight:

Kentucky vs Baylor, Michigan St vs Murray St

Syracuse vs Florida St, Michigan vs Purdue

Final Four:

Kentucky vs Murray St and Syracuse vs Purdue

Final:

Kentucky beating Purdue

Noah (3rd grader)

Elite Eight:

Kentucky vs Baylor, Louisville vs Missouri

Vanderbilt vs Ohio St, North Carolina vs Georgetown

Final Four:

Kentucky vs Missouri and Ohio State vs North Carolina

Final:

Ohio State beating Kentucky

And for my picks I’ll start with the final 16….

Sweet 16:

Kentucky vs UI, Baylor vs Duke

Michigan St vs Louisville, Marquette vs Missouri

Syracuse vs Vanderbilt, Florida St vs Ohio St

North Carolina vs Michigan, Georgetown vs Kansas

Elite Eight:

Kentucky vs Baylor, Louisville vs Missouri

Vanderbilt vs Ohio St, North Carolina vs Kansas

Final Four:

Kentucky vs Missouri and Ohio St vs North Carolina

Final:

Kentucky beating UNC

Of the three of us, who do you think made the best picks?

Book Review: Murach’s Java Programming

I was contacted by the people at Murach Books inquiring if I would like to start reviewing their books. Being a geek, and an avid tech reader, of course I said yes. This will be my first review, and it’s my favorite language, so I was excited with what they sent….

Murach’s Java Programming 4th Edition

This book is great for people with some programming experience, that are new to Java. Murach goes from the basics of Java, starting with primitive datatypes, through the fundamentals of Object-Oriented programming, and into GUI programming (probably could have left this out). That was the first 17 chapters. This is no short book, definitely not a quick read.

Starting with chapter 18, the book moves past beginner-level topics. Murach gives a solid review of data access in Java. First with reading and writing from/to XML files. Then their is a chapter on database theory and working with the Derby database. From there you learn how to use JDBC to read and write to a database. The book wraps up by tackling Threading.

The only negative thing I can say about this book as I’m confused as to why the author chose to use the Netbeans IDE as his IDE of choice. Murach does a great job covering the ins and outs of working with Netbeans. Going as deep as how to use the debugger to step through code and fix bugs. I just feel that Eclipse / STS have such a massive share of the market the reader would be better served learning Eclipse alongside Java.

If you only plan to buy one book on Java SE, this is the book for you. Murach’s Java Programming covers it all.

How to install Java 7 on Mac OS X (Lion)

Mac users are still waiting for Oracle / Apple to produce a simple download for using Java SE 7 on Macs running OS X. Until they provide one, the only safe way to use the Java 7 JDK is to build it from source. Luckily, Oracle provides a good wiki page that documents the process (and Arun Gupta has a useful post that helped with some of the gaps).

Check the Prerequisites:

OS X 10.7, Xcode 4.1 (easiest, and possibly the only way to get this, is from the Mac App Store), and Java for Mac OS X 10.7 Update 1

or

OS X 10.6.8, Xcode 3.2.6 (download from Apple Developer Portal), and Java for Mac OS X 10.6 Update 6

Mercurial version control tool. I installed this easily with the use of the awesome Mac package installer Homebrew. Simply run: “brew install hg”. (I didn’t make a dime for that blatant Homebrew plug ;) )

Simple Process:

  1. Follow the Oracle instructions to “Get the Code”
  2. Run the Build command (part of the command is hidden by the box on the screen and if you don’t look close you may miss when copying / pasting) ;)

For all practical purposes, that’s it. If you want to install JDK 7 in the “Apple recommended” location follow steps 3-5 on the Oracle wiki page.

Just for grins I’m pasting the output of my build command. Pretty nice for a “wimpy” Mac Book Air. ;)

>>>Finished making images @ Sat Dec 17 00:09:17 CST 2011 ...
########################################################################
##### Leaving jdk for target(s) sanity all docs images             #####
########################################################################
##### Build time 00:20:58 jdk for target(s) sanity all docs images #####
########################################################################

## Build times ##########
Target all_product_build
Start 2011-12-16 23:34:39
End   2011-12-17 00:09:17
00:02:45 corba
00:08:18 hotspot
00:00:52 jaxp
00:00:55 jaxws
00:20:58 jdk
00:00:49 langtools
00:34:38 TOTAL
#########################

erik@eriks-mba ~/dev/sdks/macosx-port
$ build/macosx-universal/j2sdk-image/1.7.0.jdk/Contents/Home/bin/java -version
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-erik_2011_12_16_23_34-b00)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)

If you have any questions about these steps just leave a comment below or ping me on twitter (@erikweibust).

2011 Fantasy Football Team…

We just had our 2011 Fantasy Football Draft Party.  Dang good time!  Been playing with the same 12 guys for six years now.  Best I’ve done is come in second place.  I think this year I have a legitimate chance to WIN IT ALL!

My draft preparation was focused on the great insight published by ESPN Fantasy Football guru, Matthew Berry. Specifically, I took notes from his Draft Day Manifesto.  Anyhow, the steal of the draft was me sprinting up to our board and grabbing Michael Vick with the 9th pick.  I have no idea how he fell that far but I’m not complaining!  Then, my double whammy, was me stealing Antonio Gates in the end of our 4th round!  If you think I’m crazy, go read the stats in the DDM linked to above.

Here are the rest of my genius picks:

Rd 1 – QB – Michael Vick

Rd 2 – WR – Roddy White

Rd 3 – RB – Frank Gore

Rd 4 – TE – Antonio Gates

Rd 5 – RB – Knowshon Moreno

Rd 6 – WR – Santana Moss

Rd 7 – RB – Pierre Thomas

Rd 8 – WR – Johnny Knox

Rd 9 – WR – Mike Thomas

Rd 10 – RB – Daniel Thomas

Rd 11 – K – John Kasay

Rd 12 – DEF – Atlanta Falcons

Miscellaneous observations…  I grabbed 4 guys with 4 letter last names…  I grabbed 3 guys with the last name of Thomas…  Clearly, if my job as a Technology Consultant goes south, I should be able to land a job in the NFL as a GM.

Here is the draft board to back this up:

2011 Fantasy Football Draft Board

Look for a celebratory / told-you-so blog post at the end of the season when I will the Fantasy Bowl!

Dallas TechFest 2011 Recap…

Another year, another great Dallas TechFest event…

There were some great new speakers, Ken Sipe was my favorite with his Gradle talks.  The story on Gradle is one worth listening to, regardless, of how ingrained Ant or Maven are at your organization.  The best place to go if you’re new to Gradle is their website. The Gradle documentation is great.  Java “developer-types” can start with this Gradle tutorial geared to building Java projects.

There were also some great returning speakers, I especially liked Arun Gupta, with his Java EE Workshop.  A few years ago, I wouldn’t consider starting a new enterprise Java application without the Spring stack.  To be honest, in my mind, Spring == Enterprise Java.  However, after seeing Arun’s talks the last two years, Oracle and the Java EE 6 stack have rapidly closed the gap on SpringSource, and now just might have a story to tell in the enterprise development space.  I highly recommend you follow Arun on Twitter, or subscribe to his blog.  The content is outstanding and the current Java EE story is really impressive.

This was my first year as a presenter at TechFest, after having been involved as an organizer the past 4 years.  I gave a double session on The Grails Framework.  The attendees were great.  Lots of great participation and an all-around good time was had by all. Don’t forget to tell Tim that you want him to use the website we built next year.  ;)

Grails Workshop - Dallas TechFest 2011
Lastly, I need to add there was numerous great speakers / sessions I didn’t get to see.  Craig Walls, author of Spring in Action (required reading for all Spring developers) and lead on Spring Socialgave two talks in the same slot I was speaking in so I unfortunately missed his talks.  Next year I need to make sure I’m not speaking when Craig is.I guess it’s now time to start getting ready for Dallas TechFest 2012…