Archive for June, 2007

Windows Mobile 6 Exchange/VPN Woes 

As I mentioned previously, I recently purchased a SmartPhone from T-Mobile. I played around for some time trying to get my VPN to work setup, and no matter what I did, I was unable to connect to anything internal to my work’s network. Most importantly, I couldn’t connect to the inside interface of [...]

T-Mobile Dash 

So I just recently got a new phone and have upgraded to a SmartPhone with Internet access, etc., so that I can check my e-mail from anywhere. I got the T-Mobile Dash, starting playing with it and then found that I could upgrade the OS from Windows Mobile 5 to 6 for free. [...]

Valid return code from system() 

In the past when programming in Perl, and used the system() call or function to run something on the local OS, I would use something like this:
$rc = system($command);
if ($rc){ print “$command returned $rc\n”;}
Recently, I was reviewing someone else’s code and noticed that they did the same thing this way:
system($command);
if (($? >> 8) != [...]

Netmasks (Subnet Masks), CIDR, and Hosts 

table.sample { border-width: 1px 1px 1px 1px; border-spacing: 1px; border-style: solid solid solid solid; border-color: gray gray gray gray; border-collapse: collapse; background-color: white; } table.sample th { border-width: 1px 1px 1px 1px; padding: 2px 2px 2px 2px; border-style: solid solid solid solid; border-color: gray gray gray gray; background-color: white; -moz-border-radius: 0px 0px 0px 0px; [...]

Postfix commands 

Check your queues (quick hack for more then mailq):
for i in active deferred hold incoming; do echo -n $i:; find /var/spool/postfix/$i -type f | wc -l; done
Force queue to re-process mail:
postqueue -c /path/to/postfix/ -f
Rebuild alias database:
postalias /path/to/postfix/aliases
Rebuild transport table:
postmap /path/to/postfix/transport