magpiebrain

Sam Newman's site, a Consultant at ThoughtWorks

Archive for ‘July, 2003’

Reading Simon Willson’s “blog”:http://simon.incutio.com/, I have been struck by the usefulness of his “related entries”:http://simon.incutio.com/archive/2003/04/25/relatedArticles links displayed alongside each post. Simon uses some custom PHP + MySql code to generate these links. I wanted to do something similar with Movable Type, and found the “Related Entries plugin”:http://www.kalsey.com/2002/07/related_entries_plugin/ which can automatically generate related entries based on categories, and also (as an “undocumented feature”:http://kalsey.com/2002/12/related_keywords/) keywords. Depending on my plans for the rest of the week I’ll try and get this working

“FindBugs”:http://www.cs.umd.edu/~pugh/java/bugs/ is a Java tool which aims to find possible bugs in your code. I use “Eclipse’s”:http://www.eclipse.org/ own code checker and the Eclipse “Checkstyle”:http://checkstyle.sourceforge.net/ “plugin”:http://eclipse-cs.sourceforge.net/ for this purpose, although it seems that Findbugs may pickup some things these tools don’t, such as:

  • Places where a null pointer might be dereferenced
  • I/O streams that are opened, do not escape the method, and are not closed on all paths out of the method
  • Methods that can return null instead of a zero-length array
  • Using the == or != operators to compare String objects

I might try runing it on my code base and see if it picks anything up…

Seems I’m going to have to pull my finger out at setup Trackback for the site at some point – whilst I’m at it I’ll add Category views too.

CutePDF is a free PDF printer driver, which should allow you to print any document to a PDF. I’ll let you know if it works….

A brief keyboard roundup – first the happy hacker keyboards – tiny footprint keyboards which can also work on Unix & MAc workstations – ideal for system admin types. Second, a website offering a whole range of weirdand wonderful keyboards (some more weird than wonderful). And finally a keyboard for pirates – I’m waiting for an l33t hacker keyboard any day now…

From my forthcoming RSS-Java article – assuming it gets published! Actually this is as much to make sure the code formatting is still working…
Continue reading…