« Archives in October, 2005

cPanel – httpd on xxxx failed

httpd failed @ Fri Oct 28 16:02:27 2005. A restart was attempted automagicly.

cPanel needs a spell checker. Automagicly = fix w/ magic

Fun – Fitness studio

Fitness studio – fitness_studio.wmv a cute/funny video

Mike Lazaridis featured on CNN

CNN.com – BlackBerry co-creator a�national icon – Oct 24, 2005: “Mike Lazaridis”

It also mentions UW. Thanks CNN and other news channels for this marketing boost for the school.

Linus Torvalds – Philosophy

“If you’re too commercial,” Torvalds says, “you end up being too shortsighted. You have a ‘this is what we need’ mentality, and you blow everything else off. But you want the commercial side, because commercial forces end up listening to different customers and meeting different needs compared to those doing it just for fun.”

bittorrent downloads in the background

If you want a simpler setup, a GUI-less server that download, store and share files and you can move it to another machine later. You could run BitTorrent (the original client) and setup a secure HTTP to download to another machine.

The following command will continuously scan the current directory for torrent files and adding them. When something is done, you can move the torrent file and its newly-downloaded files to another folder, it will automatically be removed from sharing. Check out other parameters you can do with launchmany-console

nohup launchmany-console –saveas_style 1 –max_upload_rate 600 –display_interval 5 . > torrent.log &

( Older version: nohup btlaunchmany.py –display_interval 5 . > torrent.log & )

Crontab format

*     *     *     *     *  command to be executed
-     -     -     -     -
|     |     |     |     |
|     |     |     |     ------ day of week (0 - 6) (Sunday=0)
|     |     |     -------- month (1 - 12)
|     |     ---------- day of month (1 - 31)
|     ------------ hour (0 - 23)
------------- min (0 - 59)

Redirect crond(pam_unix) syslog messages

If you see too many of these lines:

root@s1 trungson]# tail /var/log/messages
Oct 16 12:36:01 s1 crond(pam_unix)[21821]: session closed for user root

Here is how to redirect it to a more appropriate place

[root@s1 trungson]# more /etc/syslog.conf
...
*.info;mail.none;authpriv.none;cron.none;auth.!=info    /var/log/messages
...
# Log cron stuff, add auth.info to redirect cron logging
cron.*;auth.info              /var/log/cron

Mirrors – Setting Up

Apache
http://www.apache.org/info/how-to-mirror.html
PHP
http://www.php.net/mirroring.php
CentOS
http://www.centos.org/modules/tinycontent/index.php?id=22
PuTTY
http://www.chiark.greenend.org.uk/~sgtatham/putty/mirrors.html
MySQL
http://dev.mysql.com/downloads/how-to-mirror.html
OpenSSL
http://www.openssl.org/source/mirror.html
CPAN
http://www.cpan.org/misc/cpan-faq.html#How_mirror_CPAN
Curl
ProFTPD
LDP
LVS
sudo
KDE

Linux – Change timezone

[root@s5 etc]# cp /etc/localtime /etc/localtime.bkup
[root@s5 etc]# cp /usr/share/zoneinfo/US/Eastern localtime
cp: overwrite `localtime'? y
[root@s5 etc]# date
Sat Oct 15 21:38:52 EDT 2005

Just to be sure it's correct
[root@s5 etc]# rdate -s rdate.darkorb.net

Permission denied XMLHttpRequest.open

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open

Check the URL passed into the XMLHttpRequest.open. It seems the URL has to be on the same host as the current webpage.