Posts Tagged ‘database’

PHP variable naming sucks

Tuesday, August 5th, 2008 by Agro Rachmatullah

PHP is a language that deserves curse. For variable names, we always have to use the $ sign. The purpose is of course to add one more thing a programmer can forget. And when you do forget, PHP treats the misnamed variable as a string which in my case causes the script to run but wrongly.

Here’s the golden bug on my script:

$mysql_db = "some_db_name";
mysql_select_db(mysql_db);

No wonder my carefully crafted INSERT query didn’t have any effect…

List of Indonesian Words

Friday, June 27th, 2008 by Agro Rachmatullah

If you need an Indonesian word list, probably for language processing, a starting point to make your uber dictionary, or others, here it is:

indonesian_word_list.zip (103 KB, 36203 entries)

The data is from the Indonesian dictionary for OpenOffice.org, kindly provided by Benitius Brevoort. I searched for it a long time ago for my program WordFinder which is used to find suitable words for mnemonics. For English words, I could just use the regex in Stardict.

I hope you find it useful.