มุมชีวิตจากน้ำท่วม

จากเวลาเดือนกว่าที่น้ำท่วมกรุงเทพฯ ปี 2554 ทำให้เห็นไว้ว่ายามเดือดร้อนจากธรรมชาติ ทุกคนเดือดร้อนหมด เสมอเท่ากัน ธรรมชาิติไม่เลือกใครคนใดคนหนึ่งไม่มีการลำเอียงทุกคนได้รับเท่ากันหมดสิ่งนี้คือคำว่า ธรรมชาติ

Posted in Uncategorized | Leave a comment

ว่าด้วยน้ำ

http://flood.gistda.or.th/

http://fms2.drr.go.th/

http://www.dwr.go.th/report

http://www.hydro-5.com/HD-06/6-PRAKAS.htm

http://water.rid.go.th/flood/plan_ew/plan_ew.html

http://dds.bangkok.go.th/scada/

http://dds.bangkok.go.th/canal/

Posted in Uncategorized | Leave a comment

Time machine 2011

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

Posted in Uncategorized | Tagged | Leave a comment

Paper tiger online.

Paper tiger is a leading company in filing system and cataloging paper.Now it make an online software. So cool but need tester.

Posted in Uncategorized | Leave a comment

ทวิภพ ปี 2554

วันนี้ ทวิภพ ได้ฉายเป็นวันแรกนำแสดงโดยเขมนิจ จามิกรณ์ ในบทของเมนี่.. จากเดิมสิเรียมเป็นคนแสดงเรื่องนี้… ว่าจะไม่ดูแล้วเชียวก็นั่งดูจนจบไปอีกเช่นเดิม

Posted in Uncategorized | Leave a comment

My Love

Posted in Uncategorized | Leave a comment

เจ้าสาวเสมือนจริง

วันนี้ได้เข้าชมเวปไซต์ของ arip บอกว่านักร้องของวงดนตรีญี่ปุ่นมีคู่เต้นเป็นคนเสมือนที่สร้างจากคอมพิวเตอร์ อนาคตอาจจะมีการสั่งแฟนโดยใช้คอมพิวเตอร์เหมือนการสั่งตัดกางเกงในอินเตอร์เนทก็เป็นได้ แล้วอะไรจะเกิดขึ้นเมื่อมีการสั่งเจ้าสาวทางอินเตอร์เนท เมื่อได้รับคำสั่งแต่งตัว แต่งหน้าเจ้าสาวเสร็จ ก็สั่งเบิร์นเจ้าสาวผ่านโรงงานโคลนนิ่งคอยสามสิบวันเจ้าสาวก็
เสร็จพร้อมส่งให้เรา.. เหมือนในหนังเลย

http://www.icenomi.com/oshimen/index.html

Posted in Uncategorized | Leave a comment

:ซึ้งมาก เศร้า อบอุ่น

Posted in Uncategorized | Leave a comment

Tips ใหม่ สำหรับ squid

เก็บไว้กันลืม

http://www.linuxthai.org/forum/index.php?topic=15338.0

ลง clearOs นานวันเข้าจะช้า

ก็คือ แก้ไขไฟล์ /etc/init.d/squid ครับ
โดยเพิ่มคำสั่ง ulimit -HSn 16384 เข้าไปครับ เช่น

ตัวอย่างไฟล์ /etc/init.d/squid

#!/bin/bash
# squid      This shell script takes care of starting and stopping
#      Squid Internet Object Cache
#
# chkconfig: – 90 25
# description: Squid – Internet Object Cache. Internet object caching is \
#    a way to store requested Internet objects (i.e., data available \
#    via the HTTP, FTP, and gopher protocols) on a system closer to the \
#   requesting site than to the source. Web browsers can then use the \
#   local Squid cache as a proxy HTTP server, reducing access time as \
#   well as bandwidth consumption.
# pidfile: /var/run/squid.pid
# config: /etc/squid/squid.conf

ulimit -HSn 16384

PATH=/usr/bin:/sbin:/bin:/usr/sbin
export PATH

แบบนี้อ่ะครับ


จุดสังเกต จากไฟล์ log : cache.log

ก่อนที่จะทำการปรับ ulimit

2010/09/16 15:45:22| Starting Squid Cache version 2.6.STABLE21 for i686-redhat-linux-gnu…
2010/09/16 15:45:22| Process ID 3464
2010/09/16 15:45:22| With 1024 file descriptors available
2010/09/16 15:45:22| Using epoll for the IO loop

พอใช้งานไปสักพัก และ user มีการใช้งานมากขึ้น ใน cache.log จะขึ้นมาว่า

2010/09/16 15:49:47| WARNING! Your cache is running out of filedescriptors
2010/09/16 15:50:03| WARNING! Your cache is running out of filedescriptors
2010/09/16 15:50:19| WARNING! Your cache is running out of filedescriptors

และจะทำให้ การเข้า web อืด ช้า มาก แทบจะเข้าไม่ได้ ก็เลย Restart SQUID ไป ก็เข้าได้ แต่สักพัก มันก็วนมาเป็นอาการเดิม

แต่หลังจากทำการปรับ ulimit

2010/09/17 00:25:29| Starting Squid Cache version 2.6.STABLE21 for i686-redhat-linux-gnu…
2010/09/17 00:25:29| Process ID 1799
2010/09/17 00:25:29| With 16384 file descriptors available
2010/09/17 00:25:29| Using epoll for the IO loop

ก็จะไม่มีปัญหาอีกและ และยังสามารถรับ Connection ที่มากๆได้


ใน SQUID 2.6 จะเป็นคำสั่ง
max_open_disk_fds 0 เลข 0 ก็คือ ไม่จำกัดในการเปิดไฟล์ ซึ่งค่านี้จะขึ้นอยู่กับ ulimit

ใน SQUID 2.7 จะเป็นคำสั่ง
max_filedesc 65536 เลข 65536 ก็คือ จำนวนไฟล์ที่ Squid สามารถเปิดได้สูงสุด ซึ่งจะใส่มากหรือน้อยก็ได้ แต่ มันจะเปิดไฟล์ได้ไม่มากกว่าที่กำหนดไว้ใน ulimit

ใน SQUID 3 จะเป็นคำสั่ง
max_filedescriptors 65536 เลข 65536 ก็คือ จำนวนไฟล์ที่ Squid สามารถเปิดได้สูงสุด ซึ่งจะใส่มากหรือน้อยก็ได้ แต่ มันจะเปิดไฟล์ได้ไม่มากกว่าที่กำหนดไว้ใน ulimit

การเพิ่มการอ่าน-เขียนไฟล์ให้กับระบบ โดยค่าปกติแล้ว จะอยู่ที่ 1024 ซึ่งก็คือ ทุก User สามารถเปิดไฟล์ได้สูงสุดแค่ 1024 ไฟล์
ให้ทำการแก้ไขไฟล์ /etc/security/limits.conf

โดยการเพิ่ม
*   -   nofile   65536
เยี่ยมมาก

Posted in Uncategorized | Leave a comment

How about my hearth?

ช่วงนี้แปลกใจมาก ใจหวั่นไหว เมื่อเห็นสาวหน้าตาดี
แต่ความเจ็บปวดก็ตามมาทันใด ทำไมเราอยู่เหงาคนเดียวแบบนี้

Posted in Uncategorized | Leave a comment