The Kaptain on … stuff

Posts Tagged ‘Programming

10 Mar, 2013

Groovy and HTTP Servers

Posted by: TheKaptain In: Development

This article originally appeared in the January 2013 issue of GroovyMag. There’s no denying that the World Wide Web has become absolutely integral for information storage and delivery. There are more than 600 million sites serving up over 80 billion individual pages and many more pages and web services being added every day(http://news.netcraft.com/archives/2012/09/10/september-2012-web-server-survey.html). And behind […]

27 May, 2012

GitHub Social Graphs with Groovy and GraphViz

Posted by: TheKaptain In: Development

The Goal Using the GitHub API, Groovy and GraphViz to determine, interpret and render a graph of the relationships between GitHub users based on the watchers of their repositories. The end result can look something like this. [singlepic id=81 w=900 h=450 mode=watermark] The GitHub V3 API You can find the full documentation for the GitHub […]

04 Dec, 2011

Five Cool Things You Can Do With Groovy Scripts

Posted by: TheKaptain In: Development

1. Ensure all of your Jenkins builds are building the correct branch from source control I manage a large number of builds at work, spread across several build servers. When we release a new version all of the builds need to be updated to point to new working branches. This script takes advantage of the […]

01 Jul, 2010

Groovy and CSV: How to Get Your Data Out?

Posted by: TheKaptain In: Development

I don’t know exactly how many CSV files I’ve read/written to date, but I’m willing to bet it’s a lot. These kind of files are a simple and common way to exchange data and are interoperable with spreadsheet programs as well, making them more easily accessible to non-programmer types. There is some excellent support out […]

One of the most compelling things about using Groovy is the fluent and concise syntax, as well as the productivity and readability gains that come out of it. But there’s no reason not to take advantage of some of the same techniques and some library support, in this case google-collections, to make Java code easy […]

I was reading this article about hibernate validator today and it inspired me to apply a little Groovy to the problem of validating a bean. More specifically, finding out how hard it would be to apply different validation rules to the same classes at runtime. Turns out it’s really pretty simple. Hibernate validator, if you […]