Archive for July, 2007

  • Create a compressed DMG

    The quickest way:
    hdiutil create -srcfolder “Source Folder” “File to Output.dmg”
    Note that it uses “Source Folder” as the root of the DMG; you may want to put “Source Folder” into an empty, similarly-named folder and compress that instead.
    Also check out EasyDMG, a Cocoa wrapper for hdiutil.

    Thursday, July 26th, 2007
  • GIMP

    The people who say that the GIMP is an acceptable replacement for Photoshop have obviously used neither.
    I was even using Gimpshop.
    Sigh.

    Wednesday, July 25th, 2007
  • A heartwarming Tim Horton’s moment

    Aidan: …and a croissant.
    Employee: Hmm… Hey [Other Employee], where’s the croissant button?
    A: Oh, it’s right here. Points.
    E: Wow, I’ve never had a customer help me with my till before.

    Cue sappy music.

    Wednesday, July 25th, 2007
  • Calculating the area under the normal curve in Ruby

    Summary: Attached is a pure Ruby implementation of the AS66 algorithm (Hill 1973), ported from the Fortran code available here. It estimates the integral of the normal distribution, defaulting to the area under the right tail.

    Tuesday, July 24th, 2007
  • Watching video on an sshfs-mounted volume

    Summary: Use the following options when mounting with sshfs: -o cache=no -o direct_io to avoid jittery video.

    Friday, July 20th, 2007