Check and Modify Artifacts versions in a pom.xml

Taking advantage of the easy XML processing, built in regular expressions I wrote a short script in Groovy to check and modify artifacts version in a pom.xml (Maven).

For example to show all dependencies with the word datanucleus in it, and display them in compact form (groupId:artifactId:version)

$ pomVersions datanucleus com.google.appengine.orm:datanucleus-appengine:2.0.0-RC2 org.datanucleus:datanucleus-core:3.0.4 org.datanucleus:datanucleus-api-jpa:3.0.4 org.datanucleus:datanucleus-rdbms:3.0.4

I . . . → Read More: Check and Modify Artifacts versions in a pom.xml

Groovy Baby!

In the last few days I’m trying to learn Groovy, and until now is surprisingly easy. The great part is that it can access all the Java classes and libraries natively, but without all Java boilerplate and verbosity.

I’m starting to think to use Groovy instead of Perl for my scripting needs, for instance . . . → Read More: Groovy Baby!

my Emacs init.el

This post is just to have a copy of my init.el. I will keep it updated.

(add-to-list ‘load-path "~/.emacs.d/elisp") (load "php-mode") ; (load "groovy-mode") ; turn on syntax highlighting (global-font-lock-mode 1) ; use groovy-mode when file ends in .groovy or has #!/bin/groovy at start (autoload ‘groovy-mode "groovy-mode" "Major mode for editing Groovy code." t) (add-to-list . . . → Read More: my Emacs init.el

Installing IE7 and IE8 in Linux with Wine

Normally I would run IE inside a Virtual Machine. I need IE to test my web applications with it. However I wanted to try to run IE7 and IE8 inside Wine (I tried with version 1.3.28). After installing wine and winetricks, from the command line:

export WINEPREFIX=~/.wine_ie7 winetricks ie7 export WINEPREFIX=~/.wine_ie8 winetricks ie8

I’ve then . . . → Read More: Installing IE7 and IE8 in Linux with Wine

An UML Use Case Diagram with PlantUML, BOUML and Visual Paradigm

I tried three UML tools to build a simple Use Case Diagram: PlantUML, BOUML and Visual Paradigm.

PlantUML License: GPL

PlantUML uses a simple textual description. It’s a very interesting concept, as it can be embedded everywhere, for example in a word document, or in the JavaDoc. Also the fact that there is no visual . . . → Read More: An UML Use Case Diagram with PlantUML, BOUML and Visual Paradigm