-
Charset in MySQL 5
MySQL 5 – Connection Character Sets and Collations มีปัญหา จะใช้ PEAR::MDB2 อ่านข้อความ utf-8 จาก MySQL (โพสต์ไว้ที่ Narisa.com) ปรากฏว่าข้อความ(ภาษาไทย, ภาษา non-Latin1)กลายเป็น ??? หมดเลย หาในเน็ตอยู่นาน ปรากฏว่า ต้องเพิ่มคำสั่งนี้เข้าไปก่อนจะเริ่ม query SELECT $db->query(“SET CHARACTER SET utf8”); แต่ทำแบบนี้ก็กลายเป็นว่า ไม่รู้จะใช้ MDB2 (database abstraction layer) ไปทำไม เพราะ query นี้มันมีเฉพาะ MySQL ! 🙁 มีคนแจ้ง “บั๊ก” (ขอเพิ่มฟีเจอร์) ไว้แล้ว
-
PHP interpreter for Python
PHPFilter for CherryPy
-
GeSHi – Generic Syntax Highlighter
GeSHi is a PHP syntax highlighting class. It supports a wide range of popular languages for highlighting (ASP, bash, C+, CSS, Delphi, HTML, Java, JavaScript, etc.). Output format is highly customisable.
-
FPDF – PDF generator in PHP
FPDF is a freeware PHP class which allows to generate PDF files with pure PHP, no PDFlib library required. Works with both PHP4 and PHP5.
-
LOTUS Thai Speech Corpus
Chai Wutiwiwatchai wrote: NECTEC now lauches a large vocabulary continuous speech corpus namely LOTUS. It is freely downloaded at http://www.nectec.or.th/rdi/lotus It contains both a set of phonetically-balanced sentences with manually phone-boundary marked and three sets of large vocabulary continuous speech sentences covering Thai 5,000 words. Please find out its usefulness in your work. Chai
-
Get Sun Java IDE for FREE
Get Sun Java Studio Creator (more or less like Visual Basic IDE for Java) and Sun Java Studio Enterprise (based on NetBeans IDE, ~Visual Studio for Java EE) for free (=no cost). Java Studio Enterprise can generate UML diagrams from your code, and vice versa.
-
Counting words/characters (Why I like Unix)
(No, not me. Him.) Word frequencies cat hfinn10.txt | tr ‘[:punct:]’ ‘ ‘ | tr ‘ ‘ ‘\012’ | sort | uniq -c | sort -n | tail -20 Character frequencies cat hfinn10.txt | sed ‘s/./&~/g’ | tr ‘~’ ‘\012’ | sort -n | uniq -c | sort -n | tail -20 more plumbing magic…
-
Manipulate Columns: Cut, Paste
a file “words” contains: abcde fghi jklm nop qrst uvw xyz a file “digits” contains: 12 3 45 678 910 11 paste words digits command gives: abcde 12 fghi 3 jklm 45 nop 678 qrst 910 uvw 11 xyz
-
Subversion permission problem ?
Got this ? svn: Unable to open an ra_local session to URL svn: Unable to open repository ‘file:///svnroot/project’ svn: Berkeley DB error while opening environment for filesystem /svnroot/db: Permission denied Just open a read/write access to the repository, esp the db directory … something like (but more fine-grained than) chmod -R g+w /svnroot