Don’t Build the Maven Jar

I’m using the maven-assembly-plugin to build a zip for some static content in a maven module. But when I build the whole project I also end up getting a jar file for that module. To avoid this use one of two tricks –  either specify your build as a type “pom” or  tell the jar plugin to […]

What Ports are Open in Windows?

I was installing a few different versions of Tomcat — to support legacy and new applications — on an existing server.  I needed to know what ports were available. The windows command for doing this is: netstat -a -no You’ll get a list like this back:

IntelliJ and Mercurial Won’t Play Right?

  Well let’s see — you have Hg installed on your machine via TortoiseHg.  You are using IntelliJ.  You’ll notice the locations and options in each UI you use – command line, Tortoise right-click, tortoise UI, or IntelliJ menus depending on where you are — have almost zero parody. I noticed that one of my […]

IntelliJ vs. Eclipse Projects

A nice table the JetBrains people put out comparing IntelliJ vs. Eclipse projects at: http://www.jetbrains.com/idea/documentation/migration_faq.html Eclipse IDEA Workspace Project Project Module Project-specific JRE Module JDK User library Global library Classpath variable Path variable Project dependency Module dependency Library Module library I actually prefer the Eclipse method of having several “projects” open in a workspace, expecially […]

Regex for Testing A Number Range

Kinda weird, but if you are scanning a file from a build tool for coverage you can do a check by finding your value and using this reg-ex statement: 2[7-9]|[3-9][0-9]|100 This statement will check 27-100. Regex only does string searching but this works — I can use this in something like the Maven Verification plugin […]

Y2K Dates Out Of Control!

Wow check this out I was digging in a java code base and ran into this date conversion code (added the dateString initialization to illustrate): String dateString = “04/29/05” ;   // two digit year String newDateString = dateString.substring(0, length – 2); if (Integer.parseInt(year.substring(2)) > 25) {       newDateString += “19”; } else […]

Your IT Culture: Is It Inclusive?”

I work at a place now that was having one of their own highly publicized tech conferences open to developers outside of the company.  There was tech lectures, and food, and coding contests.  Some of it was recruiting, and some of it was jst to be in the “tech game” – creating a company profile […]

Impact of Implementation Of Ground-Up Architecture

Recently I’ve been working on a project where we have been switching over the datasource code from one code base to another.  The codebase is pretty monstrous and has at least 30 developers checking in on it. Many things  bothered me about the tasks in this. There was no documentation on it, at all.  So […]

Governance? Really?

I was just at a “DevJam” meeting where a bunch of project manager types discussed, mostly openly, about PMO.   In this came the idea of “governance.” From what I can tell, and discussing with the manager types, governance is a policy whether in writing or not that meters the relations or procedures of how work […]

A Month With Unity, Hmmmm

I started my experiment with going Linux-only (except on my work provided machine) about a month ago.   My new laptop dual boots to Windows 7 and Ubuntu/Unity 11.10;  I’ve been running Ubuntu 11.04 on a home server machine for over 6 months (before that a Gentoo distro) with Unity too, and Linux Mint on an old […]