Archive for November, 2008

Automatic horizontal scrollbars in Wordpress <code> blocks

Since wrapped lines of code in Wordpress’ <code> blocks are obnoxious, here’s how to make them automagically appear when you run past the end of a line, instead of wrapping and confuzzling things.
Edit your theme’s style.css file. Find the block that starts:
#content code {

}
Inside the braces, add a line somewhere that reads:
overflow: [...]

November 12, 2008 • Posted in: Linux • 1 Comment

Scriptable sendmail via Gmail in Ubuntu 8.04*

*There’s no reason this shouldn’t work in later versions.
The purpose of this setup is to configure Ubuntu Linux so that you can send an email with a single command from a bash terminal. The idea behind this is that once set up to do it, your computer can now actively alert you (or others) to [...]

November 11, 2008 • Posted in: Linux • 3 Comments