bartman's blog

notmuch for vim

Quite some time ago now, I tried sup but found it’s indexing latencies unacceptable for my workflow. I also found the user interface a bit foreign and hard to get into. More recently I’ve found notmuch, a project that started as a C rewrite of the core bits of sup. Basically, it’s a program that indexes and searches through your existing mail. I had two issues with it. it had an emacs interface, and it uses maildir instead of mailbox.

squid and apt

In the past few months apt-get update started failing when using a squid3 web cache. It woudl give errors like these… 404 Not Found [IP: 149.20.20.135 80] The HTTP server sent an invalid reply header [IP: 130.89.149.227 80] Failed to fetch .../Packages 404 Not Found [IP: 149.20.20.135 80] Failed to fetch .../Sources 404 Not Found [IP: 149.20.20.135 80] etc

using WIP branches to save every edit

I am experimenting with a new workflow to help solve the problem of lost work between commits. As described [in my previous post]{20091104194146}, there are already several ways to deal with keeping track of frequent edits. The only problem is that they all involve dedication and extra effort.

using git workflows to avoid loosing intermediate changes

A few days ago a buddy, Jean, had stumbled into a problem caused by infrequent committing to his git repository. Committing after the feature is implemented is common when working with tools like SVN… but we have multiple workflows available to us under git to manage frequent commits.

reflections on ACM Reflections

I returned from the 2009 annual ACM Reflections | Projections conference held at the University of Illinois at Urbana-Champaign. I was asked to speak at the conference about Git. I really enjoyed attending the conference, and not just because I learned how to play Beer Pong at the staff party. The organizers did a really good job of putting on a great event – even if the line ups for food were a bit long, but it was free food for starving students, so what would you expect. I got to meet awesome people like Bram Moolenaar, the author of Vim, Alexis Ohanian, of reddit fame, and Ryan North, the guy behind Dinosaur Comics. I was also in awe of the facilities the CS people have at UIUC.

bacula rejected Hello command

I added a new host to bacula today. That resulted in: 13-Oct 16:58 bacula-dir JobId 1026: Fatal error: File daemon at "oxygen:9102" rejected Hello command 13-Oct 16:58 bacula-dir JobId 1026: Error: Bacula bacula-dir 2.4.4 (28Dec08): 13-Oct-2009 16:58:39 After looking around on the web and coming up with nothing, I noticed the version difference. The new host happened to run version 3.x.y of bacula-fd, unlike my director that runs 2.4.y. Apparently bacula doesn’t support the director being an older version than the client.

pimping out git log

I got playing with git log and ended up creating this alias: [alias] lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative Which adds a git lg command that is a prettier version of git log --oneline.

virtualization primer

I participated in the virtualization panel at last night’s meeting of my local Linux Users Group. Pictures from last night are up on Richard Guy Briggs’ website. I’ve put up the slides for the virtualization primer talk, and also the source document (created in Inkscape) if you wish to use the slides for something. I use negative to convert the .svg image to .png and .pdf files.

adding an external encrypted volume under Debian

One of my old(er) USB-connected disks started to make a noise. So, it’s time to replace it. Here are the steps I took to create an encrypted USB volume that I can attach to my laptop.

the dreaded process of rooting Rogers Dream

This is not as smooth as [rooting the G1]{rooting-g1}, and comes no where close as [my second attempt at rooting the G1]{simple-rooting-g1} (ie the easy way). WARNING: I’ve said it before, but this time I want to stress it… this may brick your phone! Until I figured things out and found the right pages I had a non-booting phone.