Other articles


  1. Getting tornadio2 working on heroku

    I spent a while the other day figuring out how to get websockets working on heroku, so I thought I'd write it up.

    First, Heroku doesn't actually support websockets, so you must use something like socket.io which can fallback to various long polling mechanisms.

    Step 1, disable ...

    read more
  2. How not to program in python

    TL;DR

    Whatever you do, make sure you are using versioned python packages, even for simple tasks. And use pip+virtualenv.

    So you want to program in python..

    It seems like only yesterday, and not 7 years ago, that I decided to learn python. I may not be the best ...

    read more
  3. os.popen considered harmful

    os.popen uses the shell by default, and unlike subprocess.Popen, has no way of disabling it. Problems can occur when the program you are trying to run does not exist or is unable to be ran due to a permissions issue.

    Consider the following example function:

    def logged_in_users():
        users ...
    read more
  4. normalizing ipv6 addresses

    One of the first steps in groking ipv6 is getting a handle on ipv6 addresses.

    The 'dotted quad' notation for ipv4 is fairly simple, and other than possible zero padding issues, they all look the same. ipv6 addresses are a bit different. Rather than a dotted quad they are 8 ...

    read more
  5. Debian/kFreeBSD

    A few days ago I installed Debian/kFreeBSD on my home server. It had been running opensolaris for years, but doing just about anything on that system was a complete pain in the ass. I had been meaning to give Debian/kFreeBSD a try, but had been putting it off ...

    read more
  6. Playing with blogofile

    Reworking my much neglected website with blogofile. Ikiwiki is great, but I never really did anything with it. Blogofile is written in python and uses mako, two things I use in almost every project.

    Nice page titles

    The first thing I wanted to do was fix the page titles. Blog ...

    read more
  7. Shared HTTP Caching

    I've been wondering why the web doesn't have a mechanism for uniquely identifying a resource by a means other than its URL. I think if such a thing existed, then HTTP caches for common files could be shared between sites.

    There has been a push lately to let ...

    read more
  8. Remap capslock to z

    My 'z' key has been (physically) broken for a while now. Generally this isn't a problem because there aren't that many places where I need to type a 'z' that I can't autocomplete it. Between tab completion in the shell, and the irssi dictcomplete plugin, it hasn ...

    read more
  9. How My Dupe Finding Program Works

    finding duplicate files

    This post is about my duplicate finding program available here. The program is a little bare, and needs a nicer API, but the method it uses is the most efficient one that I am aware of.

    There are a couple of different ways you can find duplicate ...

    read more

Page 1 / 1

social