Skip to content
Archive of entries posted on

Unit Testing with Boost.BuildV2/bjam

The official documentation neglects to mention that you must import the testing module for any of the testing rules to work. I put ‘using testing ;’ in my user-config.jam. I had no trouble with the ‘unit-test’ rule, which has the same syntax as ‘exe’ but also runs the program and checks the exit status. However […]

Using vim like an IDE

I’ve been using The NERD tree for a file list and minibufexpl for tab-like buffer management. To close a buffer, select it in minibufexpl and hit the ‘d’ key. If you want to remap the :bd command so it does the same thing, check out these tips – otherwise :bd will delete the whole window, […]

SDL Windowed Fullscreen (no mouse trapping)

The fullscreen display mode in SDL traps the mouse on one X display, which can be undesirable if you are running dual head with separate X screens and using SDL for something other than games. UPDATE: An even easier way of doing this is passing SDL_NOFRAME to SDL_SetVideoMode with width and height set to the […]

make alternative for small C/C++ projects

Lately I’ve found maintaining Makefiles tedious, even for small projects. Much can be done with implicit rules, but header file dependencies must still be specified manually (or so I though – more on this later). For a small project, maybe you only have five or so of these rules. However there is no reason to […]

Blocking Facebook ads in Firefox using AdBlock Plus

http://ausbury.wordpress.com/2008/07/02/block-facebook-ads-in-firefox/ Look at the comments also. I used facebook.com#*(social_ad) and facebook.com#*(sponsors) – blocking the entire sidebar_ads messed up the horizontal alignment.