Skip to navigation

Archive for June, 2007

Switching e-mail “From:” line on the fly in mutt

Wednesday, June 27th, 2007

Having trouble reconciling your multiple e-mail personalities? Mutt’s reply-hook and send2-hook are your friends for most cases. For switching on the fly, I use Trevor Parson’s method of defining macros in the .muttrc.

Backslashes in WordPress

Monday, June 25th, 2007

WordPress, the software I use to write this blog, removes backslashes from posts, which is more than annoying for code examples. For me, this solution seems to work: Turn off the visual editor for all users. Go to Users → Edit user → Your Profile, and untick “Use the visual editor when writing”. When writing […]

Sed example 2

Monday, June 25th, 2007

Replacing whitespace, lifted directly from the handy collection of sed one-liners at Sourceforge: Delete all leading whitespace from line (tabs and spaces): sed ‘s/^[ \t]*//’ Delete whitespace at end of line: sed ‘s/[ \t]*$//’ Delete leading and trailing whitespace: sed ‘s/^[ \t]*//;s/[ \t]*$//’

Managing references with CiteULike

Monday, June 11th, 2007

I’ve just set up an acount with to keep track of papers. Speaking from my first impressions, here are some advantages and disadvantages: Advantages: Clear and intuitive layout Can import and export BibTeX references. Can export EndNote and RSS. Lets you manually edit BibTeX citation keys (unlike Connotea). Lets you upload a personal .pdf […]

Installing Google Earth on Linux (Xubuntu 6.06)

Friday, June 1st, 2007

Google Earth is finally available for Linux — nice. Here’s how to install: wget You’ll see the download progress. When it’s finished, make it executable and run it: chmod 744 GoogleEarthLinux.bin ./GoogleEarthLinux.bin This asks you to agree to the License Agreement, then to confirm the installation directory. I changed this to /home/mpromber/bin/, and then […]