N..o..N..g…………LISA 2008-12-01 03:29:00
November 30, 2008I went to a temple today!
I went to a temple today!
และแล้ว.. ก็กำลังจะต้องเสียเงิน เพราะว่าเอาน้องไวโอ้ไปตรวจแล้ว ได้รับคำตอบว่า Mainboard เสีย
ซึ่งก็หมายความว่าซื้อเครื่องใหม่ได้เลย เพราะราคา Mainboard จะแพงมาก ไม่คุ้มกับการเปลี่ยน
เดี๋ยวคงหาโอกาสเดินดูไปเรื่อยๆ ลองตั้ง Spec ในใจไว้ดีกว่า
- เบา ( ไม่น่าเกิน 2 กิโล )
- สามารถลง WinXP ได้ พร้อม Driver ครบ
- จอใหญ่กว่า 13 นิ้ว
หลังจากเปิดดูจาก internet ก็ได้มาสองรุ่นคือ Vaio SR Series กับ Dell XPS M1330
ไว้ค่อยไปสำรวจเพิ่มที่พันทิพย์ดีกว่า
อ่านบล็อกคุณ gibbo แล้วอยากลองทำดูบ้าง… จริงๆ คืออยากทำธีมเองนานแล้ว แต่ไม่รู้จะเริ่มยังไง เพิ่งเคยเจอ tutorial แบบ step-by-step ขนาดนี้ เลยลองทำตามดู
ผลที่ได้ก็อย่างที่เห็นครับ ยังห่างไกลจากคำว่าสมบูรณ์แบบ แต่ก็ถือว่าเป็นก้าวแรกที่ยิ่งใหญ่สำหรับผมเลยล่ะ
ไว้จะมาอัพเดตความคืบหน้าเป็นระยะๆ หุหุ ^^
ปล. 2008 resolutions สำเร็จไปอีก 1 เรื่อง
มีคนชี้ประเด็นเรื่อง พระราชกำหนด แก้ไขเพิ่มเติมประมวลกฎหมายอาญา พ.ศ.2546 ตามข้างล่างนี้
มาตรา 135/1 ผู้ใดกระทำการอันเป็นความผิดอาญาดังต่อไปนี้
1. ใช้กำลังประทุษร้าย หรือกระทำการใดอันก่อให้เกิดอันตรายต่อชีวิต หรืออันตรายอย่างร้ายแรงต่อร่างกาย หรือเสรีภาพของบุคคลใดๆ
2. กระทำการใดอันก่อให้เกิดความเสียหายอย่างร้ายแรงแก่ระบบการขนส่งสาธารณะ ระบบโทรคมนาคม หรือโครงสร้างพื้นฐานอันเป็นประโยชน์สาธารณะ
3. การกระทำการใดอันก่อให้เกิดความเสียหายแก่ทรัพย์สินของรัฐหนึ่งรัฐใด หรือของบุคคลใดหรือต่อสิ่งแวดล้อม อันก่อให้เกิดหรือน่าจะก่อให้เกิดความเสียหายทางเศรษฐกิจอย่างสำคัญ
ถ้าการกระทำนั้นได้กระทำโดยมีความมุ่งหมายเพื่อขู่เข็ญหรือ บังคับรัฐบาลไทย รัฐบาลต่างประเทศ หรือองค์การระหว่างประเทศ ให้กระทำหรือไม่กระทำการใดอันจะก่อให้เกิดความเสียหายอย่างร้ายแรง หรือเพื่อสร้างความปั่นป่วนเพื่อให้เกิดความหวาดกลัวในหมู่ประชาชน ผู้นั้นกระทำความผิดฐานก่อการร้าย ต้องระวางโทษประหารชีวิต จำคุกตลอดชีวิต หรือจำคุกตั้งแต่สามปีถึงยี่สิบปี และปรับตั้งแต่หกหมื่นบาทถึงหนึ่งล้านบาท
การกระทำในการเดินขบวน ชุมนุม ประท้วง โต้แย้ง หรือเคลื่อนไหวเพื่อเรียกร้องให้รัฐช่วยเหลือหรือให้ได้รับความเป็นธรรมอัน เป็นการใช้เสรีภาพตามรัฐธรรมนูญ ไม่เป็นการกระทำความผิดฐานก่อการร้าย
มีใครคิดว่าที่พันธมิตรกำลังทำกันอยู่นี้เป็น “การใช้เสรีภาพตามรัฐธรรมนูญ” บ้าง?
แต่จะเอาอะไรกับประเทศนี้ เรื่องสาหัสกว่านี้อย่างเช่นเอารถถังออกมาวิ่ง ฉีกรัฐธรรมนูญ เค้ายังทำกันได้หน้าตาเฉย จะไปหวังให้เคารพกฎหมายแบบนี้คงไม่มีทาง
Something is freaking wrong in Thailand now.
I can’t believe Thai people can be this separated. (Aren’t we in the land of smile??)
My dad refused to talk to me on the phone because he knows that I’m against the closure of 2 international airports by PAD while he believes that PAD has no choice and it won’t take more than a few days (FYI, this has been 3 days already).
Just to be clear, I’m not against SOME of PAD’s goal. I’m totally against PAD’s series of actions to reach its goal. I’m definitely against PAD’s attitude toward democracy — people who have different opinions must be on different side. Why I can’t be on the same side with my dad?
I’m so frustrated…


ไปติดอยู่ภูเก็ตซะนาน คิดถึงบ้านแทบแย่
เฮ้อ อย่าให้พูดเลย … เรื่องที่กลับไม่ได้เนี่ย
เห็นข่าว รวมรายชื่อซอฟต์แวร์ทดแทน 46 ตัว ที่บล็อกนั้น และตามไปดูต่อใน Lifehacker แล้วเกิดอาการคัน กลับมาลองคลิก Start Menu ของตัวเองดูบ้าง ว่ามีโปรแกรมไหนน่าแนะนำอีก ได้ความดังนี้
เท่านี้ก่อน จริงๆ มีที่ดาวน์โหลดมาเก็บไว้แต่ไม่ได้ลงอีกเยอะเหมือนกัน แต่เท่านี้ก็น่าจะพอเห็นแล้วว่าการใช้ชีวิตบนวินโดวส์แบบไม่เถื่อน มันไม่ยากเลย
งาน Bangkok 100 Rock Festival ที่กำลังจะจัดขึ้นสุดสัปดาห์นี้ โดนยกเลิกไปเรียบร้อยแล้ว โอกาสที่จะได้ดูวงอย่าง Manic Street Preachers หรือ Ash ตัวเป็นๆ บนเวที ก็สลายไปกับสายลม

ภาพจากเว็บ Bangkok 100 Rock
พวกคนต่างชาติคงสงสัยว่ามันเกิดอะไรขึ้น สำนักข่าวต่างประเทศเค้าเลยรายงานสรุปไว้ค่อนข้างครบถ้วน
มีประโยคเด็ดจากบทความที่สอง แนะนำให้อ่านเต็มๆ ทั้งสองบทความ เพราะมีรายละเอียดที่ไม่สามารถลงในสื่อไทยได้
One seasoned journalist summed it up nicely: “Covering this crisis is like trying to explain the unexplainable, without mentioning the unmentionable.”
ช่วงเวลาหลายวันที่ผ่านมานี้ เหมือนจะเห็นหลายคนเริ่มหมดความอดทน อยากให้ความวุ่นวายนี้จบกันไปเสียที ผมได้ยินได้ฟังทีไรก็นึกถึงเพลงของ Manics ที่ไม่มีโอกาสได้ฟังสดๆ ท่อนที่ว่า “If you tolerate this then your children will be next”
ถ้าเราเพิกเฉยกับการสร้างความวุ่นวาย การไม่ยอมรับผลการเลือกตั้ง แบบที่กลุ่มพันธมิตรฯ กำลังทำอยู่ในตอนนี้ วันข้างหน้า ลูกหลานของเราเองนี่แหละ ที่ต้องแบกรับความเสียหายของระบบสังคมที่เราปล่อยให้มันพังลงไปแบบนี้
เซ็งเป็ด…..เผาบ้านไล่ปลวก ปลวกตาย แต่บ้านก็วายวอด
งาน Bangkok 100 Rock Festival ที่กำลังจะจัดขึ้นสุดสัปดาห์นี้ โดนยกเลิกไปเรียบร้อยแล้ว โอกาสที่จะได้ดูวงอย่าง Manic Street Preachers หรือ Ash ตัวเป็นๆ บนเวที ก็สลายไปกับสายลม

ภาพจากเว็บ Bangkok 100 Rock
พวกคนต่างชาติคงสงสัยว่ามันเกิดอะไรขึ้น สำนักข่าวต่างประเทศเค้าเลยรายงานสรุปไว้ค่อนข้างครบถ้วน
มีประโยคเด็ดจากบทความที่สอง แนะนำให้อ่านเต็มๆ ทั้งสองบทความ เพราะมีรายละเอียดที่ไม่สามารถลงในสื่อไทยได้
One seasoned journalist summed it up nicely: “Covering this crisis is like trying to explain the unexplainable, without mentioning the unmentionable.”
ช่วงเวลาหลายวันที่ผ่านมานี้ เหมือนจะเห็นหลายคนเริ่มหมดความอดทน อยากให้ความวุ่นวายนี้จบกันไปเสียที ผมได้ยินได้ฟังทีไรก็นึกถึงเพลงของ Manics ที่ไม่มีโอกาสได้ฟังสดๆ ท่อนที่ว่า “If you tolerate this then your children will be next”
ถ้าเราเพิกเฉยกับการสร้างความวุ่นวาย การไม่ยอมรับผลการเลือกตั้ง แบบที่กลุ่มพันธมิตรฯ กำลังทำอยู่ในตอนนี้ วันข้างหน้า ลูกหลานของเราเองนี่แหละ ที่ต้องแบกรับความเสียหายของระบบสังคมที่เราปล่อยให้มันพังลงไปแบบนี้
&referrer=)

การเมืองใหม่ = เล่นนอกสภา ปาระเบิด ยึดทีวี ปิดสนามบิน เอาประเทศชาติเป็นตัวประกัน
ถ้ารัฐบาลยุบสภา/ลาออก เพราะโดนเรียกร้องด้วยวิธีนี้ ต่อไปจะเกิดมาตรฐานใหม่ ไม่ว่าใครมาเป็นรัฐบาล จะโดนฝ่ายตรงข้ามจัดม๊อบไปยึดสนามบินเรียกร้องอะไรก็ได้ โดยอ้างว่ารัฐบาลซื้อเสียงเข้ามา ไม่มีความชอบธรรม
ถ้ารัฐบาลลุยก็มีคนตาย มีปัญหา เสียภาพลักษณ์ประเทศอยู่ดี
ถ้ารัฐบาลซื้อเวลาไปเรื่อยๆ พธม.อยู่โยงสนามบินไปเรื่อยๆ ประเทศยิ่งเสียหาย กฏหมายยิ่งไม่ศักสิทธิ์
ประเทศอื่นมีข่าวปลดคนงานอยู่ทุกวัน เศรษฐกิจมีปัญหา พี่ไทยเอาแต่กู้ชาติ (ที่พยายามทำให้ล่มกันเองด้วยฝีมือคนไม่กี่คน)
ใครชนะ เห็นแต่เสียทุกฝ่าย?
เปรียบการยึดสนามบิน เหมือนการก่อการร้ายจี้ตัวประกัน เพื่อเรียกร้องแบ่งแยกดินแดน เสียหายทุกฝ่าย ไม่มีใครชนะ ทำไปทำไม
edit @ 26 Nov 2008 22:00:21 by AccBLue
http://www.parachutebrand.com/en/specialtips.php
Poor Thailand…
special parashoot powder..love it!
So funny.. I like to talk randomly..
If you don’t know what it is, why you ask for one?
เทศการถ่ายรูปกับต้นคริสมาสต์มาแล้นนน โย่ะ… ว่าแต่ว่า จะถ่ายยังไงให้มันเอาคนไปใส่ไว้แล้วสวยได้ละเนี่ย สงสัยจริงๆเลยย โย่ะ.. คิดได้เมื่อไหร่จะกลับไปเก็บละกันนะ (ว่าแล้วก็อยากได้กล้องใหม่จริงๆเลย)


ครั้งสุดท้ายมากี่ที่แล้ว
ฤดูจิบเบียร์มาถึงแล้ว บรรดาลานเบียร์ทั้งหลายเปิดให้บริการกันตั้งแต่ต้นเดือนที่ผ่านมา สถานที่ยอดฮิตอย่างที่ Central World ก็ยังคนแน่นเหมือนเดิม แล้วยังมีเปิดที่ใหม่บนตึกเซ็นทรัล ชั้น 18 ด้วย เป็นลานของ Heineken Greenspace กินเบียร์บนยอดตึก วิวดี ลมเย็น บรรยากาศเยี่ยม
ที่แย่คือ คนเยอะมาก! ไปถึงตอนทุ่มครึ่งก็ไม่มีโต๊ะแล้ว และราคาเบียร์ก็ดันสูงตามสถานที่ไปด้วย Heineken ขวดเล็ก ขวดละ 100, สั่งเป็นหลอด หลอดละ 600 !
ในเมื่อไม่มีที่นั่ง ก็เลยลงมาที่ลานด้านหน้าห้างแทน มีหลายยี่ห้อให้เลือก ตั้งแต่ Tiger, Federbrau, สิงห์ (+ลีโอ +Asahi ในที่เดียว) แล้วก็ช้าง คนค่อนข้างแน่นทุกยี่ห้อ เดินสำรวจดูแล้วก็ตัดสินใจนั่งที่เบียร์สิงห์
นั่งไปได้สักพักถึงรู้ว่าจะมีคอนเสิร์ตจากวง nologo ด้วย
หน้าเวทีมีสาวๆ มายืนออถ่ายรูป ถ่ายคลิปโดมอยู่หน้าเวทีกันเพียบ
มีคลิปถ่ายมาด้วยเล็กน้อย (คร่ึงเพลง) เพิ่งจะรู้ว่า nologo เอาเพลง กลัว มาคัฟเวอร์ใหม่ด้วย
เมื่อสักอาทิตย์ที่แล้วสังเกตได้ว่า น้องไวโอ้ของเราไม่ยอมชาร์จแบตเตอรี่ ก็เลยคิดว่าแบตเสื่อม
ทีนี่เลยไปเอาแบตของคนอื่นมาลอง แต่กลับกลายเป็นว่า… ก็ไม่ยอมชาร์จเหมือมเดิม
สรุปได้ว่าระบบชาร์จไฟแบตเตอรี่ของน้องไวโอ้มีปัญหาซะแล้ว ToT
คาดว่าอาทิตย์หน้าคงได้เอาไปให้ที่ศูนย์ดูว่าเสียตรงไหน
ไม่รู้ว่าจะซ่อมได้ไหม ( ในราคาถูกๆ ) เพราะไม่มีประกันแล้ว ถ้าซ่อมแพง คงต้องยอมแพ้
-___-”
ฤดูจิบเบียร์มาถึงแล้ว บรรดาลานเบียร์ทั้งหลายเปิดให้บริการกันตั้งแต่ต้นเดือนที่ผ่านมา สถานที่ยอดฮิตอย่างที่ Central World ก็ยังคนแน่นเหมือนเดิม แล้วยังมีเปิดที่ใหม่บนตึกเซ็นทรัล ชั้น 18 ด้วย เป็นลานของ Heineken Greenspace กินเบียร์บนยอดตึก วิวดี ลมเย็น บรรยากาศเยี่ยม
ที่แย่คือ คนเยอะมาก! ไปถึงตอนทุ่มครึ่งก็ไม่มีโต๊ะแล้ว และราคาเบียร์ก็ดันสูงตามสถานที่ไปด้วย Heineken ขวดเล็ก ขวดละ 100, สั่งเป็นหลอด หลอดละ 600 !
ในเมื่อไม่มีที่นั่ง ก็เลยลงมาที่ลานด้านหน้าห้างแทน มีหลายยี่ห้อให้เลือก ตั้งแต่ Tiger, Federbrau, สิงห์ (+ลีโอ +Asahi ในที่เดียว) แล้วก็ช้าง คนค่อนข้างแน่นทุกยี่ห้อ เดินสำรวจดูแล้วก็ตัดสินใจนั่งที่เบียร์สิงห์
นั่งไปได้สักพักถึงรู้ว่าจะมีคอนเสิร์ตจากวง nologo ด้วย
หน้าเวทีมีสาวๆ มายืนออถ่ายรูป ถ่ายคลิปโดมอยู่หน้าเวทีกันเพียบ
มีคลิปถ่ายมาด้วยเล็กน้อย (คร่ึงเพลง) เพิ่งจะรู้ว่า nologo เอาเพลง กลัว มาคัฟเวอร์ใหม่ด้วย
http://en.wikipedia.org/wiki/Comrades:_Almost_a_Love_Story
ในที่สุด Thumbdrive ก็สามารถเก็บ DVD หนึ่งแผ่นได้แล้ว
เลยตกลงปลงใจซื้อมาใช้ ราคายอมรับได้ 8G แค่ 530 บาท
โลกแห่งความจุนี่มันก้าวไปเร็วจริงๆเนอะ
I posted my slides on my web as a pptx file a few weeks ago. Suddenly after that, students gave some comment that when they downloaded the file, the file came as .zip. Even though the file on the server is not zipped and is name exactly as .pptx. Of course, I have tested my upload, but only on Firefox, which definitely has no problem. From the student comment, I tried it on IE and managed to duplicate the error. My first thought is that it must be something about the MIME type. The problem is I don’t know the correct mime type of the pptx file.
Googling around leads me to this post on Drupal website. In short, I have to add these lines to /etc/mime.types so that Apache sends the appropriate MIME type to IE7. I wonder why IE bothers to change the file extension after all.
application/vnd.ms-word.document.macroEnabled.12 docm
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.ms-powerpoint.template.macroEnabled.12 potm
application/vnd.openxmlformats-officedocument.presentationml.template potx
application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
application/vnd.ms-excel.addin.macroEnabled.12 xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/vnd.ms-excel.template.macroEnabled.12 xltm
application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
Anybody could notice that there are at least two urls that direct to this page. Originally, I registered for http://www.nattee.net/ and http://our.obor.us/. Both works well thanks to Drupal site configuration method. Drupal use name based resolution. All I have to do is to edit the setting.php to point to the same database for both of the name. Users can access my site using any of these urls and drupal simply direct it to the same place (because all information is stored in the database).
The problem started when I was trying to use off-site module, e.g., Google Analytic, reCAPTCHA or mollom. These APIs require some security measurement. The APIs are available for the registered site only and they all adopt the name based identification. The method they adopt is that the RSA key is provided to the site owner and the site must supply the key when communicating with the APIs providers. Different keys are issued for different host name. In short, each call of this APIs must come from the correct URL.
The problem is that the module from drupal that access these API does not allow me to authenticate with the API using different certificate for different host name. This is definitely not the bug of drupal because what I did in the first place is a workaround, not a recommended way. I personally says that the two urls use the same database which is originally intended to be used for single url.
Originally, I wish to solve the problem by redirecting anything from http://our.obor.us/ to http://www.nattee.net/. The problem is that GoDaddy won’t allow so, (they actually have this option but when I turned it on, nothing happens). For about a year after I adopt reCAPTCHA, nobody can post comment on http://our.obor.us/.
Now, it came across my mind that mod_rewrite would solve the problem. mod_rewrite is an apache module rewrite the name of the url, perfectly what I want. After reading some document, all I need to do is to put these two lines on the .htaccess
RewriteCond %{HTTP_HOST} ^our\.obor\.us$ [NC]
RewriteRule ^(.*)$ http://www.nattee.net/$1 [L,R=301]
The first line simply matches the content of HTTP_POST variable with our.obor.us (using regular expression) as a first token. Then [NC] flag indicates that case is irrelevant. The second line simply match everything after the host name and prefixes it with http://www.nattee.net/. The $1 is back reference to the first line and [L,R=301] means that this line is the last rule to apply and apache should send the redirect command to the client.
That’s all.
วันก่อนไปเดินงาน Commart ได้ไปลูบๆ คลำๆ เจ้าตัว Dell mini 12 ที่วางขายอยู่ในงาน เห็นค่าตัวแว้บๆ ที่ 21,900 (ยังไม่ VAT) ท่าทางน่าสนใจดี เพราะจุดเด่นที่เจ้า Dell mini 12 ตัวนี้ต่างจาก Netbook ยี่ห้ออื่นคือว่ามันมีจอขนาด 12″ ที่ความละเอียด 1280×800 ! เทียบกับ Netbook ยี่ห้ออื่น (อย่างเช่น Acer Aspire One ที่เคยใช้) ส่วนใหญ่จะมีจอความละเอียดไม่เกิน 1024×600 ซึ่งพอลองใช้ๆ ไปแล้วจะพบว่ามันทำงานลำบากใช้ได้
จุดเด่นอีกอย่างหนึ่งคือว่า คีย์บอร์ดของ Dell mini 12 เนี่ย มันเกือบๆ จะเท่า full-size keyboard ของ notebook ทั่วๆ ไปเลย ลองกดๆ พิมพ์ๆ ดูแล้วสบายใจกว่าพวก Netbook ตัวเล็กๆ มาก
แต่เรื่องที่ออกจะกังวลอยู่คือ Dell mini 12 ตัวนี้ ใช้ storage เป็น SSD ขนาด 80 GB ซึ่งผมเองไม่ค่อยมั่นใจในประสิทธิภาพเท่าไหร่นัก เพราะ Acer Aspire One ที่เคยใช้ ก็เป็น SSD และประสิทธิภาพมันไม่ค่อยดี จนกลายมาเป็นคอขวดของระบบไปเลย ก็ไม่รู้ว่า Dell จะใช้ SSD ที่มันเร็วกว่ากันหรือเปล่า
อีกประเด็นนึงก็คือ มันแถม Windows Vista Home Basic ซึ่งผมไม่อยากใช้ (และไม่อยากเสียค่า license) ลองอ่านในเว็บเมืองนอกหลายๆ แห่งเค้าก็บอกว่าจะมี version ที่เป็น Ubuntu แต่ไม่แน่ใจว่าในไทยจะหาได้หรือเปล่า
วันนี้เดินมาถึงในออฟฟิซ ปรากฎว่ามีเพื่อนคนนึงซื้อมาซะแล้ว เลยเป็นโอกาสดีที่จะได้เอามาชักภาพเปรียบเทียบ

เทียบขนาดกับ Macbook (white) จะเห็นว่า mini 12 จะเล็กกว่านิดนึง

เทียบแนวนอนให้ดู ช่องเสียบ Adapter, VGA, USB สองช่อง ส่วนอีกด้านจะมีช่อง SSD, ลำโพง, หูฟัง, USB อีกอันนึง และช่องเสียบ LAN

จอแบบ Glossy และคีย์บอร์ดแบบเด็มๆ

คีย์บอร์ดภาษาไทย แต่ตรงแป้น ม ใ ฝ มีแอบย่อขนาด

ด้านล่าง ปิดสนิท ไม่แน่ใจว่าจะเสียบ RAM เพิ่มได้หรือเปล่า ด้านบนเป็นแบตเตอรี ถ้าถอดออกแล้วข้างในจะมีช่องใส่ SIM card ได้ด้วย
เห็นเจ้า Dell mini 12 ที่ความเบาเท่านี้ ราคาเท่านี้ ผมว่านี่แหละ Macbook Air Killer ตัวจริง (อย่าไปเทียบกับ Thinkpad X300 ตัวนั้นมันแพงเกิน) มีแค่เรื่องประสิทธิภาพนี่แหละยังไม่ได้ทดสอบ เนื่องจากเจ้าของไม่ยอมให้เอามาลง Linux เพื่อเทสดู ไม่งั้นคงจะได้รู้ว่า hardware มัน support Linux มากน้อยแค่ไหน
เทียบราคากันแล้ว ซื้อ Macbook Air หนึ่งเครื่อง ซื้อ Dell mini 12 ได้สามเครื่อง !
งานคอมมาร์ตคราวนี้เสียเงินจนได้ แลกกับไอเท็ม 3 ชนิด


เพิ่งจะได้มี HDD ความจุระดับ TB เป็นตัวเป็นตนกับเขาก็คราวนี้แหละ หุหุ
ปล. ดูตระกูล netbook แล้ว Inspiron Mini 12 น่าใช้สุดแฮะ อยากได้ ~>_<~


ข้อความ protected updates ของ Twitter:

อ่านแล้วรู้สึกว่ามันทะแม่งๆ มั้ย -_-a
ได้ยินว่าวันนี้มีมหาลัยแห่งหนึ่ง มีให้ลงทะเบียน เพิ่ม-ลด รายวิชาผ่านทางหน้าเว็บ
พอลองเข้าไปดู ก็เจอ
http://www.cbsnews.com/video/watch/?id=4586903n “These are hands that are breaking down American’s computers…” I won’t buy a new laptop, or unnecessary gadgets. I will think twice and try my best to avoid creating more electronic trash.N..o..N..g…………LISA 2008-11-11 06:09:00
November 11, 2008
Bye bye Phoenix…
Should we send EVE to find Phoenix?
Someone wrote that this article is weird, sad and pathetic.
My old phone is broken, she freezes up every now and then for weeks. So, yesterday, I bought a new cell phone. After a series of reviews and lots of constraints optimization, I ended up with Nokia 3120 classic. Let’s start from the requirements, listed by higher impact.
Of course, my old one (Samsung E250) meets minimal requirement. Her camera is just for show and it is damn slow to transfer music file from her to PC. Don’t take me wrong. She serves me right for almost two years and if she did not (untimely?) die, I would still be very happy with her.
Formerly, there were other six contenders: SE T303, SE W380i, Samsung L700, Nokia 3110, SE K660, Samsung E590. Each fails short for the following reason.
I almost goes for Samsung E590 if I haven’t met Nokia 3120. The plus of 3120 overs E590 is that it has LED flash, minimalist 3G (both 850 and 2100) and higher resolution camera. Also comes with 512 microSD. The price of 3120 is 800 baht higher than E590 and the fact that it has separated connector is the final nail that concludes my decision.
พอดีมีคนเจอบั๊กในสคริปต์ คือมันจะ error ตอนพยายามดาวน์โหลด chapter ที่มีเลขเป็นทศนิยม (ตัวอย่างเช่น Tengen Toppa Gurren Lagann)
สาเหตุคือผมใช้ -eq หรือ -le ในการเปรียบเทียบเลข chapter ซึ่งมันจะเปรียบเทียบไ้ด้เฉพาะเลขจำนวนเต็มเท่านั้น
วิธีแก้คือ ใช้โปรแกรม bc ในการเปรียบเทียบค่าแทน เช่นจากเดิมเป็นแบบนี้
while [[ ${chapter} -le ${last_chapter} ]]
ก็เปลี่ยนเป็น
while [[ `echo "${chapter} <= ${last_chapter}" | bc` -eq 1 ]]
สุดท้ายจะได้สคริปต์เวอร์ชันอัพเดต ตามนี้ (ต้องเลือกลง bc เพิ่มใน cygwin ด้วย)
#!/bin/bash
base_url="http://www.onemanga.com"
manga_name=$1
chapter=$2
last_chapter=$3
if [[ "${chapter}" == "" ]]; then
echo "getting latest chapter number..."
latest_chapter=`curl -s ${base_url}/${manga_name}/ | grep -i "ch-subject" | grep -v -i "chapter name" | head -1 | awk -F\/ '{print $3}'`
printf "the latest chapter of ${manga_name} is ${latest_chapter}. download it? ([y]/n): "
read answer
if [[ "${answer}" == "y" || "${answer}" == "" ]]; then
chapter=$latest_chapter
else
exit
fi
fi
if [[ "${last_chapter}" == "" ]]; then
last_chapter=${chapter}
fi
while [[ `echo "${chapter} <= ${last_chapter}" | bc` -eq 1 ]]
do
next_page_chapter=$chapter
page_location=`curl -s ${base_url}/${manga_name}/${chapter}/ | grep -i "begin reading" | awk -F\" '{print $2}'`
while [[ `echo "$next_page_chapter == $chapter" | bc` -eq 1 ]]
do
curl -s ${base_url}${page_location} > tmp_page
image_location=`grep "class=\"manga-page\"" < tmp_page | awk -F\" '{print $4}'`
if [[ "$image_location" != "" ]]; then
echo "downloading ${image_location}..."
wget -q $image_location
fi
page_location=`grep "value=\"next page\"" < tmp_page | awk -F\' '{print $2}'`
next_page_chapter=`echo ${page_location} | cut -d\/ -f3`
done
echo "creating CBR file..."
/cygdrive/c/Program\ Files/WinRAR/Rar.exe a -inul ${manga_name}_${chapter}.cbr *.jpg
echo "cleaning up..."
rm *.jpg
chapter=`echo "${chapter} + 1" | bc`
done
rm tmp_page
Yeah!!!..we got one more second in 2008.
from INTERNATIONAL EARTH ROTATION AND REFERENCE SYSTEMS SERVICE (IERS) (SERVICE INTERNATIONAL DE LA ROTATION TERRESTRE ET DES SYSTEMES DE REFERENCE)
A positive leap second will be introduced at the end of December 2008.The sequence of dates of the UTC second markers will be:
2008 December 31, 23h 59m 59s 2008 December 31, 23h 59m 60s 2009 January 1, 0h 0m 0s
The difference between UTC and the International Atomic Time TAI is:
from 2006 January 1, 0h UTC, to 2009 January 1 0h UTC : UTC-TAI = - 33sfrom 2009 January 1, 0h UTC, until further notice : UTC-TAI = - 34s
Leap seconds can be introduced in UTC at the end of the months of December
or June, depending on the evolution of UT1-TAI. Bulletin C is mailed everysix months, either to announce a time step in UTC or to confirm that therewill be no time step at the next possible date.