I am Hal Jordan

<1 min read

You are Green Lantern
Green Lantern
80%
The Flash
60%
Iron Man
60%
Batman
50%
Hulk
50%
Superman
40%
Supergirl
40%
Catwoman
40%
Robin
38%
Spider-Man
30%
Wonder Woman
30%
Hot-headed. You have strong
will power and a good imagination.

TestNG Generator for IDEA

<1 min read
TestNG Generator is an IDEA plugin, based on Alex Nazimok's JUnit Generator. It is a very simple plugin that generates a TestNG test class skeleton for all of the current class methods. Alex did all the work. I just added a few things here and there. There's still more I'd like to do:
  • Add per-project configuration properties.
  • Make the newly created test classes noticed by the VC manager.
  • Incorporate it into Mark's TestNG-J .
TestNG Generator is currently available through the IDEA Plugins manager. The source archive can be found on the IntelliJ Community Wiki. As usual, the latest souce code is also in my public subversion repository. Constructive feedback welcome.

Adobe formerly Macromedia

<1 min read

I completely forgot that they merged until I received an email about upgrading, featuring the following logo:

I almost shed a tear… almost.

Crawlers Detection in Java

<1 min read

As I was testing my link redirector Servlet for the linkblog, Rick asked what I was doing about search engine crawlers. I told him I was inspecting the user-agent on all requests and excluding anything with the words bot, crawler or spider, which I knew was not hardly enough. I was ready to live with it, when I suddenly remembered that AWStats, my favorite logfile analyzer, does a pretty good job at keeping track of robots/spiders. It actually includes a Perl module with around 400 regexp user-agent matches for all sort of known robots, spiders and crawlers. I converted the AWStats lookup data into a Java class, Robots, which I used in my Servlet. Thanks to Laurent Destailleur, the author of AWStats, for allowing me to release it in the public domain.

IKEA, end of the line.

1 min read

We went to IKEA yesterday to have our bed replaced, which they agreed to do one more time. Fine by me, until I found out they no longer do assembly. No thanks. I'm not putting it together myself, or paying an external contractor to do it. We're getting a refund as soon as they pick it up.

The interesting part of the story is that the service manager basically told us they no longer use solid wood which is why the beds break so easily.

Now we're gonna have to find a bed that won't break, and match the color of our bedroom furniture. Oh Joy!

On a side note, I can't believe how inefficient their computer and inventory system are. It's amazing that they make so much money considering how archaic the whole process is.

My Java Cursor

<1 min read
I was reading this article on enabling animated pointers in Windows XP and thought to myself that it would be nice to have a Java-themed mouse cursor. I took my Java category icon () and rotated to make it look like a pointer ( ), then used IconArt to turn it into a cursor. I was able to swap the regular Windows cursor by double-clicking on the Normal Select cursor, in the Mouse control panel, under the Pointers tab. If I had any kind of graphic design skills, I would have gladly made a fully animated set/scheme. Now, that would be really cool.