jQuery Flot - a more complex example

July 24th, 2008

The goal of this interface was in essence a combination of the military budgets example and the zooming with overview example. It turned out to be more complicated than just pasting the code from both, anyway below is a screenshot of the result so far.... Read More

What a day

July 22nd, 2008

So I’m in the BKK office this week, for some reason the /etc/network/interfaces got whacked when I plugged in my Ubuntu here yesterday, no idea why.... Read More

Templating in Pico Lisp

July 17th, 2008

As you might know already Pico has a GUI system similar to for instance Haml. That’s all very well and fine, the problem is that as opposed to Haml a typical Pico GUI script contains a lot of logic as well, I shudder to think having designers poking around in there to output the HTML just like they want it. And we are not quite yet at the point where we are doing completely CSS controlled designs, it’s a goal though.... Read More

Ruby File Renamer

July 16th, 2008

I had to rename a lot of files today, recursively.... Read More

Flash Banner part 2 - The ActionScript and Shockwave

July 12th, 2008

Table of contents for The Making of Asian Diving Vacation

  1. jQuery Treeview with MODx Wayfinder
  2. Flash Banner part 1 - jQuery Flash and document specific chunks in MODx
  3. Flash Banner part 2 - The ActionScript and Shockwave

See the prior tutorial on what kind of information the ActionScript in this tutorial needs and how it is generated.... Read More

Flash Banner part 1 - jQuery Flash and document specific chunks in MODx

July 12th, 2008

Table of contents for The Making of Asian Diving Vacation

  1. jQuery Treeview with MODx Wayfinder
  2. Flash Banner part 1 - jQuery Flash and document specific chunks in MODx
  3. Flash Banner part 2 - The ActionScript and Shockwave

If you are new to MODx you might want to check out the newbie MODx tutorial before you continue.... Read More

Fluent Arrays and Strings in PHP - Adding JSON and more

July 11th, 2008

Table of contents for Fluent interfaces in PHP

  1. Fluent Arrays and Strings in PHP
  2. Fluent Arrays and Strings in PHP - Adding JSON and more

Recently I’ve had the need to extend the interface further, among other things with JSON support. I’ve used code published by Nicolas Crovatti to do this. There was one line in there though that wasn’t consistent with its purpose. If you use that code you have to replace if($i != $keys[$i]) with if($i !== $keys[$i]). On the other hand if you use PHP >= 5.2 you don’t need this function at all, you use json_encode instead.... Read More

wxRuby Editor - Bug fixes and new features

July 10th, 2008

This is embarrassing, I noticed that after getting a new browser to the left - for instance when searching the whole project - and going back to the projects browser to open a new file there, the editor would crash because it could not find references to various locations. The initialize function in treectrl.rb looks like this now:... Read More

Crazy SUSE mod_rewrite problem

July 9th, 2008

What a nightmare it was yesterday and for the better part of today. The new project just failed to run with mod_rewrite on the staging server and we couldn’t understand why.... Read More

Email Obfuscation Broken

July 8th, 2008

About two weeks ago I tried a really simple way of obfuscating email. To me as a programmer it seemed a little bit naive because this scheme can be easily decoded. But Gmail does such a nice job of getting rid of spam these days anyway, I felt like I didn’t have much to lose. ... Read More