Just a quick little post in case some people out there don’t know about the note keeping feature in Rails.
There’s a rake task called “notes” that will search your codebase for any #TODO, #FIXME or #OPTIMIZE annotations and print them in a pretty list, like so.
$ rake notes
* [ 38] [TODO] Write destroy action
* [ 5] [TODO] Integrate with Amazon S3
I’ve recently had to set up XDebug with MAMP Pro on OS X and it’s a little unintuitive. The instructions over at MacGDBp helped me tremendously, and they’ve made a nice debugger.
The latest version of MAMP/MAMP Pro comes with the XDebug binary already bundled. The unintuitive part is that you’ll need to edit your MAMP Pro php.ini file to point to the xdebug.so file in the MAMP folder. While MAMP Pro is open, go to File -> Edit Template -> PHP -> (PHP Version you use), and add the following lines to your php.ini.
Just a quick post to share this nice rspec presentation.
I wanted to take a moment to share the slick features Jeweler has, and mention its tight integration with Github. Installing jeweler and setting up your Github credentials is simple.
$ gem install jeweler
$ git config --global github.user myUsername
$ git config --global github.token myAPIToken
After it’s set up, invoke jeweler with the following arguments to create a new project. Here, I’m setting it up with rspec and cucumber for testing and having a github repository automatically created.
$ jeweler --rspec --cucumber --summary "My Awesome Project" --create-repo myawesomeproject
Jeweler has prepared your gem in ./myawesomeproject
Jeweler has pushed your repo to http://github.com/sensae/myawesomeproject
You can optionally enable your project in the Travis CI dashboard as well to get continuous integration testing and email notifications as to your test suite’s status. All this together makes it almost effortless to create new ruby projects and scripts. Couple this with Thor for easy command line arguments, and you’ve got a recipe for making awesome shell scripts at a whim.
Unfortunately I’ve been bombarded with comment spam over the last couple months. I’ve turned on Akismet, but if I’m not successful in catching more of the spam automatically the comments feature will likely be disabled.
I’ve recently discovered the wonderful git tool known as rebase (before I had just merged everything, making an awfully ugly commit history tree). Rebase is a git command which detaches your feature branch from the last common ancestor commit of another tree, and reapplies it at the head of the target tree. I’ll demonstrate with some images after the jump for more clarity.
Read More »
I’m a pretty avid linux user, and I try to minimize the time I spend in Windows, even for a game as fun as Dwarf Fortress. I was very happy to hear that there are linux packages available for the game now, as that wasn’t always the case. If anyone reading this hasn’t yet played Dwarf Fortress, I implore you to grab the game from their main site and follow along.
Unfortunately, the in game GUI for managing dwarf tasks is, to put it softly, abysmal once you’ve got a decent sized fortress. That’s where Dwarf Therapist comes in, which is a great third party dwarf management tool. If you’re on a debian-based distro, they offer debian packages which makes installation trivial.
However, ArchLinux users aren’t so fortunate in terms of an easy installation, as Dwarf Therapist must be compiled. However, this is actually a benefit, as the current version of DT also has a very annoying bug in which custom professions do not work. What follows is a guide to compile DT for ArchLinux, and in the process apply a patch during the build that fixes the custom profession bug.
Read More »
I know it’s been a long time since I’ve written anything here. I honestly haven’t been up to anything interesting, expect more posts during the summer.
Just a quick snap my girlfriend took of my current boebot build with a Hitachi HM55B compass module, LED and pushbutton. I might upload a schematic sometime.