<?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>ChiaoCheng.com</title>
	<atom:link href="http://www.chiaocheng.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chiaocheng.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 04 Jun 2010 23:20:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ideal home network</title>
		<link>http://www.chiaocheng.com/2010/05/ideal-home-network/</link>
		<comments>http://www.chiaocheng.com/2010/05/ideal-home-network/#comments</comments>
		<pubDate>Tue, 18 May 2010 08:13:28 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[file server]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://www.chiaocheng.com/?p=314</guid>
		<description><![CDATA[I&#8217;ve been thinking about home networking a lot lately.  Specifically a network attached storage (NAS), or basically a shared hard drive on the network.
Why&#8230;
No, it&#8217;s not because I love technology or gadgets or because I&#8217;m geeky like that.  Actually, it&#8217;s mostly because I&#8217;m not living by myself anymore.  All problems associated with computer files (e.g. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking about home networking a lot lately.  Specifically a network attached storage (NAS), or basically a shared hard drive on the network.</p>
<h2 id="toc-why">Why&#8230;</h2>
<p>No, it&#8217;s not because I love technology or gadgets or because I&#8217;m geeky like that.  Actually, it&#8217;s mostly because I&#8217;m not living by myself anymore.  All problems associated with computer files (e.g. backup, drive crash, computer crash, blue screens, no screen, defrag, crash without saving, power fail without saving, backup, out of space, too slow, too messy, security, mobility, restore, backup, sync, transfers, sharing, duplication, backup) that I normally have is now multiplied by two.  And this translates to bad things happening twice as often.</p>
<h2 id="toc-the-ideal-solution">The ideal solution</h2>
<p>Put all files on a shared network drive which is fast and backed up.  Then have nothing on the local computer except for applications.  This has a lot of advantages and a couple disadvantages.</p>
<h3 id="toc-advantages">Advantages</h3>
<ul>
<li>Automatically backed up for anyone on the network.</li>
<li>Hard drive space efficiency.  Some people use a lot of space and some people use a little.  Having all All free drive space pooled together allowed it to be shared so in the long run, you probably save money on hard drives.</li>
<li>Share files without needing to email or copy them to a flash drive.</li>
<li>Centralized maintenance and enhancement.  An improvement on the network share is automatically realized by everyone using it.</li>
</ul>
<h3 id="toc-disadvantages">Disadvantages</h3>
<ul>
<li>If you travel a lot, then synchronizing the files to your mobile drive can be a pain.</li>
<li>Potentially slower.  With the same exact hardware, a file loaded from a network drive cannot be faster than a file loaded from the local drive.</li>
</ul>
<p>Since I do not travel a lot, the only disadvantage for me is the performance.  Which bring me back to how I started&#8230; I&#8217;ve been thinking about home networking a lot lately, mostly about what kind of speed I can expect from a NAS.</p>
<h2 id="toc-speed">Speed</h2>
<p>To get a rough idea of how fast I can transfer a file from a NAS to a computer, I have to understand the performance of all components on the transfer path.   Each person may have a different computer or and different usages so the transfer path will be different for each situation.  The fastest transfer speed will be determined by the slowest component (bottleneck) on the path.  I found numbers that were all normalized to megabytes (MB) per second and plotted them from slowest to fastest.</p>
<p><a href="http://www.chiaocheng.com/wp-content/uploads/2010/05/speed_chart.png"></a></p>
<p><a href="http://www.chiaocheng.com/wp-content/uploads/2010/05/speed_chart.png"><img class="size-large wp-image-339 alignnone" style="border: 1px solid black;" title="performance chart" src="http://www.chiaocheng.com/wp-content/uploads/2010/05/speed_chart-1024x293.png" alt="performance chart" width="1024" height="293" /></a></p>
<p>The chart above gives a pretty good idea of what really matters during a file transfer.  For example, if you were trying to copy something to a usb 1.1 device, then it doesn&#8217;t matter how fast your network, or network drive is, the usb device is going to be too slow anyways.</p>
<p>Ideally, if I can make my gigabit wired network the slowest component in my transfer path, that would be pretty darn good.  A single hard drive would only acheive roughly 70 MB/s which is not enough to keep up with a 125 MB/s gigabit network.  To get network saturation, it looks like a hard drive in raid 0 or raid 5 configuration may be warranted.</p>
<ul>
<li>7200 rpm hard drive [~70 MB/s]</li>
<li>7200 rpm hard drives with raid 0 [~140 MB/s]</li>
<li>pata UDMA/100 (ide) [~100 MB/s]</li>
<li>pata UDMA/133 (ide) [~133 MB/s]</li>
<li>1.5 Gb/s sata connection [~150 MB/s]</li>
<li>3 Gb/s sata connection [~300 MB/s]</li>
<li>wired 100 Mb network / 100 Mb switch [~12.5 MB/s]</li>
<li>wired gigabit network/ gigabit switch [~125 MB/s]</li>
<li>wireless 802.11a [~6.75 MB/s]</li>
<li>wireless 802.11b [~1.4 MB/s]</li>
<li>wireless 802.11g [~6.75 MB/s]</li>
<li>wireless 802.11n [~37.5 MB/s]</li>
<li>usb 2.0 [~60 MB/s]</li>
<li>usb 3.0 [~625 MB/s]</li>
<li>firewire [~98.3 MB/s]</li>
</ul>
<pre>MB = megabyte, mb = megabit, 8 megabit (mb) = 1 megabyte (MB)</pre>
<h2 id="toc-increase-total-throughput-with-link-aggregation">Increase total throughput with link aggregation</h2>
<p>Some motherboards and routers support IEEE 802.3ad, also known as link aggregation, dual lan and teaming.  The theory behind this is that two lan ports can be paried up on a single ip to accept connections and therefore handle more throughput than a single ethernet cable.  Think of this like a load balancer for web servers.  It won&#8217;t really increase the speed of a single request but can allow the network to handle more requests, thus increasing total throughput.</p>
<p><a href="http://en.wikipedia.org/wiki/Link_aggregation">http://en.wikipedia.org/wiki/Link_aggregation</a></p>
<p>I have read a few forums now and it is still unclear to me whether link aggregation works in practice.   Increased transfer rate  for a single connection seems unlikely unless there is a way to over-come the overhead in dealing with out of order packets.  But even without increase transfer rate for a single connection, load balancing multiple connections should help in a multi-user environment.  For now the only thing that people appear to agree on is that it does provide network redundancy which is something I&#8217;m not interested in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2010/05/ideal-home-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turtle pond design</title>
		<link>http://www.chiaocheng.com/2010/05/turtle-pond-design/</link>
		<comments>http://www.chiaocheng.com/2010/05/turtle-pond-design/#comments</comments>
		<pubDate>Tue, 11 May 2010 09:07:08 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[pond]]></category>
		<category><![CDATA[red ear slider]]></category>
		<category><![CDATA[sketchup]]></category>
		<category><![CDATA[turtle]]></category>

		<guid isPermaLink="false">http://www.chiaocheng.com/?p=287</guid>
		<description><![CDATA[I&#8217;m close to getting a backyard which is one step closer to my three red ear sliders&#8217; dream house, &#8230; a turtle pond, or what I like to call a turtle oasis!  How close they come to realizing their dream living condition depends greatly on my craftsmanship.  To get a rough idea of what I want my turtle pond to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m close to getting a backyard which is one step closer to my three red ear sliders&#8217; dream house, &#8230; a turtle pond, or what I like to call a turtle oasis!  How close they come to realizing their dream living condition depends greatly on my craftsmanship.  To get a rough idea of what I want my turtle pond to look like, I loaded up Google sketchup and viola!&#8230;</p>
<p><img class="size-large wp-image-289 alignnone" title="Turtle pond design" src="http://www.chiaocheng.com/wp-content/uploads/2010/05/turtle-pond-wood-1024x642.jpg" alt="Turtle pond design" width="1024" height="642" /></p>
<h2 id="toc-components">Components</h2>
<p>My first design had used a lot more cinder blocks around the pond as walls but my wife was not too happy about that.  Considering how often she bumps into furniture, she had a valid concern.  So this is actually my second design which has a lot more wood than the first.  The frame is now entirely wood with cinder blocks only being used as the underlying foundation for the pool and dirt.  The dimensions for the pond are based around the size of the kiddie pool in the middle (which I already bought!).  The empty space around the pool will be filled with dirt and plants.</p>
<ul>
<li>2 x 10 wood board</li>
<li>2 x 2 wood beams</li>
<li>54&#8243; diameter kiddie pool</li>
<li>chicken wire</li>
<li>cinder blocks</li>
<li>plexi-glass</li>
<li>dirt</li>
<li>plants (imagine foerster feather grass swaying in the breeze!  awesome!)</li>
</ul>
<p><img class="size-large wp-image-290 alignnone" title="Turtle pond design apart" src="http://www.chiaocheng.com/wp-content/uploads/2010/05/turtle-pond-wood1-1024x642.jpg" alt="Turtle pond design apart" width="1024" height="642" /></p>
<h2 id="toc-features">Features</h2>
<h3 id="toc-pond-drain">Pond drain&#8230;</h3>
<p>One thing I have learned in my years of experience with fish and now turtles, is that a easy way to change the water is absolutely essential.  A good filter will take you a long way but eventually the water will need to be changed either in part or in full.  Years before, I figured out that I can replace one side of my 10 gallon fish tank with plexi-glass.  This allowed me to cut a hole at the bottom and plug it with a valve (I chose an opening of a 2 liter plastic soda bottle).  It greatly increased the speed that I was able to replace the water.  Now, I hope I can apply the same concept to my pool.  I plan on cutting a hole at the bottom of the pool and attaching a valve and hose to let the water out.  The pool will be slightly raised on a layer of cinder block and gravity allow the water to be drained.</p>
<h3 id="toc-protective-fencing">Protective fencing&#8230;</h3>
<p>I heard that turtles can be attacked by common animals such as cats, squirrels, and birds.  Considering my turtles have always lived indoors and are most likely extremely domesticated, I doubt they have the instinct to hide if approached.  To protect them, I will need to wrap the entire pond in a protective fence, chicken wire (not pictured).</p>
<h3 id="toc-heated-pool">Heated pool&#8230;</h3>
<p>This is the tricky one and will be the biggest hurdle.  I am not sure how feasible it will be to maintain my pond at a livable temperature.  If I cannot heat the pond at a reasonable cost, I may have to give up on the dream oasis completely!  Oh no!  The kiddie pool is roughly 100 gallons and I know they sell aquarium heaters that can easily handle that indoors.  It will be much colder outdoors so I am not sure if they will work.  Hopefully I can find a cost effective way to keep them warm.  Everyone has to live within their means, even my turtles.  In the worst case, I keep them in the house with a larger tank now that there is more space.  I am keeping my fingers crossed!</p>
<h3 id="toc-sun-roof">Sun-roof&#8230;</h3>
<p>Well, this one is still under debate.  Does my pond really need a roof?  I think my turtles will do just fine with a bit of rain but keeping rain out will probably make heating easier.  If I do make a roof, then it would have to be glass or plexi-glass for sure.  Turtles need uv light and heat so I have to allow as much sun in as possible.</p>
<h3 id="toc-giant-doors">Giant Doors&#8230;</h3>
<p>Remember the fencing?  I have to have access to the pond of course!  So the top frame of the turtle enclosure will have a set of doors bigger than my house doors!  Ok, that was an exaggeration but they will be pretty darn big.</p>
<h3 id="toc-convertible">Convertible&#8230;</h3>
<p>So I got doors, but why stop there!  That&#8217;s right, I&#8217;m sparing no expenses** on this turtle resort.  For even more access in cases of major landscaping or pond cleaning, the entire top frame will be detachable as shown in the picture.  This will give completely 360 degree access to anything in my pond.</p>
<p><span style="color: #999999;">** Actually not true.  I will most likely be on the strictest of budgets.  Approved and audited closely by my CFO (a.k.a. my wife).</span></p>
<h3 id="toc-filter"><span style="color: #000000;">Filter&#8230;</span></h3>
<p><span style="color: #000000;">To help conserve water, a filter is a must.  100 gallons of water is a decent amount of water so it&#8217;s important to use it for as long as possible.  I am hoping that a good filter can keep the pond clean for a couple months before a partial water change. </span></p>
<h2 id="toc-cost"><span style="color: #000000;">Cost?</span></h2>
<p><span style="color: #000000;">I have not done a cost calculation yet but it looks like this project is going to be a few hundred bucks at the minimum.  The cost may delay this project but since I already have the kiddie pool, it&#8217;s no longer a matter of &#8221;if&#8221; but just a matter &#8221;when&#8221;.</span></p>
<p><span style="color: #000000;"> </span></p>
<address><span style="color: #000000;">BTW&#8230; Google sketchup&#8230; you rock!  The nice design images above were done in sketchup.</span></address>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2010/05/turtle-pond-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Battlefield Bad Company 2: thoughts</title>
		<link>http://www.chiaocheng.com/2010/03/battlefield-bad-company-2-thoughts/</link>
		<comments>http://www.chiaocheng.com/2010/03/battlefield-bad-company-2-thoughts/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 08:20:31 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://www.chiaocheng.com/?p=281</guid>
		<description><![CDATA[
Bad Company 2 has finally been released.  Since I passed on Modern Warfare, I hoped that Bad Company 2 would be everything I wanted.   As reviews for the game came out, I realized that at least one aspect of the game did not meet my expectations.  But overall, it appears that the game [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-282 aligncenter" title="battlefield-bad-company-2" src="http://www.chiaocheng.com/wp-content/uploads/2010/03/battlefield-bad-company-2.jpg" alt="battlefield-bad-company-2" width="490" height="347" /></p>
<p>Bad Company 2 has finally been released.  Since I passed on Modern Warfare, I hoped that Bad Company 2 would be everything I wanted.   As reviews for the game came out, I realized that at least one aspect of the game did not meet my expectations.  But overall, it appears that the game got good reviews and most importantly it does not have any deal breakers for me.</p>
<h2 id="toc-the-bad">The Bad</h2>
<p>Before the game was released, I had see online reports that Bad Company 2 was going to support up to 40 players on the PC.  But unfortunately, it seems like the game only supports 32 players now.  Even though this is still better than the measly 18 players for Modern Warfare 2, I am still disappointed that it&#8217;s not 40 players.</p>
<h2 id="toc-the-good">The Good</h2>
<p>Destruction, destruction, destruction.  Can&#8217;t really say this enough because almost everything can be destroyed in the game.  No words can do this justice so just go out and find a video where you can see this happen!</p>
<p>Although 32 players are not as good as my expected 40 or 64 from other Battlefield games, I will give this game credit for increasing the number of players for the PC.  The xbox and playstation versions of the game are limited to 24 players which is too bad.  But understanding that the PC can handle more and actually using that power is just a smart move on the developer and should keep the PC gamers, including me, happy.</p>
<h2 id="toc-conclusion">Conclusion</h2>
<p>I will be giving this game a go as soon as soon as I get my new graphics card.  I&#8217;ll see you on the battlefield solder!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2010/03/battlefield-bad-company-2-thoughts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux remote screen lock</title>
		<link>http://www.chiaocheng.com/2009/12/linux-remote-screen-lock/</link>
		<comments>http://www.chiaocheng.com/2009/12/linux-remote-screen-lock/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 02:45:03 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[screen saver]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[x11]]></category>

		<guid isPermaLink="false">http://www.chiaocheng.com/?p=274</guid>
		<description><![CDATA[You can activate your linux screen saver or screen lock by running this command:
gnome-screensaver-command --lock
or
xlock
But if you ssh into your linux machine to activate the screen lock or screen saver, you might run into this error:
** Message: Failed to connect to the D-BUS daemon: dbus-launch failed to
autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
or
No protocol [...]]]></description>
			<content:encoded><![CDATA[<p>You can activate your linux screen saver or screen lock by running this command:
<pre class="brush:shell; gutter:false">gnome-screensaver-command --lock</pre>
<p>or
<pre class="brush:shell; gutter:false">xlock</pre>
<p>But if you ssh into your linux machine to activate the screen lock or screen saver, you might run into this error:</p>
<pre>** Message: Failed to connect to the D-BUS daemon: dbus-launch failed to
autolaunch D-Bus session: Autolaunch error: X11 initialization failed.</pre>
<p>or</p>
<pre>No protocol specified
xscreensaver: Can't open display: :0.0</pre>
<p>You have to set the DBUS_SESSION_BUS_ADDRESS environment variable in order the command to work.  You can find the current running DBUS address by first getting the process id of the running screen saver.  Then grepping for the address in the environ file.  The following script will lock your linux terminal:
<pre class="brush:shell">#!/bin/sh

PID=`pgrep -u $USER -f &quot;gnome-screensaver&quot;`
DBUS_SESSION_BUS_ADDRESS=`grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ`
DBUS_SESSION_BUS_ADDRESS=`echo $DBUS_SESSION_BUS_ADDRESS | sed -e 's/DBUS_SESSION_BUS_ADDRESS=//'`
export DBUS_SESSION_BUS_ADDRESS

gnome-screensaver-command --lock</pre>
<p>Holy remote locking Batman!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2009/12/linux-remote-screen-lock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modern Warfare 2: Released but not recommended</title>
		<link>http://www.chiaocheng.com/2009/11/modern-warfare-2-released-but-not-recommended/</link>
		<comments>http://www.chiaocheng.com/2009/11/modern-warfare-2-released-but-not-recommended/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 20:43:23 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[doa]]></category>
		<category><![CDATA[fps]]></category>
		<category><![CDATA[recommendation]]></category>

		<guid isPermaLink="false">http://www.chiaocheng.com/?p=254</guid>
		<description><![CDATA[I have been urging to get my hands on a new FPS (first person shooter) game for a while now since my main FPS is the super old Battlefield 2 game! I thought about getting Modern Warfare 1 but I noticed both Modern Warfare 2 and Bad Company 2 were coming out soon. I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been urging to get my hands on a new FPS (first person shooter) game for a while now since my main FPS is the super old Battlefield 2 game! I thought about getting Modern Warfare 1 but I noticed both Modern Warfare 2 and Bad Company 2 were coming out soon. I decided to wait and see.</p>
<p><img class="size-full wp-image-270 alignright" title="mw2logo" src="http://www.chiaocheng.com/wp-content/uploads/2009/11/mw2logo.png" alt="mw2logo" width="202" height="39" />Well today Modern Warfare 2 has been released! So I decided to poke around the internet to see what the word is. And my verdict is&#8230; not recommended.  I have decided that I will not buy Modern Warfare 2 based on two main deal breakers.</p>
<h2 id="toc-deal-breaker-1-18-player-limit">Deal breaker #1: 18 player limit</h2>
<p>Say what!  That&#8217;s right, it appears that Modern Warfare 2 is limited to 18 players.  Not 18 players on each side, but 18 players total, that&#8217;s 9v9 tops.  Personally, I love playing with a huge number of players because it just feels more like the scenes from the movie Saving Private Ryan.  And I think that&#8217;s awesome.  I love the concept of organized chaos which is what you get from 32 or 64 players duking it out while sub-dividing into miniature rambo teams.  With a maximum of 9 players on your side, half of them may be dead at any one time so that really leaves you 4 guys running around at a time.</p>
<p>If you&#8217;re a console guy, then you&#8217;re probably saying what&#8217;s the big deal?  And I would say it&#8217;s not a big deal to you.  For console games, this is pretty much the norm and this is what you expect.  More power to you.  But I am personally a PC guy and I am accustom to games that support up to 64 players.</p>
<h2 id="toc-deal-breaker-2-no-dedicated-servers">Deal breaker #2: no dedicated servers</h2>
<p>Initially I didn&#8217;t even know what this meant.  This basically means Infinity Ward, the creators of the game, will not have any game servers setup for people to play on.  The game is designed to be hosted directly on one of the client&#8217;s or player&#8217;s machines.  So yes, one lucky player in a given game will be hosting the game.  Based on my experience with FPS games and ping, this may give an unfair advantage to the player hosting the game as his ping will be virtually zero.  I have on many occassions, when my ping was super low, been able to defy death, almost in an omni-potent way, seen hoards of enemy shooting at me but always missing, as if they were targeting thin air.</p>
<h2 id="toc-conclusion">Conclusion</h2>
<p>A good summary is the title I have been seeing around the internet&#8230; Modern Warfare 2, DOA.  For those who are unfamiliar with that acronym, it stands for dead on arrival and is a common phrase seen when purchasing computer hardware.</p>
<p>Check out the funny ratings from <a title="GameSpot" href="http://www.gamespot.com/pc/action/modernwarfare2/players.html?tag=player-reviews;header;more" target="_blank">GameSpot</a> and <a title="IGN" href="http://pc.ign.com/objects/142/14280895.html" target="_blank">IGN</a>.</p>
<div id="attachment_266" class="wp-caption aligncenter" style="width: 410px"><img class="size-full wp-image-266" title="modern-warfare-2-rating" src="http://www.chiaocheng.com/wp-content/uploads/2009/11/modern-warfare-2-rating1.gif" alt="Ratings from GameSpot and IGN" width="400" height="400" /><p class="wp-caption-text">Ratings from GameSpot and IGN</p></div>
<p>For now, I will be waiting for Bad Company 2.  While I have read that it can support a maximum of 40 players, the game is still to a bit too far from release to know for sure.  So hopefully it won&#8217;t let me down.  If it does, well there is always Modern Warfare 1.</p>
<p>Finally, here are some direct quotes that made me laugh (disclaimer: quotes do not necessarily represent the author&#8217;s opinions):</p>
<ul>
<li>Take $60 out and burn it&#8230;least you get warm -zippythezip (GameSpot)</li>
<li>it&#8217;s like mw but then crippled -ATFNeOpHyTe (GameSpot)</li>
<li>Screw you consoles!!!!!!! -ZeppelinE6 (GameSpot)</li>
<li>outside of consoles this game is already DOA -doorules (IGN)</li>
<li>If I wanted to play 9 vrs 9 on small maps I would just reinstall my old Doom disks. -jdwksu (IGN)</li>
<li>Complete and utter failure, a 10 year step back in PC gaming -Liksecken (GameSpot)</li>
</ul>
<p>Holy bad PR, Batman!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2009/11/modern-warfare-2-released-but-not-recommended/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wordpress: No Page comments</title>
		<link>http://www.chiaocheng.com/2009/07/wordpress-no-page-comments/</link>
		<comments>http://www.chiaocheng.com/2009/07/wordpress-no-page-comments/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 00:45:42 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.chiaocheng.com/?p=213</guid>
		<description><![CDATA[It seems like the &#8220;Allow Comments&#8221; option on the &#8220;Add new page&#8221; screen does not work in wordpress.  Specifically, it does not work for the default theme Kubrick.
Seeing this option, it&#8217;s easy to assume this enables comments on your wordpress Pages, especially for the default theme.  But unfortunately, this particular option in the admin [...]]]></description>
			<content:encoded><![CDATA[<p>It seems like the &#8220;Allow Comments&#8221; option on the &#8220;Add new page&#8221; screen does not work in wordpress.  Specifically, it does not work for the default theme Kubrick.</p>
<div id="attachment_215" class="wp-caption alignnone" style="width: 540px"><img class="size-full wp-image-215" title="wordpress-allow-discussion" src="http://www.chiaocheng.com/wp-content/uploads/2009/07/wordpress-allow-discussion.png" alt="Allow comments option" width="530" height="113" /><p class="wp-caption-text">Allow comments option</p></div>
<p>Seeing this option, it&#8217;s easy to assume this enables comments on your wordpress Pages, especially for the default theme.  But unfortunately, this particular option in the admin page has no affect on the default Kubrick theme.  To enable comments on your Page(s), you have to select a theme which includes them or modify your default Kubrick theme.</p>
<h2 id="toc-default-theme-with-page-comments">Default theme with page comments</h2>
<p>To change your default theme, add the following line to <code>/wp-content/themes/default/page.php</code></p>
<p><!--no-encode--></p>
<pre class="brush:php; highlight: [24]">&lt;?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header(); ?&gt;

    &lt;div id="content" class="narrowcolumn"&gt;

        &lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
        &lt;div class="post" id="post-&lt;?php the_ID(); ?&gt;"&gt;
        &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
            &lt;div class="entry"&gt;
                &lt;?php the_content('&lt;p class="serif"&gt;Read the rest of this page &amp;raquo;&lt;/p&gt;'); ?&gt;

                &lt;?php wp_link_pages(array('before' =&gt; '&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; ', 'after' =&gt; '&lt;/p&gt;', 'next_or_number' =&gt; 'number')); ?&gt;

            &lt;/div&gt;
        &lt;/div&gt;
        &lt;?php endwhile; endif; ?&gt;
    &lt;?php edit_post_link('Edit this entry.', '&lt;p&gt;', '&lt;/p&gt;'); ?&gt;

    &lt;?php comments_template(); ?&gt;
    &lt;/div&gt;

&lt;?php get_footer(); ?&gt;</pre>
<h2 id="toc-additional-references">Additional References</h2>
<p><a href="http://wordpress.org/support/topic/246879" target="_blank">http://wordpress.org/support/topic/246879</a></p>
<p><a href="http://wordpress.org/support/topic/196788" target="_blank">http://wordpress.org/support/topic/196788</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2009/07/wordpress-no-page-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress thumbnail generation disabled</title>
		<link>http://www.chiaocheng.com/2009/06/wordpress-thumbnail-generation-disabled/</link>
		<comments>http://www.chiaocheng.com/2009/06/wordpress-thumbnail-generation-disabled/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 23:22:29 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.chiaocheng.com/?p=60</guid>
		<description><![CDATA[No thumbnails in your wordpress?  Read on&#8230;
I noticed last night that my wordpress is not generating thumbnails from uploaded images like it&#8217;s suppose to. You&#8217;ll noticed that the size options (thumbnail, medium, large) are all disabled except for the full size.

After doing a lot of searching, I finally found out that in order for [...]]]></description>
			<content:encoded><![CDATA[<p>No thumbnails in your wordpress?  Read on&#8230;</p>
<p>I noticed last night that my wordpress is not generating thumbnails from uploaded images like it&#8217;s suppose to. You&#8217;ll noticed that the size options (thumbnail, medium, large) are all disabled except for the full size.</p>
<p style="text-align: center;"><img class="size-full wp-image-62  aligncenter" title="wordpress-size-options" src="http://www.chiaocheng.com/wp-content/uploads/2009/06/wordpress-size-options.png" alt="wordpress-size-options" width="637" height="114" /></p>
<p>After doing a lot of searching, I finally found out that in order for wordpress to generate thumbnails &#8220;by default&#8221;, you need to have GD library support for your php. It would have been nice if wordpress had documented that better.</p>
<p>The only reference I found was this:</p>
<p><a href="http://wordpress.org/support/topic/235625" target="_blank">http://wordpress.org/support/topic/235625</a></p>
<p>To be clear, <strong>wordpress does not generate thumbnails by default unless your php instance has GD support</strong>.</p>
<h3 id="toc-install-php-gd-library">Install php gd library</h3>
<p>For me, installing GD library was easy:
<pre class="brush:shell; gutter:false">
# yum install php-gd
</pre>
<h3 id="toc-check-for-gd">Check for gd</h3>
<p>To check if you have GD loaded in php:
<pre class="brush:shell; gutter:false; highlight:[11]"># php -m
[PHP Modules]
bz2
calendar
ctype
curl
date
dbase
exif
ftp
gd
gettext
gmp
hash
iconv</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2009/06/wordpress-thumbnail-generation-disabled/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>this version of PCRE is not compiled with PCRE_UTF8 support</title>
		<link>http://www.chiaocheng.com/2009/06/pcre-utf8-support/</link>
		<comments>http://www.chiaocheng.com/2009/06/pcre-utf8-support/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 01:24:02 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.crikeymate.com/?p=33</guid>
		<description><![CDATA[After installing wordpress, I got a lot of these errors in my apache wordpress error log.
PHP Warning:  preg_match_all() [&#60;a href='function.preg-match-all'&#62;function.preg-match-all&#60;/a&#62;]:
Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in ...
I am running apache 2.2.8 and it uses the built-in version 5 of pcre.
http://httpd.apache.org/docs/2.2/new_features_2_2.html
The problem is that version 5 of [...]]]></description>
			<content:encoded><![CDATA[<p>After installing wordpress, I got a lot of these errors in my apache wordpress error log.</p>
<pre>PHP Warning:  preg_match_all() [&lt;a href='function.preg-match-all'&gt;function.preg-match-all&lt;/a&gt;]:
Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in ...</pre>
<p>I am running apache 2.2.8 and it uses the built-in version 5 of pcre.</p>
<p><a href="http://httpd.apache.org/docs/2.2/new_features_2_2.html" target="_blank">http://httpd.apache.org/docs/2.2/new_features_2_2.html</a></p>
<p>The problem is that version 5 of pcre does not contain UTF-8 support.  So I had to recompile apache with a newer version of pcre. Luckily I have pcre 6.6 already installed on my linux box.</p>
<pre>&gt;&gt; rpm -qa |grep -i pcre
pcre-devel-6.6-2.el5_0.1
pcre-6.6-2.el5_0.1
pcre-6.6-2.el5_0.1</pre>
<p>So all I had to do is re-compile apache with the &#8220;&#8211;with-pcre&#8221; flag.</p>
<pre>./configure --with-pcre</pre>
<p>If you don&#8217;t know what version of pcre your php is using, create a phpinfo script and hit it with your broswer.  You should see&#8230;</p>
<p style="text-align: center;"><img class="size-full wp-image-34  aligncenter" title="php-pcre" src="http://www.chiaocheng.com/wp-content/uploads/2009/06/php-pcre.png" alt="pcre version" width="622" height="108" /></p>
<p>Happy compiling&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2009/06/pcre-utf8-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving to wordpress 2.8</title>
		<link>http://www.chiaocheng.com/2009/06/moving-to-wordpress-2-8/</link>
		<comments>http://www.chiaocheng.com/2009/06/moving-to-wordpress-2-8/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 20:15:52 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[Opinion]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.crikeymate.com/?p=17</guid>
		<description><![CDATA[I&#8217;ve finally moved chiaocheng.com to wordpress.  I have been looking for ways to add content more easily than writing up html pages.  To achieve that, I focused on two types of software, blogs and wiki&#8217;s.  Initially, I had hoped to keep my site on java for integration purposes.  My photo album is running off tomcat [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally moved <a href="http://www.chiaocheng.com">chiaocheng.com</a> to <a href="http://wordpress.org/" target="_blank">wordpress</a>.  I have been looking for ways to add content more easily than writing up html pages.  To achieve that, I focused on two types of software, blogs and wiki&#8217;s.  Initially, I had hoped to keep my site on java for integration purposes.  My photo album is running off tomcat and so keeping things in java would have allowed me to include my photo album without redirecting to a new site.  I looked at several java solutions such as <a href="http://www.jspwiki.org/" target="_blank">jspwiki</a> and <a href="http://www.jamwiki.org" target="_blank">jamwiki</a> but unfortunately, I didn&#8217;t find anything suitable.  I finally decided to ditch the java requirement.  After that, the choice got a lot easier since wordpress is very popular, thus having a lot of community built support around it.</p>
<p>Another important factor for me was the ability to customize the software.  Not only the legal ability but also the ease to understand and change the underlying software.  Not being a php guy, I&#8217;ve been pleasantly surprised how easy and straight forward to understand and modify the code base.  The bad part is that it looks very much like procedural spagehiti code resembling much of what you would see if a java web app was written completely in jsp.</p>
<p>Just a few weeks ago, wordpress 2.8 came out.  So I installed the new version and it seems like a lot of the buggy admin functions are now fixed.  Using wordpress 2.7, I felt a lot of the backend pages had bugs.  Luckily for me, 2.8 came out at the perfect time.</p>
<p>You can find my old website here: <a href="http://old.chiaocheng.com">old.chiaocheng.com</a>.  It going to take me some time to move everything over.</p>
<p>And guess what, you just read my first ever blog post!</p>
<p>Happy blogging.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2009/06/moving-to-wordpress-2-8/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
