<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>James Lao</title>
	
	<link>http://jameslao.com</link>
	<description>It's just software.</description>
	<lastBuildDate>Tue, 20 Sep 2011 04:27:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/jameslao" /><feedburner:info uri="jameslao" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>45.507752</geo:lat><geo:long>-122.4323</geo:long><item>
		<title>Category Posts Widget 3.2</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/Pswt3jPFR4w/</link>
		<comments>http://jameslao.com/2011/03/24/category-posts-widget-3-2/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 15:45:48 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=507</guid>
		<description><![CDATA[Adds the much requested option to change the sort order of the posts. Check it out at the plugin directory. I know this is a long time coming but I&#8217;ve been super busy with school. I don&#8217;t like to mess &#8230; <a href="http://jameslao.com/2011/03/24/category-posts-widget-3-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Adds the much requested option to change the sort order of the posts. Check it out at the <a href="http://wordpress.org/extend/plugins/category-posts/">plugin directory</a>.</p>
<p>I know this is a long time coming but I&#8217;ve been super busy with school. I don&#8217;t like to mess with something that works. I know of a few other plugins that do the same thing and more but I don&#8217;t like to add a hundred different features that only a handful of people need. I think one of the features of CPW is its minimal feature set. It functions as advertised; no more no less. That, in my opinion, is how good software should work.</p>
<p>Based on the ratings and comments it seems most people enjoy the plugin. Sadly, I don&#8217;t have time to answer everyone&#8217;s questions. I&#8217;d suggest posting on the WordPress.org forums. Thanks for all the support.</p>
<p><strong>Update:</strong> The random sort bug should be fixed now. Sorry for the delay.</p>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/Pswt3jPFR4w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2011/03/24/category-posts-widget-3-2/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		<feedburner:origLink>http://jameslao.com/2011/03/24/category-posts-widget-3-2/</feedburner:origLink></item>
		<item>
		<title>LaTeX Tip: Operator Names</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/EKwvLvKHULI/</link>
		<comments>http://jameslao.com/2011/03/21/latex-tip-operator-names/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 05:14:22 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=496</guid>
		<description><![CDATA[I&#8217;ve always written: P(X>Y) E[X=3] Which gives you something like this: The problem here is that the probability and expected value operators are italicized as if they were variables. I should have been writing: \operatorname{P}(X>Y) \operatorname{E}[X=3] Which will render them &#8230; <a href="http://jameslao.com/2011/03/21/latex-tip-operator-names/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always written:</p>
<pre>P(X>Y)
E[X=3]</pre>
<p>Which gives you something like this:</p>
<img src='http://s0.wp.com/latex.php?latex=P%28X%3EY%29%5C%5CE%5BX%3D3%5D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='P(X&gt;Y)&#92;&#92;E[X=3]' title='P(X&gt;Y)&#92;&#92;E[X=3]' class='latex' />
<p>The problem here is that the probability and expected value operators are italicized as if they were variables. I should have been writing:</p>
<pre>\operatorname{P}(X>Y)
\operatorname{E}[X=3]</pre>
<p>Which will render them in the plain old Roman font like <code>\lim</code> or <code>\min</code>.</p>
<p>Wikibooks has a <a href="http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics#Custom_operators">nice snippet</a> on it with some more details.</p>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/EKwvLvKHULI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2011/03/21/latex-tip-operator-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jameslao.com/2011/03/21/latex-tip-operator-names/</feedburner:origLink></item>
		<item>
		<title>NIN: Just Like You Imagined</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/vIE-hg9Fjsc/</link>
		<comments>http://jameslao.com/2011/02/27/nin-just-like-you-imagined/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 08:00:45 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[nin]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=494</guid>
		<description><![CDATA[You know a song is good when it gives you chills.]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/-k3TYNXwzHQ?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>You know a song is good when it gives you chills.</p>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/vIE-hg9Fjsc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2011/02/27/nin-just-like-you-imagined/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jameslao.com/2011/02/27/nin-just-like-you-imagined/</feedburner:origLink></item>
		<item>
		<title>I heart robots</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/01butpXlEa8/</link>
		<comments>http://jameslao.com/2011/02/10/i-heart-robots/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 10:21:36 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[School]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=490</guid>
		<description><![CDATA[A LEGO NXT robot I built with my group members for Introduction to Robotics (16-311). It follows a trajectory defined by a function over time using dead reckoning and a feedback loop that controls the motor velocities.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/19736703?portrait=0" width="640" height="1138" frameborder="0"></iframe></p>
<p>A LEGO NXT robot I built with my group members for Introduction to Robotics (16-311). It follows a trajectory defined by a function over time using dead reckoning and a feedback loop that controls the motor velocities. </p>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/01butpXlEa8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2011/02/10/i-heart-robots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jameslao.com/2011/02/10/i-heart-robots/</feedburner:origLink></item>
		<item>
		<title>Robot Arm Stacking Cups</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/Uk-ChvG0UJY/</link>
		<comments>http://jameslao.com/2010/11/15/robot-arm-stacking-cups/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 20:20:50 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[School]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[robot]]></category>
		<category><![CDATA[stack]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=486</guid>
		<description><![CDATA[My lab partner and I programmed a DENSO robotic arm to stack plastic cups for our last Robotic Manipulation lab. Look it go!]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/16857468?portrait=0" width="640" height="480" frameborder="0"></iframe></p>
<p>My lab partner and I programmed a DENSO robotic arm to stack plastic cups for our last Robotic Manipulation lab. Look it go!</p>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/Uk-ChvG0UJY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2010/11/15/robot-arm-stacking-cups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jameslao.com/2010/11/15/robot-arm-stacking-cups/</feedburner:origLink></item>
		<item>
		<title>Scala HashMap performance</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/PCzT_cAhI_k/</link>
		<comments>http://jameslao.com/2010/10/18/scala-hashmap-performance/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 04:03:31 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[hashmap]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[scala]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=480</guid>
		<description><![CDATA[In the spirit of science and experimentation, I compared the performance of Scala&#8217;s immutable HashMap against it&#8217;s mutable cousin. I also compared it to Java&#8217;s HashMap just for kicks. The code I used to run this performance comparison is below. &#8230; <a href="http://jameslao.com/2010/10/18/scala-hashmap-performance/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In the spirit of science and experimentation, I compared the performance of Scala&#8217;s immutable HashMap against it&#8217;s mutable cousin. I also compared it to Java&#8217;s HashMap just for kicks.</p>
<p>The code I used to run this performance comparison is below. It&#8217;s a standalone program that accepts two arguments: (1) the number of elements to insert in each trial and (2) the number of trials to run.</p>
<p><script src="http://gist.github.com/631655.js?file=MapPerf.scala"></script></p>
<p>Here are the results of inserting 1,000,000 elements per trial and 10 trials on a MacBook Pro with a 2.53 GHz Core 2 Duo and 4 GB RAM.</p>
<pre>This is a performance test comparing java.util.HashMap,
scala.collection.immutable.HashMap, and scala.collection.mutable.HashMap.
The test inserts 1000000 elements into each map.

Testing Scala Immutable HashMap
6.927
6.941
7.076
7.076
7.068
6.89
6.74
6.709
6.959
7.158
----------
Mean: 6.9300000000000015

Testing Scala Mutable HashMap
2.623
2.549
2.566
2.53
2.546
2.558
2.485
2.658
2.545
2.534
----------
Mean: 2.5760999999999994

Testing Java HashMap
1.729
1.766
1.696
1.683
1.741
1.809
1.755
1.738
1.734
1.775
----------
Mean: 1.8318000000000005</pre>
<p>I think it&#8217;s pretty clear that while immutable data structures are pretty nice, they come at a huge performance cost.</p>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/PCzT_cAhI_k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2010/10/18/scala-hashmap-performance/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://jameslao.com/2010/10/18/scala-hashmap-performance/</feedburner:origLink></item>
		<item>
		<title>How to solve hard problem sets</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/MoC1gclBhnA/</link>
		<comments>http://jameslao.com/2010/10/11/how-to-solve-hard-problem-sets/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 02:31:07 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=475</guid>
		<description><![CDATA[Some good advice. I especially like step 2, &#8220;Think in the shower&#8221;, because I do it all the time.]]></description>
			<content:encoded><![CDATA[<p>Some good advice. I especially like step 2, &#8220;Think in the shower&#8221;, because I do it all the time. <img src='http://jameslao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/MoC1gclBhnA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2010/10/11/how-to-solve-hard-problem-sets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jameslao.com/2010/10/11/how-to-solve-hard-problem-sets/</feedburner:origLink></item>
		<item>
		<title>A note on typesetting quotes in LaTeX</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/2oozFvfcIeU/</link>
		<comments>http://jameslao.com/2010/10/11/a-note-on-typesetting-quotes-in-latex/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 16:10:28 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=472</guid>
		<description><![CDATA[This is incorrect: "This is not how you quote things." This is correct: ``This is how you quote things."]]></description>
			<content:encoded><![CDATA[<p>This is incorrect:</p>
<pre>"This is not how you quote things."</pre>
<p>This is correct:</p>
<pre>``This is how you quote things."</pre>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/2oozFvfcIeU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2010/10/11/a-note-on-typesetting-quotes-in-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jameslao.com/2010/10/11/a-note-on-typesetting-quotes-in-latex/</feedburner:origLink></item>
		<item>
		<title>Things I want to do but can’t</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/0tQ2myicFbA/</link>
		<comments>http://jameslao.com/2010/10/11/things-i-want-to-do-but-cant/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 06:44:04 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=468</guid>
		<description><![CDATA[Because compilers is crushing my soul. Learn Haskell. Create a computer game. Flesh out my idea for a startup. Get more than 5 hours of sleep a night. See friends more than once a week.]]></description>
			<content:encoded><![CDATA[<p>Because compilers is crushing my soul.</p>
<ul>
<li>Learn Haskell.</li>
<li>Create a computer game.</li>
<li>Flesh out my idea for a startup.</li>
<li>Get more than 5 hours of sleep a night.</li>
<li>See friends more than once a week.</li>
</ul>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/0tQ2myicFbA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2010/10/11/things-i-want-to-do-but-cant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jameslao.com/2010/10/11/things-i-want-to-do-but-cant/</feedburner:origLink></item>
		<item>
		<title>CPW featured in WordPress Top Plugins</title>
		<link>http://feedproxy.google.com/~r/jameslao/~3/JLPJvtOEJ2U/</link>
		<comments>http://jameslao.com/2010/08/25/cpw-featured-in-wordpress-top-plugins/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 00:42:15 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://jameslao.com/?p=457</guid>
		<description><![CDATA[Category Posts Widget is featured in the new book titled WordPress Top Plugins by Brandon Corbin.]]></description>
			<content:encoded><![CDATA[<p>Category Posts Widget is featured in the new book titled <a href="https://www.packtpub.com/wordpress-top-plugins/book"><em>WordPress Top Plugins</em></a> by Brandon Corbin.</p>
<img src="http://feeds.feedburner.com/~r/jameslao/~4/JLPJvtOEJ2U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jameslao.com/2010/08/25/cpw-featured-in-wordpress-top-plugins/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://jameslao.com/2010/08/25/cpw-featured-in-wordpress-top-plugins/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.377 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-01-31 14:17:25 -->

