Archives - Show All
- 2009
- 2008
- 2007
-
2006
- December
- November
-
October
-
Linksys NSLU2 and Asterisk PBX system initial setup
10/27/06
So the NSLU2 is flashed with unslung linux firmware, I followed the http://www.nslu2-linux.org/wiki/Unslung/Asterisk and http://www.nslu2-linux.org/wiki/Unslung to initally set up my first open source asterisk pbx system. I tried the softphone xlite from my powerbook to ibook labtop, it did not work -
SpamAssassin Chinese rules
10/26/06
I trimmed some chinese rules from geewhiz to run fast with spamassassin
http://bl0g.blogdns.com/rules/99_geewhizg_mcli_zh.cf
http://bl0g.blogdns.com/rules/50_scores -
Lower end network attached storage - Linksys NSLU2
10/25/06
I got my brand new Linksys NSLU2, yay! I spent half day to read the documentation on http://www.nslu2-linux.org/ and successfully flashed the firmware and boot the box up from external USB Lacie drive
There is some trouble when I try to usling to the external usb drive. everytime when I boot -
Perl Obfuscated code for fun
10/20/06
Today, I played the original came code which print camel picture. http://perlmonks.org/?node=camel+code
I just quckly turned the program shape into a chinese character zhong, and obviously it will print out chinese character zhong :)
Check the code http://bl0g.blogdns.com/code2 -
Perl buffer suffering
10/19/06
Wonder what $| =1 in Perl means? here is a great link to learn Perl buffering
http://perl.plover.com/FAQs/Buffering.html -
Debugging SpamAssassin with timestamp
10/19/06
I just learned from amavisd-new developer Mark I could run command below to check the timestamp of each SA running debugging lines:
su clamav -c 'spamassassin -t -D <test.msg' 2>&1 | perl -MPOSIX -MTime::HiRes -n -e '
BEGIN {$|=1; -
Perl one-liner to split mbox
10/15/06
perl -pe 'BEGIN { $n=1 } open STDOUT, ">$ARGV.$n" and $n++ if /^From /' MailBox
which will split mbox format file MailBox to single email file. there is more one-liner from http://sial.org/howto/perl/one-liner/ -
Running OS X and Windows on Mac Intel
10/11/06
Just got an Macbook to test run OS X and Windows XP SP2. There is tip which may help other users to install Windows:
1. Boot into Mac OS X.
2. In BootCamp Assistant, remove the Windows partition.
3. Reboot per request.
4. In BootCamp Assistant, repartition for Windows.
-
AWSTATS setup on OS X Tiger Server
10/06/06
Setup AWSTATS on OS X Tiger Server is plain easy. Check this link for step by step setup
http://www.afp548.com/article.php?story
But there is one thing bite me - the Apache log format. Apache's default combined log format is like this:
LogFormat "%h %l %u %t \&q -
Use SpamAssassin Message.pm module to fetch email attachment
10/02/06
Here is a little script I wrote to fetch email attachment. If user got spam and forward it as attachment to me, I could use this script to rip the attachment and feeds it to sa-learn, the bayes learning engine of SA.
#!/usr/bin/perl
use strict;
use warnings;
use Mail: -
Re-queueing quarantined spam
10/02/06
I happen to know that one amavisd user misfiltered 10000 emails as spam, and want to release them. How that could be achieved. Here is the relevant discussion link:
http://marc.theaimsgroup.com/?l=amavis-
The following both solutions are that we get mail_id from the quarantined *.gz
-
Linksys NSLU2 and Asterisk PBX system initial setup
- September
- August
- July
- June