Older blog entries for bstpierre (starting at number 63)

Making perl unit tests easier to run in emacs

It’s a hassle to have to switch from emacs to the shell, run unit tests, pick out the failure, switch back to emacs, navigate to the line, forget where you were supposed to go, switch back, etc...

(Click through for full post...)

Syndicated 2011-07-08 00:57:15 from The Daily Build

Make apt-get use an alternate sources.list

Since my company’s product is based on ubuntu, we use apt to distribute upgrades. We don’t normally want customers to pull upgrades from the upstream distribution, so we’ve pruned...

(Click through for full post...)

Syndicated 2011-01-06 16:18:44 from The Daily Build

An Interesting pid File Race

ISC’s dhcpd uses this code to check for an already-running daemon: /* Read previous pid file. */ if ((i = open (path_dhcpd_pid, O_RDONLY)) >= 0) { status = read (i, pbuf, (sizeof pbuf)...

(Click through for full post...)

Syndicated 2010-05-26 16:08:50 from The Daily Build

Using Lenny to Build Jaunty Packages

<shameless_plug> I’m in the middle of putting together packages for the analog call generator my startup is building. </shameless_plug> The process for building debian packages...

(Click through for full post...)

Syndicated 2010-05-13 15:43:13 from The Daily Build

zsh history expansion

Exploring zsh features made me want to figure out some of the history-editing wizardry. (Bash has similar history tricks, I just never bothered to dive too deeply into them.) If you want to...

(Click through for full post...)

Syndicated 2010-02-15 13:59:52 from The Daily Build

Data vs Code

I’ll take an array over a giant switch-case statement any day. The array definition will be more compact and easier to see all at once. Defining actions in an array enforces uniformity. You...

(Click through for full post...)

Syndicated 2010-02-05 16:08:05 from The Daily Build

Set Your zsh Prompt

Since the beginning of time, all the cool kids have had really cool shell prompts. It's a great place to display helpful information, and zsh has features that let you have a flexible, informative,...

(Click through for full post...)

Syndicated 2010-02-01 16:05:13 from The Daily Build

Insist on Automatic Tests

At some point your team is going to be gone. Not all at once (well, maybe, but in that case you won’t care), but over time turnover will completely replace your team. If you are the manager,...

(Click through for full post...)

Syndicated 2010-01-29 19:08:08 from The Daily Build

Make the zsh zle handle “words” correctly

Snippet from my .zshrc: # This controls what the line editor considers a word. By default it # includes '/', which makes it so that when I M-del (attempting to erase # a directory in a path), I erase...

(Click through for full post...)

Syndicated 2010-01-27 15:40:18 from The Daily Build

Moving to zsh

To get started: sudo aptitude install zsh chsh /bin/zsh That’s pretty simple. Of course, you’re not running zsh yet… either logout and log back in or just run zsh at the prompt....

(Click through for full post...)

Syndicated 2010-01-25 15:20:27 from The Daily Build

54 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!