Neat little article by the author of Pwncha — “Defeating CAPTCHA with neural networks.” http://ping.fm/VoDXs

Posted in blips | Tagged | Comments Off

Gamasutra — dirty coding tricks. What really goes on before they ship a game. http://ping.fm/0sjRt

Posted in blips | Tagged | Comments Off

Just made a screencast: “How to receive text messages on your computer with AIM.” http://ping.fm/ck0BK

Posted in blips | Leave a comment

The unofficial way to uninstall DarwinPorts / MacPorts

Fed up and done with the whole mess of DarwinPorts (now known as MacPorts)? Ready to move to ArchOSX? Fire up ye terminal!

% port installed | awk '{print $1}' | xargs -n 1 sudo port uninstall --follow-dependents

--->  Deactivating fop-0.20 @0.20.5_0
--->  Uninstalling fop-0.20 @0.20.5_0
--->  Deactivating imlib2 @1.4.1_1
--->  Uninstalling imlib2 @1.4.1_1
--->  Deactivating freetype @2.3.9_0+macosx
--->  Uninstalling freetype @2.3.9_0+macosx
--->  Deactivating gperf @3.0.4_0
--->  Uninstalling gperf @3.0.4_0
Error: port uninstall failed: Registry error: imlib2 not registered as installed.
--->  Deactivating jpeg @6b_3
% sudo rm -rf /opt/local

Embrace your newfound freedom and replace this junk with a real package manager.

Posted in code | Tagged , | Leave a comment

Problems installing (easy_install) Python Imaging Library

OK, this site was handy:
Problems installing (easy_install) Python Imaging Library

However, it didn’t work with Django in my virtualenv setup, so I did this instead:

  1. ENV/bin/activate
  2. Install pip:
    easy_install pip
  3. Use pip to install the latest stable PIL (1.1.6 at the time of this writing) as follows:
    pip install http://effbot.org/downloads/Imaging-1.1.6.tar.gz

It seems that the instructions at the above link prepare an egg with the Python, but doesn’t set up the expected paths for the library, which meant that Django couldn’t find it. The clue that broke the case is the last comment on Django bug #8187 (fixed). I wanted to find out how Django locates PIL, found the same instructions as the above link, then the bug submitter’s conclusion that installing PIL in that way makes an invalid setup.

easy_install — not always so easy.

I’m in love with virtualenv, which can build a whole custom Python distribution with one command; once I figure out its kinks I’ll be writing a follow up on silky-smooth Django app setup and deployment. If all of the above seems clear as mud: don’t worry, be patient, and your questions will soon be answered.

Update:

I just updated the instructions to use pip to install PIL. easy_install can build libraries from a tar archive, but using it to do that with PIL makes an egg with the same problems. Doing the same with pip works fine.

Posted in code | Tagged , , , , , | Leave a comment