Split files with tar
I have a huge 500MB size tar file to upload. and It's took many hour estimate time.
I wish to split to files like mysqldump. The solution is split files with tar.
tar -cML 51200 -f files.tar large_file
-c, --create create a new archive
-L, --tape-length=NUMBER change tape after writing NUMBER x 1024 bytes
-M, --multi-volume create/list/extract multi-volume archive
ionCube PHP Loader on RHEL Server

My work have to use software that requires the ionCube PHP Loader to encode scripts. This instruction is explain "How to install iconCube loader on RHEL4".
- Goto http://www.ioncube.com/loaders.php and download ionCube loader.
ioncube_loaders_lin_x86.tar.gz - upload to server machine and extract
tar -zxvf ioncube_loaders_lin_x86.tar.gz - Copy the 'ioncube-loader-helper.php' and 'ioncube-encoded-file.php' to a directory where you expect encoded files to be working.
cp ./ioncube/ioncube-loader-helper.php /your-www-root/
cp ./ioncube/ioncube-encoded-file.php /your-www-root/ - Access the 'ioncube-loader-helper.php' script from a web server or with a PHP executable. This script can help you to find information about Loader installation.
http://yoursite.com/ioncube-loader-helper.php - Choose the 'run-time loading installation instructions.' option.
The script will try to locate and install the required Loader, and will produce output as it runs.Looking for Loader 'ioncube_loader_lin_5.2.so'
Extensions Dir: /usr/local/php5/lib/php/extensions/current (/usr/local/php5/lib/php/extensions/5.2.8)
Relative Path: /something - add the following line before any other zend_extension lines.
zend_extension = /<path>/ioncube_loader_lin_5.2.sowhere /<path>/ is where you've installed the loader, e.g. /usr/local/php5/lib/php/extensions/5.2.8
If there are no zend_extension lines already, you can put the line at any point in the file. I'm usingzend_extension = /usr/local/php5/lib/php/extensions/5.2.8/ioncube_loader_lin_5.2.so - Copy ioncube_loader_lin_x.x.so to your extension path.
sudo cp ioncube_loader_lin_5.2.so /usr/local/php5/lib/php/extensions/5.2.8/
Finally, restart your web server software for the changes to take effect./etc/init.d/httpd restart
Sendmail service 60 second delay
The problem is our mail sent through ActionMailer takes 60 seconds, and It effect to Task Management System. Coz the system gonna send mail every event that happen. like Create new task, Update task logs.
I google and found cause
sendmail always waits for 60 seconds when your hostname is not a FQHN (fully qualified host name). And It will asume a temporary DNS lookup failure and try again (while actually sending out the mail, strangely enough).
just edit /etc/sysconfig/network HOSTNAME=yourdomain.something
and edit /etc/hosts 999.999.99.99 yourdomain.something and then reboot server. After that Sendmail wil not delay at all.
(I use Fedora core 9 with clean sendmail without config changes.)
IE on Gusty Gibbon
update source list แล้วลง wine ก่อนเลย
พอดีใช้ Gusty Gibbon รู้สึกเหมือนมี package นี้อยู่ใน source list แล้ว เลยไม่ต้องทำอะไร
เอาง่ายๆก็ลงผ่าน Synaptic นั่นแหล่ะ หรือไม่ก็
sudo apt-get install wine cabextract
จากนั้นก็เตรียมตัวลง ies4linux
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
รันตัว install
./ies4linux













