The Sourcerer's Apprentice

The adventures of David Heinemann in IT & software development

Text Editor ‘Bloodlines’

| Comments

Following yesterday’s Hacker News discussion on TextMate 2.0, Ruben Schade posted about his text editor “bloodline” - the text editors he has used over the years. I thought I’d post mine too.

Name Platform Notes
Notepad Windows Standard Notepad, with all its flaws.
Notepad++ Windows Finally, syntax highlighting and multiple Undos.
Gvim Windows It took me a while to learn, but has really paid off.
Vim Linux Unlike Windows’ Cmd.exe, the Linux console is pretty effective and great for text editing.

My bloodline isn’t as long as most people’s. I didn’t waste any time in finding the greatest text editor in the universe. :)

Locking Down Ratpoison

| Comments

If you use the Ratpoison window manager, you’ve probably noticed that it doesn’t come with any provisions for locking the screen, unlike full desktop environments such as KDE and Gnome. This tutorial will show you how to use Xlock and XDM to prevent malicious users from rm -rf /ing your drive. :)

Interesting in IT - 2011-08-29

| Comments

Here are some of the interesting pages and blog posts I’ve read this past week. Many of these come from sites like Hacker News, and may not be particularly new, but still useful.

Slackware 13.37 on Eee PC 1000HA

| Comments

Lately I’ve seen a few people visit my website by searching with Slackware & Eee PC-related terms, presumably to see how well Slackware 13.37 runs on netbooks.

Good news: It runs very well. I’ve spent over two months now, using an ASUS Eee PC 1000HA with Slackware 13.37 as my primary computer while my ThinkPad’s technical difficulties are sorted out. It’s been pretty comfortable.

| Comments

Update: Maybe I shouldn’t be reading man pages at 1am, because this script is redundant. Colin Percival, the creator of Tarsnap pointed out in the comments below that one can simply use ’-f *’ to automatically specify all archives when using –print-stats.

I just wrote a small Perl script to print the stats of all my Tarsnap archives. Tarsnap doesn’t seem to have an option to do this easily, so this script builds a command in the format of tarsnap –print-stats –humanize-numbers -f archive1 -f archive2 … -f archiveN.

How to Use Wget to Archive a Blogspot Blog

| Comments

I saw this post by Dr Alexander J Turner a few months ago, and thought it worthwhile to mention here. The author came up with a useful combination of Wget parameters to archive a Google Blogspot/Blogger blog, provided it uses the Archive widget (which displays a list of posts sorted by year, month and title). It works quite well.

The Wget command he uses is:

wget -nc -w 1 -r --random-wait -k -l 2 -p -np -E -H --referer= -e robots=off,,,

His blog post contains a full explanation of the parameters he uses.

| Comments

I often find myself using du -hcd1 and wc -l to count the number of files and folders within a directory and calculate its total disk usage, especially when archiving a website, so I knocked up a small shell script to make it a little easier.