Blogs

Text CAPTCHA is not efficient

หลังจากทดลองใช้ Text CAPTCHA มาตั้งแต่เปิด blog ก็พบว่ามันป้องกัน spam comment ได้ไม่ดีเอาเสียเลย (มี 30 กว่า spam comment)

วันนี้อารมณ์ดี เลยทำการกวาดบ้าน (ลบ spam comment ทั้งหมด) และลองเปลี่ยนไปใช้ image CAPTCHA แทน
(มาพร้อมกับ drupal captcha module ตัวเดิมนี่หละ แต่ตอนแรกไม่ได้ enable ไว้)

ถ้ายังไม่ดีขึ้นอีก เดี๋ยวจะไปลอง Mollom

วิธีใช้ตัวอักษรพิเศษในไอโฟน (using special character in iphone)

Set up

1) Go to : Settings -> General -> Keyboard -> International Keyboards -> Japanese
2) Turn ON "Kana"

Typing (at the on-screen keyboard)

1) Hit the "Globe" button until it switches to Japanese keyboard.
2) Hit the "ABC" button until the text on it changes to Japanese character
3) Your keyboard should now have symbols on it. (e.g.

Drupal : Attach image to node

Looking for WYSIWYG editor and found that FCKeditor is not working well and also outdated ! CKeditor is the successor, installation does not require WYSIWYG module.

To get you WYSIWYG editor with image attachable feature (well, IMHO attaching image is must have feature!) you need

Setting up IMCE to use with CKEditor, here is steps

  • Go to Home > Administer > Site configuration > IMCE
  • At "Role-profile assignments", assign Role that is allowed to use IMCE profile (e.g. only Authenticated user that is allow to use IMCE)
  • Go to Home > Administer > Site configuration > CKEditor
  • Select CKEditor profile you want to configure
  • At "Basic setup", select "Role" that will be allowed to use this profile
  • At "File browser settings", select "File browser type (Link dialog) = IMCE"
  • Done !

Attaching image is a bit tricky, not friendly at all. You need following steps to upload file from your PC for using in CKEditor

  • Click "image" icon
  • Click "Browser" button, new window wil be opened
  • Click "Upload" link (the link at is middle top of new window)
  • Click "Choose" button, this is to browse for a file in you PC
  • Click "Upload" button, it will say that "Uploading ..." in log window below
  • Hit F5 button to refresh (yes, it does not have auto-refresh)
  • Your image should be in the list in IMCE window, select it and click "Send to ckeditor" link
  • Done ! you are back to CKEditor with you image

Thanks Drupal Community for suggestion.

Intel Core คืออะไร

งงกับชื่อรุ่นของ Intel CPU มาก ไอ้คำว่า Core, Core 2, Core Duo, Core Solo มันคืออะไร วันนี้่เลยเปิด wikipedia อ่านให้หายสงสัย

สรุปได้ง่ายๆว่า

  • Core เป็นชื่อ CPU ระดับกลางถึงสูง ซึ่งจะแรงกว่า Celeron และ Pentium
  • Core 2 เป็นรุ่นพัฒนา Core ในแบบ 64-bit
  • Solo / Duo / Quad คือ "จำนวน CPU" โดย Solo = 1, Duo = 2, และ Quad = 4
  • Extreme ถ้ามีคำนี้ห้อยท้าย จะเป็น CPU รุ่นที่ Hz สูงพิเศษ และเปิดโอกาสให้ overclock ได้ เพราะไม่มีระบบล๊อก clock multiplier

ดังนั้น ถ้าเจอ CPU รุ่น Core 2 Duo แปลว่าเป็น "CPU แบบ 64-bit จำนวน 2 ตัว"

ส่วน CPU รุ่นล่าสุด ณ เวลาที่เขียนนี้ Intel เลิกใช้จำนวน Core / Hz มาเพื่อบอกสมรรถนะแล้ว
แต่เปลี่ยนมาเรียกเป็น Core i3, Core i5, Core i7 แทน
ง่ายๆเลย คือ ตัวเลขยิ่งเยอะ ยิ่งแรง
ก็ดีครับ เข้าใจง่ายดีกว่าเดิมเยอะว่าอันไหนแรงกว่า :)

Drupal : Views slideshow does not slide

Recently I have just install Views slideshow module into one of my Drupal side, I am sure I have configured correctly - but it DOES NOT slide ! Even it is working fine my another site !

I scratched my head for a week, until the light is brought by one of my good friend. He said,

Disable Devel module, seems like jQuery goes wrong somehow when this module is on

Thanks to Mr.Yuttana ! it works like a charm, woopie !!!

Fire Warden 101

ปีนี้ได้เป็นตัวแทนไปอบรมดับเพลิงขั้นต้นโดยวิทยากรจากดับเพลิงคลองเตย
สนุกและน่าสนใจเลยขอจดบันทึกไว้เสียหน่อย จดเป็น bullet point เพราะลักษณะข้อมููลเป็นเกร็ดๆ

  • คาร์บอนมอนอกไซด์ และ ไฮโดรเจนไซยาไนด์ เป็นก๊าซสองตัวที่พอเยอะที่่สุดในที่ที่ไฟไหม้
  • ไฮโดรเจนไซยาไนด์เกิดจากการเผาไหม้ของพรมและ PVC
  • แก๊ส LPG 1 ลิตรในถัง พอออกมานอกถังจะขยายกลายเป็นไอ 250 ลิตรในอากาศ
  • รถแก๊สถังขาวๆใหญ่ ๆ 1 คัน = 4000 ลิตร
  • ความร้อนของไฟไหม้โดยทั่วไป คือ 1000 กว่า องศาเซลเซียส
  • แก๊ซรั่วบนถนน รถยนต์จะเครื่องดับเพราะขาดออกซิเจน ห้ามสตาร์ทเพราะจะเกิดประกายไฟทำให้แก๊ซระเบิด
  • กทม. มีไฟไหม้ทุุกวัน
  • สูดคาร์บอนมอนอกไซด์ต่อเนื่อง 3 นาทีตาย
  • สูดไฮโดรเจนไซยาไนด์ต่อเนื่อง 3 เฮือกตาย
  • ห้อง 1 ห้องจะถูกไฟไหม้หมดภายในไม่เกิน 5 นาที
  • รถดับเพลิงต่างประเทศ (ยุโรป) จะมาถึงที่เกิดเหตุหลังได้รับแจ้ง 5 นาที
  • รถดับเพลิงไทยจะมาถึงที่เกิดเหตุหลังได้รับแจ้ง 8 นาที
  • ไฟไหม้อุณหภูมิ 1500 องศาเซลเซียส จะทำให้โครงสร้างเหล็กยุบตัวและถล่ม ภายใน 15 วินาที
  • ก่อนโครงสร้างถล่ม จะมีเสียงเอี๊ยดๆ และผนังจะร้าว เพดานร่วง
  • ถ้าติดอยู่ในตึกถล่ม พยายามใช้โทรศัพท์มือถือโทรแจ้ง 199, 191 (ถ้ามีโทรศัพท์)
  • ถ้าติดอยู่ในตึกถล่ม พยายามทำให้เกิดเสียง เช่น ร้องเพลง เคาะ เพื่อให้เข้าหน้าที่กกู้ภัยจะหาเจอเร็วขึ้น โดยใช้เครื่องจับคลื่น
  • ติดอยูู่ในตึก 6 วัน ถือว่าวิกฤต
  • ดื่มน้ำประทังชีวิตไว้ ร่า่งกายคนเรามีน้ำ 70 % ถ้าขาดไป 15 % จะตาย
  • รถกระเช้า กทม. คันที่สูงที่สุดคือ 10 ชั้น
  • ออกจากบ้านให้ถอดปลั๊กเครื่องใช้ไฟฟ้า ลดการสะสมความร้อน ลดการเกิดไฟไหม้
  • LPG หนักกว่าอากาศ
  • รถแก๊สระเบิดจะกินรัศมี 500 เมตร
  • แก๊ซที่อันตราย คือ แก๊ซที่รั่วออกมานอกถัง (อยู่ในถังโอกาศระเบิดน้อยกว่า)
  • ไฟเกิดจาก ความร้อน + อากาศ + เชื้อเพลิง ขาดอย่างใดอย่างหนึ่งไม่ได้
  • ธรรมชาติของไฟจะไหม้ขึ้นไปข้างบน เช่น หากเริ่มไหม้ชั้น 7 ชั้น 6 มักจะไม่ไหม้​ แปลว่าถ้าพยายามหนีลงมาได้ 1 ชั้น โอกาสรอดจะสูงมาก
  • ตอนคนเราหลับ ต่อมรับกลิ่นจะไม่ทำงาน (เป็นสาเหตุหนึ่งที่คนนอนในรถโดนรมไอเสียตาย)
  • อากาศที่เป็นเชื้อไฟต้องมีออกซิเจนไม่ต่ำกว่าร้อยละ 16

Drupal on localhost (test machine)

ลง Windows ใหม่มาสักพัีก เพิ่งจะมาได้ติดตั้ง test environment ใหม่บนเครื่อง
ไว้ทำงาน Drupal แบบ offline ได้
ก็จดไว้คร่าวๆ ว่าลงอะไร และติดปัญหาอะไรบ้าง

Apache, MySQL, PHP

CMS

Theme

Yes, Virginia, there is a Santa Claus

ได้รับเมลอวยพรวันคริสมาส และปีใหม่จากพี่ที่ทำงาน
ด้วยความอ่อนด้อยด้านภาษาอังกฤษของตัวเอง อ่านแล้วยังไม่เข้าใจทั้งหมด
อยากเ็ก็บไว้อ่านวันหน้า เลยเอามาแปะเก็บไว้ก่อน :)

-

บทบรรณาธิการนี้เขียนมานานกว่าร้อยปีแล้วนะ

Source: http://en.wikipedia.org/wiki/Yes,_Virginia,_there_is_a_Santa_Claus

Is There a Santa Claus? was the title of an editorial appearing in the September 21, 1897 edition of the New York Sun. The editorial, which included the famous reply "Yes, Virginia, there is a Santa Claus", has become an indelible part of popular Christmas lore in the United States and Canada.

เศร้า

เศร้า
เพื่อให้รู้รสชาดของมัน
เพื่อที่จะเข้าใจคนที่เศร้ามากขึ้น

(ปรับปรุงจาก tweet ตัวเอง http://twitter.com/ninelouis/status/6823683094)

Syndicate content