<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>One day at a time &#187; Uncategorized</title>
	<atom:link href="http://www.terencekwan.com/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://www.terencekwan.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 14 Mar 2010 18:28:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Find duplicate entries in MySQL</title>
		<link>http://www.terencekwan.com/find-duplicate-entries-in-mysql</link>
		<comments>http://www.terencekwan.com/find-duplicate-entries-in-mysql#comments</comments>
		<pubDate>Sun, 14 Mar 2010 18:28:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/find-duplicate-entries-in-mysql</guid>
		<description><![CDATA[select address, count(address) as cnt
from mailing_list
group by address
having cnt > 1
order by cnt;
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/find-duplicate-entries-in-mysql/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>Guide: Things You Shouldn&#8217;t Be Doing In Rails</title>
		<link>http://www.terencekwan.com/guide-things-you-shouldnt-be-doing-in-rails</link>
		<comments>http://www.terencekwan.com/guide-things-you-shouldnt-be-doing-in-rails#comments</comments>
		<pubDate>Sat, 21 Mar 2009 02:47:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=92</guid>
		<description><![CDATA[Good read. But it is not easy to stop using some of this stuffs (like scaffolding, authentication engine, pagination). They are so easy to use and this is why people come to Ruby in the first place.
http://glu.ttono.us/articles/2006/08/30/guide-things-you-shouldnt-be-doing-in-rails
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/guide-things-you-shouldnt-be-doing-in-rails/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Javascript for dynamic portal similar to netvibes</title>
		<link>http://www.terencekwan.com/javascript-for-dynamic-portal-similar-to-netvibes</link>
		<comments>http://www.terencekwan.com/javascript-for-dynamic-portal-similar-to-netvibes#comments</comments>
		<pubDate>Sat, 21 Mar 2009 02:44:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=84</guid>
		<description><![CDATA[DHTML goodies has a downloadable javascript to build dynamic portal similar to http://www.netvibes.com and http://www.pageflakes.com.
The code is not very well organize. However, it is a start if you want to build a dynamic portal.
http://www.dhtmlgoodies.com/scripts/dragable-boxes/dragable-boxes.html
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/javascript-for-dynamic-portal-similar-to-netvibes/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>How can I insert a character entity like &amp;nbsp into a document from Javascript ?</title>
		<link>http://www.terencekwan.com/how-can-i-insert-a-character-entity-like-nbsp-into-a-document-from-javascript</link>
		<comments>http://www.terencekwan.com/how-can-i-insert-a-character-entity-like-nbsp-into-a-document-from-javascript#comments</comments>
		<pubDate>Sat, 21 Mar 2009 02:43:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=82</guid>
		<description><![CDATA[If you want to insert a non-breaking space you can insert it using the
charactor code. Like this:
var nbsp = document.createTextNode( "\u00A0" );
referenceToWhereYouWantIt.appendChild( nbsp );
The url above is to the complete ECMA Spec.
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/how-can-i-insert-a-character-entity-like-nbsp-into-a-document-from-javascript/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>Dynamic Javascript Execution</title>
		<link>http://www.terencekwan.com/dynamic-javascript-execution</link>
		<comments>http://www.terencekwan.com/dynamic-javascript-execution#comments</comments>
		<pubDate>Sat, 21 Mar 2009 02:42:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=79</guid>
		<description><![CDATA[A lot of time when you do an AJAX call, you want to dynamic execute the javascript within the AJAX updated region. For example:
&#60;div id="ajax_update_here"&#62;

&#60;!-- this is ajax return result --&#62;
&#60;script&#62;
alert("this is a dynamic message from the ajax backend");
&#60;/script&#62;
&#60;!-- end of ajax return result --&#62;

&#60;/div&#62;
http://kratcode.wordpress.com/tag/javascript/ is a description of how to do it. Just call: [...]]]></description>
		<wfw:commentRss>http://www.terencekwan.com/dynamic-javascript-execution/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>How to do javascript subclassing</title>
		<link>http://www.terencekwan.com/how-to-do-javascript-subclassing</link>
		<comments>http://www.terencekwan.com/how-to-do-javascript-subclassing#comments</comments>
		<pubDate>Fri, 20 Mar 2009 08:03:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=71</guid>
		<description><![CDATA[http://www.golimojo.com/etc/js-subclass.html

function subclass(constructor, superConstructor)
{
function surrogateConstructor()
{
}
surrogateConstructor.prototype = superConstructor.prototype;
var prototypeObject = new surrogateConstructor();
prototypeObject.constructor = constructor;
constructor.prototype = prototypeObject;
}

]]></description>
		<wfw:commentRss>http://www.terencekwan.com/how-to-do-javascript-subclassing/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>How to sort data in a big file</title>
		<link>http://www.terencekwan.com/how-to-sort-data-in-a-big-file</link>
		<comments>http://www.terencekwan.com/how-to-sort-data-in-a-big-file#comments</comments>
		<pubDate>Fri, 20 Mar 2009 07:59:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[interview question]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=69</guid>
		<description><![CDATA[This is from wikipedia (http://en.wikipedia.org/wiki/External_sorting)
One example of external sorting is the external mergesort algorithm. For example, for sorting 900 megabytes of data using only 100 megabytes of RAM:
1. Read 100 MB of the data in main memory and sort by some conventional method (usually quicksort).
2. Write the sorted data to disk.
3. Repeat steps 1 and [...]]]></description>
		<wfw:commentRss>http://www.terencekwan.com/how-to-sort-data-in-a-big-file/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>Another silly interview question about how to swap 2 variables without temporary variable</title>
		<link>http://www.terencekwan.com/another-silly-interview-question-about-how-to-swap-2-variables-without-temporary-variable</link>
		<comments>http://www.terencekwan.com/another-silly-interview-question-about-how-to-swap-2-variables-without-temporary-variable#comments</comments>
		<pubDate>Fri, 20 Mar 2009 07:48:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[interview question]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=67</guid>
		<description><![CDATA[How to swap 2 variables without using a temporary variable. Silly&#8230;
a=a+b;
b=a-b;
a=a-b;
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/another-silly-interview-question-about-how-to-swap-2-variables-without-temporary-variable/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>CSS box model</title>
		<link>http://www.terencekwan.com/css-box-model</link>
		<comments>http://www.terencekwan.com/css-box-model#comments</comments>
		<pubDate>Tue, 10 Mar 2009 18:20:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=49</guid>
		<description><![CDATA[Each box has a  content area (e.g., text, an image, etc.) and optional surrounding   padding,  border, and   margin areas; the size of each area is specified by properties defined below.  The following diagram shows how these areas relate and the terminology used to refer to pieces of margin, [...]]]></description>
		<wfw:commentRss>http://www.terencekwan.com/css-box-model/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>Javascript closure</title>
		<link>http://www.terencekwan.com/javascript-closure</link>
		<comments>http://www.terencekwan.com/javascript-closure#comments</comments>
		<pubDate>Tue, 10 Mar 2009 18:15:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=44</guid>
		<description><![CDATA[A javascript closure is the local variables for a function &#8211; kept alive after the function has returned. For example, in the following example, the variable text is still alive after the function is closed. The reason is that the internal function sayAlert is still alive.


    function&#160;sayHello2(name)&#160;{
    &#160;&#160;var&#160;text&#160;= 'Hello&#160;'&#160;+ [...]]]></description>
		<wfw:commentRss>http://www.terencekwan.com/javascript-closure/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
	</channel>
</rss>
