Many java methods, such as Thread.sleep and Process.waitFor can throw an Interruptedexception. InterruptedException is a checked exception and as such requires you to explicitly catch it. Up until recently I’ve always simply swallowed this exception. I was fairly confident that this was the proper way to deal with this exception because this is how I’d […]
Maven wastes more time than it saves. Cast your vote
I just finished added a pole to this blog and the first question I would like to ask my audience (all 3 of you 😉 ) is. Does maven waste more time than it saves compared to say an ant or make based build. In my experience this statement holds true however I am curious […]
JPA missing non-exotic features
Ever since the Java Persistence API was announced there has been a lot of talk, both good and bad, about this specification. Many people have pointed out that a criteria API and something like hibernate filters are currently missing. However these features might be considered “exotic” and I can largely live without them. However a […]
JavaFX released
It seems JavaFX was released today. There are some pretty good looking demo’s over at http://blogs.sun.com/chrisoliver/category/F3 and https://openjfx.dev.java.net/ Worth a look.
Guice versus Spring
Craig Walls, author of spring in action just blogged on the subject of Spring and Guice. Pitting the two inversion of control containers against each other he concludes : “I’m glad that I spent the time to learn a little about Guice, but I’m not all that “juiced” about using Guice. In addition to all […]
Password protecting web applications in tomcat.
A few days back I wanted to take an existing application, deploy it to a staging environment and password protect it without having to change the application code. How hard can it be right? As it turns out it’s not that hard but way, way harder than it should be. There doesn’t seem to be […]
Disabling the Firefox DNS cache
If you, like me, make frequent changes to your host file, for instance because your staging and production environment both listen to the same vhost. You will have probably noticed that it takes Firefox a while to pick up on the alterations you made. This is because in order to improve performance by default Firefox […]
JIRA firefox plugin
For all the JIRA users out there. I just created a very simple JIRA plugin that allows you to add your JIRA instance as a search site in the Search Bar in the upper-right corner of Firefox. Who knows you may find it useful. You can find out more about it here
XGL and java
A couple of months back I tried out a very nice opengl based x server called XGL. I followed the instructions outlined at http://www.ubuntuforums.org/showthread.php?t=131267 and had it working in record time. However there was one catch. Java applications would not render properly. For instance when I would start intelliJ Idea all the dialogs , menu […]
Crashing notepad
Even though it’s kind of cheap to point and laugh at Microsoft’s “industrial strength” products I didn’t want to deny anyone this screenshot. I created a shortcut that automatically opens my hostfile using notepad by specifying the following target : %windir%\system32\notepad.exe %windir%/system32/drivers/etc/hosts and then tried to save my hostfile under a different name using save […]