Slf4j Logging Enables Your Grails Apps To Avoid isDebugEnabled Code Clutter and String Creation Overhead
Using ‘isDebugEnabled’ to wrap logging statements that involve String concatenation is standard Java best practice, especially in loops, and in cases where the objects being logged have expensive toString operations. Performance will certainly be better this way, but I always disliked having to add three lines of clutter to my code just to emit some debugging information Read the rest of this entry »
Pushing Titles Of New Blog Posts to Twitter and LinkedIn Using the TweetPost WordPress Plug-in
I’m very happy that I just found a use for Twitter; I am now pushing the titles of my new blog posts into my Linkedin status using the TweetPost WordPress Plug-in. Read the rest of this entry »
Using Log4j with Grails Apps on JBoss
Getting Grails apps to use log4j under JBOSS won’t drive you insane if you have a simple reference application to get you started. In this post I present an example Read the rest of this entry »
Draft of Presentation Slides and Labs for Upcoming Selenium/Grails Talk at Sacramento Groovy Users Group
I will be presenting on the topic of Automating Selenium Browser-Based Testing For Grails Applications at the next meeting of the Sacramento Groovy Users Group (November 18, 2009). Links to the power point, and a flash version of the presentation are available . Read the rest of this entry »
Windows Tricks For Whacking Lingering Java Processes That Tie Up Your Ports and Cause Other Mischief
When forced to use Windoze, I absolutely depend on Cygwin to keep from going completely insane. But there are cases where Cygwin just doesn’t quite work like good ol’ Linux/Unix, and in these cases you need to do a little extra work. One such case occurs with the ‘kill’ command. Read the rest of this entry »
Selenium Testing Grails Apps In Continuous Integration Using the grails-selenium-rc Plug-in
In our previous posts we published a Maven-based solution that illustrated how to get Selenium tests running against a Grails application completely from the command line (thus enabling these tests to run in the context of a continuous integration build.) Robert Fletcher has been working on a Grails selenium plug-in that promises to do the same thing as what I previously presented with much less configuration Read the rest of this entry »
Install Cygwin In C:/ and You Will Suffer Eternal Damnation (T or F?)
I might be playing with fire, but I always install Cygwin at the top level directory of my C: drive — even though the nice people from Cygwin tell you (right at the beginning of the install) that they “recommend you do NOT use the root of your hard drive as the Cgywin root.” Read the rest of this entry »
A 99% Successful Attempt to Get Selenium Tests Running in Continuous Integration using Maven and Cargo
A colleague and I have been trying to create a build procedure that runs Selenium tests against a Grails application. Our end goal is to ensure that we can test our app’s Ajax functionality using our target browser in a continuous integration environment. [[ UPDATE - we have achieved success, please see mailing list reference]] Read the rest of this entry »
How to dump out debugging info for nodes in a JQuery select list.
In my last two projects I’ve had the opportunity to use JQuery
– a very cool library of utilities that simplifies the tasks of traversing HTML documents, handling events, and adding AJAX to your web pages.
A Groovy Script to Determine the SVN Revision Number of Your Source Base
When you encounter a bug in one of your applications, are you able to
quickly determine the revision number of the source code base from which
the application was built ? Read the rest of this entry »























