generating html colourized sourcecode
I wanted to have vim colouring of source files in html format. There is Text::VimColor perl module, but it’s not in Debian. Vim has a :TOhtml command (see :h syntax). I wrote a tohtml shell script to solve the problem using :TOhtml. And yes, the html was generated with itself.
ion3 greatness and acting on X selections
So it turns out that I have not blogged about [ion3]{tag/ion3} yet. I’ve been using ion3 as my window manager for about half a year, and I still love it. It’s fast, does not requrie a mouse for most tasks, and has very powerful scripting and keyboard binding capabilities. But enough about the greatness of ion3… and onto the rest of the story… For some time I wanted to have a magic key binding that would do something – anything – with my X selection. Say, I highlight a URL and push this magic key, it should display it in a new browser tab. If I highlight what looks to be a valid file, it should launch gvim on it, etc. I previously tried with sawfish, but I suffer from a serious condition that causes me to vomit when I look at lisp-like languages – one of the reasons I abandoned emacs years ago. It was pretty easy in ion. Below is my [lua]{tag/lua} code to implement what I described…
software RAID10 performance
A buddy of mine works at IBM, he has a big ass SCSI raid array (DS300) on which he runs RAID5 (which is bad, BTW). He wanted to know what the overhead of running software RAID10 (aka RAID1+0) on this system would be. His numbers are here.
learning to love git
I’ve been working for Xelerance, mcr’s company, for a couple of weeks now. The project I am working on is mostly bringing KLIPS, openswan ipsec kernel module, into the 21st centry. Since KLIPS is a patch against the Linux kernel, it makes sense to keep it in git.
recent vim7 articles
Vim7 was recently released, and there have been several very nice articles by Joe ‘Zonker’ Brockmeier. Here is the listing: First look at Vim 7 Vim tips: Using viewports Vim tips: Moving around using marks and jumps Vim tips: Folding fun If you want to see more on vim, read the vim tips on vim.org site.
bootstrapping debian on my sbc
So my [sbc]{tag/sbc} of choice these days is the WRAP 1C-2. This model is powered by a 266Mhz Geode and has 128M of RAM, a CF reader, 1 mini-PCI slot, a serial console and 3 10/100 Mbit NICs. I get mine (I have three now) from Xagyl Communications. Each was about $200. This entry talks about bootstrapping debian onto a CF card.
entropy injection
I was installing openswan on my [sbc]{tag/sbc} router box. The sbc doesn’t have much hardware on it, and what it does have did not contribute to the entropy pool. I have a few boxes around with relatively good entropy (keyboard/mouse input), but there was no way to pass that entropy to the router for RSA key generation. I had to write some code to fix it. Be warned, it’s pretty EVIL… UPDATE: see below about rng-tools.
Adam
Jen gave birth to our baby boy at 1:09 PM April 19th, 2006. Adam was born weighing 8 lb 13 oz (4 kg) and is 22 in (55 cm) long. It was an unexpectedly quick delivery, which was most welcomed by the mom. After spending just over a day at the Civic Hospital, we returned home and are getting to know our Adam. Adam’s gallery page is where you will find some of the first few pictures of Adam… there will be many more to come. As you can see Kelly is thrilled of her new role as the big sister.
converting mp3s to CD
How to convert 22kHz mp3 to a CD playable in a CD player. Not the most spectacular task, but I had to do some digging to figure it out. And I might as well write it down for the next time :)
secure apt-get
Debiean-heads might find it interesting that Joey Hess has produced a detailed SecureApt article on how to use security features of apt-get. The particularly interesting bits are: details about the security levels put into packages examples of how apt-key aught to be used timeline that the debian pgp keys will adhere to problems to be avoided and symptoms you will see if you have ’em links to relevant documentation