Category Archives: Java

Demystifying HttpServletRequest properties…

I always find myself writing little test cases to figure out which methods to call on HttpServletRequest to get path / parameter information when doing low level Servlet and Filter programming. The method naming and Javadoc is pretty poor for … Continue reading

Posted in Java, Software Engineering | Tagged Java, tips, web | Leave a comment

Netbeans 7 + Git plugin on Windows Issues?

I just started checking out Netbeans 7 which has a nice Git plugin available now in the plugin manager. I was horrified though when I opened a project to find every single source file was being shown as “modified” by Netbeans, although … Continue reading

Posted in Java, Software Engineering | Tagged git, Java, netbeans, tips | 4 Comments

Use Hudson (now Jenkins) to restart a Windows service…

Here’s a quick tip – you can easily make Hudson restart a windows service, by using its “Windows Batch Command” build step in combination with the command line windows “net” command. Here’s an example of how we can get Hudson … Continue reading

Posted in Java, Software Engineering | Tagged automation, ci, Java, releases, windows | Leave a comment

Face Detection in Java – Haar Cascade with JJIL (how-to)

A requirement came up on a recent project to automatically crop displayed profile images of people to just the “face” area for a thumbnail. This seems like a job for a face detection algorithm. Searching for appropriate open-source Java implementations … Continue reading

Posted in Java, Software Engineering | Tagged guides, images, Java, open-source, ui | 26 Comments