Bye Bye SUN

Posted February 1st, 2010. Filed under Technology

บังเอิญเข้าเว็บเห็นตัวมาสคอสของ JAVA ทำท่าโบกมือบ๊ายบายข้างโลโก้ Oracle แล้วขำดี เหมือนจะบอกเป็นนัยว่า “ไปอยู่กับ Oracle แล้วเด้อ” :)

Pseudo random with Perl (1)

Posted January 25th, 2010. Filed under Programming

random คืออะไร? random คือการสุ่ม … ก็ไม่ผิด แต่การสุ่มค่าจริงๆ แล้วเป็นเรื่องน่าปวดหัวเพราะมักจะเกิดปัญหาการกระจุกตัวของค่าที่สุ่มได้ ซึ่งการสุ่มที่ดีค่าควรกระจายไปอย่างทั่วถึงและต้องคาดเดาไม่ได้

ในทางคอมพิวเตอร์การสุ่มจริง (True random) ทำได้ยากจึงใช้การสุ่มเทียม (Psuedo random) แทน หลักการคร่าวๆ คือระบุ seed ขึ้นมาตัวนึงเพื่อชี้ไปยังชุดของค่าที่เรียงไว้แล้ว

ถ้ายังไม่กระจ่างลองนึกตามตัวอย่างนี้ครับ

Read the rest of this entry »

onstruct of browser

Posted January 12th, 2010. Filed under Application

เหตุเกิดตอนพยามเข้า google wave ด้วย epiphany (ของ GNOME) แล้วมีหน้าต่างแนะนำเบราว์เซอร์เด้งขึ้นมา…มันไม่มี IE

จำได้ว่าถ้าลง IE แล้วไปตั้งค่า search provider (หรือหน้าอะไรซักหน้าจำไม่ค่อยได้) ทีหลังกูเกิลจะอยู่หน้า 2 ไม่ได้อยู่หน้าแรก

สงสัยคราวนี้พี่กูจะแก้แค้นคืน :p

เปล่า… ไม่ใช่กูหรอก -*-

How to “naew”?

Posted December 28th, 2009. Filed under Uncategorized

12 ข้อทำง่ายๆ ทำได้แนวไปเลย!!!

Read the rest of this entry »

เป็นคุณสมบัติใหม่ของ Firefox 3.6 (ขึ้นไป )  ที่สามารถทำให้หน้าเว็บเอียงตามองศาการเอียงโน้ตบุ๊กได้ แต่ไม่ใช่ว่าทุกเครื่องจะทำได้ ต้องอาศัยปัจจัยอยู่ 2 อย่างคือ

  1. โน้ตบุ๊กต้องมี sensor ตรวจจับการสั่นสะเทือน (Mac Book, Thinkpad)
  2. หน้าเว็บต้องมี Java script ที่ทำงานในส่วนนี้ได้ด้วย

ถ้าใครยังนึกภาพไม่ออกดูวีดีโอนี้ครับ

Read the rest of this entry »

แม่เล่าว่า…

Posted December 16th, 2009. Filed under Uncategorized

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

Read the rest of this entry »

Remote XWindow mode via ssh command

Posted December 5th, 2009. Filed under Linux
This term, I enrolled “Parallel Processing” course. The Lecturer give an account for access the server for laboratory via ssh. Yesterday, I want to remote to the server and edit my program. at that time, I were using command line text editor (nano, vim) but that not be comfortable for me. So, I want a new text editor like gedit but it run on x-window. I can not run in text mode.
I solved problem with -X option of ssh command that can remote and use application running on x-window. The command like below

This term, I enrolled “Parallel Processing” course. The Lecturer gave an account for access the server for laboratory via ssh. Yesterday, I want to remote to the server and edit my program. At that time, I were using command line text editor (nano, vim) but that not be comfortable for me. So, I want a new text editor like gedit but it run on x-window. I can not run in text mode.

I solved problem with -X option of ssh command that can remote and use application running on x-window. The command like below

$ssh -X user@ipaddr/usr/bin/gedit

good job! it ’s work.

Easy to compile and build deb packages

Posted November 23rd, 2009. Filed under Linux Open Sources

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

Read the rest of this entry »

Twidge command line Twitter client

Posted November 16th, 2009. Filed under Open Sources

Twidge เป็นทวิตเตอร์ไคลเอนต์แบบบรรทัดคำสั่ง รันบนลินุกซ์ มีอยู่ใน repository แล้วสามารถ apt-get มาได้เลย

ถ้าจะถามถึงความสะดวกหละก็ ลืมไปได้เลยเพราะต้องพิมพ์อย่างเดียว และต้องจำ options ต่างๆ ของโปรแกรมให้ได้ด้วย

เท่าที่ลองใช้งานดูก็พบข้อบกพร่องเยอะเลยครับ เช่น

Read the rest of this entry »