Groovy

  • submit to reddit

Grails & Hudson / Jenkins: Monitoring Build Status

The DevOps Zone is presented by ThoughtWorks Studios and UrbanCode to bring you the most interesting and relevant content on the DevOps movement.  See today's top DevOps content and be sure to check out ThoughtWorks Studio's Continuous Delivery Whitepapers and UrbanCode's Webinars.

There are a number of ways you can monitor the progress of your Grails build: using the Hudson / Jenkins web app; or leveraging the API: from your IDE, bespoke API clients or even your enterprise monitoring client. We’ll look at all of them here and...

0 replies - 3704 views - 01/30/12 by Robin Bramley in Articles

Neo4j on Heroku - Part 2

We are picking up where we left off on Neo4j on Heroku –Part One so make sure you’ve read it or you’ll be a little lost. So far, we have cloned the Neoflix project, set up our Heroku application and added the Neo4j add-on to our application. We are...

0 replies - 1813 views - 01/17/12 by Max De Marzi in Articles

Neo4j on Heroku - Part 1

On his blog Marko A. Rodriguez showed us how to make A Graph-Based Movie Recommender Engine with Gremlin and Neo4j.

0 replies - 2326 views - 01/17/12 by Max De Marzi in Articles

Groovy DSL - A Simple Example

Domain Specific Languages (DSLs) have become a valuable part of the Groovy idiom. DSLs are used in native Groovy builders, Grails and GORM, and testing frameworks. To a developer, DSLs are consumable and understandable, which makes implementation more...

1 replies - 3299 views - 01/17/12 by Nirav Assar in Articles

What Happened To The 9 Programming Languages To Watch in 2011

Last year, I wrote a post entitled 9 Programming Languages To Watch In 2011. Now that 2011 is basically over, let’s see what happened to these languages over the course of the year. As a reminder, these languages were selected because I expected to see...

7 replies - 12932 views - 12/19/11 by Robert Diana in Articles

Grails & Hudson Part 4: Automated Deployment

This is a quick post to describe the steps involved with getting Hudson to deploy a Grails application to a remote Tomcat server. Tomcat First up you’ll need to ensure that Tomcat has the manager application installed (e.g. on Debian Lenny the...

0 replies - 3812 views - 12/18/11 by Robin Bramley in Articles

Rails vs. Grails

I was recently asked the question: Rails or Grails? I needed to summarize the key differences and industry sentiment. This was my response.Before I make any subjective comments, let me start with some objective metrics I...

11 replies - 7738 views - 12/16/11 by Brian Oneill in Articles

Global vs. Local Graph Ranking

Graph ranking algorithms are all about mapping a complex graphical structure to a numeric vector. For a given algorithm, a single numeric value in the resultant vector corresponds to the score of a particular vertex in the graph. In code, the previous...

2 replies - 3564 views - 12/14/11 by Marko Rodriguez in News

Groovy Goodness: Magic Package to Add Custom MetaClass

Groovy is very dynamic. We can add methods to classes at runtime that don't exist at compile time. We can add our own custom MetaClass at startup time of our application if we follow the magic package naming convention. The naming convention is...

0 replies - 2404 views - 12/10/11 by Hubert Klein Ikkink in Articles

Compressing JPG Images with Groovy

I recently had need to reduce the size of a large number of JPG images. I did not want to do this one at a time in a graphics manipulation tool, so scripting seemed like the obvious choice. These days, Groovy is my generally my preferred tool for scripting...

1 replies - 2948 views - 12/01/11 by Dustin Marx in Articles

Grails Goodness: Access Action and Controller Name in GSP

In our GSP views we can see the name of the action and controller that resulted in the view. We can use this for example to show or hide certain information based on the values for the action and controller name. Grails injects the variables actionName and...

0 replies - 2365 views - 11/30/11 by Hubert Klein Ikkink in Articles

Grails Goodness: Get GrailsApplication and ApplicationContext in GSP

Several variables are injected to Groovy Server Pages (GSP) in a Grails application. Two of them are the ApplicationContext and GrailsApplication objects. They are bound to the variables applicationContext and grailsApplication.When we have access to the...

0 replies - 2143 views - 11/29/11 by Hubert Klein Ikkink in Articles

Using Browser Push in Grails

Browser Push is the collective term for techniques that allow a server to send asynchronous data updates in near real time to a browser. This article provides an overview of browser push and then provides a sample of Grails usage by extending the example...

1 replies - 3549 views - 11/22/11 by Robin Bramley in Articles

Groovy Goodness: Create Simple Builders with Closures

In Groovy we can use pre-defined builders like the JsonBuilder or MarkupBuilder to create data or text structures. It is very easy to create our own builder simply with closures. A node in the builder is simply a method and we can use a closure as the...

0 replies - 3139 views - 11/20/11 by Hubert Klein Ikkink in Articles

Groovy Goodness: Create Our Own Script Class

Groovy is a great language to write DSL implementations. The Groovy syntax allows for example to leave out parenthesis or semi colons, which results in better readable DSL (which is actually Groovy code).

0 replies - 3855 views - 11/19/11 by Hubert Klein Ikkink in Articles