Tag Archives: groovy

Android Email Extraction to .eml

Sometimes the Android ecosystem is a little lacking with tool support; for instance I needed to extract a set of sent items from a POP3 mailbox – the stock mail client only allows you to perform 3 actions: delete, mark as unread or favourite.

Armed with the Android SDK, some SQL queries and a Groovy script we’ll see how it’s possible to recover email to RFC822 .eml files.

Continue reading

Free your mind (map) with Groovy

Freemind is an Open Source mind mapping tool. Version 0.9 (released Feb 2011) introduced Groovy scripting that can be used for processing the mind map nodes. In this article we’ll look at a couple of use cases and the supporting scripts.

This article originally appeared in the February 2013 issue of GroovyMag

Continue reading

Groovy as a GoogleCode API client

This article gives an introduction to working with XML / HTTP APIs from Groovy in the context of a real world scenario using the GoogleCode API.

This article first appeared in the March 2013 issue of GroovyMag. Since the script was originally written Google deprecated the Issue Tracker API and scheduled it for closure on the 14th June 2013. So whilst the script is now for interest only, the principles are still valid for other purposes.

Continue reading

Relevancy Driven Development with Solr

The relevancy of search engine results is very subjective so therefore testing the relevancy of queries is also subjective.
One technique that exists in the information retrieval field is the use of judgement lists; an alternative approach discussed here is to follow the Behaviour Driven Development methodology employing user story acceptance criteria – I’ve been calling this Relevancy Driven Development or RDD for short.

I’d like to thank Eric Pugh for a great discussion on search engine testing and for giving me a guest slot in his ‘Better Search Engine Testing‘ talk* at Lucene EuroCon Barcelona 2011 last week to mention RDD. The first iteration of Solr-RDD combines my passion for automated testing with my passion for Groovy by leveraging EasyB (a Groovy BDD testing framework).

Continue reading

Grails & Hudson / Jenkins Part 5: Monitoring build status

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 build a simple Grails taglib to display build status in the ‘Application Status’ panel.
Continue reading

2010 – an interoperability odyssey

CMIS logo At the start of a new year it’s always interesting to look back at the year that has just gone – arguably the most important event for content management in 2010 was the ratification of CMIS 1.0 in May.

Content Management Interoperability Services is an open standard to enable greater interoperability of Enterprise Content Management (ECM) systems and is built on top of other proven open web standards such as Atom and OpenSearch. Alfresco has been at the forefront of CMIS and Alfresco 3.3 provided full support for CMIS 1.0 (some of the earlier versions implemented drafts of the CMIS standard).

Note: this was the original draft for the article published on the Ixxus blog.
Continue reading

Groovy as a SalesForce API client

We needed a quick way of performing data cleansing and bulk updates to data within SalesForce. As SalesForce is a hosted Software-as-a-Service offering it’s not as simple as resorting to SQL statements – or is it?
Using the Web Services API from Groovy made it quite easy once the foundations were in place.
Continue reading