Skip to content

Author Archives: Steve

Why I post only once every 2 years…

Well, I figure I owe everyone an explanation. It’s pretty simple. I don’t really do anything interesting at the moment, so I don’t have much to share. This, my friends is as exciting as it gets. public ArrayList<totalByUnitVO> getTotalByUnitFilterGroup(FormPojo form) throws SQLException{ Connepion conn = null; PreparedStatement pstmt = null; ResultSet rs = null; String [...]

OK, listen up.

LIB is LIHB, not LIBE! Do you put your executables in the BINE directory or program logs in the VAIR directory?!!! I rest my case.

Noobness Revealed

Post examples of Noobness in this thread. Example 1: Not understand how to use NOT logic (aka, the ‘!’) if ((expDate!=null && expDate.isPast(null)) || (effDate!=null && effDate.isFuture(null)) || id.getRank() == null) { //Do Nothing } else return id; Example 2: Hard-coding Array indices if(person[i][3].equals(“Sam”) && person[i][1].equals(“17″)) name = person[i][3] + ” ” + person[i][4] + [...]

Circumvent the firewall; access web-mail through pop3 using HTTP

Ever want to be cool and check your web-mail at work without having to go to the stupid bulky web client to do it? There are several ways around this. Some providers, like gmail provide pop3 access. However, many do not, and even if they do, most corporate firewalls block you from using it. However, [...]

The size of an object instance at runtime – pre Java 1.5

In Java 1.5, Sun provides us with a miracle method that is long overdue: long java.lang.instrument.Instrumentation.getObjectSize (Object objectToSize) However, this is still limited in that it only returns the total size of the Object, not the details about the Object size in regard to its composition. Enter monq.jar from Whatizit. There’s a Sizeof class in [...]

Opensource Animated GIFs

Yup, I haven’t posted in months and this is my thrilling topic. That’s because the most exciting thing I’ve done recently is create the animated GIF for the RTC header. I’ve basically just been refactoring and rewriting poorly written contractor code, shaving off milliseconds in the hundreds to improve “performance”. The reality is, the application [...]

Server-side image drawing and jpeg encoding with AWT

Recently I had an interesting problem to solve. A manufacturing client wanted to know if it was possible to dynamically draw images based on engineering and dimensional data provided by end-users, and show them on the Web. So, the first question I have to answer is. “Is this doable?” And my answer, as always, is [...]

RTC goes IRC!

We wouldn’t be old school without an IRC channel. I’ve registered #rtconsole on dalnet. irc://dalnet/rtconsole

Hibernate and the Composite-ID, revisited (with example solution)

Some time ago, I posted a question about Composite-IDs in Hibernate. Not surprisingly, I didn’t get much for a response. Usually, each table in the database has a primary key, some unique identifier that only belongs to a single row of data, or once mapped, a single instance of an object. I was having a [...]

Crap: Mini Y2K and old JRE’s

So, death is upon us again, only this time it’s something that developers can’t be held totally accountable for. What sucks though, is that you can’t apply Sun’s updater tool to JRE’s older than version 1.4, and you’ll have to pay out of pocket if you want Sun’s help in order to update an old [...]