Wednesday, November 26, 2008

Columbus iPhone Developers User Group (CIDUG)

I am interested in meeting other iPhone developers in Central Ohio and sharing information. So I am proposing a local iPhone Developers User Group. If you are interested, please join the Google Group created for starting the conversation about this group at http://groups.google.com/group/cidug.

Wednesday, November 5, 2008

Announcing Grails iUI plug-in

I am excited to announce the release of a new Grails plug-in, iUI Plug-in version 0.2. This is the initial release of the plug-in. This plug-in installs the current version of the popular iUI library for developing native looking iPhone web applications. iUI is a combination of CSS, JavaScript and images for simplifying iPhone web applications and give the application a native iPhone application look and feel.

You can find more details about the Grails iUI plug-in and how to use it at the iUI Plug-in page. Also keep a look out for an upcoming indepth iPhone Web Development article in GroovyMag.

Eclipse World 2008 Slides

I just finished speaking at Eclipse World 2008. Like previous years it was a marathon of speaking. I gave one full day tutorial and three regular sessions so unfortunately I did not get to attend very many sessions. I have posted my sessions for all to enjoy.

Develop Better Java EE Applications With Eclipse Web Tools Platform (tutorial)
Step by Step: Making Enterprise JavaBeans With J2EE Standard Tools
Beat Those Java Dependencies: Extend the Web Tools Platform With Facets
Interacting With Relational Databases

Thursday, October 16, 2008

Please Be Safe

I thought this was a humorous sign I saw at The Wilds.


This is an interesting way to protect your investment. Notice the large cats in the background.

Sunday, August 10, 2008

Enabling the AJAX Spinner in Grails

For standard page requests, browsers use an animated icon as an indicator to the user that the browser is waiting for the request to complete. However, for AJAX calls that are initiated via JavaScript in a separate thread the browser icon does not animate. So, typically the application developers use an animated icon within the page to notify the user the page is waiting for a request to complete. In an effort to simplify web development Grails automatically includes an animated spinner icon when using the Prototype or script.acolo.us AJAX frameworks.


To enable the Grails AJAX spinner you must include the Prototype or script.acolo.us JavaScript typically using the or tags. But these declarations can not be included just any place within your page. These declarations must come before the tag since it includes the application.js file that registers the spinner with Prototype and requires Prototype variables to be available.

If you are using the default layout found in main.gsp, you can declare the Prototype or script.acolo.us inclusions in one of two places. You can either make the declarations in the header section of an individual view such as in this example:

<head>
<title>Make and Model</title>
<meta equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="layout" content="main">
<g:javascript library="scriptaculous"/>
</head>
Or in the header section of the main.gsp prior to the application declaration such as in this example.

<head>
<title><g:layoutTitle default="Grails" /></title>
<link rel="stylesheet" href="${createLinkTo(dir:'css',file:'main.css')}" />
<link rel="shortcut icon" href="${createLinkTo(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
<g:layoutHead />
<g:javascript library="scriptaculous" />
<g:javascript library="application" />
</head>
If you are not using the standard layout just make sure you put the Prototype or script.acolo.us tag prior to the application tag and include the following or similar div tag found in the default layout.

<div id="spinner" class="spinner" style="display:none;">
<img src="${createLinkTo(dir:'images',file:'spinner.gif')}" alt="Spinner" />
</div>

Friday, August 8, 2008

Groovy Programming Review

I recently finished reading Groovy Programming: Dynamic Productivity for the Java Developer by Venkat Subramaniam. I found it to be a very good and inspiring book. For experienced Groovy developers, the first half has some jems so it is worth reading but the second half is what makes the book. Venkat's explination of Groovy's Meta Programming and dynamic features makes a difficult topic very easy to understand with good simple examples. His explination of building builders inspired me to evaluate some of the behaivor tests I was writing at the time. It helped me to realize the hierartical data structure I was building in code for test data could be better represented using a custom builder which ultimately made the code much easier to read and maintain.

I recommend every serious Groovy and Java developer read at least the second half of the book so congradulations Venkat on an excellent book.

AWS EC2 Hibernate Java SDK v2 Example

I recently wanted to automate the creation of developer VMs in AWS using EC2 instances. To improve the developer experience (DX), I didn...