April 2007


The ‘Cron’ Command

The cron command starts a process that executes commands
at specified dates and times. Regularly scheduled commands can be
specified according to instructions found in the crontab
files in the directory /var/spool/cron/crontabs. Users can submit
their own crontab files via the crontab command.

The ‘Crontab’ Command

Crontab copies the specified file or standard input if no file is
specified, into a directory that holds all users’ crontabs.

SYNOPSIS:

  • crontab [file]
  • crontab -e [-u username]
  • crontab -r [-u username]
  • crontab -l [-u username]

The -e option edits a copy of the current users’
crontab file or creates an empty file to edit if crontab does not
exist.

The-r option removes a user’s crontab from the crontab
directory.

The -l options lists the crontab file for the invoking
user.

Setting up a Crontab job

A crontab file consists of lines of six fields
each.The fields are separated by spaces or tabs. The first five
are integers that specify the following:

  1. minute (0-59),
  2. hour (0-23),
  3. day of the month (1-31),
  4. month of the year (1-12),
  5. day of the week (0-6 with 0=Sunday).

Each of these patterns may be either an asterisk (meaning
all valid values) or a list of elements separated by commas.
An element is either a number or two numbers separated by a minus
sign ( meaning an inclusive range). Notice the time is in 24 hour
format, 0 is midnight and 13 is one in the
afternoon.

(more…)

motion-trans.gifMotion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed; in other words, it can detect motion.

The program is written in C and is made for the Linux operating system. Motion is a command line based tool whose output can be either jpeg, ppm fies or mpeg video sequences.

Motion is the perfect tool for keeping an eye on your property, keeping only those images that are interesting.

Motion is strictly command line driven and can run as a daemon with a rather small footprint.

Some of motion’s features include:

  • Taking snapshots of movement
  • Watch multiple video devices at the same time
  • Watch multiple inputs on one capture card at the same time
  • Live streaming webcam (using multipart/x-mixed-replace)
  • Real time creation of mpeg movies using libraries from ffmpeg
  • Take automated snapshots on regular intervals
  • Take automated snapshots at irregular intervals using cron
  • Execute external commands when detecting movement (and e.g. send SMS or email)
  • Motion tracking (camera follow motion - special hardware required)
  • Feed events to a MySQL or PostgreSQL database.
  • Feed video back to a video4linux loopback for real time viewing
  • Lots of user contributed related projects with web interfaces etc.
  • User configurable and user defined on screen display.
  • Control via browser (older versions used xml-rpc)
  • Automatic noise and threshold control
  • Motion is a daemon with low CPU consumption and small memory footprint.

There is a document called the Motion Guide which in detail explains the many features and options that motion has. It also contains a step by step installation guide.

Read the description of some of the Technology Used In Motion.

Look at the Download Page for the latest version of motion.

The Motion site also hosts the video loopback device.

For viewers go to the Related Projects page.

If you want to use the tracking stuff you might want to go the Motion Tracking page.

Take a look at some Example Pictures And Movie made with motion.

If you are not sure if your capture device will work with motion look at the Working Devices list.

Authors

Motion was originally written by

  • Jeroen Vreeken

From April 2004 the project is now maintained by

  • Kenneth Jahn Lavrsen

Project website: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome

วันนี้เป็นอีกวันที่กลับมาไม่ทัน เมื่อวานก็ไม่ทัน เลยเกือบจะไม่ได้ดูน้องจำปาแล้ว ผมเองหลังจากไม่ได้ดูละครน้ำเน่าหลังข่าวมาเป็นเวลามากกว่า 20 ปี แต่ก็ต้องมายอมละครเรื่อง “เพลงรักริมฝั่งโขง” ซะงั้น สำหรับผมเอง แม้จะเป็นคนภาคอิสานโดยกำเนิดแต่ก็ไม่ได้สนใจอะไรมากนัก ก็ได้แบกเป้ไปลาวเนี่ยแหละ ทำให้รู้คุณค่าของแผ่นดิน แต่ล่ะตารางนิ้ว วัฒนธรรม การดำรงค์ชีพ มองอีกมุมมันอยู่ไม่ไกลจากผมเลย แต่ผมไม่เคยคิดถึงมัน กลับดิ้นรนหาสิ่งที่เป็นความฝัน แม้มันไม่มีอยู่จริง ถึงจะต้องละทิ้งสิ่งที่เป็นรูปธรรมที่วางอยู่ตรงหน้า คิดแล้วเสียดาย

เข้าเรื่อง ผมเองมีเวลาอยู่กับคอมพิวเตอร์มากกว่าสิ่งใดเสียอีกในแต่ล่ะวัน และทุกๆวัน(จนกว่านะมี ขาว สวย หมวย x ตัวเล็ก ใส่เหล็กดัดฟัน กระโปรงสั้น กระดุมปริ มาแทน(คอมพิวเตอร์)ที่ และคิดว่าเราคงได้เห็น ซีพียูความเร็ว 10 terahertz กระมัง) วันนี้ก็เหมือนเคย ที่ออฟฟิศ ไม่มีทีวี ดูผ่านเน็ตก็ไม่ค่อยสะดวก (คำพูดของผู้ดูแลระบบนะเนี่ย) ช่วงที่เดินทางกลับเนี่ยแหละ ที่ละครเล่น กลับมาก็จะสี่ทุ่มอยู่แล้ว หมดรมณ์เลย

วันนี้ไม่ได้ดูไปสองวันแล้ว เลยแอบไปดูที่ blog ของ Darly ปกติ Darly จะชอบเขียน หรือ ทำวีดีโอมารีวิวบ่อย ก็ไม่ผิดหวังครับ ได้ดูนิดหน่อย ก็พอให้หายคิดถึงน้องจำปาแล้ว จริงมะ เหอๆ


Pleng Ruk Rim Fang Khong Episode 1


Pleng Ruk Rim Fang Khong Episode 1, part 3

ส่วนตอนอื่นๆ ในเว็บ http://saolao.net/ ยังมีอีกเยอะครับ ถ้าสนใจลองเข้าไปดูได้ อ้อ มีเพลงของอะเล็กซานดร้าให้ฟังด้วยนะ นอนล่ะ..
(more…)

ช่วงนี้คงต้องปรับ wordpress ของผมพอสมควร blogนี้คงมีเขียนเกี่ยวกับเพลง หรืออาจจะมีวีดีโอมาเล่นบนนี้บ้าง วันนี้เลยต้องหาตัวเล่นมาไว้เผื่อสักวันได้คลิปดีๆมา จะได้เอามาโชว์ได้ทันเหอๆ ผมเคยใช้ Flash MP3 Player และ Flash Video Player มาบ้าง เลยไม่อยากจะต้องไปใช้สิ่งใหม่ ผมคิดว่า flash ค่อนข้างจะเล่นได้ในหลายๆ แพลตฟอร์ม และคิดไว้แล้วว่าต้องมีคนทำ plugins สำหรับ wordpress ไว้บ้างแล้ว ก็เป็นไปตามคาด ผมไปได้ plugins ที่ชื่อว่า CoolPlayer 9 for WordPress ซึ่งเป็นเว็บไซต์จากทางเมืองจีน หลังจากติดตั้งเสร็จก็ได้ลองทดสอบเลย

ผมขอเอาเพลงของพี่โจ้ วงพอส ที่ผมชื่นชอบล่ะกัน เพลงนี้ร้องใน covernight no.8 วันที่ 21 สิงหาคม 2541 มีเพลงอื่นๆหลายเพลงที่ร้องในคืนนั้น เข้าไปฟังกันเอาเองตามลิ้งค์ล่ะกัน ตอนนี้ผมชอบเพลงนี้ ลองฟังดูครับ

Get the Flash Player to see the wordTube Media Player.


เนื้อเพลงวันใหม่

ห้องที่ดูว่างเปล่า เธอก็ดูเงียบเหงา

จากแววตาเธอ คู่นั้นช่างดูเศร้า ฉันรู้เธอเป็นอะไร

ในมือเธอถือรูปถ่าย หน้าต่างเธอปิดเอาไว้

จะเก็บความทรงจำ แค่นั้นก็คงง่าย แต่เก็บเวลาคงไม่ไหว

*อย่าติดกับวันที่ดีเก่า ๆ อย่าอยู่กับความคุ้นเคยเก่า ๆ

อย่าให้วันคืนที่ดีเก่า ๆ มันทำร้าย

**เปิดดวงใจของเธอค้นหา สิ่งที่เธอนั้นคอยไขว่คว้า

ให้เวลารักษา และพาให้พบ (กับวันใหม่)

ออกไปดูข้างนอก และบอกตัวเองเอาไว้

สิ่งดี ๆ ในชีวิตนี้ต้องมีใหม่ ถ้าใจของเธอนั้นพร้อม

* / **

วันคืนที่แสนดีนั้นก็ควรที่จะจดจำ

แต่รอคอยให้ย้อนคืน คงต้องเจอแต่ความเจ็บช้ำ

** / * / **


เนื้อเพลงจากคุญ i_am_tle

ผมชอบประโยคหนึ่งในเพลงนี้ที่บอกว่า “อย่าติดกับวันที่ดีเก่า ๆ อย่าอยู่กับความคุ้นเคยเก่าๆ อย่าให้วันคืนที่ดีเก่า ๆ มันทำร้าย” คำพูดบางคำถ้ามันดีอยู่แล้วไม่จำเป็นที่เราจะไปแก้ไขมัน และประโยคนี้มันจะไม่ถูกแก้ใขในความทรงจำของผมตลอดไป

ปล. ไม่อกหักไม่รู้หรอก

Host Trackerหลังจากย้ายเว็บเซอเวอร์มาไว้ที่บ้าน โดยใช้งานผ่าน ADSL ความเร็ว 512/256 Kbps จากสุดยอดผู้ให้บริการอย่าง TOT ผมถึงกับอึ้ง เพราะนอกจากจะช้าโคตรๆแล้ว ยังหลุดบ่อยด้วย ผมเลยจำเป็นต้องมีรายงานในเรื่องนี้ ไม่ได้คิดจะเอาไปฟ้อง TOT หรอกครับ มันเป็นสถิติที่ผมเอาไว้ดูเล่น และพิจารณาว่าควรจะตัดสินใจกับเรื่องนี้ยังไง ผมมีตัวเลขที่คิดไว้อยู่ในใจว่า uptime ควรจะอยู่ที่ 95% ถือว่าพอใจแล้ว ถึงจะช้าแต่ขอให้มั่นคง แต่เอาเข้าจริงหลังจากใช้งานมาได้เดือนกว่าๆ ตัวเลข uptime อยู่ที่ 88.22% (วันที่เขียน) ถือว่าแย่มากๆ และสาเหตุ มาจากการเชื่อมต่ออินเตอร์เน็ตทั้งหมด

ข้างต้นเนี่ย ขอบ่นหน่อย แล้วมาคุยกันต่อในเรื่องของ Host Tracker กัน หลายคนคงรู้จักเป็นอย่างดี ส่วนใหญ่ผู้ให้บริการเว็บโอสติ้ง จะใช้บริการของ Host Tracker เพื่อเป็นการตรวจสอบการทำงานของเว็บเซอเวอร์ ว่ายังทำงานดีอยู่หรือเปล่า (ซึ่งจะมีไอคอนแบบนี้ ) การตรวจสอบของ Host Tracker ไม่ได้ตรวจเช็คจากจากระบบคอมพิวเตอร์ของ Host Tracker เพียงระบบเดียว แต่ยังมีเซอเวอร์ของสมาชิกอยู่ทั่วโลก(Hosting Partners) และมีเซอเวอร์ในไทยด้วยคือของ Yourconnect นับรวมทั้งหมดแล้วมีทั้งหมดถึงปัจจุบัน 42 เซอเวอร์กระจายกันอยู่ทั่วทุกมุมโลก ประโยชน์ของการมีหลายเซอเวอร์ในการตรวจเช็ค เราจะได้รู้ว่า มุมไหนของโลกที่มองเห็นเว็บของเราอยู่บ้าง(ขึ้นอยู่กับสถานที่ตั้งของ Hosting Partners) และความเร็วเป็นยังไง ดีกว่าที่เราจะนั่งมองของเราเอง โดยไม่ได้รู้เลยว่าอาจจะมีบางมุมโลกที่ถูกตัดขาด เช่นอาจเกิดจากระบบสื่อสารของประเทศนั้นๆ Host Tracker จะบอกได้และทำรายงานสรุปให้เราตลอด และยังมีระบบการเตือนทางอีเมล หรือถ้าหากใครใช้ Google Talk ก็สามารถเตือนกันสดๆผ่าน Google Talk ได้เลย หรือจะเป็นทาง sms ก็ยังได้ (ไม่ฟรี)tracker.png

หลังจากที่ใช้งานมาช่วงระยะเวลาหนึ่งรู้สึกพอใจและคิดว่าคงมีประโยชน์บ้าง จึงเอามาเล่าสู่กันฟัง ผมเองคงรอดูการปรับปรุง(ได้ข่าวแว่วๆมาจากกอไผ่หลังบ้าน)ของ TOT ในระยะนี้ ไม่รู้จะดีขึ้นหรือเปล่า ทั้งด้านความเร็ว และ การหลุดของ ADSL

ปล. พักนี้อากาศมันร้อน อย่าอารมณ์เสียบ่อยพยายามสาดวาจาเย็นๆเข้าหากัน แล้วจะเห็นว่าโลกนี้น่าอยู่จะตาย

« Previous PageNext Page »