Archive

Changing the World

As human beings, our greatness lies not so much in being able to remake the world, as in being able to remake ourselves.

~ Gandhi ~

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit

Small Thing with Great Love

I don’t do any great things. I do small things with great love.

~ Mother Theresa ~

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit

2 John 1:3

3Grace, mercy and peace from God the Father and from Jesus Christ, the Father’s Son, will be with us in truth and love.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit

Willingness to Fail

You need the willingness to fail all the time. You have to generate many ideas and then you have to work very hard only to discover that they don’t work. And you keep doing that over and over until you find one that does.

~ John Backus, NYTimes obit March 20th, 2007. ~

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit

Happy Thanksgiving!

Thanksgiving Day is a harvest festival. Traditionally, it is a time to give thanks for the harvest and express gratitude in general. It is primarily a North American holiday which has generally become a national secular holiday with religious origins.

There are a lot of things that I would like to thank God about. It’s too much to say.. :) I also would like to thank my parents who had always been very supportive. Hippo for always patient. My friends who’d been very helpful for taking me home while I don’t have car. Pen2 for taking me to the thanksgiving dinner. My families wherever they are for remembering me. Professors for writing me good letter of recommendations. I thank all of you very very … very much!!

Here’s Barrack Obama’s Thanksgiving address, I thought that it’s pretty interesting to watch:

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit

Appy Trails Finale

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit

Hip Hop: Beyond Beats & Rhymes

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit

C# Weird Question Mark

I’ve been working on the Microsoft Imagine Cup 2009 competition for the Game Design with one of my class mate. I looked at the sample codes to identify the location for the intersection between a ray and the vertex of a mesh. I recognized that the sample code that checks the distance between the ray and the intersection has a weird question mark that I have never seen in any other languages (i.e. float? intersection). The question mark is usually placed right after the primitive data types such as float, int, double, etc. I looked over the web and I found this:

public System.Data.DataSet GetRecords(int? foreignKey)

From the example above, it is quite easy to notice the inclusion of the ? character after the data type of the parameter. This function could now be called with an integer or NULL for the parameter. A parameter has to be specified, however, because C# does not allow default parameters for some stupid unknown reason. You guessed it, this becomes really useful when you are executing statements on a database that contains fields that are null-able but defined as an ordinal type. (Ordinal types are int, bool, double, float etc. etc.)

Note that question mark is commonly used in many other languages to declare a conditional if.. else.. statement:

([condition])? [value if true] : [value if false]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit

POST vs. GET

The Fundamental Differences

The HTML specifications technically define the difference between “GET” and “POST” so that former means that form data is to be encoded (by a browser) into a URL while the latter means that the form data is to appear within a message body. The “GET” method should be used when the form processing is “idempotent”, and in those cases only. As a simplification, we might say that “GET” is basically for just getting (retrieving) data whereas “POST” may involve anything, like storing or updating data, or ordering a product, or sending E-mail.

Differences in Form Submission

  • If the method is "get" - -, the user agent takes the value of action, appends a ? to it, then appends the form data set, encoded using the application/x-www-form-urlencoded content type. The user agent then traverses the link to this URI. In this scenario, form data are restricted to ASCII codes.
  • If the method is "post" –, the user agent conducts an HTTP post transaction using the value of the action attribute and a message created according to the content type specified by the enctype attribute.

Thus, for METHOD=”GET” the form data is encoded into a URL (or, speaking more generally, into a URI). This means that an equivalent to a form submission can be achieved by following a normal link referring to a suitable URL; On a typical browser, the user sees the URL of a document somewhere (e.g. on Location line), and if he is viewing the results of a query sent using METHOD=”GET”, he will see what the actual query was (i.e. the part of the URL that follows the ? sign). The user could then bookmark it or cut&paste it for later use (e.g. to be E-mailed or put into one’s own HTML document after some editing).

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit

James 4:8-10

8Come near to God and he will come near to you. Wash your hands, you sinners, and purify your hearts, you double-minded. 9Grieve, mourn and wail. Change your laughter to mourning and your joy to gloom. 10Humble yourselves before the Lord, and he will lift you up.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Technorati
  • Furl
  • Live
  • NewsVine
  • Sk-rt
  • Slashdot
  • StumbleUpon
  • YahooMyWeb
  • E-mail this story to a friend!
  • Mixx
  • Reddit