-
A few months ago we had a problem where Eclipse could not automatically run all jUnit unit tests in a package if that package references a class called "enum", which is a reserved word in Java 1.6. I'll spare you the details, but we were forced to create a TestSuite. Normally we avoid this construction …
Read More -
In our company, all Java projects are setup with Maven configuration so that after a "mvn eclipse:eclipse" any developer is generally good to go. One of these projects was a web project but would not transform into a WTP project. By running "mvn eclispe:eclipse" it became a Java project, but could …
Read More -
I was happily playing around with the appstore, and came across this funny free game called "Hedgewars". Originally a free Linux game, it apparently got ported to the Mac and put in the App Store, just as a slew of Flash-based games (yes, Steve has some 'splainin' to do). I tried to install Hedgewars on my …
Read More -
As you may know I started working on a little tool to anonymize databases. Nothing fancy, just a Java tool that uses jdbc to replace live data with fake generated data which still looks representative enough to do testing and make believable screenshots. Oh and did I mention that it is 100% free of charge? You can get …
Read More -
I've been struggling to get routes into my Garmin Zūmo® in such a way that it matches the plans of the original author, while at the same time setting the Garmin to "recalculate" so that when I take a wrong turn, it will send me back to the track. After reading a lot on the Garmin forums, and experimenting …
Read More -
In Java, the DateFormat.parse() method is a funny little critter. It helps you by trying to figure out what date you actually meant when you typed in "35/12/2O10" (note the letter "O" in 2O10). In this case, it will parse the date without errors or warnings, and returns the date "11/12/04" …
Read More -
Being "in the flow". The nicest state of mind known to mankind. You act without thinking, and everyone of your actions is the perfect response to the situation. Riding a motorcycle on a beautiful road without a destination can easily get you into this state. With an empty mind, you see the next 2 corners, …
Read More -
When you use Spring and Ibatis and SQLTemplates, you could have code in your project which looks somewhat like this: Connection connection = DataSourceUtils.getConnection(getDataSource()); ...<do connection stuff here>... DataSourceUtils.releaseConnection(connection, getDataSource()); Sonar will report that you …
Read More -
At work, we have two applications which connect to the same database. For all kinds of business reasons, we need to make sure that only one of the applications accesses certain data at the same time. To do this, we use a row in a table as a semaphore. While working on the locking mechanism, we had a closer look at the …
Read More -
During one of my Omniplan sessions at work, I discovered that the resource leveling was acting a bit funny, where people were not planned to do any work for days. I played around with a fake planning and soon discovered the problem and several solutions to it. Imagine you have a 1-man project, with a couple of tasks. …
Read More