Things that I find interesting, mostly about nature, science, mathematics, programming, and Thailand's fight against corruption.
Monday, July 10, 2006
Pain Control For Fun & Profit
Well, there is a scientific experiment that confirms that I am not crazy after all.
... Mackey and his team used fMRI to scan the brains of two groups of subjects: eight chronic pain patients and 36 healthy people who received pain via a non-harmful heat stimulus to the palm. Using state-of-the-art software, the team was able to analyze the fMRI images at the exact moments when the subjects experienced pain.
The researchers located the area of each subject's brain that responded to pain, and then allowed the subject to observe activity in that area as it occurred. Each participant was asked to "cognitively modulate" the brain signal...
... Over the course of three sessions, the patients overwhelmingly learned how to successfully modulate the signal and manage both the intensity and unpleasantness of their pain.
So, how did they do it? The researchers aren't sure.
"The challenge in this is that most people had a real difficult time describing what they were finally doing," Mackey said. "We don't really have a vernacular, a way of describing how we control our brains. When you reach out to grab a pencil, you couldn't really describe how you reached out to grab that pencil." ...
Thursday, July 06, 2006
My Theory Is Confirmed By The CIA!
I read the news and turned to my friend Kwang and discussed with him about Bin-laden's intention.
We came up with these conclusions:
1. Bin-laden would like George Bush to win. A known, clumsy enemy, with a misguided policy is relatively safe for al-Qaeda and will harm the USA more than al-Qaeda could ever hope to accomplish.
2. Bush and Bin-laden are acting in a mutually beneficial manner by strengthening each other's power and influences.
Today, I read this article which states that the CIA had the same conclusions!
Some excerpts:
On Oct. 29, 2004, just four days before the U.S. presidential election, al-Qaeda leader Osama bin-Laden released a videotape denouncing George W. Bush. Some Bush supporters quickly spun the diatribe as “Osama’s endorsement of John Kerry.” But behind the walls of the CIA, analysts had concluded the opposite: that bin-Laden was trying to help Bush gain a second term...
...“At the five o’clock meeting, [deputy CIA director] John McLaughlin opened the issue with the consensus view: ‘Bin-Laden certainly did a nice favor today for the President.”
McLaughlin’s comment drew nods from CIA officers at the table. Jami Miscik, CIA deputy associate director for intelligence, suggested that the al-Qaeda founder may have come to Bush’s aid because bin-Laden felt threatened by the rise in Iraq of Jordanian terrorist Abu Musab al-Zarqawi; bin-Laden might have thought his leadership would be diminished if Bush lost the White House and their “eye-to-eye struggle” ended...
...After the 9/11 attacks, al-Qaeda’s gamble almost failed as the CIA, backed by U.S. Special Forces, ousted bin-Laden’s Taliban allies in Afghanistan and cornered much of the al-Qaeda leadership in the mountains of Tora Bora near the Pakistani border.
But instead of using U.S. ground troops to seal the border, Bush relied on the Pakistani army, which was known to have mixed sympathies about al-Qaeda. The Pakistani army moved its blocking force belatedly into position while bin-Laden and others from his inner circle escaped. Then, instead of staying focused on bin-Laden and his fellow fugitives, Bush moved on to other objectives. Bush shifted U.S. Special Forces away from bin-Laden and al-Qaeda and toward Saddam Hussein and Iraq...
Tuesday, June 20, 2006
"ดื่มน้ำชาละลายไขมัน"
ปรากฏว่าเรื่องนี้อาจมีมูล ชาอาจจะมีสารเคมีที่ทำให้หลอดเลือดหัวใจไม่เสื่อมง่ายๆ
จาก blog นี้:
Sumpio, the lead author of the review in the Journal of the American College of Surgeons, said he and his colleagues reviewed more than 100 experimental and clinical studies about green tea in writing the article.
He said one theory is that the average 1.2 liters of green tea consumed daily by many people in Asia offers the anti-oxidant protective effects of the polyphenolic EGCG. EGCG may prevent LDL oxidation, which has been shown to play a key role in the pathophysiology of arteriosclerosis. EGCG also reduces the amount of platelet aggregation, regulates lipids, and promotes proliferation and migration of smooth muscle cells, which are all factors in reducing cardiovascular disease, he said.
Wednesday, June 14, 2006
If Life Gives You A Lemon, Make A Lemonade
แปลตรงตัวว่า ถ้าชีวิตให้มะนาวกับคุณ จงทำน้ำมะนาวเสีย
แปลให้รู้เรื่องมากขึ้นว่า แม้ว่าคุณจะตกอยู่ในสถานการณ์ลำบาก คุณก็ควรทำสิ่งที่ดีที่สุดภายใต้ข้อจำกัดของสถานการณ์นั้นๆ หรือให้เน้นคิดในทางบวกเพื่อหาทางออกที่ดี (lemon = ของห่วย เช่น That car is a lemon = รถคันนั้นห่วย)
ยกตัวอย่างเช่น
ผมงัวเงียตื่นขึ้นมาตอนตีห้าครึ่งเพราะธีธัชละเมออยากกินข้าว แล้วผมก็กระเด้งลุกขึ้นนั่งเพราะจำได้ว่าผมต้องเอาหนังสือเดินทางไปรับตั๋วที่จะบินไปอเมริกาวันอาทิตย์นี้ และผมก็จำได้อย่างกระทันหันว่าหนังสือเดินทางของผมใกล้จะหมดอายุ
ผมวิ่งไปที่กล่องเก็บเอกสาร (หัวใจเต้นตุบๆด้วยอดรีนาลิน) ขุดหนังสือเดินทางขึ้นมา ดูวันหมดอายุ เห็น 24 April 2007
ผมตกใจมากเพราะเห็นว่าหนังสือเดินทางผมหมดอายุแล้ว อุทานว่า "ตายแล้วๆ" กับอ้อ(ซึ่งปลอบธีธัชอยู่) รีบไปแปลงฟัน เพื่อซื้อเวลาในการคิดวางแผนไปทำหนังสือเดินทางใหม่
อ้อบอกว่าควรไปหาดูใน Internet ว่าจะทำหนังสือเดินทางใหม่อย่างไร
ผมค้นหา คำว่า "ทำ passport" ใน Google ไม่พบหน้าที่น่าสนใจ
ค้น "หลักฐาน ทำ passport" พบหน้าใน pantip.com อ่านผ่านๆ แล้วตัดสินใจไปดูที่เว็บกระทรวงต่างประเทศที่นี่
สิ่งที่น่าสนใจก็คือหนังสือเดินทางใหม่มี electronic chip ที่เก็บข้อมูล สามารถรับได้ใน 2 วันทำการ และใช้ บัตรประจำตัวประชาชนเป็นหลักฐานเท่านั้น
นอกจากนี้ยังมี สิ่งน่าสนใจจาก blog นี้ เช่น
"ถ้ากลัวมีปัญหากับเจ้าหน้าที่เรื่องการสะกดชื่อภาษาอังกฤษ ก็แนะนำให้พก Transcript หรือเอกสารสำคัญที่มีชื่อภาษาอังกฤษของเราไปด้วยนะคะ (เคยเห็นกระทู้นึงเล่าปัญหาว่าเจ้าหน้าที่ไม่ยอมให้เราสะกดแบบของเรา เค้าจะบังคับให้สะกดภาษาอังกฤษตามหลักราชบัณฑิตยสถานของเค้าเท่านั้น ก็เลยคิดว่าพกไปก่อนน่าจะดีเผื่อมีปัญหาเรื่องตัวสะกดชื่อ-นามสกุลภาษาอังกฤษ เพื่อแสดงว่าเราใช้ของเรามาแบบนี้และยืนยันที่จะใช้เหมือนเดิม)"
"ขั้นตอนที่ 1 รับบัตรคิว (บัตรคิวจำกัดจำนวนด้วยค่ะ หมดแล้วหมดเลย ต้องมาใหม่วันอื่น)"
"ถ้าไม่อยากใช้เวลานาน ต้องมาตั้งแต่เช้าเวลาเปิด 8.30 น.หรือไม่ก็อย่าเกิน 9.00 น. จะเสร็จภายใน 1 ชม. (เค้าว่ากันว่าอย่างนั้นนะคะ แต่ไม่รู้ว่าจริงรึเปล่า) พ่อเราไป 8 โมง มีคนมารอตั้งเยอะแล้วนะ"
"ถ้ามีพาสปอร์ตเล่มเดิมที่ยังมีวีซ่าอยู่ ให้แจ้งเจ้าหน้าที่ว่าเรามีวีซ่าเหลืออยู่ในเล่มเดิม ต้องการรวมเล่ม เจ้าหน้าที่จะให้ใบคำร้องมากรอก เมื่อรับpassport เล่มใหม่มาก็ไปถ่ายเอกสารหน้าที่มีรูปเรา แล้วไปจ่ายค่าธรรมเนียมรับรองเอกสาร 100 บาทต่อเล่ม แล้วก็รอรับเล่ม ซึ่งก็ไม่เห็นมีอะไร แค่ปั๊มว่าเราเปลี่ยน passport จากเล่มเก่ามาเล่มใหม่แค่นั้น เวลาเข้าประเทศที่มี visa เหลืออยู่ในเล่มเก่าก็ให้ถือไปสองเล่มเลย"
"เพิ่งไปทำมาเหมือนกันครับ ที่เซ็นทรัลปิ่นเกล้า เจ้าหน้าที่น่ารักดี
การทำก็สะดวกดี แต่คนเยอะมากๆ ผมไปประมาณ 11 โมงเช้า ได้ทำประมาณบ่ายสองบ่ายสามนี่แหล่ะ
แต่แย้งนิดนึงครับเอกสารรับรองชื่อไม่จำเป็นครับ เพราะนามสกุลผมก็มีปัญหาเหมือนกัน แต่เค้าแค่ให้เซ็นรับรองว่าจะใช้แบบนี้เท่านั้นเองครับ แต่เตรียมไปก็คงดีเหมือนกันครับ"
"เข้าไปวัดส่วนสูงเสร็จ ตอนถ่ายรูปอ่ะเค้าเก็บ 5 บาท เตรียมเหรียญกันไปด้วยค่าแสตมป์อ่ะ แปะใบขอทำพาสปอร์ต"
ฯลฯ
ขณะที่ผมกำลังรวบรวมเอกสารและข้อมูลอยู่นั้นเอง อ้อก็เดินมาบอกว่า "พี่โก้ passport หมดอายุปี 2007"
ผมตบหน้าผากตัวเองและตะโกนอ้าก(ในใจ)เพราะทนความปัญญาอ่อนของตนไม่ไหว
แล้วผมก็เขียน blog นี้เผื่อใครจะใช้ link ที่ผมเจอให้มีประโยชน์ได้บ้าง
Sunday, June 04, 2006
รักพระเจ้าอยู่หัว ด้วยปฏิบัติบูชากันเถิด
เรามาปฏิบัติตามคำแนะนำของพระองค์กันเถิด ปัญหาของประเทศใหญ่หลวงนัก ไม่สามารถพึ่งพาอัศวินม้าขาวที่ไหนได้หรอก เราต้องช่วยกันแก้เอง
เชิญศึกษาพระราชดำรัสได้ที่เครือข่ายกาญจนาภิเษก
เราสามารถเริ่มได้ด้วยเรื่องเกี่ยวกับเศรษฐกิจพอเพียง และพยายามปฏิบัติตนอย่างมีศีลธรรมและจริยธรรมกัน
เป็นสิ่งที่ไม่ง่าย แต่ต้องทำ ถ้าอยากให้ประเทศไทยอยู่รอด แม้จะทำได้ไม่สมบูรณ์ แต่ก็ควรทำเท่าที่ทำได้
เรามาเริ่มที่ตัวเรากันเถอะ
Tuesday, May 30, 2006
Noam Chomsky: Why it's over for America
Hmm, the three characteristics sound like Thaksin's administration in Thailand too...
Saturday, April 29, 2006
Another Cool Image Processing Technique
From the paper's description:
Here we present a method for automatically replacing one material with another, completely different material, starting with only a single high dynamic range image as input. Our approach exploits the fact that human vision is surprisingly tolerant of certain (sometimes enormous) physical inaccuracies, while being sensitive to others. By adjusting our simulations to be careful about those aspects to which the human visual system is sensitive, we are for the first time able to demonstrate significant material changes on the basis of a single photograph as input.
Go to the article main page and see the demos.
Tuesday, April 25, 2006
Amyl acetate, amyl butyrate, amyl valerate, anethol, ....
For another interesting article about artificial flavour in fast food, see this, an excerpt from Eric Schlosser's Fast Food Nation.
Saturday, April 22, 2006
Another Sign That The US Is Becoming A Third World Country...
I read an interesting interview by a former UN weapon inspector (and an alleged spy) about the US-Middle East situation. A few excerpts are shown below with my highlight in red:
On the plan to attack Iran without any good reason:
That’s why when I speak of Iran, I say be careful of falling into the trap of nonproliferation, disarmament, weapons of mass destruction; this is a smokescreen. The Bush administration does not have policy of disarmament vis-a-vis Iran. They do have a policy of regime change. If we had a policy of disarmament, we would have engaged in unilateral or bilateral discussions with the Iranians a long time ago. But we put that off the table because we have no desire to resolve the situation we use to facilitate the military intervention necessary to achieve regime change. It’s the exact replay of the game plan used for Iraq, where we didn’t care what Saddam did, what he said, what the weapons inspectors found. We created the perception of a noncompliant Iraq, and we stuck with that perception, selling that perception until we achieved our ultimate objective, which was invasion that got rid of Saddam. With Iran, we are creating the perception of a noncompliant Iran, a threatening Iran. It doesn’t matter what the facts are. Now that we have successfully created that perception, the Bush administration will move forward aggressively until it achieves its ultimate objective, which is regime change.
On general population ignorance:
What is it about Americans that allows them to get so bent out of shape when you start questioning the government in a time of war?
I’ll say ignorance. How many Americans have read the Constitution and know the Constitution, live the Constitution, breathe the Constitution, define their existence as Americans by the Constitution? Very few. And so what happens is, Americans have no concept of what citizenship is, what it is they’re supposed to serve. Many Americans have become so addicted to a lifestyle that I say they’re better consumers than they are citizens. And it’s these consumers who have wrapped themselves in a cocoon of comfort and who have basically abrogated their responsibilities of citizenship to the government, and as long as the government keeps them waddling down the path to prosperity, they don’t want to rock the boat. And they will go out and attack those who do rock the boat—those who challenge authority.
If you read the Constitution, you’ll be struck by the first words: “We the people of the United States.” And yet it sickens me where Americans will say, in the name of security, they will give up their constitutional rights. Warrantless wiretapping—it’s against the law! This is the sort of issue that should bring Americans streaming into the streets, saying, “Not on my watch.” If your definition of patriotism is blind subservience to governmental authority, then you’ve just defined those Germans who supported Hitler, the Italians who supported Mussolini.
Looking at the bright side, Thailand can catch up with the US if we succeed in firing and jailing crooks that rob our countries like Bush/Blair/Berlusconi rob theirs. China might even be more democratic than the US within this century!
Sunday, April 16, 2006
99 Luftballons/99 Red Balloons
You and I in a little toy shop
Buy a bag of balloons with the money we've got
Set them free at the break of dawn
'till one by one they were gone
Back at base, sparks in the software
Flash the message "something's out there"
Floating in the summer sky
Ninety nine red balloons go by
Ninety nine red balloons
Floating in the summer sky
Panic bells, it's red alert
There's something here from somewhere else
The war machine springs to life
Opens up one eager eye
And focusing it on the sky
The ninety nine red balloons go by...
The full lyrics can be found here.
We were not so lucky in the song.
If This Man Believed His Computer, We Would Likely Be Dead By Now
The computer (with inputs from spy satellites) told him a single missile was coming. He reasoned that if the USA was attacking, there would be more than one missile. A short time later, the computer told him another four missiles were coming.
If he had decided the warning was real, he would have initiated the retaliation response that would launch nuclear missiles toward the USA, which in turn would start a full-scale nuclear exchange, destroying the world civilization.
He decided the warning was a false alarm and advised other people as such. Some time later, his decision was proven right. There was no attack from the US. Homo sapiens avoided its extinction once more.
More info about Colonel Petrov can be found here, here, and here.
Monday, April 03, 2006
Weightlessness & Reconnaissance Training
In the first half the the day, they underwent an introductory lesson in weightlessness, a very useful skill when they need to chase criminals over inter-galactic distance:

In the afternoon, they learned about covert operations. The first thing to learn was about reconnaissance. Tatia learned to use her finger-radio to report her observations to the base while Titus operated microscopic binoculars, aptly disguised as a harmless, small black plastic disk:


The training robot (which participated as the enemy target) spotted Tatia's huge head and tagged her with paralyzing beam, while Titus looked on in amazement:

Considering their young ages, getting tagged by the training robot on the first day is considered normal. They will surely continue to refine their skills in the coming weeks.
Wednesday, March 22, 2006
CorruptionWatch.net Is Now ThaiCorruptionWatch.net
The new URL for CorruptionWatch is ThaiCorruptionWatch.net
The website was not accessible for a while, but now it's back!
"สูตรสู่ความสำเร็จ"
หวัดดีคับ ....
มีข้อความดีๆ มาฝาก .... เรื่องอะไรลองอ่านเอาเองนะ
...
สูตรสู่ความสำเร็จ
ถ้า A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
มีค่าเท่ากับ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
แล้วจะพบว่า......
1) H+A+R+D+W+O+R+K = 8+1+18+4+23+15+18+11 = 98%
HARD WORK หรือ ทำงานหนัก มีค่าเท่ากับ 98 %
2) K+N+O+W+L+E+D+G+E = 11+14+15+23+12+5+4+7+5 = 96%
KNOWLEDGE หรือ ความรู้ มีค่าเท่ากับ 96 %
3) L+O+V+E=12+15+22+5 = 54%
LOVE หรือ ความรัก มีค่าเท่ากับ 54 %
4) L+U+C+K = 12+21+3+11 = 47%
LUCK หรือ โชค มีค่าเท่ากับ 47 %ไม่มีสิ่งใดที่มีค่า 100 % เลยหรือ !!!
แล้วสิ่งใดที่มีค่าเท่ากับ 100 %
- ใช่เงินหรือเปล่า ?……… .... .....ไม่ใช่ !!!!!
(M+O+N+E+Y = 13+15+14+5+25 = 72)- ความเป็นผู้นำหรือเปล่า ?………ไม่ใช่ !!!!!
(L+E+A+D+E+R+S+H+I+P = 12+5+1+4+5+18+19+8+9+16 = 97)แล้วอะไรล่ะ ?
A+T+T+I+T+U+D+E = 1+20+20+9+20+21+4+5 = 100%
ATTITUDE หรือ ทัศนคติ นั่นเอง ที่มีค่าเท่ากับ 100 %
ท่านคิดเช่นนั้นหรือไม่ ทุกปัญหามีทางออก . .
บางทีแค่เพียงแต่เราเปลี่ยน "ทัศนคติ "
ของเราเสียใหม่เท่านั้นเอง มีเพียงแต่ “ทัศนคติ” ของเราเท่านั้น
ที่จะเป็นตัวนำทาง ไปสู่ความสำเร็จในชีวิต และงานที่ทำความคิด & ทัศนคติ
สุดท้าย .... ลงมือทำ
ผมเลยหาคำอื่นๆที่มีค่า 100% อีก ปรากฏว่า คำว่า APOPLECTIC, DUMBFOUND, EMASCULATE, FLUORINE, HEMOGLOBIN, HOSPITAL, IMPOTENCE, INEFFICIENT, LEADERLESS, MUMMIFY, NIHILIST, PUSSY, SALACIOUS, SAVORY, SHIBBOLETH, SHRIEKING, SIMULATE, SLEEPYHEAD, SOCIALISM, SODOMITE, STARFISH, SUFFOCATED, TELEPHONE, TELESCOPE, THIRTY, WHENEVER, WHOLESALE, และWHORISH ก็มีค่า 100% เหมือนกัน (คุณสามารถดูคำอื่นๆอีกหลายร้อยคำโดยดาวน์โหลดไฟล์นี้)
อย่าซีเรียสครับ อย่าซีเรียส :-)
(I found these words by using the list of words from here and wrote a small Python program to process the words. Everything (the word list, the program, and the output) can be downloaded from here.)
Sunday, March 19, 2006
Titus' Combat Training Progress
Today, I taught him how to take down a polar bear using bare hands. The important thing is to avoid getting smacked by the bear and focus on his weak spots. Next week's lessons will include how to take down multiple polar bears using a pair of chopsticks and a few super-hard snowballs.
As usual, Titus learned his lesson well although he has to work on his height a bit to use the various techniques. He can take down a small polar bear his height though. (If you don't see any picture, go to kostuff.blogspot.com)
An Interesting Way To Learn Math (Written By A Programmer)
"The right way to learn math is breadth-first, not depth-first. You need to survey the space, learn the names of things, figure out what's what."
"The right way to learn math is to ignore the actual algorithms and proofs, for the most part, and to start by learning a little bit about all the techniques: their names, what they're useful for, approximately how they're computed, how long they've been around, (sometimes) who invented them, what their limitations are, and what they're related to. Think of it as a Liberal Arts degree in mathematics."
"Why? Because the first step to applying mathematics is problem identification. If you have a problem to solve, and you have no idea where to start, it could take you a long time to figure it out. But if you know it's a differentiation problem, or a convex optimization problem, or a boolean logic problem, then you at least know where to start looking for the solution."
I learned most of the math I know that way. Mainly because, deep down, I know I suck at all the math details and I'm more useful to other people as a human indexer of mathematical technologies for my friends and students. Right now, I'm learning Bayesian statistics for mathematical modelling for my friends' projects.
Life is short, Mathematics lasts forever.
Tuesday, March 14, 2006
Patriotic Dog!
Thursday, March 09, 2006
Animations Of Various Engines
I remember that when I was in highschool, I must remember how various car engines work to pass some stupid tests. That was totally painful and not at all fun.
Today I found this web site showing very cool animations of how various types of engine work.
Learning is fun again.
I guess having to know something to pass a test is not a good way to learn things. Learning should be a reward, not a duty.
Tuesday, March 07, 2006
Dear Singaporean Friends
I've always admired your country for its effective transformation from abject poverty to a first-class country in only a few decades. I've always admired your diligence and work ethics whenever I have a chance to work with you. Whenever I visited your country, I feel very safe and welcome wherever I went.
Your society is perceived to be quite free of corruption. I admire this greatly, given that Thailand is down there in the list at #59 and your country is near the top at #5. There are some complaints about relative lack of freedom of speech, but most of you seem to accept that as a price for a stable, prosperous society. This works as long as your government is relatively benign.
However, I have some concerns of my own to share with you. I don't mind Singaporean investments in my country as long as they are governed by high standard of ethics. However, the recent Temasek's buy-out of Shin Corporation reeks of somthing quite rotten.
Many people perceived, rightly or wrongly, that Temasek is colluding with our Prime Minister to rip off Thai people of strategic assets. The way the deal was structured suggested elaborate financial shenanigans planned ahead by the parties involved.
This shook my good-feeling toward Singapore greatly.
I think Thailand and Singapore should be friendly neighbors that can complement each other in many areas. I have no problem with Singaporeans. You are all welcome whenever you come here. I have a favor to ask you though: Could you please not support ripping off Thai people? Please ask for explanations from your government about this deal.
Corruption is contagious. If your country contracts Thailand's corruption and your government can act without accountability, your life might be drastically less stable and less prosperous in a few short years. That is something that none of us wants.
So, please help both Thailand and Singapore by demanding high standard of ethics from your government. Please don't let your government bend moral rules for financial gains.
Thank you,
Your Thai Friend.
Do You Hear The People Sing?

One of my favorite songs from Les Miserables.
คำอธิบายภาษาไทยที่นี่
(If you want a description in Thai, see this link.)
Do you hear the people sing?
Singing a song of angry men?
It is the music of a people
Who will not be slaves again!
When the beating of your heart
Echoes the beating of the drums
There is a life about to start
When tomorrow comes! ...
Full lyrics can be found here.
Of course, Thai demonstrators on March 5, 2006 were much more peaceful than those in Les Miserables.
Tuesday, February 28, 2006
Audio Clips From Feb 26-28 Demonstration In Bangkok
I especially like this one by Sulak Sivaraksa, this one by Dr. Wutthipong Priebjariyawat, and this poem by Phuket's Saman Groa-Lek.
Sondhi Limthongkul described the events leading to the demonstration from his point-of-view here.
Chinese Opera clip (Thaksin Vs. Pao-Boon-Jin) can be found here.
Of course, if you really press me, I have to admit that my favorite of all is this piece (from around 5 minutes into the clip.) :-)
The next demonstration will start on March 5.
Friday, February 24, 2006
Things to Teach My Children (Version 1.0)
Sunday, February 19, 2006
Why Geeks Make Good Fathers, Super Stone Skipping, and FakeAlibi Service
One of the things a geek might enjoy is stone skipping. My personal record is 7 skips before the stone disappeared in water. The Guinness World Record holder is Kurt Steiner, with 40 skips! You have to go to this website and see the videos!
On a totally unrelated topic, for those of you contemplating about cheating your significant other, see this article about a service that will provide you with perfect alibi for your affairs.
From the article:
The standard alibi package is an invitation to a fake conference, seminar and/or training weekend sent to your address, along with a false hotel booking confirmation. FakeAlibi will also supply a telephone number, which, if rung by an inquisitive significant other, will be answered by an agent pretending to be a hotel receptionist or seminar organiser. (A similar website in America, AlibiNetwork.com, will even send a certificate of completion of whichever course you're supposed to have been on to your home afterwards, plus a class photo with you in it.)
and:
Goulding says that FakeAlibi already boasts 21,000 satisfied customers, the incorrigibles among them paying a fixed monthly retainer. An average job, according to their promotional material, will cost you £49.99. The website employs four full-time managers and has 600 retained "operatives" around the world, most of whom have other jobs.
Considering that they also provide private investigation services, I wonder whether there will be any conflict of interest among their clients.
Tuesday, February 14, 2006
Hedonists Might Have A Point
"While pleasure may have evolved as a way to encourage creatures to indulge in healthy behaviour and avoid more harmful pursuits, Stefano believes there is another benefit. Inside brain neurons, and also other tissues in the body, is a chemical called proenkephalin. He says that when we experience pleasure, proenkephalin is broken down, producing a substance that causes a feel good sensation. But the same enzymes involved in that process also release another chemical called enketylin, a strong antibacterial agent. "Just think of the beauty of that: when you're feeling good, you protect yourself," says Stefano."
Also, here is another article about how happiness causes success, in addition to the usual success-causes-happiness idea that we are used to. The PDF of the study is here.
Tuesday, February 07, 2006
A Super-Duper Image Denoising Algorithm!
It's much better to just go see what GREYCSTORATION can do at the demo page. My jaw dropped. Yours might too!
A very cool invention, indeed.
CorruptionWatch.net Is Blocked
I guess Thailand is now officially adopting China's censorship policy.
Meanwhile, you can see and hear a lot of media clips related to fighting corruption in Thailand at http://www.uthaisak.net/
Sunday, February 05, 2006
ประมวลเหตุการณ์ชุมนุมกู้ชาติ 4 ก.พ. 2549
เพราะความชั่วจะชนะถ้าคนดีอยู่เฉยๆ
บทที่ผมชอบที่สุดจาก The Lord of the Rings:
Sam: It's like in the great stories, Mr. Frodo. The ones that really mattered. Full of darkness and danger they were. And sometimes you didn't want to know the end. Because how could the end be happy? How could the world go back to the way it was when so much bad had happened? But in the end, it's only a passing thing, this shadow. Even darkness must pass. A new day will come. And when the sun shines it will shine out the clearer. Those were the stories that stayed with you. That meant something, even if you were too small to understand why. But I think, Mr. Frodo, I do understand. I know now. Folk in those stories had lots of chances of turning back only they didn't. Because they were holding on to something.
Frodo: What are we holding on to Sam?
Sam: That there's some good in this world, Mr. Frodo and it's worth fighting for.
และเราก็รู้ว่าเกิดอะไรขึ้นกับ Sauron ตอนจบนะครับ
Sunday, January 15, 2006
CorruptionWatch.net: Thailand's Corruption Info
"เราต้องสอนเยาวชนว่า คนโกงเป็นคนที่ไม่มีเกียรติ ไม่ต้องยกมือไหว้หรือไปเคารพ หากเยาวชนคิดแบบนี้ได้ก็เป็นสิ่งดี หากผู้ปกครองของเขาไปโกงคนอื่นมาและเขาถูกเพื่อนๆล้อเลียน เมื่อเขาไปเล่าให้ครอบครัวฟัง ผู้ปกครองของเยาวชนคนนั้น จะรู้สึกโกรธและอับอายแทนลูกหลานของเขา และน่าจะยุติกระทำในสิ่งที่ลูกหลานไม่สบายใจที่ถูกล้อเลียน"
-คุณหญิงจารุวรรณ เมณฑกา, จาก คอร์รัปชันกับข้าราชการในพระบาทสมเด็จพระเจ้าอยู่หัว
มีเวบมาแนะนำครับ
พี่น้องชาวไทยช่วยกันอ่านและเผยแพร่หน่อยนะครับ
เราอาจมีความเห็นแตกต่างกันหลายเรื่อง
แต่เราน่าจะเห็นตรงกันว่าสมบัติของประชาชนชาวไทย ของแผ่นดินไทย
ไม่ควรให้คนเลวไม่กี่ตระกูลขโมยไปเก็บสะสม หรือร่วมมือกับต่างประเทศเข้ามายึดครอง
แล้วทำให้ประชาชนคนไทยเป็นประชาชนชั้นสอง ในแผ่นดินเกิดของตนเอง
Globalization & modernization ที่ทำให้ชาวโลกมีความสุขขึ้นนั้นเป็นสิ่งน่าสรรเสริญ
แต่ Globalization & modernization ที่ทำให้ชาวโลกส่วนใหญ่มีความทุกข์มากขึ้น
แล้วทำให้คนกลุ่มน้อยมีอำนาจมหาศาล แล้วเอาเปรียบเพื่อนมนุษย์นั้น เป็นสิ่งชั่วช้า น่าละอายอย่างยิ่ง
การเอาสมบัติส่วนรวมไปเป็นของส่วนตัว เป็นสิ่งชั่วช้า น่าละอายอย่างยิ่ง
การเอาเปรียบเพื่อนมนุษย์ ที่ด้อยโอกาสทางเศรษฐกิจและสังคม ที่ไม่รู้เท่าทัน เป็นสิ่งชั่วช้า น่าละอายอย่างยิ่ง
การทำตัวอย่างไม่ดี สอนลูกหลานให้ไม่มีจริยธรรม ไม่มีหิริ โอตตัปปะ นั้น เป็นสิ่งชั่วช้า น่าละอายอย่างยิ่ง
ความชั่วนั้น จะทำลายตัวเองในที่สุด แต่เราต้องรู้ทัน ต่อต้าน ต่อสู้ เปิดโปง
ธรรมะและปัญญาชนะความชั่วเสมอ แต่เราต้องไม่งอมืองอเท้า รอแต่โชคชะตา
ช่วยๆกันครับ
ขอบคุณครับ
Wednesday, January 11, 2006
Software Horror Stories To Keep Programmers Humble
I was an arrogant fool.
Now that I'm no longer young and very slightly less foolish, I expect the worst when I write any piece of code. Now, I try to always program defensively, trying to eliminate the chance that a bug will occur. I think about preconditions, postconditions, and invariants. Alway ask myself how I know the code is correct. Test a lot. Think things through before coding. Remember that shortcuts rarely are short but almost always cut.
I consider myself fortunate that when my software failed, nobody died.
Others were not so fortunate.
This Software Horror Stories page shows us what disasters did happen when software failed. People who made these softwares were probably quite smart and experienced. They knew how well their software must perform. They knew what the stakes were. Yet they failed. Spectacularly.
Younglings, it's better to learn from others' mistakes. There are some good free tips. There are a lot of great books. I can recommend three: Code Complete, The Mythical Man-Month, and Facts and Fallacies in Software Engineering.
The most important thing is to start with the will to make good software, work at it a lot, work at it constantly until it's a habit.
Kind of like dieting.
Sunday, January 08, 2006
Corruption Index: Thailand Government Is 56th Most Corrupted Out Of 130 Countries Surveyed
(DEFINITION: Relates to perceptions of the degree of corruption as seen by business people, academics and risk analysts, and ranges between 0 (highly clean) and 10 (highly corrupt). Includes police corruption, business corruption, political corruption, etc. Data for 2003.)
The most corrupted countries are:
#1 Bangladesh
#2 Nigeria
#3 Haiti
#4 Burma
#5 Paraguay
#6 Azerbaijan
#7 Cameroon
#8 Tajikistan
#9 Angola
#10 Georgia
The least corrupted countries are (#130 = least corrupted):
#130 Finland
#129 Iceland
#128 Denmark
#127 New Zealand
#126 Singapore
#125 Sweden
#124 Netherlands
#123 Norway
#122 Australia
#121 Switzerland
China (#63) is rated to be less corrupted than Thailand, contrary to most Thai's perception.
Cry, my beloved country. The wheel of Karma is turning way too slowly.
(On the other hand, there is a talk about re-instituting Khun Ying Jaruvan Maintaka to her office to fight the rampant corruption in Thailand again. I will believe it when I see it done.)
By the way, do you know that when Thai government is signing the FTA (Free Trade Agreements) with various countries, the agreements are not reviewed by the paliament? This stinks like Enron or Worldcom situations. Power without accountability does poison the human mind.
Anyway, my 92-year old grandma insists that Karma exists and the wicked will be punished. I say it better works before the wicked die because if the wheel of Karma requires reincarnation, it would be effectively as if there is no Karma at all, since nobody remembers their past lives anyway. (I personally believe that when I die, "I" will just ceast to exist and my former body will be either dust, ash, animals', plants', bacteria's food, or combination of the above. That's why I need to see bad deeds punished before the perpetrators die.)
Another Site Of Well-Designed Products
Here is another such site. It's by Don Norman, the author of an interesting book called "The Design of Everyday Things". There are many interesting essays by Professor Norman that you can read at the site too.
Professor Norman is a cognitive scientist who does not bullshit, thus having quite valuable insight into how human-product interaction should work. In my experience, people with good psychology training (who do not bullshit) tend to be better than most people at writing specifications for software systems.
***Shameless Plug Alert Begins***
BTW, my partner MindFireInc's flagship product, LookWho'sClicking, is designed by my amazing friend Matt who is also a straight-talking psychologist. So far, the customers are quite happy with how they interact with the software. We are also doing improvements that will make customers even happier in 2006. If you do any marketing via the Internet at all, you should check them out.
***Shameless Plug Alert Ends***
Tuesday, January 03, 2006
Very, Very Short Stories
The rule for entering the contest can be found here.
A few of of current winners I like are:
SAY SOMETHING
The subway lurched, throwing her into his arms.
He’s strong, protective, loving, she thought. We’ll marry at a seaside resort and have four beautiful children.
He lifted her up and smiled. I’ll always be faithful. When we’re old, we’ll travel the world together.
The train slowed. She moved to the door.
"Thanks."
"Don’t mention it."
Chris Orcutt
Mount Vernon, NY
A PARTY FOR INNOCENCE
Persuasion enticed her there. Music played. Harmony danced with Rhythm. Charm brushed a hand across her cheek, attracting Desire.
She thought she heard Sincerity; it was Seduction. He introduced Lust. Party over, the guest list lay forgotten like her.
She read that Love had declined to attend.
Honor had not been invited.
Innocence is gone.
Deirdra Barnes
Seattle, WA
INSIDE OUT
They had known each other a few years.
She was nice. He knew she liked him.
But she was just average-looking. He couldn’t settle for that.
One weekend, she asked him to the movies. She was intelligent, funny, easy to be with.
After four months of dating, she became a stunning beauty.
John Bassi
Santa Maria
And my favorite:
AT THE AUTOPSY
"Victim’s blood is completely drained, apparently through two small puncture wounds in the neck," said the coroner.
"Hey … you don’t suppose it’s, you know, the real deal?" asked his assistant.
"No, just some psycho."
"You sure?"
They stared at each other for a moment, then burst out laughing–but stopped when the corpse laughed, too.
Ross Lesko
Lakewood, OH
Saturday, December 31, 2005
สาระและสสาร (Bits & Atoms)
เหลือบไปเห็นหนังสือที่เคาท์เตอร์จ่ายเงินเกี่ยวกับ การแสวงบุญโดยการไปเยี่ยมสถานที่ประวัติศาสตร์ในสมัยพุทธกาล
แล้วผมก็อดขำไม่ได้
พวกเราไม่ค่อยจะฟังพระพุทธเจ้าเท่าไร แม้ว่าเราจะบอกว่าเราเป็นชาวพุทธก็ตาม
พระพุทธเจ้าบอกให้เราตั้งอยู่ในความไม่ประมาท
พระองค์บอกว่าพระธรรมจะเป็นศาสดาของชาวพุทธ เมื่อพระองค์ปรินิพพานไปแล้ว
แล้วเราก็ไปยึดถือวัตถุ เครื่องรางของขลัง สถานที่ ตัวบุคคล
สิ่งต่างๆที่เป็นสสาร ที่ประกอบด้วยอะตอม
ที่เปลี่ยนแปลง
ไม่ถาวร
แทนที่จะปฎิบัติตามสาระ แก่นสาร
สิ่งที่เป็น information เป็น bits
สิ่งที่เป็นกฎธรรมชาติ
หลักการที่ใช้ได้เสมอกับสมองมนุษย์อย่างเรา
(ผมคิดถึงพุทธศาสนาเป็น User Manual ของสมองมนุษย์)
ผมหันไปคุยกับอ้อว่า ร่างกายของเราเนี่ย มีอะตอมเหมือนกับตอนเราแรกเกิดไม่มากหรอก
สสารต่างๆไหลมาชุมนุมในกาลอวกาศ (space-time) ที่ประกอบเป็นร่างเราแค่ชั่วคราว
แล้วก็ไหลจากไป
สิ่งที่เราเรียกว่าตัวเราก็เป็นเพียงรูปแบบในกาลอวกาศ (information pattern in space-time)
วันใดที่รูปแบบดับไป "เรา"ก็ดับไปด้วย
สุดท้ายนี้ผมขออ้างอิงคำอวยพรที่ผมชอบที่สุดปีนี้ให้ท่านผู้อ่าน blog นี้ทุกท่าน
คำอวยพรนี่เขียนโดยคุณสุทธิชัย หยุ่น ที่เนชั่นสุดสัปดาห์ เรื่อง "ความสุขปีใหม่นี้...ปล่อยว่างอัตตาเสียบ้าง, จะได้สุขแบบอนัตตา" ลองอ่านดูครับ
สวัสดีปีใหม่ครับ
Tuesday, December 27, 2005
A New Word Today: Kong-Fu
***SPOILER ALERT***
Kong-Fu: The martial art used by Kong when he defended Ann Darrow from the T-Rexes in the movie King Kong.

***END SPOILER***
The movie looks great but since I have seen previous King Kong movies many times, there is no new story to surprise me. It's also probably too scary for young children. The best thing for me is to look at Ann and Kong. (Ann, because she is pretty; Kong, because he was rendered so well.)
Ann Darrow is played by the very beautiful Naomi Watts. I was waiting for her to be a big movie star since I first saw her a decade ago. (I think her best movie is David Lynch's Mulholland Dr. If you like a haunting story, you might want to try it too.)
Sunday, December 25, 2005
Advanced Trainings For My Children
Aor and I are very proud to announce that our two children enthusiastically enrolled in two such advanced courses today.
Now that Titus is 28 months old, he is starting his training in my world-famous crime-fighting program (Figure 1.) This is imperative because, as the future inventor of the warp drive, Titus must necessarily assume the role of a time-travelling enforcer to prevent criminals from messing with our universe's chronology.)

Figure 1
Aor also enrolled Tatia (20 days old) into her Orpheus whistling program (Figure 2.) We suspect the ability to resurrect the dead with music will be very hip in about 20 years. We would prefer the Phra-A-Pai-Ma-Nee training but it's a lost art and neither of us can google it.
Figure 2
Their upcoming tremendous progress will be reported in this blog in the near future.
Smart Stuff - The World's Smartest Stuff
Saturday, December 24, 2005
วิธีผูกเงื่อนต่างๆ
ตอนนี้เริ่มแก่แล้วก็เลยต้องพัฒนาความรู้มากขึ้นอีกนิดหนึ่ง เอาไว้สอนลูก โดยอาศัยเวบนี้
ถ้าคุณชอบการศึกษาเงื่อนปมในทางคณิตศาสตร์ คุณควรจะแวะไปดูเวบนี้ด้วย
เช่นเคย วิกิพีเดีย มีหน้าสรุปเกี่ยวกับทฤษฎีเงื่อนปมไว้เริ่มศึกษาได้
(วิกิพีเดีย มีหน้าเป็นภาษาไทยด้วยนะครับ ถ้าใครมีความรู้อะไร ก็เข้าไปเขียนได้)
Thursday, December 15, 2005
Greatest Physics Lab Writeup Ever*
(*Well, if not the greatest, it must be really high up there.)
Monday, December 12, 2005
คำถามจากเพื่อนเจ้าปัญญา

วันนี้พอพลเพื่อนเจ้าปัญญา (a wise friend) แวะที่บ้านเพื่อทำงานเกี่ยวกับ data crunching ทั้งวัน
ระหว่างพักเหนื่อย พอพล(โสด) ก็คุยถึงการเลือกคู่ ด้วยความรู้สึก ด้วยอารมณ์ ด้วยเหตุผล ด้วยปัญญา ฯลฯ
พอพลบอกว่า เขาเคยได้ยินคนฉลาดบอกว่าถ้าอยากจะรู้ว่าเราเลือกแต่งงานได้ดีไหม ให้ถามตัวเองสองข้อ
1. ถ้าเลือกกลับไปในอดีตได้ ยังจะแต่งงานกับเธอไหม
2. ถ้าเราตายไปวันนี้ เราไม่ต้องห่วงว่าเธอจะเลี้ยงลูกได้ดีใช่ไหม
ผมตอบ yes ทั้งสองข้อ
As Yoda might have said: "Lucky bastard, you are, hmm?"
P.S. The place where Aor and I got married was grinded down three years ago to make a super-duper-giga-shopping-complex called Siam Paragon. I miss all the open garden space and wandering peacocks. I hope it's worth it for the people who made the decision, trading serenity with garish materialism.
Saturday, December 10, 2005
การค้นพบที่ยิ่งใหญ่ของธีธัช
"น้องหายใจ" ธีธัชทำตาโตบอกทุกคนที่อยู่รอบๆด้วยน้ำเสียงตื่นเต้นและภูมิใจ
ไม่เลวทีเดียวสำหรับอนาคต Hyperspace Engineer ผู้สร้างเครื่องยนต์ Warp Drive ที่ทำให้มนุษยชาติสามารถตั้งหลักแหล่งทั่วแกแลกซีทางช้างเผือก
(ความจริงธีธัชค้นพบความจริงที่สำคัญระดับรองๆตั้งแต่เมื่อวานแล้ว
เมื่อธัชธีญาเตะขาไปมา ธีธัชก็ประกาศให้โลกรู้ว่า "ขาดิ้น")
Titus & Tatia

We brought Tatia home from the hospital yesterday.
Titus was very excited to meet his sister. He requested to hold her so I got him sitting on my lap and we held Tatia together.
Tatia also "brought" a few toys for Titus, so he was doubly happy. (Thanks, Atrium staff!)
When Titus woke up today, the first thing he did was asking to see his "Nong" (sister). It was unusually easy to get him to brush his teeth because my wife told him he had to do it before kissing his sister.
Monday, December 05, 2005
Greatest Father's Day Gift: Tatia Is Coming To Town!*

My wife (Aor) and I are very happy to announce the arrival of Tatia ("ธัชธีญา" in Thai), our second child.
She was born at 12:57 pm on December 5, 2005 at Bangpo General Hospital. She weighs 3030 grams (6.66 lbs) and is 53 cm (21") long.
Aor woke up around 3 am this morning with periodic (period = 5-10 minutes) hardening of her belly. This is one of the symptoms that our doctor (Dr. Vichit) told us to look for as a sign of imminent delivery. We decided to come to see Dr. Vichit in the morning. I had a huge breakfast while Aor had a glass of water in preparation of the possible surgery. We threw in the backpacks containing baby delivery survival gears into the back of our car and off we went to the hospital. (We left Titus with his nanny, his paternal grand mom and his paternal great grand mom at home at this time.)
After 30 minutes of examination, Dr. Vichit ordered the delivery room to prepare for the arrival of our daughter. Since Aor already had a cesarean section for our son Titus (due to a birth complication--she waited for 6 hours but her uterus was not opening), she would have to have another for Tatia also.
Aor went in to the delivery room, got her spinal chord blocked in 10 minutes. I cleaned up and went in with my video recorder. The operation to take Tatia out took about 40 minutes; patching up Aor took another 1.5 hour. All in all, it took only 4 hours from the time we arrived at the hospital to the time we got into the convalescent room.
Titus is now with Aor's parents who live only about 1o minutes from the hospital. He would be visiting during the day and stay overnight at their house. Aor's sister Aw is taking 3 days off from work to help us out.
We didn't plan it, but our son Titus was born on August 12 which is the Queen's birthday and Tatia was born on December 5 which is the King's birthday. I totally don't believe in auspicious timing but of all the possible dates that they could have been born, these sound very good indeed! Also, we run out of the comparable dates for our next few children.
All in all, it's a very exciting and joyful day for us :-)
(The chance of having a son born on Aug 12 then a daughter born on Dec 5 purely by chance is about (0.5)(1/365)(0.5)(1/365) = slightly less than 2 in a million.)
*Today is Father's Day in Thailand. It's also our beloved King Bhumibol's birthday.
Sunday, December 04, 2005
Literacy And Jewish Choice Of Careers
Sublime Space Pictures
We are so little and yet so much.
Each of us is among the 6 billions on Earth, a small planet in a small solar system.
Our sun is just one among 100,000,000,000 stars in our Milky Way galaxy.
Our galaxy is just one among 100,000,000,000 galaxies in the known universe.
There might be so many universes besides our own, but we don't know for sure.
Our life span of 100 years is nothing compare to our sun's age of 5,000,000,000 years. (Stars last from a few ten millions to a few ten billions of years.)
Our whole life is just a flicker of candle light in the thunderstorm of time.
Yet, we have thoughts, morals, creativity, compassion, and love for other human beings.
I don't think all those stars out there can feel love.
(Anyway, what do I know? Maybe ants feel love too, though I doubt it since they have only 100,000 brain cells. By the way, we have about 100,000,000,000 neurons in our head.)
Looking at all those space pictures somehow soothed my soul very pleasantly.
I think the word "sublime" approximates my feeling pretty accurately.
I hope they do the same for you.
Thursday, December 01, 2005
Links About Love Chemistry And An Aphrodisiac
Is the World Ready for Libido in a Nasal Spray?
Truly, madly, deeply in love - but not for very long
