The Code Kitchen

Ludum Dare 14

The idea of competing to write a complete game in a very short time has always appealed to me for some reason. I think mostly because it means I'll actually be forced to finish a game. So I'll be entering Ludum Dare 14, it starts around 9PM tonight and ends 48 hours later. Ruby isn't my favorite language for game development but it can't be beat for rapid prototyping, so that's what I'm using.

I'll be liveblogging as the contest is in progress, if you're bored this weekend you can check my posts here:

http://www.ludumdare.com/compo/author/codekitchen/

I'll also be doing a short presentation on the experience and on prototyping video games in Ruby at this month's Salt Lake City URUG meeting.

I wrote this bit of code while working on a D project this morning:

 

void trace(R ...)(char[] a, lazy R r) {
     if (tracing_enabled)
         do_trace(a, r);
}

trace("Playing {} on {} ({})", _sound, _channel, _device);

That, friends, is a variadic lazy function template conditionally at run-time calling a type-safe variadic function, only evaluating its arguments if the call is made.

#

Redmine Invoicing Plugin

Simple git-daemon launchd script

Here is a simple launchd script to run git-daemon under launchd on Leopard. Edit the XML to tweak any options, it's self-explanatory.

You'll need to change at least the UserName and --base-path options to match your configuration. Don't forget to touch git-daemon-export-ok in each repository you want to export. See git-daemon(1) for more info.

> sudo mv cz.or.git.git-daemon.plist /Library/LaunchDaemons/
> sudo chown root:wheel /Library/LaunchDaemons/cz.or.git.git-daemon.plist
> sudo launchctl load /Library/LaunchDaemons/cz.or.git.git-daemon.plist

#

Mozy Deathmatch II

Comments? Feedback? Drop me a line.

My name is Brian Palmer. I'm a software developer at Mozy. Sometimes I post on this site. Other times I post on Facebook instead. Sometimes elsewhere. I have a Twitter account, but I've never tweeted. And yet I have 9 followers?


I live in Salt Lake City, which is a really cool town. Plus, mountains! I'm terrible at introductions, so if you have questions or feedback just drop me an email.


Oh, about the name: I write software and I love food. That's all it means.

Lorem Cookies

cookiesLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.