Aug
24
By default ftp command provided in linux doesn't support recursive upload and verbose mode. If you would like to transfer some of files to new location and its contain some of folder, you should use ncftp command to transfer.
# ncftpput -u <remote_username> -p <remote_password> -F -R <remote_hostname> <remote_directory> <local_file>
- -R - Recursive
- -F - Use Passive data connection
ปกติแล้วเวลาย้ายข้อมูลระหว่างลีนุกซ์ผ่าน FTP ถ้าหากเรามีหลายไฟล์ โปรแกรม ftp มาตรฐานที่มากับ linux จะถาม confirm ทุกไฟล์ที่เราต้องการจะย้ายไปที่ไดเรกทอรี่ใหม่ ถ้าหากเราต้องการย้ายข้อมูลจากเซิฟเวอร์หนึ่งไปยังอีกเซิฟเวอร์หนึ่ง อาจจะไม่สะดวกนัก จริงๆมีโปรแกรม ftp อีกตัว ที่สามารถใช้งานได้เหมือนกัน และไม่ต้องคอยตอบคำถาม และยังย้าย directory ได้ด้วย นั่นคือโปรแกรม ncftp
# ncftpput -u <remote_username> -p <remote_password> -F -R
<remote_hostname> <remote_directory> <local_file>
- -R - ย้ายข้อมูลทั้งหมดในไดเรกทอรรี่นั้นๆ
- -F - เหมาะสำหรับเครื่องเซิฟเวอร์ที่อาจจะมีปัญหาเกี่ยวกับ Firewall อันนี้เป็นคำสั่งให้ทำงานแบบ Passive Mode
Posted by Warun Kietduriyakul
Last modified on 2008-08-24 13:54
Aug
24
Got Denial-of-Service? Webboard spamming? Now, we have a tool that can blocked whole country you don't want by simply input to .htaccess file. Visit Blockacountry.com for a script generator. I hope that they will provide autoupdate script in a future or I will do it by myself because IP address may be reassign to another country when the time is going.
อยากบล๊อกคนที่เข้ามาเยี่ยมชมจากประเทศบางประเทศ? ได้เลย ไม่ยาก เข้าไป generate .htaccess มาจากเว็บไซต์นี้ได้เลย หลังจากนั้นก็เอาไปใส่อัพโหลดไปไว้ที่โฟรเดอร์โฮมเพจ เท่านั้นเป็นอันเรียบร้อย เราสามารถเลือกให้บางประเทศเข้ามาชมเว็บเพจเราไม่ได้ดังที่ต้องการ.
Posted by Warun Kietduriyakul
Last modified on 2008-08-24 10:49
Aug
22
If you running foreground process and want that application switch to run as background process, what you needs to do is, press ctrl+z (Process will temporary stopped) then execute `bg`. This command will continue the final tasks in background. I have done this in ubuntu. (Not sure for another operating system).
ถ้าหากมี Process ที่สั่งทำงานอยู่ แต่ว่าต้องการที่จะเปลี่ยนให้โปรเซสนั้นๆย้ายไปทำงานในโหมด Background สิ่งที่จะต้องทำก็คือ กด Ctrl+z โปรแกรมจะหยุดทำงานชั่วคราว หลังจากนั้น สั่ง `bg` โปรแกรมจะเริ่มทำงานต่อในโหมด background.
Reference: Manage Jobs and Processes.
Posted by Warun Kietduriyakul
Not modified
Aug
14
Build from WHMCS -- The Hosting Billing Software does not take full support for other languages except English. You can see that the PDF invoice show incorrect characters. For Thai language who use UTF-8 can use the following patch
whmcs-utf8-thai-patch.zip
Tested with following system
- WHMCS 3.6.2 (Default System Encode: UTF-8)
- Thai language translation file (UTF-8)
- UTF-8 Database (Thai language in database cannot reading)
- TCPDF 4.0.018
- Tahoma fonts (New Compile)
Posted by Warun Kietduriyakul
Last modified on 2008-08-14 11:08
Thu, 28.08.2008 20:28
แวะมาเยี่ยมครับ ท่าทางจะไม่ได ้ไปซะละงานนี้ เนื่องจากเสาร์อา ทิตย์นี้มีทริปกับบริษัทพอดี T_ T