SWIG vs libxen

February 17, 2010

SWIG is an awesome tool. I’ve been developing a lot in ruby recently, and I’ve often wanted to use features from external C or C++ libraries, but hated writing the wrapper code to make them available to ruby. Enter SWIG — the Simplified Wrapper and Interface Generator. It takes 99% of the burden off the [...]

Read the full article →

compiling the libxen api on mac and linux

February 13, 2010

Xen is a pretty huge library, and the build process is rather long. While a lot of it doesn’t work with Mac OSX, libxen (the c api bindings for the libxen api) should. The only prerequisites are libxml (and libcurl if you want to be able to run the tests). However, there isn’t really a [...]

Read the full article →

install the latest autoconf and automake on mac os 10.6

February 13, 2010

I noticed today that while Mac OS 10.6 (specifically, 10.6.2) comes with automake and autoconf, the versions are a little bit dated. Normally I wouldn’t care, but I ran into an issue when trying to generate a portable distribution using those tools on my mac, and then configure, compile, and install the result on a [...]

Read the full article →

list classes and methods in a ruby module

February 12, 2010

Here’s a simple script to list the classes and class instance methods within in a particular module. I’ve been experimenting with using SWIG (more on that in an upcoming post), and wanted to quickly check, from the ruby end, what classes and methods were generated. If you’ve created ruby extensions before, you know that the [...]

Read the full article →

speed up key generation with artificial entropy

February 9, 2010

Quick Tip: If you’re waiting forever when doing: gpg –gen-key or something similar, you’re not alone. I often have to do this on a remote machine, which doesn’t have physically attached HID’s to help increase the system entropy level. Because of how often I had to regen keys for some testing, I had to find [...]

Read the full article →

polar panic puzzle mode solutions

February 7, 2010

In an effort to make this less the “polar panic blog”, i’m going to consolidate all of the polar panic puzzle mode solutions into this single post. If we end up recording more, I’ll just tack them on here… so check back here if you’re polar-obsessed like we are…. credits: mrmete, camperdamp, and jemily 1: [...]

Read the full article →

xen 4 with pvops kernel tun problem solved

January 29, 2010

Having trouble getting an hvm virtual machine start with networking when using the latest pvops kernel? Are you compiling your own pvops kernel? Are you getting errors like “virtual networking not enabled” in your qemu logs? Me too… I figured it out. Easy as pie. When compiling your pvops kernel, ensure that your config file [...]

Read the full article →