Doing some cleanup in ~/src last night and I spotted some .diff's I've had lying around. These might be useful to you, or they might cause serious hardware failure. Only one way to know for sure though.

  • god

    kill-pgrp.diff

    Sometimes god doesn't kill a process it has daemonized. It sends a TERM signal to the process it forked but this leaves the forks child running (if you know what I mean). Since god has already forked, it's safe to send the TERM signal to the process group containing the subprocess.

  • ImageScience

    image_science_with_buffer.diff

    ImageScience is a lightweight Ruby replacement for ImageMagick built on FreeImage (and if you've ever tried resolving all ImageMagicks dependencies by hand you'll understand why someone wrote a lightweight replacement). One of the features it's missing though is the ability to load an image from a buffer already in memory. This patch adds that capability.

    Once applied, you can use ImageScience.with_buffer(buffer, buffer.length) where buffer is a plain old Ruby string.

    image_science_with_alpha_icos.diff

    Alpha channel support for ICO images why not.

  • pybeanstalkd

    pybeanstalk-osx.diff

    pybeanstalk provides a Python interface to the beanstalkd queue. This patch lets it play nicely on MacOS (OS X Python lacks select.poll but it's easily worked around here).

    Edit: oops, this patch was accepted a while ago. If pybeanstalk isn't working on your Mac, just update to the latest version.

Comment

You can leave a comment by twittering with the text http://dogg.ie/.cwf6q5 anywhere in your tweet. The link below will do this for you with pure magic (and some glue).

Sometime in the next 5 minutes, if everything goes to plan, your comment will appear on this page. If you can't fit everything you want to say into 117 characters, write a blog post and tweet a link to that.

Take me to Twitter, I've got something to say.

Comments

None yet.