code


Some notes about ImageConsumers

Earlier this week I was writing an ImageProducer implementation for rendering a particular calculation-intense interactive image onto a JComponent. The ImageProducer-ImageConsumer paradigm seems deliberately designed to do this. It's really easy. In fact, it's so easy the guys at Sun must have figured that nearly no documenation at all would be needed. I couldn't find any official - even the simplest of - tutorial on the ImageProducer pipeline.

Patch for Blender .obj export

Note: this problem with wavefront export has been fixed as of Blender 2.49.

There is a bug in the script supplied with Blender which allows Wavefront .obj export. There's been a deafening silence after submitting this to the Blender bugtracker almost a year ago, so I'm now taking matters into my own hands by re-posting it here. The patch below applies on the script file blender.app/Contents/MacOS/.blender/scripts/export_obj.py

More XCode text macros for Java

A nice feature (well more on a par with Emacs and such than really nice) of XCode is that you can extends its code completion macros.

Please treat yourself to this plug-in which supplies the following two Java additions (more may be added as I find the need).

  • For each, that is a for loop iterating through a collection, enumeration or array. Key: foreach.
  • Javadocs function header. A complete javadocs documentation block for a function, including hooks for arguments, return value and see also. Key: jdocs.

Lots of chocolatey stuff

I've took the dive into Cocoa development, iTouch particuarly, during a brief vacation down in southern Sweden. Here are some early impressions:

Drupal blogapi improvements

Drupal's blogapi module gives users a nice clean way to post pages, stories and whatnot to their sites through various blog posting apps like Flock.
Besides some minor quirks, I've discovered two problems hampering these postings: