OSX compilation problem

/usr/bin/ld: /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit load command 20 unknown cmd field You get this if you’ve upgraded the version of OSX without upgrading the Developer Tools (the Xcode tools).

Fdisk /MBR in Windows XP

Windows XP doesn’t provide Fdisk, but I’ve done an equivalent operation to FDISK /MBR like this: Configured the Recovery console for automatic administrator login - this was important because there seems to be a bug which requires an admin password to be entered, even when the system doesn’t have one. http://support.microsoft.com/kb/312149/Then boot up from the Windows XP setup CD, and I chose the ‘R’ Recovery option. Once in, I ran FIXMBR.

Dojo Custom Widget namespaces in V0.4

Been beating my head against a brick wall trying to figure this out from the dojo documentation - here’s the answer… http://blog.tijs.org/archives/2006/10/26/migrating-to-dojo-04/

How To Sync Palm Tungsten T with iSync

This definitely doesn’t work out of the box… New iMac with OSX 10.4 “Tiger”, old Palm Tungsten T. 1) Install Palm Desktop 2) What you should be able to do now, is open iSync and run “Devices>Enable Palm OS syncing”. What you get if you do that is a message saying that Palm HotSync hasn’t been installed properly. This is a file permissions problem. You’ll need to give “admin” RW access to /library/Application Support/“Palm Desktop” and “Palm HotSync” (only one of these needs to be changed, but I can’t remember which one)

Programmatic usage of FilteringTable

I’m using FilteringTable in a dynamically generated website, here’s how I got it working… Thanks to Tom Trenka for the original nudge in the direction of the Dojo nightly test for the programmatic usage of FilteringTable `` /* * Dynamic Filtering Table */ // Creates the FilteringTable widget and ties it to an existing HTML Table. // Call once on load. function doCreateFilteringTable(view) { // debugger; dojo.io.bind({ url: “/get_columns?view=“+view, load: handleCreateFilteringTable, error: handleError, timeout: handleTimeout, mimetype: “application/json” }); }

Django GeoIP templatetag

I’ve published 2 template tags for use with GeoIP at geoip.py. Hope they may be of use… Usage: Templatetag get_country_name returns the client’s country code # Example: {% ifequal get_country “GB” %} do something {% endifequal %} Templatetag get_country sets the given variable name to the client’s country code # Example: {% get_country as my_country %} {% ifequal my_country “GB” %} do something {% endifequal %}

Django/Ajax: a great simple tutorial

An excellent tutorial from James Bennett for your first step into combining AJAX with Django “A step-by-step walk through a simple AJAX form with Django backend”