Maven License Plugin – open source just got a little bit easier

January 23rd, 2009 Nick Posted in musings, random, rants and opinions 1 Comment »

Isn’t it nice when once in a blue moon somebody comes up with an innovation which makes your life just that little bit simpler – one of those little things which you soon take for granted, but you’d miss immediately if it was not longer there. In this case, it’s the Maven 2 plugin which automatically updates your source files with the appropriate license details

Maven License Plugin

Until now this was an annoyingly manual task which was just not quite annoying or time consuming enough to merit spending time automating. It was one of those borderline annoyances which you plan to do something about, every time it bites you. However, in this case it is always the last action before cutting a release, when you’ve had a long hard day, the caffeine has worn off (and it’s a bit late for another dose, you’d never get to sleep) – you’re running on an empty tank and you’d really like to get out of the door. Over time these small tasks stack up and sap your energy.

That’s why this plugin is such a life saver. It does just what it says on the tin, took about 5 minutes to set up and get going – saving time the very first time I used it, even taking into account the minimal setup and configuration.

Every time I find a new plugin like this I’m reminded of some of the great things about maven – particularly the convention over configuration, which facilitates such easy sharing and reuse, and allows most features to ‘just work’. For sure, there is a learning curve associated with maven – but once you’re up to speed the benefit really shows.

AddThis Social Bookmark Button

Is one 30 inch screen better than two smaller monitors?

February 21st, 2008 Nick Posted in hardware, musings 1 Comment »

In a word – no.

I have recently aquired a 30 inch HP LP-3065 monitor.
Before you ask ‘aquired’ means bought, rather than offloaded from the back of a van in the night.

Well, it is a nice monitor. The resolution is 2560 x 1600, which is, well, huge -more pixels than two 1600 x 1200 monitors
But two smaller screens are better for work purposes, I have come to decide – at least for software development.
Only that way can you maximise applications in each screen.

However, I can’t fit both my old Iiyama monitors on my desk (my wife has grabbed the majority of the real-estate in our flat).
There is no way to get them back other than sneak over and grab them when she is not looking, and I’d have no room to place them anyway.
In any case, I fear no amount of bribary would compensate her for the loss of these.

Games, on the other hand, are a different matter. Bioshock looks great on a 30 inch monitor.
Although the LP-3065 doesn’t do upscaling, the nvidia card does this automatically- and it still looks fine even at less than the native resolution.
So don’t let that put you off getting one, if you’re a gamer!

AddThis Social Bookmark Button

Maven presentation

December 5th, 2007 Nick Posted in java, musings No Comments »

Why do so many projects reinvent the wheel when it comes to build scripts? Maven applies the principles of convention over configuration to project build and setup. It also provides management of dependencies between modules, something which can rapidly get out of hand in a project environment of any size or scale.

I was immediately hooked on Maven when I first started using it several years ago, and Maven has come a long way since then. The new Maven 2 integration in Intellij 7 is a fantastic step forward. This should really reduce the learning curve for developers moving between projects.

Here is a copy of the powerpoint for a recent introduction to Maven presentation I gave at work, covering some of the basics.

MavenPresentation.ppt

The general links below may also be helpful:

Maven Project Front Page
Build lifecycle phases in Maven, and mappings from lifecycle phases to maven plugins
Maven the definitive guide – online book
Search for maven repository artifacts at www.mvnrepository.com
Setting up a maven repository

also the release plugin docs:
prepare-release
perform-release

AddThis Social Bookmark Button

What hope fly by wire?

October 2nd, 2007 Nick Posted in musings No Comments »

My suspicions about added active ingredients in our coffee have not been quashed by the ‘Select Dosage’ screen which appears just before the machines vend in our clients’ office. I think it is referring to milk, but the choice of vocabulary is unfortunate… I have long suspected that in addition to the caffeine there is a shot or two of code enhancing amphetamines.

I’d love to see the pseudo code for these machines. It seems the main algorithm goes something like:
1) Take money
2) Crunch cup
3) Squirt on foot

One of the main reasons I don’t particularly enjoy flying is the inability of humans to design a vending machine which can reliably serve packets of crisps. If we can’t get that right, what hope fly by wire?

AddThis Social Bookmark Button