How-To: Ninjabread Men

How-To: Ninjabread Men

Instructables user Jayefuu writes:

After seeing a picture of some similar ninjabread men cutters by Fred & Friends on epicwinftw.com I HAD to have some. Not being one to just buy something, I thought I’d have a go at making my own using strips of 0.5mm stainless steel and a jig to bend it around.

Not being a dab hand with graphics software I twisted the arm of my friend gmjhowe to make me some outlines. The ninjas in the PDF he sent me back are pure awesome, and should be a wee bit easier to make than the shapes of the originals I got my inspiration from.

How-To: Ninjabread Men

(Via CRAFT.)

PySQLPool on Snow Leopard HOWTO

Ok so here is how to get the awesome module PySQLPool working on Snow Leopard.

  1. Step One

    Get fink there are good instructions on their site http://www.finkproject.org/download/srcdist.php

  2. Step Two

    Using fink install the following packages
    dbd-mysql-pm588, mysql, mysql-client, mysql15-dev, mysql15-shlibs
    like this

    sudo fink install dbd-mysql-pm588 mysql mysql-client mysql15-dev mysql15-shlibs

  3. Step Three

    Kick python into 32bit i386 mode, because the libs (from fink in this case, seriously the easiest way to get them) that are prebuilt are are i386 binaries, running the default 64bit interpreter will fail when it calls dlopen(). To do this edit your .profile and add

    export VERSIONER_PYTHON_PREFER_32_BIT=true

    You will still need to kick it into 32bit mode manually when using sudo, but this will use 32bit when you call python as you(like when you press R in text mate).

  4. Step Four

    Download http://downloads.sourceforge.net/project/mysql-python/mysql-python-test/1.2.3c1/MySQL-python-1.2.3c1.tar.gz

    Double Click to Expand ,then using terminal

    cd Downloads/MySQL-python-1.2.3c1
    arch -i386 /usr/bin/python2.6 setup.py build
    sudo arch -i386 /usr/bin/python2.6 setup.py install

  5. Final Step

    Download http://pysqlpool.googlecode.com/files/PySQLPool-0.3.5.zip

    Double Click to Expand, then using terminal

    cd Downloads/PySQLPool-0.3.5

    sudo arch -i386 /usr/bin/python2.6 setup.py install

    new terminal window

    Last login: Sat Feb 13 23:47:46 on ttys002

    computer:~ danny$ python

    Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)

    [GCC 4.2.1 (Apple Inc. build 5646)] on darwin

    Type “help”, “copyright”, “credits” or “license” for more information.

    >>> import PySQLPool

    >>>

Done!