1. Easy Signal Handling for Python Daemons

    I recently had to handle a case where I needed to be able to refresh a Python module's imports on the fly. The case is for working with Twitter Streams. When new code is deployed that affects the scraping module, I want to be able to restart the stream as fast as humanly possible in order to minimize the lost of tweets. Twitter suggests firing up a new stream first and then killing the second one in order to prevent any interruptions, but for all intents and purposes this is close enough.

    Turns out ... Read More

    There are comments.

  2. About

    Started writing one year ago, the day after heading out to travel around the world for a year without a cause.
    Current Location: New York, New York

    Previously:
    Mexico City, Mexico
    Tokyo, Japan
    Hanoi, Vietnam
    Vientiane, Laos
    Phuket, Thailand
    Kathmandu, Nepal
    Rajastan, India
    Kerala, India
    Mumbai, India
    Freetown, Sierra Leone
    Koidu, Sierra Leone
    Mombasa, Kenya
    Nairobi, Kenya
    Kigali, Rwanda
    Rwinkwavu, Rwanda
    Boston, MA

    Latest Posts

    Easy Signal Handling for Python Daemons