Skip to content

Weblog About Jim Jim's Resume Discussion Mailing List Search
  You are not logged in Link icon Log in Link icon Join
You are here: have browser, will travel

Twitter Updates
Pro Services

Jim Roepcke specializes in WebObjects (Java), Plone (Zope, Python), and Cocoa (Objective-C).

  • consultation
  • development
  • documentation
  • mentoring

Contact Jim for more information.

Python Tutorial

I presented the Introduction to Python for Plone developers tutorial at the first Plone conference in October 2003. Slides and Video are available to all on the plone.org site.

Badges

Proud Member of the ACM

Proud Member of the Association for Computing Machinery

RSS reader for Mac OS X

NetNewsWire: More news, less junk. Faster

Fantasy Trading of HBWT at:

Listed on BlogShares

Design by:

Powered by Plone
Blog Directory - Blogged
Log in
Name

Password

 
I forgot my password; please send me a new one.
 


Wednesday, December 19, 2007

Done for the term

Finally, I'm done school for the term. Just returned from my last exam. I expected it to be really hard but it turned out to be really easy. :-)

It would be nice to take some time off but thanks to shitty circumstances that I hope improve soon, I don't have that luxury.

Thread: 0 replies. reply Last updated: 11:10 PM

Patched Oracle's code

I'm upgrading an old WebObjects 5.2.x application to run on WebObjects 5.4 on Leopard with Java 1.5. The old Oracle classes they were using didn't seem to work with the new stack, so I'm using their latest JDBC jar now. While I can at least connect with the new jar, WebObjects punts when it asks the JDBC driver to fetch the data type metadata from the database.

At first I thought it was a bug in my code, but it turns out it's actually a bug in Oracle's code. Using the debugger, breaking on SqlException and digging around in memory, I found the SQL string that the Oracle code had generated to send to the database, and found a typo in it.

It should have read "SELECT ..., 93 as data_type, ..." but instead it said "SELECT ..., 93as data_type, ...".

Using the javap tool I was able to inspect the JVM instructions the OracleDatabaseMetaData class was using, and confirm there *is* actually a space missing before the word "as" in the SQL and it's out of my control.

Then I got the bright idea to patch the bytecode. :-)

There's a tool called the Class Construction Kit available from the old BCEL site on Sourceforge. It lets you inspect AND modify Java class files.

I loaded the class file using CCK, it was trivially easy to fix the code. Then it was just a matter of putting the exploded jar file into my classpath and bingo, problem solved, no more SqlException, and my application runs!

It's a good thing I just learned the JVM instruction set for our compiler class this term, it would have been a lot harder to diagnose and fix this problem without that experience.

And people say going back to school was a waste. Hardly.

Thread: 0 replies. reply Last updated: 1:10 PM

Thursday, December 13, 2007

oil += pringleRecycler.process(garbage)

PopSci's Best of What's New 2007

'Everything that goes into Frank Pringle's recycling machine-a piece of tire, a rock, a plastic cup-turns to oil and natural gas seconds later. "I've been told the oil companies might try to assassinate me," Pringle says without sarcasm.'

Thread: 0 replies. reply Last updated: 4:16 PM

Wednesday, December 12, 2007

It's _easy_ to install a Subversion Server on Leopard

Sonzea.com: Installing a Secure Subversion Server on Leopard

These instructions are complete, easy to understand, they WORKED the first time, what a great find.

What's really nice is how little you have to install yourself to get this working. Leopard (client) comes with Apache 2 and Subversion 1.4.4 so all there is to it is a little bit of simple configuration. Getting TRAC set up as well is just a bonus.

Thread: 0 replies. reply Last updated: 6:07 PM

TV shows added to iTunes in Canada

In the last few minutes, Apple added TV shows to the iTunes Store in Canada. It's about friggin' time!

First thing I checked out was the Stanley Cup Classics. :-)

(obviously)

Thread: 0 replies. reply Last updated: 2:59 AM


December, 2007
Sun Mon Tue Wed Thu Fri Sat
  1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31  
Nov  Jan
 
Sponsors
Research

Jim Roepcke is Willing to Fail

Books

I'm currently reading:

I'm currently reading Programming Erlang

I co-authored:

I co-authored this book