Code Archive

/dev/world 2017

10th anniversary of /dev/world! Here’s the links from my talk, Inside Macintosh. MacFAQ Serial Decoder - Find out when your Mac was made. Big Mess O’ Wires - New hardware for obsolete Macs, and blog. Macintosh Garden - Mac Abandonware. Vintage Apple Mac - Mac Abandonware and blog. Internet Archive’s Mac Library - More Mac Abandonware, direct to your browser. 68k Macintosh Liberation Army - So you have an ancient Mac?

GovHack 2017

Nice.

GovHack is wrapped up for 2017. It was finished on the weekend, but Monday and Tuesday were a waste - I have been too miserable and sick to blog about it, and only just got a burst of energy to break through the mehffort. Our entry, Death Who? (Colonial Edition), is a virtual card game based upon real lives recorded in Tasmanian historical records. I wanted to share what I’ve learned about making a super hacky multiplayer game backend from scratch in 46 hours, in case you want to try the same thing.

Block Delegates

Often I find myself implementing the same delegate protocol over and over. Consider, for example, the Facebook SDK for iOS. I’d like to make lots of requests to the Graph API, and not have a single callback method request:didLoad: in a single class that looks like: -(void)request:(FBRequest*)request didLoad:(id)result { if (request == mainRequest) { // handle result } else if (request == subRequest1) { // handle result } else if (request == anotherRequest) { // handle result } //.

Less is More :(

The majority of work I do, as a programmer who wears a shirt and tie, involves databases. And I try to keep things nice and simple when working with databases. What I mean by simple is, extra tables in a database is fine, even triple the “minimum number” (whatever that is), if they all mostly follow some pattern. Constructing a database schema is then a simple application of the rules devised when designing the pattern, and means there’s not much to think about or have go wrong.

Fractal wallpaper

Following today’s talk, I decided to render a version of the fractal I showed off as a 1920 by 1200 wallpaper. Here it is, complete with absurdly high subpixel multi-sample antialiasing. It took about 15 seconds to render with the nVidia 9400M and [redacted]. Mandelbrot Wallpaper 1

WWDC Day One: Ponies and Steve

Things I learned today: Applied Queuing Theory. The outside queue to WWDC at about 5:30 AM Queues in Practice and Principle. Another shot of the queue Queues and You: A lesson in hidden opportunities. The queue inside Starbucks Queue Participation for Fun and Profit Internal queue friends Time and Distance: A queue-theoretic case study Are we there yet? Escalating Queues to the Next Level Skilled "escalatio" practitioners on the way up Go go go!

Ghetto Text Editing

I realised yesterday that one factor consistently ignored in the old vi/emacs/butterflies debate…is how “ghetto” the method of text editing is, i.e. how degenerate given the available tools. Old terminal-based editors can seem quite ghetto compared to modern GUI-based ones, but after thinking about it you can do a whole lot better.