03.31.2009

What the hell is causing this Servlet Exception?

Writing a Java web application?  Keep getting a servlet exception? Can’t work out what the bloody hell is causing it?  Well, I have news for you!
Use this little snippet of code to get to the root cause of the exception.
try {

    // Your code

} catch (ServletException e) {

    Throwable t = e.getRootCause();
    System.err.println(”Root Cause of [...]

03.25.2009

MD5 Hashing Made Simple (Checksum)

I needed a way to compare large blocks of text efficiently for a project I am on at the moment.  I did not want to compare these strings when they could be in excess of 4000 characters or more.  Comparing such strings can be inefficient and system intensive.  So, a simple way of comparing large [...]

03.10.2009

My first World of Warcraft Addon - WhisperDKP

So I wrote my first WoW addon last night and named it WhisperDKP (with the help of a good friend of mine).  It’s an extremely simple addon for my first attempt, intended for guilds that use eqDKP to monitor points for end game content raiding.  A user sends a ‘whisper’ with the text ‘dkp’ to [...]

02.5.2009

Can’t get that underlying connection?

While trying to create CLOBs for an Oracle database table, I was getting an Invalid Argument(s) error when trying to call CLOB.createTemporary().  I beat my head against a wall trying to figure out why I was getting null when you request the underlying connection from a Pooling Data Source but then I found some information [...]

01.9.2009

How to use Commons Logging

I’ve spent the whole of today trying to find information on how to properly configure commons logging in my java classes, specifically with Jdk14Logger.  It’s been a labourous task as a) there’s not much out there and b) Apache’s documentation isn’t brilliant.  I finally found one page on Tigris.org explaining commons logging (from the view [...]

01.7.2009

Oracle, Timestamps and Timezones

I recently had a problem with retrieveing timestamps from an Oracle table (you might remember my previous post on Dates and Timestamps), where I would get an error such as this:

12.22.2008

20 signs you don’t want that internal social media project

A colleague passed this link onto me today which made me chuckle.  It seems to cut close to the bone around here:

Client wants to code their own blog/wiki software because “we want total control”.
Client insists that only the management be allowed to have internal blogs.
The PR department wants to write the CEO’s internal blog posts.
IT [...]

11.4.2008

Getting back into the habit…

I’ve been getting back into some php web coding this week, looking at updating an application that a friend wrote a couple of years ago.  It’s a CHPP (Certified Hattrick Product Provider) program which is an interface to Hattrick that ‘predicts’ what a match’s result could have been given the ratings.  The guru’s over at [...]

10.27.2008

Uni offers free internet, but gets stung for it.

This article over at the SMH tells about the University of New South Wales (UNSW) getting a bit hot and bothered by the fact that their free wireless internet service is being used to download pirated software and music.
I have just one word…
DUH!
In a demographic where people are more technologically savvy about the internet and [...]

10.16.2008

Java Timezones

I found a blog post indicating that the available list of timezones in java.util.TimeZone isn’t documented.  They listed just the specific United States timezones as the auther was American.
I decided to post the full list here if anyone else was like me and needing the full list without having to write a quick test class [...]