Hacks

General Interest

First, beware that I am thoroughly outclassed by my brother.

An empirical study on the effectiveness of aluminium helmets to protect against mind-reading and mind-control.

Why I'm the Coolest Mofo At MIT.

How to eat muffins. Focuses on the tactical aspects of eating muffins.

The Marcus Bains Line. A Critical hack for every calendar program.

More Technical

A simple trick to Recover the Pose of a Parallelogram from a picture.

A spline drawing and annotation tool for MATLAB.

How to browse your list of papers. Convert BibTex to HTML.

wpointer. Warp the pointer to an X window using the numberpad on your keybard. Better than "next-prev" and better than Windows's Alt-TAB brain damage. Documentation is at the top of the source file.

Lazy Containers, efficient compile-time lazy evaluation of operations on collections of data.
How do matlab-like array computations in C++ extremely efficiently, without creating unnecessary temporary variables and causing cache misses.

Configuration. A package for keeping the options that your program needs in a configuration file instead of passing them through command line arguments. Similar in function to .Xdefaults or a .ini file in windows, but much more sophisticated.

Connected components.
A package for finding connected components in an image in one pass, using the union-find data structure.

Conditional Interfaces.
How to change the interfaces of a template class Foo<T> based on what T is.

Template constants as compile-time flags.
How to pass flags to functions without incurring the cost of checking the value of the flag in an inner loop.

An enhancement for how scrollbars behave under X windows (this patch is now integrated into RXVT versions 2.7.7 and later)

How to compute the sum of squared differences surface between two image patches in MATLAB.

More hacks on my XCF page.