July 2nd, 2009
Working with a lot of web services lately, I’ve wasted a lot fo time typing simple assign-value-to-object code like this:
// update values
model.Title = Request.Form["Title"];
model.Content = Request.Form["Content"];
model.LastUpdatedDate = DateTime.Now;
/* ... usually 7-8 linesmore ... */
/* ... */
So I decided to ditch all this wet (!= DRY) junk and go with Reflection instead, transforming the above code into: … read »
Filed under Releases | No Comments »
This is surprise… I am more… right-brained!! Albeit only a 5% difference. I guess this explains why I’m always shifting from a group of friends to another…
You Are 45% Left Brained, 55% Right Brained
|

The left side of your brain controls verbal ability, attention to detail, and reasoning.
Left brained people are good at communication and persuading others.
If you’re left brained, you are likely good at math and logic.
Your left brain prefers dogs, reading, and quiet.
The right side of your brain is all about creativity and flexibility.
Daring and intuitive, right brained people see the world in their unique way.
If you’re right brained, you likely have a talent for creative writing and art.
Your right brain prefers day dreaming, philosophy, and sports.
|
From @escribitionist
Tags: blogtag, blogthings, brain, left-brain, right-brain
6:40am on the 1st of July, 2009 - 0 comments
June 24th, 2009
วันนี้ได้มีโอกาสเข้าเฝ้าสมเด็จพระเทพรัตนราชสุดาฯ สยามบรมราชกุมารีมาครับ เข้าเฝ้าเพื่อเข้าไปรับถ้วยรางวัลพระราชทานจากการที่ได้ที่ 1 Imagine Cup 2009 ประเทศไทยมาครับ รู้สึกโชคดีมาก เพราะว่าเป็นครั้งแรก และครั้งเดียวที่ Imagine Cup จะได้ถ้วยพระราชทาน ปีต่อไปจะเป็นการเวียนถ้วยเอาครับ
ถ้าใครได้ดูข่าวในพระราชสำนักตอนเย็นวันนี้ ก็จะเห็นผมเข้ารับพระราชทานรางวัลครับ แต่ว่านอกจากไปรับพระราชทานรางวัลแล้ว ก็ยังได้ฟังท่านเล่าถึงพระราชกรณียกิจต่างๆ ที่ได้ไปทำมาครับ เล่าถึงเรื่องราวต่างๆ จังหวัดโน้น จังหวัดนี้ โครงการโน้น โครงการนี้ ก็ได้เห็น ได้เข้าใจอะไรหลายๆ อย่างจากมุมมองของท่านที่อยู่สูงกว่าเรามาก ท่านมองประเทศไทยแบบมองประเทศไทยจริงๆ นะครับ … read »
Filed under Life and Thoughts | 1 Comment »
May 23rd, 2009
This is a follow up to last post on attribute-builder pattern.
In an effort to mimick Django/AppEngine-style attribute-builder pattern myself and learn a lot of Python along the way, I have came up with this experiment which is nice to share: … read »
Filed under Tutorials | 1 Comment »
May 23rd, 2009
Recently I’ve been looking into the way Google AppEngine lets you define properties from a “property class” and noticed a semi-metaprogramming pattern:
class Greeting(db.Model):
author = db.UserProperty()
content = db.StringProperty(multiline=True)
date = db.DateTimeProperty(auto_now_add=True)
Note how author, content and date looks like a normal variable with a class instance being assigned. … read »
Filed under Tutorials | 3 Comments »