Content

Not quite a Yegge long.

File: Uncategorized

Something that often comes up in UI programming is how to bind UI controls to backend data without writing a pile of code – and preferably without using reflection. Here’s an attempt (thwarted by the compiler, unfortunately) at capturing a C# ref parameter in closures so it can be passed around, stored, etc. It seems [...]

 » Read the rest

For those of us who try to build our own C compilers, preprocessor macros are a significant stumbling-block, especially for standard C, where macros are token-oriented, rather than text-oriented. The (old) naive approach is to just do a dirty text substitution, and then lex the result normally. This appears(!) to be what several production compilers [...]

 » Read the rest

2010-03-16 :: admin // Uncategorized
The lameness of FizzBuzz

I got sufficiently bored today that I decided to try out FizzBuzz. This is a common monkey-filter used to determine whether people can code at all. It’s stupidly trivial, and yet many supposed “programmers” can’t hack it. Here’s a quick (30 seconds) implementation in C: #include <stdio.h> char const * fmts[] = { "%d\n", "Fizz\n", [...]

1 comment  » Read the rest

2010-02-27 :: admin // Uncategorized
OpenRA gets C&C support

Thanks to Paul Chote (github/pchote) we’ve got support for the original Command & Conquer being added to OpenRA as well. Here’s an early screenshot for the Nod side. Most things work, except for Ore to Tiberium conversion:

 » Read the rest

2010-02-13 :: admin // Uncategorized
Knitted TF2 Scout

 

1 comment  » Read the rest

2010-01-17 :: admin // Uncategorized
I need a beer glass.

An odd combination, but the beer is rather good.

 » Read the rest

2010-01-17 :: admin // Uncategorized
First flying lesson

My wife got me flying lessons for Christmas; I had my first flight today. Flew (more or less) one loop of the traffic pattern for Feilding aerodrome, with a few extra turns to get used to the controls. Me with ZK-TOD, a Cessna 152, before doing the preflight checklist. Taxiing out to the runway. It’s… [...]

 » Read the rest

Here’s a capture from a hacked OpenRA build:

 » Read the rest

2009-12-19 :: admin // Uncategorized
Using Github with MsysGit

I’ve been happily using Git for all my personal projects for the last couple of months, and everything is great – except for the performance of Github for pulling and pushing. I’ll outline here the steps I took to fix it. First, I noticed that only the authenticated access to Github is pathetically slow. Pulling [...]

 » Read the rest

While we conveniently don’t often hear of opinions other than the shrill mainstream environmental activist’s (and now politician’s) cry of “oh crap, the climate is changing and it’s our fault for, uh, breathing and driving cars and stuff, so, uh, pay this new tax” it should be plainly obvious that the Earth’s climate has not [...]

 » Read the rest