Technical notes and tips

The idea is that I'll use this page to note things that bit me, and were difficult to figure out. Google will index those tips, and you, the reader, will have some time saved. It's also possible that when I've forgotten the solution to something, I'll be able to look here and find it again.

This documentation is distributed under the GNU Free Documentation License. Please use your common sense, and don't blame me if you shoot yourself in the foot having read something on this tips page. These tips have (probably) worked for me, but might not work for you.

iSync and Motorola V3x

When I transferred my contacts to my new V3x, I found that quite a few of my mobile numbers didn't make it over. Turned out they were classified as "Other"; I went into Address Book and changed the classification to Mobile. Then they went over.

Lighttpd

When using lighttpd on Debian, SSIs will mysteriously not work if the script (included by default from lighttpd.conf) "/usr/share/lighttpd/create-mime.assign.pl" outputs a line for ".shtml" files. My workaround was just dump the output of the script into a file, and the include that file, having edited out the ".shtml" line.

Mailman

Something like this seems to work for me, to get Mailman (from Debian) working with lighttpd.

alias.url +=     (
        "/munin/dyn/" => "/usr/lib/cgi-bin/",
        "/munin/" => "/var/www/munin/",
        "/mailman/" => "/usr/lib/cgi-bin/mailman/",
        "/pipermail/" => "/var/lib/mailman/archives/public/",
        "/images/mailman/" => "/usr/share/images/mailman/",
        "/gallery/" => "/usr/share/gallery/",
)
$HTTP["url"] =~ "^/mailman/" {
        cgi.assign = ( "" => "" )
}

Munin

This snippet seemed to get Munin going with lighttpd on Debian.

alias.url +=     (
        "/munin/dyn/" => "/usr/lib/cgi-bin/",
        "/munin/" => "/var/www/munin/",
)

Python

You can get tab-completion in the builtin CLI by using the PYTHONSTARTUP script here. Not well-known in my experience, but worthwhile; just dump that script into ~/.pyrc and export PYTHONSTARTUP="~/.pyrc"

SSH and X11.app

When SSHing into a machine running newish X11, eg. X.org, you can use "ssh -Y" rather than "ssh -X" to avoid getting Bad Atom errors when trying to run applications. For some reason OpenSSH decides that X.org is trying to do something evil.