Leave a comment
  • The Problem with Doctests

    djfroofy Jan 31, 2008 08:20


    I used to think python doctests were the greatest thing since sliced bread. I no longer think this and I've returned to the basics (most of the time): plain old unittests. So let me explain why.

    This is the crux of the matter: documents are supposed to be documents and readable as such. Too often I see doctests that stray from readability in ( Read more... )

    xunit, python, doctest, pyunit, testing

    Leave a comment
  • World Coordinate Picking

    djfroofy Jan 29, 2008 22:23


    Manipulating an object's world coordinates with OpenGL is tricky. This is an operation which involves translating the screen coordinates to a position in the world. The "tricky" part of this is determining the depth of the object in the range [0,1] to use as the wz argument to gluUnProject (a function that does the hard screen coordinate to world ( Read more... )

    opengl, python, 3d

    Leave a comment
  • Bidirectional Communication over AMP

    djfroofy Dec 29, 2007 13:00



    The following is a simple server that exposes two commands (Echo and Foo). The responder for Foo, in addition to returning an empty dict, will try to call Echo on the client.

    ampbidir.py

    from twisted.internet import reactor ( Read more... )

    python, twisted, programming

    Leave a comment
  • Hah

    djfroofy Dec 28, 2007 18:42


    from twisted.python import filepath ( Read more... )

    python, recovery, music, mmpython

    Leave a comment
  • Mural Complete

    djfroofy Nov 13, 2007 13:44


    The mural is complete ... After about 9 hours and several bottles of acrylic. So this isn't technical but it will be after I embed micro-controllers in the wall to make the animals' eyes glow. Ok, that might freak my daughter out though. Yes, that's a mountain lion, a bunny and a pig. There is a reason for all these elements.
    Leave a comment
  • Erlang and binary

    djfroofy Jul 30, 2007 20:08


    Messing around some with erlang, I've really been impressed with the bit syntax which makes dealing with binary data actually fun. In erlang, binaries can be expressed using the following syntax:

    1> A = <<205>>.
    <<"\315">>

    So A is no bound to the binary value 205 - which is by default 1-byte in length. With the following syntax, we can ( Read more... )

    erlang, programming, fp

    Leave a comment  1 
  • Two CPUs are Fun

    djfroofy Apr 16, 2007 21:24

    cpuinfo from proc:

    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 15
    model name : Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz
    stepping : 6
    cpu MHz : 1000.000
    cache size : 4096 KB
    physical id : 0
    siblings : 2
    core id : 0
    cpu cores : 2
    fdiv_bug : no
    hlt_bug ( Read more... )
    Leave a comment
  • Ubuntu Dapper/Edgy/Feisty Broadcom Corporation NetXtreme BCM5752 (module bcm43xx) Wireless Nightmare

    djfroofy Apr 16, 2007 08:25

    Do NOT use firmware (at least from cafeugo) or modules for Broadcom wirless cards - you will experience much pain.

    Read this ... please: http://www.linuxquestions.org/questions/showthread.php?t=463002

    In short:

    1. Blacklist el' bcm43xx
    2. Install windows ( Read more... )

    wireless, linux, security, hardware

    Leave a comment
  • vimrc Revisited

    djfroofy Nov 17, 2006 11:49

    After upgrading to vim 7 I began to notice some subtle (and annoying) effects on my unwieldy ( Read more... )
    Leave a comment
  • Previous
    Up