Skip to content
Archive of posts filed under the misc tech category.

<3 sed

I wrote a fun sed script today: sed -E -n -e ‘:t ; s/(.{21})(.*)/\\bf\{\1\}\n\2/ ; p ; s/\\bf\{(.*)\}\n.*/\1/ ; h ; :q { n ; G ; s/(.{21})(.*)\n\1/\2/ ; tp ; s/(.+)\n.*/\1/ ; bt} ; :p { P ; bq }’ Short, but effective. Can you figure out what it does? (solution after the break)

Link: PHP sucks

One of my co-workers wrote up this gem on why PHP sucks. I don’t agree with his points (having a “development server” isn’t an important or even particularly useful feature of a framework, much less a language; prepared statements aren’t the pinnacle of SQL), but he does do a good job of showing off some [...]

My Storage Problem

Storage is cheap, or so we’re told. Amazon will sell me storage for $0.055/GB/month in the cloud; 3.5″ hard drives are hovering around $0.06/GB. However, my laptop has a little 250GB SATA drive that is (a) slow and (b) getting full. So I desire to replace it with a fast little SSD. But that raises [...]

sietchtabr reboot

I have a VM slice that I use to run DNS, a bzflag server, and a few other incidental things. This is what I see on it right now: % uptime 12:05:13 up 450 days, 15:17, 5 users, load average: 1.93, 1.35, 0.60 It’s currently running Debian lenny, but I decided that I wanted to [...]

Firefox 4 and Vimperator 3

I’ve been using Google Chrome’s dev channel for the past year or so as my primary browser, but between some questionable aesthetic decisions and Chrome’s tendency to segfault every hour or so for the last few dev releases, I decided that it’s time to give up on the faster browser in exchange for the usable [...]