I felt I needed to write this, as we have been interviewing for a bit in Cognitive Match, for various segments of our technical team and we had occasionally bad luck with the candidates who turned up. Having been on both sides of the recruiting fence in my life, I realise that a certain percentage […]
Posts Tagged: Java
Simplify Your Singletons
I’ve seen recently some Java code (I’m not telling whose, you probably know who you are :p) where a singleton pattern was involved. Nothing unusual here, you would say — and you’re right, I probably found myself using Singleton and Factory and Observer in pretty much every single Java project I ever worked on. The […]
RMISockFactory — New Open Source Project Started on SourceForge
I thought I’d post this on my blog as well since this seems to get a lot of attention nowadays (it certainly seems to get a lot of visitors!). I just started a new open-source project on SourceForge.net — I know you github fans will jump at my throat for using sf.net and not github, […]
Batch Source Formatting in Eclipse Indigo
This has been bugging me lately — how to do a batch formatting using Eclipse! If you plug things like Checkstyle (and PMD to a certain extent) in your project build, you get bugged every now and then when someone else makes a change with stuff about tabs/spaces, brackets being on the same line or […]
SimpleDateFormat and Multiple Threads
I felt like I had to write this to spread the word a bit more about this little-known danger of one of the JDK classes: SimpleDateFormat. Used quite widely from what I can tell — who hasn’t written something like this: SimpleDateFormat df = new SimpleDateFormat(); df.format( new Date() );SimpleDateFormat df = new SimpleDateFormat(); df.format( […]
Maven Checkstyle Plugin — Usage
The title might not be the best, I’ll give you this, however, having just spent some time trying to get Checkstyle to run in the site phase of one of my maven projects I have figured out that a lot of the resources you find out there miss out a few important details. So if […]
Running Tomcat on Port 80 on a Mac — shell script
If you’ve been messing about with Tomcat on a Mac OS X, you probably came across the problem of not being able to run the damn Tomcat on port 80. This to many won’t come as a problem, as in most cases port 8080 works fine for local development/testing. However, I found out that this […]
Groovy Scripting at the Power of Commons CLI
I’ve found myself more and more scripting stuff in Groovy — partly I’m guessing it’s cause of my Java background, partly because I’m probably not such a good bash/awk/perl/sed/etc script hacker 🙂 Nevertheless, make no mistakes, Groovy is an awesome scripting tool! (I’m not going to praise its benefits in terms of building applications — […]
System Console Support — JDK 1.6
I’m sure some of you have found the need occasionally to use the “console” input/output support provided by the JDK via System.in and System.out — if nothing else just to implement an occasional more complicated command-line “scripty” app to be run in a Linux environment and piped input in or out from/to another program. The […]
Apache Commons Modeler — Simple/Sample Usage
I’ve dealt in previous posts (here and on Cognitive Match‘s blog) with JMX and various things around it — as this is an area I have found more than useful in the JDK. It is therefore no surprise that recently I have turned my eyes to Apache Commons Modeler. The project lacks documentation, granted, and […]







