Category Archives: Projects

named tasks in leader_cron

I’ve been using erlcron to run scheduled tasks, but since each node in an erlang cluster would have its own copy, it didn’t help with having the tasks run in only one location per-cluster. Then I found leader_cron, which uses gen_leader to elect a single node in the cluster to run the tasks.

This is great stuff, but it doesn’t solve the problem of which node should schedule the task. For this purpose, I added the feature of named tasks, so that if you add a task with the same name, you receive a {error, already_exists} response. This way all the nodes can try to schedule the tasks, but only one will succeed.

I’ve submitted it to the maintainer and I hope he likes it, but it seems useful enough to hold onto even if he has reservations.

Defactoring

You’ve read Refactoring. You’ve seen Prefactoring on the bookstore’s shelf. Well, after you’ve fact’d it all up, it’s time for Defactoring.

My new book, which introduces such techniques as overriding your framework’s core eventloop and running dynamic_cast<> on each widget that passes through to see if it’s the widget you’re looking for.

gpl craziness

Sometimes, late at night when the moon is full and no one is around, I’ll download the Emacs source. Then, I’ll make a single change. Maybe rename a variable or a function, or comment something out. Then, I’ll recompile it and put the binary on my website for people to download. But I won’t provide the source of my changes! Muahahahaha.

I love it when a plan comes together

With some help from Daniel Jalkut, Dave Dribin, Chris Hanson, and of course Andy Matuschak’s Sparkle and Reinvented Software’s Feeder, I finally have a system for pushing Gusto updates that are tied to SVN revision numbers. Once it works, it works pretty good. I might run into some trouble in the future if I were to use a different tree than trunk, but that’ll be a good ways away.

I’m not too worried either because:
a) agvtool will let me set whatever version and marketingversion I want
b) Sparkle will let me explicitly name the next version

GSoC 2006 writeup

The conference went great. It was an “unconference” were people reserve rooms to talk about whatever they want. If other people are interested, they’ll show up. I gave a talk called Rewarding Contributors that was about the various project management tricks I’ve done to pay back people who volunteer on Ardour. Sixteen people showed up and the following discussion, mostly with the Drupal team was very rewarding. There was applause afterwards. It was great.

Google’s campus was large and showed signs of rapid growth. They had over 40 buildings, I think. Their security guys were just dudes who sat under umbrellas in lawnchairs at the entrance to the driveway.

I had a good conversation with a couple of the Subversion developers, who work at Google. Their Poisoness People talk was particularly entertaining.

The whole thing really got me excited to work on Ardour again.

Also, the hotel was pretty nice. It had this late 50s intellectual motif. Lots of Jackson Pollock style paintings and such.

Google Summer of Code conference!

I’m going to the Google Summer of Code conference this Saturday. I’m flying out to San Jose tomorrow morning.

I’m pretty excited. I’ll be leading a discussion of cheap, homegrown ways to reward contributors to open source projects.

Then, I’ll fly to LA to visit some friends. And since I’ve never been to California before, this is all new to me. Too bad I won’t have time to check out San Francisco. Oh well.

Objective-C and libsigc++

I’ve started working on a secret MacOSX project. I decided to use Apple’s Cocoa framework, so that means I have to use Objective-C. The backend I’m basing my project on is in C++ and uses the libsigc++ callback library as an important component of its interface with the frontend. So how do you setup ObjC methods to be called back?

Use my glue header. It will create glue functions at compile time for calling objc_msgSend() with the appropriate arguments.

Example:

SignalActivated.connect (sigc::bind(sigc::ptr_fun(objcsigcglue), self, @selector(CatchSignal:)));

This will call [self CatchSignal:boolValue]. Pretty neat, right? For the majority of callbacks that don’t accept arguments, a mere function pointer cast is needed:

BoringSignal.connect (sigc::bind(sigc::ptr_fun((msgFtn)objc_msgSend), self, @selector(boringSignalCatch:)));

Update: I fixed objcsigcglue.h to work with references that are passed to the callback. It should be much more flexible with other types I haven’t anticipated too.

The Mother of All Dubbers

From Harrison’s marketing materials:

The recording software behind the X-Dubber is an open-source, highly scalable program called Ardour. The stable, full-featured Ardour workstation has the capabilities you would expect from a state of the art workstation. By focusing on the specific needs of the post-production community, Harrison has packaged the Ardour workstationinto a robust, streamlined re-recording product that meets the needs ofour world-class customers.

Pretty awesome. Go Team Ardour.