Archive for September, 2008



Domain Name Status Codes Update

Saturday 27 September 2008 @ 5:02 pm

COM and NET Domain Name Status Codes

These are the 6 domain name status codes used for COM and NET domains:

ACTIVE
As previously noted, the normal state for a domain name. Domains that are active can be used for Web sites, for email, or to register name servers.

REGISTRAR-HOLD
The domain has been placed on hold by the registrar and cannot be used.

REGISTRY-HOLD
The domain has been placed on hold by the registry and cannot be used.

REGISTRAR-LOCK
The registrar, often at the request of the domain registrant, has locked down the domain so that its settings cannot be modified.

REGISTRY-LOCK
The registry has locked down the domain so that its settings cannot be modified.

RedemptionPeriod
The domain has expired and the registry is waiting for 30 days as a precautionary measure before releasing it.

PendingRestore
A domain that had expired is now being restored to ACTIVE status.

PendingDelete
The domain expired 75 days ago and the registry is about to erase it. A domain remains in this status for five days before it is deleted.

ORG, BIZ, US, INFO, and NAME Domain Name Status Codes

These are the 15 domain name status codes used for ORG, BIZ, US, INFO, and NAME domains:

CLIENT_DELETE_PROHIBITED
The registrar has locked the domain so that it cannot be deleted.

SERVER_DELETE_PROHIBITED
The registry has locked the domain so that it cannot be deleted.

CLIENT_HOLD
The registrar has placed the domain on hold, and it cannot be used.

SERVER_HOLD
The registry has placed the domain on hold, and it cannot be used.

CLIENT_RENEW_PROHIBITED
The registrar has locked the domain so that it cannot be renewed.

SERVER_RENEW_PROHIBITED
The registry has locked the domain so that it cannot be renewed.

CLIENT_TRANSFER_PROHIBITED
The registrar has locked the domain so that it cannot be transferred to another registrar.

SERVER_TRANSFER_PROHIBITED
The registry has locked the domain so that it cannot be transferred to another registrar.

CLIENT_UPDATE_PROHIBITED
The registrar has locked the domain to prevent its settings from being changed.

SERVER_UPDATE_PROHIBITED
The registry has locked the domain to prevent its settings from being changed.

INACTIVE
The domain cannot be used because there is a problem with the name servers that were entered for it, or name servers have not been entered.

OK
The domain is active and can be used for Web sites, for email, or to register name servers.

PENDING_DELETE
The registration for the domain is about to be deleted by the registry, as when the domain expires.

PENDING_TRANSFER
The domain is in the process of being transferred from one registrar to another. It may not be modified during this period.

PENDING_VERIFICATION
The registry is in the process of creating the domain record.

Credit: http://www.sslcatacombnetworking.com/articles/domain-names-status-codes/

Share



ห้ามอีกขนมจากจีน6ชนิด”โอรีโอ-เมนทอส”

Friday 26 September 2008 @ 11:29 pm

“เอ็ม-เอ็ม” สนิกเกอร์ ผวาปนพิษ “เมลามีน”


ห้ามขายอีก- ขนมและลูกอมยี่ห้อดังที่ผลิตจากเมืองจีน ถูกอย.สั่งเก็บออกจากห้างสรรพสินค้า และห้ามขายทุกแห่ง ระหว่างตรวจสอบหาสารปนเปื้อน หลังพบนมเลี้ยงทารก และขนมที่ผลิตจากเมืองจีนผสมสารเมลามีน ซึ่งเป็นอันตรายต่อร่างกาย

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

เมื่อ เวลา 13.00 น. วันที่ 25 ก.ย. ที่กระทรวง สาธารณสุข (สธ.) นายวิชาญ มีนชัยนันท์ รมช. สาธารณสุข พร้อมด้วยน.พ.ชาตรี บานชื่น เลขาธิการคณะกรรมการอาหารและยา (อย.) ร่วมกันแถลงข่าวมาตรการป้องกันผลิตภัณฑ์ที่ผลิตจากประเทศจีนอาจมีการปน เปื้อนสารเมลามีน โดยเฉพาะผลิตภัณฑ์ที่มีส่วนผสมจากนมผง ซึ่งในประเทศจีนมีเด็กล้มป่วยเป็นโรคนิ่วในไตเป็นจำนวนมาก และบางรายมีอาการรุนแรง ทำให้ไตวายเฉียบพลันและเสียชีวิตในที่สุด ที่ผ่านมา สธ.มีมาตรการให้ด่านอาหารและยาตามแนวชายแดนสั่งอายัดสินค้าจากจีนเพื่อตรวจ สอบคุณภาพ และให้โรงพยาบาลทุกแห่งเฝ้าระวังเด็กที่ป่วยเป็นนิ่วในกระเพาะปัสสาวะ หรือมีอาการไตวาย ว่าป่วยจากการดื่มนมปนเปื้อนสารเมลามีนหรือไม่

นาย วิชาญกล่าวว่า วันเดียวกันนี้ อย.ได้เชิญผู้ประ กอบการที่นำเข้า ผลิต จำหน่ายวัตถุดิบ ผลิตภัณฑ์นม ผลิตภัณฑ์สำเร็จรูป ที่มีส่วนผสมของนมจากประเทศจีน และห้างสรรพสินค้าขนาดใหญ่ ร้านค้าส่ง และปลีกทั่วประเทศ เช่น โลตัส คาร์ฟูร์ บิ๊กซี ท็อปส์ ซูเปอร์มาเก็ต แม็คโคร มาประชุมเพื่อขอความร่วม มือให้หยุดจำหน่ายผลิตภัณฑ์เหล่านี้เป็นการชั่วคราว ประมาณ 1-2 สัปดาห์ เพื่อให้ อย.ได้ตรวจสอบความปลอดภัยของอาหารว่ามีสารเมลามีนปนเปื้อนหรือไม่ หากผลตรวจออกมาว่าปลอดภัยก็จะสามารถนำผลิต ภัณฑ์มาวางจำหน่ายได้ตามปกติ รวมทั้งขอความร่วมมือร้านค้าปลีกย่อยทั่วไป ให้เก็บผลิตภัณฑ์ที่เข้าข่ายออกจากชั้นวางจำหน่ายด้วยเช่นกัน โดยตั้งแต่วันที่ 26 กันยายนนี้เป็นต้นไป ในชั้นวางจำหน่ายภายในห้างสรรพสินค้าขนาดใหญ่จะไม่มีผลิตภัณฑ์ที่มีส่วนผสม นมจากจีนวางจำหน่าย

“เนื่องจากประชาชนเกิดความกลัวอาหารเหล่านี้ ทำให้ สธ.จะมีการเข้มงวดตรวจตรา และระงับผลิต ภัณฑ์ที่อยู่ในข่ายมีความเสี่ยง เนื่องจากนำเข้าและมีส่วนประกอบจากนมที่นำเข้าจากจีน เพื่อสร้างสร้างความมั่นใจในเบื้องต้นให้ประชาชนว่าอาหารปลอด ภัย” นายวิชาญกล่าว

นายวิชาญกล่าวว่า ขณะนี้มีชื่อบริษัท และผลิต ภัณฑ์ ที่มีส่วนผสมนมจากจีน ที่ขอขึ้นทะเบียนเพื่อจำหน่ายและนำเข้ากับทาง อย. 6 รายการ ซึ่งต้องเก็บจากชั้นวางจำหน่าย เพื่อรอผลการตรวจสอบสารปนเปื้อน ได้แก่ 1.คอฟฟี่ โอทมีล แครกเกอร์ (ขนมปังกรอบและข้าวโอ๊ตรสกาแฟ ตราเหมาฮวด) นำเข้าโดยบริษัท พีอาร์ อิมแพ็กต์ จำกัด 2.เวเฟอร์ สติ๊ก ไวท์ ช็อกโกแลต เวเฟอร์เคลือบช็อกโกแลตขาว ตราโอรีโอ นำเข้าโดยบริษัท ดีทแฮล์ม จำกัด 3.ช็อกโกแลตนม ตราโดฟ 4.ช็อกโกแลตนมเคลือบน้ำตาลสีต่างๆ ตราเอ็มแอนด์เอ็ม 5.ถั่วลิสงคาราเมล และนูกัต เคลือบช็อกโกแลตนม ตราสนิกเกอร์ โดยทั้งหมดนำเข้าจากบริษัทมาร์ส ไทยแลนด์ อิงค์ และ 6.เมนทอส โยเกิร์ตมิกซ์ (ลูกอมรสโกเกิร์ต กลิ่นผลไม้รวม) นำเข้าโดยบริษัท ซีโน-แปซิฟิค เทรดดิ้ง (ไทยแลนด์) จำกัด อย่างไรก็ตาม มาตรการนี้เพียงขอความร่วมมือเท่านั้น หากผู้ประกอบการรายใดไม่ปฏิบัติตามก็ไม่ถือว่าทำผิดกฎหมาย และไม่มีบทลงโทษ แต่ประชา ชนที่พบเห็นสามารถโทร.แจ้งได้ที่สายด่วน อย.1556 ได้ทันที

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

น.พ.ชาตรี กล่าวว่า สารเมลามีนมีความเป็นพิษต่ำ ไม่มีพิษต่อสารพันธุกรรม และไม่เป็นสารก่อการกลายพันธุ์ แต่หากร่างกายได้รับสารอย่างต่อเนื่องอาจทำให้ระคายเคืองต่อระบบทางเดิน ปัสสาวะ เช่น ไต กระเพาะปัสสาวะ โดยสารเมลามีนจะไปรวมตัวกับสารเคมีอื่นๆ เช่น Cyanuric acid กลายเป็นก้อนนิ่วอุดตันในระบบทางเดินปัสสาวะ และมีโอกาสเสี่ยงในการเกิดมะเร็งหรือไตวายได้ ทั้งนี้ อย.ได้ยึดค่าความปลอดภัย (TDI) ตาม EU คือ 0.50 มิลลิกรัม/น้ำหนักตัว 1 กิโลกรัม หากคำนวณความเสี่ยงจากการบริโภคนมปนเปื้อนสารเมลามีนในกลุ่มเด็ก 0-2 เดือน และในกลุ่มเด็กอายุ 6-8 เดือน ต้องบริโภคไม่เกิน 19 มิลลิกรัม/กิโลกรัมอาหาร และ 20 มิลลิกรัม/กิโลกรัมอาหาร จึงจะปลอดภัยโดยร่างกายสามารถขับสารพิษออกมาได้เองตามธรรมชาติ

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

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

Share



วิธีติดตั้ง Ubuntu บน Windows XP – Step by Step

Friday 26 September 2008 @ 7:56 pm


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

Wubi will run on on all Windows versions from Windows 98 to Windows Vista


Wubi คืออะไร
Wubi เป็นโปรแกรมบน MS Windows ตัวนึงที่ทำมาเพื่อให้เราสามารถใช้ Linux ได้ง่ายที่สุดโดยไม่ต้องทำอะไรกับ Windows มากมาย (เหมือนลงโปรแกรมธรรมดา) แนวคิดของมันก็คือ มันติดตั้ง GRUB (boot loader) ไปเป็นส่วนหนึ่งของ Windows boot menu (boot.ini) แล้วสร้างไฟล์ image เอาไว้ใน file system ธรรมดาของ Windows (ผมใช้ NTFS ครับ) ด้วยวิธีการนี้ เราจะสามารถติดตั้ง Ubuntu ได้แบบ full feature (ไม่ใช่ virtualization นะครับ) โดยที่ไม่ต้องแตะต้องระบบ partition หรือ MBR เลยแม้แต่นิดเดียว พอไม่อยากใช้ Ubuntu ก็แค่มาลบไฟล์ image ทิ้งไป
ที่มา : 
http://www.blognone.com/node/4640

System Requirement – ต้องมีอะไรบ้าง
1.ไฟล์ 
ISO Ubuntu 7.04 Feisty Fawn สำหรับลงโดยโหลดได้ที่ >>
http://mirror.in.th/ubuntu/feisty/ubuntu-7.04-alternate-i386.iso หรือ
ftp://mirror.in.th/ubuntu_official/releases/7.04/ubuntu-7.04-alternate-i386.iso
*ใครที่มีแผ่น CD อยู่แล้วสามารถทำเป็น ISO ได้เลยครับแล้วเปลี่ยนชื่อให้เป็น ubuntu-7.04-alternate-i386.iso และที่สำคัญแผ่นที่เป็น LiveCD ไม่สามารถใช้ได้น่ะครับ ต้องไปโหลดแบบ Alternate ครับ

2.ตัวโปรแกรม Wubi >> http://wubi-installer.org/



3.เตรียมเนื้อที่ HDD ไว้ประมาณสัก 5 Gb โดยไม่ต้องแบ่ง Patition ก็ได้น่ะครับ
4.เตรียมใจไว้ครับ ไม่ใช่เตรียมใจไว้เพื่อเสียหายน่ะครับ แต่เตรียมใจไว้พบกับสิ่งใหม่ๆที่รออยู่ข้างหน้า


ขั้นตอนการติดตั้ง
1.ดับเบิ้ลคลิกโปรแกรม Wubi ที่โหลดมา จะได้ตามภาพ

อธิบายตามภาพน่ะครับ
Installation Drive > Drive ที่เราจะติดตั้งตัวโปรแกรมลงไปครับ
Installation Size > ขนาดพื้นที่ที่เราจะติดตั้งลงไป
Desktop Environment > เลือกชนิด Ubuntu ที่เราจะติดตั้ง ในที่นี้ผมเลือก Ubuntu ส่วนใครที่สงสัยเพิ่มเติมว่า ตัวอื่นๆนั้นแตกต่างกันยังไงก็หาข้อมูลเอาครับ
Language > เลือกภาษา ถ้าเลือกไทย เมนูที่ให้มาจะเป็นภาษไทยครับ
Usename > ชื่อ Account ที่เราสร้างครับ
Password > ใส่ Password ลงไป ; ห้ามลืมครับข้อสำคัญ

2.กด Install จากนั้นมันจะให้เราโหลดไฟล์ ubuntu ครับ ถ้าใครอยากโหลดก็ตามสบายครับขอบอกว่า นานมากๆ เพราะมันดึงมาจาก Sever ต่างประเทศครับ ถ้าใครคิดว่าเน็ตของท่านวิ่งออกต่างประเทศได้ไวก็ตามสบายครับ


3.ให้เรากด Cancel ไปครับอย่าไปโหลดครับ แล้วไป Drive ที่เราลง Wubi อ่ะของผมก็เลือกไว้ใน E: มันจะอยู่ที่ E:Wubi
จากนั้นให้เราเข้าไปใน Folder Install (E:wubiinstall) ให้เราเอาไฟล์ ISO Ubuntu 7.04 Feisty Fawn ที่เราโหลดมาก่อนหน้านี้นำมาใส่ไว้ครับตามภาพ 
ถ้าชื่อไฟล์ใครยังไ่ม่ได้ตามภาพให้ตั้งตามภาพน่ะครับ


4.หลังจากนั้นก็ ดับเบิ้ลคลิกที่โปรแกรม Wubi เหมือนเดิมแล้วกลับไปทำตามข้อ 1.
5.พอเรากด Install แล้วนั้น คราวนี้มันจะไม่ให้เราโหลดล่ะครับ แต่มันจะเช็ดไฟล์ว่าไฟล์ที่มีอยู่นั้นสมบูรณ์หรือไม่

กำลัง Checksum


6.หลังจากมันโหลดเสร็จ ก็จะให้เรา Reboot เครื่องให้เรากด Finish ไป


7.หลังจาก Reboot มาก็จะมี Menu ให้เราเลือกเข้าระหว่าง Windows และ Ubuntu ให้เราเลือก Ubuntu


8.เพราะว่า Ubuntu ยังไม่ได้ Install ลงไปเราจึงเห็นมันกำลัง Install (Text mode)





9.หลังจาก Install เสร็จ มันจะ Reboot กลับมาที่หน้า Boot Loader ให้เราเลือก Ubuntu อีักรอบ


10.อันนี้คือหน้าตา Boot Screen ของ Ubuntu (ใกล้แล้วเว้ย555+)


11.ใส่ Usename ที่เราตั้งไว้ตอนแรก


12.ใส่ Password ที่เราตั้งไว้ตอนแรก


13.Welcome TO Ubuntu 7.04



วิธี Uninstall เมื่อเราไม่ต้องการ
ให้กลับไป OS Windows แล้วไปที่ Add or Remove Programs จากนั้นเลือกโปรแกรม Wubi เป็นอันเสร็จสิ้น 
ยิ้มเท่ห์

ที่มา : http://geo.buu.ac.th/board/viewthread.php?tid=221&extra=page%3D1

Share



Building Joomla Templates with Dreamweaver

Friday 26 September 2008 @ 7:22 pm

For those of you who want to build Joomla templates with Dreamweaver, there are several very cool tools available that automates much of the task of creating custom Joomla templates.

Joomla Template Kit

This is the original Joomla template design kit by Media 65. It consists of a set of Dreamweaver tools and menus that help take the pain out of the Joomla code. Here’s what’s included in the Joomla Template Kit:

  • Joomla template design system and education
  • Power full Joomla template extension for Adobe Dreamweaver®
  • One hour video
  • Templates which you may resell to your clients
  • How to’s, tutorials, code snippets, video and more.

The Joomla Template Kit is available at Media 65.

Joomla Template Kit 3.0 Beta

This is the updated version of the original Joomla Template Kit and is to be used with Joomla version 1.5. It’s a free download if you have an active subscription to the original Joomla Template Kit. Again, available at Media 65.

Joomla 1.5 Templatebuilder for Dreamweaver

This Dreamweaver extension installs a menu bar for inserting the common code snippets needed in your Joomla templates. It’s created and maintained by Daniel Duvald and can be downloaded from Joomla.org.

NewJoomlaBar

This extension for Dreamweaver allows you thanks to an interface simple to generate the various portions of codes php to be placed in your templates in order to post the modules of positioning, the body of page, heading HTML and other functions useful to Joomla.

More info at Joomla.org.

Dreamweaver Snippet Collection: Template Basics

Snippets are handy little pieces of code that can be entered into your document to save time and to have more consistency with code. The first Snippet Collection is all the code you need to make a basic Joomla! template. It includes 3 folders of snippets: Basics, Dynamic Objects and Module Positions.

More info at Joomla.org.

Share



แก้ปัญหา charset ของ mysql กับปัญหาภาษาไทยอ่านไม่ออก ????

Thursday 25 September 2008 @ 6:11 pm

ปัญหา charset เมื่อเราทำเว็บไซต์ในเครื่องของเราแล้ว ต้องเอาไปใช้งานจริง ๆ บนเว็บไซต์ แล้วเกิดปัญหาว่า ภาษาไทยอ่านไม่ออก ??? วันนี้มีเรามีเหตุผลว่าต้องทำยังไงบ้างมาให้นะครับ

ก่อนอื่นมาทำความเข้าใจกับระบบ charset กันก่อนครับ

เดิมที่ระบบการเก็บข้อมูลของ mysql เวอร์ชั่นต่ำกว่า 4.0.xx จะเป็นการเก็บแบบ ascii แล้วใช้ charset เป็นตัวกำหนดภาษากล่าว คือแต่ละตัวอักษรจะใช้พื้นที่ในการเก็บ 1 byte เป็นค่า 0-255 และใช้ charset มาเป็นตัวกำหนดว่าจะเอาตารางตัวอักษรของภาษาใหนมาใช้ ซึ่งค่าที่เก็บอยู่ในตารางก็จะเป็น 0-255 เหมือนเดิม

ดังนั้นจึงไม่มี ปัญหาเรื่องภาษาไทยกับ mysql เวอร์ชั่นต่ำกว่า 4.0.xx หากการแสดงผลไม่เป็นภาษาไทย ก็แค่เลือก encoding ของ browser ให้เป็น windows-874 หรือ tis-620 ก็จะแสดงได้ถูกต้อง ซึ่งข้อจำกัดคือสามารถแสดงผลได้เพียง 255 รูปแบบตัวอักษร
ตาม charset ที่นำมาใช้

ตั้งแต่ mysql เวอร์ชั่น 4.1.xx (จริงๆเริ่มที่ 4.0.??) ขึ้นมาจะรองรับการเก็บข้อมูลแบบ unicode ซึ่งจะมีการเก็บ charset ไว้ด้วย ดังนั้นการ เก็บข้อมูลของ 1 ตัวอักษรจะใช้พื้นที่อย่างน้อย 2 byte ขึ้นไป ดังนั้นการแสดงผลแต่ละตัวอักษรสามารถแสดงออกมาตาม charset ที่ระบุไว้ของตัวอักษรนั้นๆ ทำให้สามาถแสดงผลได้ทุกภาษาที่ต้องการพร้อมๆกันในหน้าเดียว

สำหรับภาษาไทยในเวอร์ชั่น 4.1 ที่ compatible กับ 4.0 ก็คือการเก็บภาษาไทยแบบ ascii ลงในตาราง latin1-swedish ซึ่งในการใช้งานกับ 4.1 สามารถใช้งานได้เหมือนกับการใช้งานบน 4.0 ทุกประการ
sql ที่ export มาจาก 4.0 นำมา import ลงบน 4.1 แบบ latin1 จะสามารถแสดงผลบน browser ที่เลือก charset เป็น tis-620 ได้ทันที โดยไม่ต้องมีการแปลงใดๆ

การใช้ภาษาไทยแบบ unicode บน mysql 4.1 จะเป็นการเก็บภาษาไทยในรหัส unicode บนตารางแบบ utf8_unicode หรือ tis620_unicode ซึ่งไม่ใช่ latin1_swedish สำหรับ เวบที่เริ่มต้นสร้าง database ใหม่บน mysql4.1 โดยสร้างเป็นแบบ tis620_unicode หรือ utf8 ก็จะสามารถบันทึกและแสดงผลภาษาไทยได้อย่าวไม่มีปัญหา เนื่องจากตัว mysql จะ connect db นั้นๆตาม charset ที่สร้างไว้

แล้วปัญหาภาษาไทยอ่านไม่ออกเกิดจากอะไร?
ปัญหานี้มักเกิดจากการ export แล้วมา import จากระบบหนึ่งมายังอีกระบบหนึ่ง ซึ่งใช้ charset ไม่สอดคล้องสัมพันธ์กัน เช่นนำ sql ที่ export จาก mysql4.0 มา import เข้า mysql4.1 แบบ tis620_unicode แทนที่จะเป็น latin1_swedish ก็จะเกิดปัญหาภาษาไทยกลายเป็น Huh

การ export และ import database
ก่อนอื่นให้ตรวจสอบข้อมูลเบื้องต้นต่อไปนี้

1. Version ของ mysql ต้นทาง
2. Version ของ phpmyadmin ต้นทาง
3. Charset ของ DB และ Table ต้นทาง

4. Version ของ mysql ปลายทาง
5. Version ของ phpmyadmin ปลายทาง
6. Charset ของ DB ปลายทาง ทีเ่กิดจากการสร้าง db เปล่าๆขึ้นมาผ่าน cp

ควรระบุข้อมูล 6 ข้อข้างบนให้ครบเวลามาถามปัญหา เพื่อจะได้บอกวิธีแก้ได้ถูกต้อง
เมื่อมีข้อมูลข้างต้นก็จะสามารถบอกได้ว่า

1. จะต้อง export ไฟล์ sql ด้วย charset อะไร หรือใช้ phpmyadmin เวอร์ชั่นใหม่หรือเก่าช่วยในการ export
2. charset ของ db ที่จะต้องแก้ไขหลังจากสร้าง db ขึ้นมาก่อนทำการ import ข้อมูล
3. charset ที่จะต้องเลือกในการ import ข้อมูลจากไฟล์ sql ที่มีอยู่

หลักการ convert charset
สามารถทำได้บน mysql 4.1 ขึ้นไป โดยทำการแปลงจาก charset ปัจจุบันให้เป็น binary ก่อนแล้วจึงแปลงไปเป็น charset ที่ต้องการ
โดยใช้เมื่อทำการ import ข้อมูลภาษาไทยลงในตารางที่มี charset ไม่ตรงกับข้อมูล ไปเป็น charset ที่ตรงกับข้อมูล

ตัวอย่าง
เมื่อทำการ export / import ข้อมูลในเครื่องเดียวกัน บน mysql 4.1 charset latin1 ด้วย phpmyadmin และ charset ต่างๆกัน
ไฟล์ SQL Export ไว้ด้วย — นำมา Import ด้วย — ได้ผลลัพธ์
PhpMyadmin 2.5.4 (tis-620) — PhpMyadmin 2.5.4 (tis-620) — ภาษาไทยถูกต้อง

PhpMyadmin 2.5.4 (tis-620) — PhpMyadmin 2.7.2 (Latin1) — ภาษาไทยถูกต้อง
PhpMyadmin 2.5.4 (tis-620) — PhpMyadmin 2.7.2 (Binary) — ภาษาไทยถูกต้อง
PhpMyadmin 2.5.4 (tis-620) — PhpMyadmin 2.7.2 (tis-620-UTF) — ?? ?? ??
PhpMyadmin 2.5.4 (tis-620) — PhpMyadmin 2.7.2 (UTF8) — ?? ?? ??

PhpMyadmin 2.7.2 (Latin1) — PhpMyadmin 2.5.4 (tis-620-UTF) — รยฃร?ฦจ?ขก

PhpMyadmin 2.7.2 (Latin1) — PhpMyadmin 2.7.2 (tis-620) — ?? ?? ??
PhpMyadmin 2.7.2 (Latin1) — PhpMyadmin 2.7.2 (Latin1) — รยฃร?ฦจ?ขก
PhpMyadmin 2.7.2 (Latin1) — PhpMyadmin 2.7.2 (Binary) — รยฃร?ฦจ?ขก
PhpMyadmin 2.7.2 (Latin1) — PhpMyadmin 2.7.2 (UTF8) — ภาษาไทยถูกต้อง
PhpMyadmin 2.7.2 (UTF8) — PhpMyadmin 2.7.2 (UTF8) — ภาษาไทยถูกต้อง

อ้างอิงเว็บไซต์จาก : http://www.thaihosttalk.com/th1/index.php?topic=6764.0
;D

Share



ลีน่าจังตกคลองแสนแสบ!!!

Thursday 25 September 2008 @ 5:15 pm
Share



Google – Latest word on dynamic vs. static URLs

Thursday 25 September 2008 @ 5:00 pm

Chatting with webmasters often reveals widespread beliefs that might have been accurate in the past, but are not necessarily up-to-date any more. This was the case when we recently talked to a couple of friends about the structure of a URL. One friend was concerned about using dynamic URLs, since (as she told us) “search engines can’t cope with these.” Another friend thought that dynamic URLs weren’t a problem at all for search engines and that these issues were a thing of the past. One even admitted that he never understood the fuss about dynamic URLs in comparison to static URLs. For us, that was the moment we decided to read up on the topic of dynamic and static URLs. First, let’s clarify what we’re talking about:

What is a static URL?
A static URL is one that does not change, so it typically does not contain any url parameters. It can look like this:
http://www.example.com/archive/january.htm. You can search for static URLs on Google by typing filetype:htm in the search field. Updating these kinds of pages can be time consuming, especially if the amount of information grows quickly, since every single page has to be hard-coded. This is why webmasters who deal with large, frequently updated sites like online shops, forum communities, blogs or content management systems may use dynamic URLs.

What is a dynamic URL?
If the content of a site is stored in a database and pulled for display on pages on demand, dynamic URLs maybe used. In that case the site serves basically as a template for the content. Usually, a dynamic URL would look something like this: http://code.google.com/p/google-chec…s/detail?id=31. You can spot dynamic URLs by looking for characters like: ? = &. Dynamic URLs have the disadvantage that different URLs can have the same content. So different users might link to URLs with different parameters which have the same content. That’s one reason why webmasters sometimes want to rewrite their URLs to static ones.

Should I try to make my dynamic URLs look static?
Following are some key points you should keep in mind while dealing with dynamic URLs:

  1. It’s quite hard to correctly create and maintain rewrites that change dynamic URLs to static-looking URLs.
  2. It’s much safer to serve us the original dynamic URL and let us handle the problem of detecting and avoiding problematic parameters.
  3. If you want to rewrite your URL, please remove unnecessary parameters while maintaining a dynamic-looking URL.
  4. If you want to serve a static URL instead of a dynamic URL you should create a static equivalent of your content.


Which can Googlebot read better, static or dynamic URLs?
We’ve come across many webmasters who, like our friend, believed that static or static-looking URLs were an advantage for indexing and ranking their sites. This is based on the presumption that search engines have issues with crawling and analyzing URLs that include session IDs or source trackers. However, as a matter of fact, we at Google have made some progress in both areas. While static URLs might have a slight advantage in terms of clickthrough rates because users can easily read the urls, the decision to use database-driven websites does not imply a significant disadvantage in terms of indexing and ranking.
Providing search engines with dynamic URLs should be favored over hiding parameters to make them look static.


Let’s now look at some of the widespread beliefs concerning dynamic URLs and correct some of the assumptions which spook webmasters.

Myth: “Dynamic URLs cannot be crawled.”
Fact: We can crawl dynamic URLs and interpret the different parameters. We might have problems crawling and ranking your dynamic URLs if you try to make your urls look static and in the process hide parameters which offer the Googlebot valuable information. One recommendation is to avoid reformatting a dynamic URL to make it look static. It’s always advisable to use static content with static URLs as much as possible, but in cases where you decide to use dynamic content, you should give us the possibility to analyze your URL structure and not remove information by hiding parameters and making them look static.

Myth: “Dynamic URLs are okay if you use fewer than three parameters.”
Fact: There is no limit on the number of parameters, but a good rule of thumb would be to keep your URLs short (this applies to all URLs, whether static or dynamic). You may be able to remove some parameters which aren’t essential for Googlebot and offer your users a nice looking dynamic URL. If you are not able to figure out which parameters to remove, we’d advise you to serve us all the parameters in your dynamic URL and our system will figure out which ones do not matter. Hiding your parameters keeps us from analyzing your URLs properly and we won’t be able to recognize the parameters as such, which could cause a loss of valuable information.

Following are some questions we thought you might have at this point.

Does that mean I should avoid rewriting dynamic URLs at all?
That’s our recommendation,
unless your rewrites are limited to removing unnecessary parameters, or you are very diligent in removing all parameters that could cause problems. If you transform your dynamic URL to make it look static you should be aware that we might not be able to interpret the information correctly in all cases. If you want to serve a static equivalent of your site, you might want to consider transforming the underlying content by serving a replacement which is truly static. One example would be to generate files for all the paths and make them accessible somewhere on your site. However, if you’re using URL rewriting (rather than making a copy of the content) to produce static-looking URLs from a dynamic site, you could be doing harm rather than good. Feel free to serve us your standard dynamic URL and we will automatically find the parameters which are unnecessary.

Can you give me an example?
If you have a dynamic URL which is in the standard format like foo?key1=value&key2=value2 we recommend that you leave the url unchanged, and Google will determine which parameters can be removed; or you could remove uncessary parameters for your users. Be careful that you only remove parameters which do not matter. Here’s an example of a URL with a couple of parameters:


http://www.example.com/article/bin/a…8906&query=URL

language=en – indicates the language of the article
answer=3 – the article has the number 3
sid=8971298178906 – the session ID number is 8971298178906
query=URL – the query with which the article was found is [url]


Not all of these parameters offer additional information. So rewriting the URL to www.example.com/article/bin/answer.foo?language=en&answer=3 probably would not cause any problems as all irrelevant parameters are removed.

The following are some examples of static-looking URLs which may cause more crawling problems than serving the dynamic URL without rewriting:


www.example.com/article/bin/answer.foo/en/3/98971298178906/URL
www.example.com/article/bin/answer.foo/language=en/answer=3/
sid=98971298178906/query=URL
www.example.com/article/bin/answer.foo/language/en/answer/3/
sid/98971298178906/query/URL
www.example.com/article/bin/answer.foo/en,3,98971298178906,URL


Rewriting your dynamic URL to one of these examples could cause us to crawl the same piece of content needlessly via many different URLs with varying values for session IDs (sid) and query. These forms make it difficult for us to understand that URL and 98971298178906 have nothing to do with the actual content which is returned via this URL. However, here’s an example of a rewrite where all irrelevant parameters have been removed:


www.example.com/article/bin/answer.foo/en/3


Although we are able to process this URL correctly, we would still discourage you from using this rewrite as it is hard to maintain and needs to be updated as soon as a new parameter is added to the original dynamic URL. Failure to do this would again result in a static looking URL which is hiding parameters. So the best solution is often to keep your dynamic URLs as they are. Or, if you remove irrelevant parameters, bear in mind to leave the URL dynamic as the above example of a rewritten URL shows:


www.example.com/article/bin/answer.foo?language=en&answer=3


We hope this article is helpful to you and our friends to shed some light on the various assumptions around dynamic URLs. Please feel free to join our discussion group if you have any further questions.

Source: Dynamic URLs vs. static URLs
Written by Juliane Stiller and Kaspar Szymanski,
Google Search Quality Team
Monday, September 22, 2008

Share



ลาก่อน Netscape Navigator

Thursday 25 September 2008 @ 4:56 pm

บริษัท AOL ซึ่งเป็นเจ้าของ Netscape Navigator ได้ประกาศยุติการพัฒนาตั้งแต่วันนี้ (1 มี.ค. 51) เป็นต้นไป

Netscape Navigator เป็นเบราเซอร์ที่เคยมีส่วนแบ่งตลาดสูงถึง 90% ในช่วงกลางทศวรรษที่ 90 ในยุคแรกของ world wide web แต่ในปัจจุบัน Netscape Navigator เหลือส่วนแบ่งตลาดอยู่เพียง 0.6% จึงไม่คุ้มค่าสำหรับ AOL ที่จะพัฒนาต่อ

ที่มา: BBC, http://www.blognone.com/node/7125

Share



Google now one of the top 10 most valuable brands

Tuesday 23 September 2008 @ 10:14 pm

Interbrand has concluded its study of this year’s top brands and released its annual Best Global Brands survey, a valuation based on several factors of international reach and financial growth. A number of tech companies, including Google, IBM, and Nintendo saw the most positive gains, while financial giants and even Microsoft saw their places slip from previous years.

While Coca-Cola retained its place as the number one global brand for its eighth year in a row, Google saw explosive 43 percent growth from 2007, leaping from its spot at number 20 and breaking into the list of top 10 brands at number 10. IBM also grew by three percent this year, rising from number three in 2007 to knock Microsoft out of its number two spot. The rest of Interbrand’s top ten brands for 2008 continue with GE at number four, then Nokia, Toyota, Intel, McDonalds, and Disney.

That Google shot so far up the charts so quickly and broke into the top 10 brands in just 10 years of existence is no small feat. Between successfully growing and defending its dominance in search over the last year, as well as expanding aggressively into mobile and business services, Google has become a household name and a part of everyday vocabulary.

Interbrand says it uses a proprietary formula for constructing this list, a methodology that takes into account several components of a company’s brand, such as financial strength, influence over point-of-purchase customer demand, and its ability to retain customers and demand for products, which in turn sustains future earning forecasts.

Other brands that saw significant gains include Nintendo, with 13 percent growth and a rise from spot 44 in 2007 to 40, Apple, with the second largest positive gain of 24 percent growth and a move from spot 33 to 24, and Amazon with a 19 percent growth and shift from spot 62 to 58.

In light of the turbulent financial week, it should come as no surprise that brands, like Merrill Lynch, fell 12 spots to number 34. Strangely, though, some credit card companies did quite well due to their brand strengths, with Visa making its first entrance on the list at 100, and American Express holding its own at 15, with five percent growth from 2007.

Interbrand notes that one of the most important new factors driving brand value across all sectors—financial services, consumer goods, and especially automotive—is sustainability. Car manufacturers, and even luxury specialists, like Mercedes, are placing a much greater emphasis on fuel efficiency, with Honda being the only auto maker reporting better sales in 2008 over the previous year.

“In troubled economies business doesn’t cease. Companies may struggle, but the practice of buying and selling continues no matter what,” Jez Frampton, Global CEO of Interbrand, said in a press release. “Many of the Best Global Brands know this and come through these difficult times stronger and better poised to compete. The key to success, in good times and bad, is understanding how your brand creates value.”

Source: http://arstechnica.com/news.ars/post/20080919-google-now-one-of-the-top-10-most-valuable-brands.html

Share



Google’s Android Arriving Tomorrow

Tuesday 23 September 2008 @ 10:04 pm


The big news this week will be the announcement for the first Android device from Google, HTC and T-Mobile. T-Mobile sent out invitations to the media to “experience the first Android-powered phone” on Tuesday, September 23rd.

A video demo from Google demonstrates the device’s browser and interface of the upcoming device. The new device is said to be priced at $199 and “showcase the Google brand” and incorporate a swivel-out full keyboard along with an accelerometer and a large touch screen.

The new platform will obviously draw comparisons with Apple’s iPhone. Google is promoting the openness of its platform at a time when Apple is seeing more criticism about its App approval process. Google will be introducing its own Android Market which provides developers a central repository for application sales and distribution. At launch, the Android Market will only offer free applications, but billing support should be coming at a later date. Unlike the App Store, the Android Market has no approval process and any developer can upload any application.

One of the particularly successful iPhone developers, however, is staying away from Android. Steve Demeter, who made headlines last week for having made $250,000 in sales of his iPhone game Trism, told AlleyInsider that the availability of multiple handset models could introduce more headaches than its worth:

“Do I want to be spending 6 months to write the game, and another 6 months making it compatible? If I had Trism available for Android, and there are 50 Android devices and every time one of them crashes (the users) contact me, do I want that?”

Instead, Demeter has been hiring and is working on 5 more iPhone games.

Source : http://www.macrumors.com/2008/09/22/googles-android-arriving-tomorrow/

Share



Next Posts »» «« Previous Posts