On Packaging Python

I’d love if there was a language-neutral library installation and management tool that really worked. Linux system package managers are absolutely not that tool; frankly it is absurd to even consider them as an alternative. So for now we do our best in our respective language communities. If we’re going to move forward, we’ll have to acknowledge what’s come before, and the reasoning for it.
A Few Corrections To “On Packaging” - Ian Bicking

I disagree with him so much I don't know where to start. Operating system packages are the best way to install anything on nice systems. Python is not 'special' in this regard, there's no reason not to use operating system packages.

I spent a couple hours a few months ago making it easier, and I should return to that project and get more done on it, at the moment it's far to pypi-centric.

Oh, and if someone could fix Python Issue 1533164 for Fedora 10, that'd be great too. :)


Mairix and Mutt for Mail

After a long time of using webmail and things, I've finally gotten around to hosting my mail locally on my computer.

Keeping with the 'search not sort' philosophy of mail, I have set up a system where when I get email (using 'getmail' to download it via pop from my email hosting) I deliver the email to two places. One is an archive (named for the day it was received on) and the other is an Inbox.

When I read email in the inbox, I delete it. The archive is always there.

I have a mairixrc configured to index all my archive. Unfortunately the globbing for mairix doesn't seem to work for subdirectories, so I have all my archives in yyyymmdd named folders instead of yyyy/mm/dd folders. This way I can say maildir=Maildir/Archive/*.

Now that I have my email sorted like this, and mairix is indexing it (on a cronjob), I can search it. I wrote a little script to search my email. The idea is that I can select some text and click a button on my toolbar, or I can hit a button my toolbar and enter some text into a search prompt, then mutt will spawn pointed at a folder containing my search results.

Here is the one that prompts for input:

selection=$(Xdialog --inputbox "Search For?" 18 45 2>&1)
# exit if Xdialog had a nonzero exit.
[ $? -ne 0 ] && exit "Okay, nevermind"

echo Searching for $selection
mkdir -p $searchdir
mairix -o $searchdir "$selection"
mutt -f $searchdir
rm -rf $searchdir

The one that uses the xclipboard just does selection=$(xclip -o) instead of the Xdialog dance.


Xrandr for dual head on IBM X200s

I tried to use xrandr on my new laptop (IBM X200s) and I had an error.
$ xrandr --output VGA --left-of LVDS
xrandr: screen cannot be larger than 1280x1280 (desired size 2960x1024)
It turns out that Fedora 10 has an X that doesn't need an xorg.conf, and therefore doesn't have one, so it's hard to put in the fix for this, which is putting in a Virtual line in the Screen.

This is what I had to put in xorg.conf to allow me to do dual head. Bear in mind that if you do this, then DRI will not work, and thus there will be no 3D acceleration.
Section "Device"
Identifier "Videocard0"
Driver "intel"

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
SubSection "Display"
Virtual 2960 1050
And that was all that was needed. I can now use my external monitor via xrandr.