<?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 Giant Robot After Another</title>
	<atom:link href="http://kang-chen.com/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://kang-chen.com/wp</link>
	<description>Kang Chen&#039;s Online Portfolio and Blog</description>
	<lastBuildDate>Sun, 29 Nov 2009 05:33:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Improving VLC Player load times of .MKV files on Snow Leopard</title>
		<link>http://kang-chen.com/wp/2009/11/28/improving-vlc-player-load-times-of-mkv-files-on-snow-leopard/</link>
		<comments>http://kang-chen.com/wp/2009/11/28/improving-vlc-player-load-times-of-mkv-files-on-snow-leopard/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 05:29:19 +0000</pubDate>
		<dc:creator>Kang</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://kang-chen.com/wp/?p=103</guid>
		<description><![CDATA[Ever notice that MKV files load significantly slower than before in VLC on Mac OS X 10.6 (Snow Leopard)? I did, and for someone who has a lot of media files encoded in the format, it&#8217;s almost unusable to have to wait a minute while seeing the CPU on one core maxed out. The version [...]]]></description>
			<content:encoded><![CDATA[<p>Ever notice that MKV files load significantly slower than before in VLC on Mac OS X 10.6 (Snow Leopard)? I did, and for someone who has a lot of media files encoded in the format, it&#8217;s almost unusable to have to wait a minute while seeing the CPU on one core maxed out. The version of VLC player I have is 1.0.3, the latest as of this post. However, the issue seems to be around since at least 1.0.1 as discussed on this page:<span id="more-103"></span><a href="http://forum.videolan.org/viewtopic.php?f=12&amp;t=64302&amp;start=15" target="_blank">http://forum.videolan.org/viewtopic.php?f=12&amp;t=64302&amp;start=15</a></p>
<p>The fix is pretty simple assuming you are not scared of entering a command in the terminal:</p>
<ol>
<li> Open terminal (Applications/Utilities/Terminal.app)</li>
<li>Copy and paste this: &#8216;sudo chmod a+w /usr/X11/var/cache/fontconfig&#8217; without the quotes</li>
<li>Enter your admin password (for most people, that&#8217;s just your current account&#8217;s password if you are an admin)</li>
<li>Open a .MKV file and close it after it starts playing</li>
<li>Now open any .MKV file again and things should be as snappy as before!</li>
</ol>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://kang-chen.com/wp/2009/11/28/improving-vlc-player-load-times-of-mkv-files-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Updating Your Ruby on Rails Application Custom Environment via Passenger Pane</title>
		<link>http://kang-chen.com/wp/2009/08/02/updating-your-ruby-on-rails-application-custom-environment-via-passenger-pane/</link>
		<comments>http://kang-chen.com/wp/2009/08/02/updating-your-ruby-on-rails-application-custom-environment-via-passenger-pane/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 05:41:59 +0000</pubDate>
		<dc:creator>Kang</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://kang-chen.com/wp/?p=49</guid>
		<description><![CDATA[If you are working with a relatively up-to-date Ruby on Rails stack, chances are you would be using Phusion Passenger to deploy your application. Although passenger makes it extremely easy to deploy and restart your app, it also added a bit more complication when managing the Apache configuration files. The Passenger Pane (for Mac only) [...]]]></description>
			<content:encoded><![CDATA[<p>If you are working with a relatively up-to-date Ruby on Rails stack, chances are you would be using <a href="http://www.modrails.com/" target="_blank">Phusion Passenger</a> to deploy your application. Although passenger makes it extremely easy to deploy and restart your app, it also added a bit more complication when managing the Apache configuration files. The Passenger Pane (for Mac only) helped alleviate this problem by providing a nice little visual panel in your Mac&#8217;s Preference Pane:<span id="more-49"></span></p>
<p style="text-align: center;"><a rel="lightbox[passenger_pane]" href="http://kang-chen.com/wp/wp-content/uploads/2009/08/PassengerPane1.jpg" title="Passenger Pane in System Preferences"><img class="size-full wp-image-51 aligncenter" title="Passenger Pane in System Preferences" src="http://kang-chen.com/wp/wp-content/uploads/2009/08/PassengerPane1.jpg" alt="Passenger Pane in System Preferences" width="401" height="337" /></a></p>
<div class="mceTemp mceIEcenter">
<dl id="attachment_53" class="wp-caption aligncenter" style="width: 412px;">
<dt class="wp-caption-dt"><a rel="lightbox[passenger_pane]" href="http://kang-chen.com/wp/wp-content/uploads/2009/08/PassengerPane2.jpg" title="Inside Passenger Pane"><img class="size-full wp-image-53   " title="Inside Passenger Pane" src="http://kang-chen.com/wp/wp-content/uploads/2009/08/PassengerPane2.jpg" alt="Inside Passenger Pane" width="402" height="295" /></a></dt>
</dl>
</div>
<p>The nifty little add-on allows you to easily add a new Rails project, set it to development or production mode, and also restart it. It&#8217;s great if you are not sure/forgot where all the virtual host files are for your apache configuration.</p>
<p style="text-align: left;"><a rel="lightbox[passenger_pane]" href="http://kang-chen.com/wp/wp-content/uploads/2009/08/PassengerPane3.jpg" title="Dragging project to Textmate"><img class="size-thumbnail wp-image-54 aligncenter" title="Dragging project to Textmate" src="http://kang-chen.com/wp/wp-content/uploads/2009/08/PassengerPane3-150x114.jpg" alt="Dragging project to Textmate" width="90" height="68" /></a></p>
<p style="text-align: left;">As with all things in life, nothing is perfect. In this case, I work on a project with multiple environments: development, staging, preprodstaging, and production just to name a few. The passenger pane was great when you just had to choose between development or production but what do you do if your desired environment is named something else? Don&#8217;t sweat, apparently there&#8217;s a simple little trick to customize your configuration file exactly to your liking even if the pane does not offer those options. To do so, simply select the project your want to edit from the project list and then drag the it to your favorite text editor on the dock, in this case, Textmate.Now that the file is opened in the editor, edit to your heart&#8217;s content, save, restart your passenger instance for the project and you are ready to see your updated changes!</p>
<p style="text-align: center;"><a rel="lightbox[passenger_pane]" href="http://kang-chen.com/wp/wp-content/uploads/2009/08/PassengerPane4.jpg" title="Ruby on Rails application configuration in Textmate"><img class="aligncenter size-full wp-image-55" title="Ruby on Rails application configuration in Textmate" src="http://kang-chen.com/wp/wp-content/uploads/2009/08/PassengerPane4.jpg" alt="Ruby on Rails application configuration in Textmate" width="576" height="492" /></a></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://kang-chen.com/wp/2009/08/02/updating-your-ruby-on-rails-application-custom-environment-via-passenger-pane/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Enhanced Open Terminal Here, for Leopard at Maururu</title>
		<link>http://kang-chen.com/wp/2009/07/14/enhanced-open-terminal-here-for-leopard-at-maururu/</link>
		<comments>http://kang-chen.com/wp/2009/07/14/enhanced-open-terminal-here-for-leopard-at-maururu/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 16:48:34 +0000</pubDate>
		<dc:creator>Kang</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://kang-chen.com/wp/?p=32</guid>
		<description><![CDATA[Ever find it annoying that you can&#8217;t go from the terminal to the same directory in the finder or vice versa on the Mac? So am I! It just seems terribly inefficient for power users who are proficient with the terminal to have to open up the terminal app and then manually cd into the [...]]]></description>
			<content:encoded><![CDATA[<p>Ever find it annoying that you can&#8217;t go from the terminal to the same directory in the finder or vice versa on the Mac? So am I! It just seems terribly inefficient for power users who are proficient with the terminal to have to open up the terminal app and then manually cd into the current directory. Aside from just a waste of time and extra keystrokes (yes, tab to auto-complete does help a lot), it&#8217;s not easy to remember the exact path to the current directory. On top of that, OS X likes to make it harder for regular users to access root folders and it becomes a pain to use. I finally gave up and googled for solutions to go from finder to terminal today and found a great time-saver: Enhanced Open Terminal Here.<span id="more-32"></span></p>
<p>To install Open Terminal Here, unzip the downloaded file and store in a place that you won&#8217;t accidentally delete. Then right click (or if you don&#8217;t have a two button mouse, Ctrl+click) on the toolbar area of a finder window and select &#8220;Customize Toolbar&#8230;&#8221;. This brings up the toolbar customization dropdown. Now drag and drop the Open Terminal Here icon to the existing toolbear area and click done. You can now open a terminal window to the same location as where you are in the finder. <strong>For more convenience, cmd+click to open the current folder in a new tab in terminal or alt+click to cd into the current directory on the foremost tab of the foremost window in terminal.</strong> You can read up more about this cool script at<a href="http://maururu.net/2007/enhanced-open-terminal-here-for-leopard/"> Enhanced Open Terminal Here, for Leopard at Maururu</a>.</p>
<p><div id="attachment_37" class="wp-caption aligncenter" style="width: 465px"><a rel="lightbox[enhanced_open_terminal_here]" href="http://kang-chen.com/wp/wp-content/uploads/2009/07/OSXFinderOpenTerminalHere.jpg" title="OSXFinderOpenTerminalHere"><img class="size-full wp-image-37   " title="OSXFinderOpenTerminalHere" src="http://kang-chen.com/wp/wp-content/uploads/2009/07/OSXFinderOpenTerminalHere.jpg" alt="Mac finder window with Open Terminal Here installed" width="455" height="42" /></a><p class="wp-caption-text">Mac finder window with Open Terminal Here installed</p></div>So what about the other way around of going from the current directory in terminal to finder? This is pretty simple, all you need to do is enter: &#8220;open .&#8221;</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://kang-chen.com/wp/2009/07/14/enhanced-open-terminal-here-for-leopard-at-maururu/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Inserting new line in echo command</title>
		<link>http://kang-chen.com/wp/2009/07/09/inserting-new-line-in-echo-command/</link>
		<comments>http://kang-chen.com/wp/2009/07/09/inserting-new-line-in-echo-command/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 23:38:41 +0000</pubDate>
		<dc:creator>Kang</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[shell scripting]]></category>

		<guid isPermaLink="false">http://kang-chen.com/wp/?p=20</guid>
		<description><![CDATA[Out of curiosity and the perfectionist in me, I &#8220;had&#8221; to print a line of text in the output inside a BASH shell script. I didn&#8217;t really want to split them into multiple echo statements since it&#8217;s a waste of space and actually harder to read for me. The first thing I tried was: &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Out of curiosity and the perfectionist in me, I &#8220;had&#8221; to print a line of text in the output inside a BASH shell script. I didn&#8217;t really want to split them into multiple echo statements since it&#8217;s a waste of space and actually harder to read for me. The first thing I tried was:</p>
<p>&gt; echo &#8220;Line1\nLine2&#8243; # Line1\nLine2</p>
<p>That clearly didn&#8217;t work out so well&#8230; so I thought maybe my Mac (OS X 10.5.7) likes &#8216;\r\n&#8217; more:<span id="more-20"></span></p>
<p>&gt; echo &#8220;Line1\r\nLine2&#8243; # line1\r\nline2</p>
<p>Still nope! As I found out later on though, not all versions of echo supports backslash escape characters. A quick look up in the MAN page for echo revealed that I needed to pass in the -e option in order to enable this capability:</p>
<p>&gt; echo -e &#8220;Line1\nLine2&#8243;</p>
<p>Line1<br />
Line2</p>
<p>TADA! Third time is the charm!</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://kang-chen.com/wp/2009/07/09/inserting-new-line-in-echo-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One Giant Robot After Another</title>
		<link>http://kang-chen.com/wp/2009/07/02/one-giant-robot-after-another/</link>
		<comments>http://kang-chen.com/wp/2009/07/02/one-giant-robot-after-another/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 05:20:05 +0000</pubDate>
		<dc:creator>Kang</dc:creator>
				<category><![CDATA[Site Update]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://kang-chen.com/wp/?p=11</guid>
		<description><![CDATA[Changed from &#8216;Code Monkey&#8217; to &#8216;One Giant Robot After Another&#8217;! Where did I get the inspiration from? Well, I initially really liked ThoughtBot&#8217;s blog, Giant Robot Smashing Into Other Giant Robots, but copying them would be boring and probably not make those guys very happy. However, I recently came across some articles about a couple [...]]]></description>
			<content:encoded><![CDATA[<p>Changed from &#8216;Code Monkey&#8217; to &#8216;One Giant Robot After Another&#8217;! Where did I get the inspiration from? Well, I initially really liked ThoughtBot&#8217;s blog, <a href="http://giantrobots.thoughtbot.com/">Giant Robot Smashing Into Other Giant Robots</a>, but copying them would be boring and probably not make those guys very happy. However, I recently came across some articles about a couple of giant robots being built in Japan on <a href="http://gizmodo.com">Gizmodo</a>: a giant <a href="http://gizmodo.com/5294231/full-size-gundam-video-it-moves-it-moves">Gundam (done building)</a> and <a href="http://gizmodo.com/5303735/japan-building-another-gigantic-robot-tetsujin">Tetsujin (under construction)</a>. For the lack of better naming schemes, I just took the sequential order of how the robots are built as the new name, literally &#8216;One Giant Robot After Another&#8217;.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://kang-chen.com/wp/2009/07/02/one-giant-robot-after-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually Downgrading iPhone OS</title>
		<link>http://kang-chen.com/wp/2009/06/17/manually-downgrading-iphone-os/</link>
		<comments>http://kang-chen.com/wp/2009/06/17/manually-downgrading-iphone-os/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 07:03:46 +0000</pubDate>
		<dc:creator>Kang</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://kang-chen.com/wp/?p=6</guid>
		<description><![CDATA[If for some reason you&#8217;ve ran into a situation where you want to downgrade your iPhone&#8217;s OS but iTunes just won&#8217;t comply with your command, I&#8217;ve found that there&#8217;s an easy way to force the action: Connect your iPhone to the computer and have iTunes opened Hold down both the power and home buttons until [...]]]></description>
			<content:encoded><![CDATA[<p>If for some reason you&#8217;ve ran into a situation where you want to downgrade your iPhone&#8217;s OS but iTunes just won&#8217;t comply with your command, I&#8217;ve found that there&#8217;s an easy way to force the action:</p>
<ol>
<li>Connect your iPhone to the computer and have iTunes opened</li>
<li>Hold down both the power and home buttons until the iPhone disappeared from the devices list in iTunes</li>
<li>Release the power button but continue to hold down the home button until iTunes detects there&#8217;s a device in recovery mode</li>
<li>Hold down shift on Windows or option key on the Mac while pressing Restore in the iPhone screen in iTunes to initiate a restore to the desired version of firmware</li>
</ol>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://kang-chen.com/wp/2009/06/17/manually-downgrading-iphone-os/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Live!</title>
		<link>http://kang-chen.com/wp/2009/06/16/live/</link>
		<comments>http://kang-chen.com/wp/2009/06/16/live/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 07:32:23 +0000</pubDate>
		<dc:creator>Kang</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://kang-chen.com/wp/?p=3</guid>
		<description><![CDATA[Finally finished setting up my site and basic wordpress installation! It took me awhile just to settle on the combination of hosting and domain registrar. In the end, I decided to go with Site5.com for the hosting and GoDaddy for domain. Site5 is currently (and has been) promoting 25% discount but it&#8217;s not hard to [...]]]></description>
			<content:encoded><![CDATA[<p>Finally finished setting up my site and basic wordpress installation! It took me awhile just to settle on the combination of hosting and domain registrar. In the end, I decided to go with Site5.com for the hosting and GoDaddy for domain. Site5 is currently (and has been) promoting 25% discount but it&#8217;s not hard to find the 26% discount if you look just a little bit harder. The promotion code I used to get the 26% discount was &#8216;<strong>BPJOBBRD&#8217;</strong>.</p>
<p>So what&#8217;s my impression of Site5 so far? Not bad at all actually! I was initially a little suspicious of their offer of unlimited bandwidth and storage as it&#8217;s usually a recipe for disaster as hosting companies will try to overcrowd their server with clients just to make up for the margin. However, the highest load I&#8217;ve seen so far on my server is a mere 1.5, very respectable considering they claim to have &#8216;cat /proc/cpuinfo&#8217; reveals they have 8 cores on the machine.</p>
<p>[~]# uptime<br />
02:23:45 up 35 days, 16:57,  1 user,  load average: 0.75, 0.74, 0.80</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://kang-chen.com/wp/2009/06/16/live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
