Homebrew.

I wanted to install the Ultraviolet gem, which gives you the ability to syntax-highlight code using Textmate syntax files through the Textpow gem. However textpow in turn depends on Oniguruma (a regex engine that happens to be more efficient than Ruby’s built-in version). However, if you install Onigurama you will probably get a bunch of compilation errors and something about not being able to find oniguruma.h. This is because installing the gem only installs the Ruby bindings, but that assumes you already have the Oniguruma header files installed.

read the rest...

Migrating an SVN repo with an inconsistent structure to Git.

Recently at work we migrated our code repository from Subversion to Git. You can find numerous guides all over the internet to do this, but none of them covered migrating a repo where the conventional directory structure (trunk, branches, tags) had been introduced halfway into the project. So, I figured it out and wrote a script to do it, and then decided I’d write a walkthrough so that you can follow along if you ever need to do this. Skip down to the script or continue reading…

read the rest...

more posts...