Go to content Go to menu

When to choose to use a singleton

Tuesday February 21, 2012

Singletons are a lonely bunch. I’m not talking about romantic attachments; the much maligned Singleton pattern is a barb in the flesh of many compsci denizens. When once it was so popular, confident coders now cringe in self-doubt at the sight of a getInstance() method.

Nerdiness rating for this post: 4/5


...read more

wget ENOTDIR patch

Friday June 26, 2009

wget error handling is atrocious. In these modern days, webservers kick out all kinds of crap and wget is a little antequated in the ways it expects content to be delivered. I found some bugs and fixed them for the latest stable version (1.11.4)

Patch can be found here


...read more

expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute‘ before …

If you get this error unexpectedly, check your types, and check your types again.

Also don’t be a noob like me and remember to #include before wasting half an hour with a bool type in your code sticking out like a sore thumb.


...read more