This is similar to my little shell one liner to verify tar archives. Exit status of 0 means the archive is good, anything else means there’s a problem. Most of the problem archives I encountered had a status of 2, but a few 3′s and 9′s as well — see “man unzip” for explanation of status codes. Using a while loop because some of the archive files names have spaces in them, which trips up the for loop:

find . -name "*.zip" | while read f; do unzip -t "$f" &> /dev/null; err="$?"; echo checking "$f"; echo $err "$f" >> zip-check.list; done

Read the rest of this entry…

Let me preface this post with a rant. In retrospect, I feel that getting this netbook with the Poulsbo chipset / Intel GMA500 video was a mistake since it’s been a major PITA. The little form factor has been more annoying than helpful. Should have gone with a larger laptop with a decent Nvidia or ATI video card. There are reasons for why this chipset is such a bitch to live with and sounds like it’s one of those situations where no one is at fault. Fine, but after dumping quite a few hours on this thing since getting it, I frankly just don’t care. As a mere luser, I need a working computer whose video doesn’t keep breaking on every kernel and OS upgrade so I can live my life.

But, wasted hours aside, I just got it working again. I had the nice 1366×768 resolution previously working with Ubuntu 9.04, but it wouldn’t let me turn on Compiz effects. A few days ago, swayed by promise of seemless iPhone 3GS syncing, I upgraded to Ubuntu 10.04, which broke video. Turns out, GMA500 support is not all there yet with Ubuntu 10.04 Lucid and I forgot to research that before upgrading. So then I do a fresh install of Ubuntu 9.10 Karmic and follow the install steps on the Ubuntu Poulsbo Wiki, only to find this did absolutely nothing. Turns out, it’s missing some critical steps. After scouring the web for a while and trying a bunch of settings, finally arrived at a configuration that works. Got the pretty resolution back and even got extra Compiz effects! This thing is a royal pain in the ass, but sure looks nice when it works. Anyway, here’s the config that’s working for me on Dell Mini 10 (aka Inspiron 1010).

Read the rest of this entry…

The following config will reject a message when more than 10 recipients are in the TO: and/or CC: fields.

/etc/postfix/main.cf:

# restrict based on message header content 
header_checks = pcre:/etc/postfix/header_checks

/etc/postfix/header_checks:

/^To:([^@]*@){10,}/	REJECT Sorry, your message has too many recepients.
/^Cc:([^@]*@){10,}/	REJECT Sorry, your message has too many recepients.

Solution based on a post at linuxquestions.org.