<?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>Charles Zhang</title>
	<atom:link href="http://charleszhang.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://charleszhang.net</link>
	<description></description>
	<lastBuildDate>Thu, 12 Apr 2012 04:10:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Search for Asian (All) Characters in Thinking Sphinx</title>
		<link>http://charleszhang.net/search-for-asian-characters-in-thinking-sphinx/</link>
		<comments>http://charleszhang.net/search-for-asian-characters-in-thinking-sphinx/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 04:06:25 +0000</pubDate>
		<dc:creator>eatmyswan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://charleszhang.net/?p=26</guid>
		<description><![CDATA[In your sphinx.yml Just copy this. http://snipt.net/rebelidealist/thinking-sphinx-to-support-all-character-including-chinese-korean-etc/ I tested it with Chinese, Japanese, Korean, and Russian. Please note that the configuration was repeated with the development &#38; production environment.]]></description>
			<content:encoded><![CDATA[<p>In your sphinx.yml</p>
<p>Just copy this.</p>
<p><a href="http://snipt.net/rebelidealist/thinking-sphinx-to-support-all-character-including-chinese-korean-etc/  ">http://snipt.net/rebelidealist/thinking-sphinx-to-support-all-character-including-chinese-korean-etc/</a></p>
<p>I tested it with Chinese, Japanese, Korean, and Russian.</p>
<p>Please note that the configuration was repeated with the development &amp; production environment.</p>
]]></content:encoded>
			<wfw:commentRss>http://charleszhang.net/search-for-asian-characters-in-thinking-sphinx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Your Site May Not Load in China</title>
		<link>http://charleszhang.net/your-site-may-not-load-in-china/</link>
		<comments>http://charleszhang.net/your-site-may-not-load-in-china/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 06:28:09 +0000</pubDate>
		<dc:creator>eatmyswan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://charleszhang.net/?p=22</guid>
		<description><![CDATA[For me, the most annoying aspect of China&#8217;s firewall was not that facebook and twitter was blocked. It is refreshing to take a break from  these social networks. However, the consequence of facebook and twitter being blocked is debilitating for most modern sites trying to reach people in PRC. If your site using any facebook [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>For me, the most annoying aspect of China&#8217;s firewall was not that facebook and twitter was blocked. It is refreshing to take a break from  these social networks. However, the consequence of facebook and twitter being blocked is debilitating for most modern sites trying to reach people in PRC.</p>
<p>If your site using any facebook or twitter plugins such as fb connect, fb comments, fb like , and twitter share widget you site may be slow to load or not load at all. Several high profile site such as techcrunch take forever to load partially, not because their content is block by China, but they are are utilizing fb plugins.</p>
<p>What you can do about this?</p>
<p>1. Protest in Tiananmen square.</p>
<p>2. Modify your site so the the fb &amp; twitter js to load asycronously so it doesn&#8217;t affect the loading of your other contents.</p>
<p>3. Or don&#8217;t load the plugins for ips from PRC.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://charleszhang.net/your-site-may-not-load-in-china/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Convert Time Zones in PHP</title>
		<link>http://charleszhang.net/time_zones_php/</link>
		<comments>http://charleszhang.net/time_zones_php/#comments</comments>
		<pubDate>Mon, 09 May 2011 06:09:27 +0000</pubDate>
		<dc:creator>eatmyswan</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://charleszhang.net/?p=9</guid>
		<description><![CDATA[In this example, we are converting a date/time from US Central to GMT. 1) Create two TIme Zone objects, one for each time zone $original_time_zone = new DateTimeZone('America/Chicago'); $new_time_zone = new DateTimeZone('GMT'); 2) Create a Date Time object with the original time zone and the time desired. $date_time = new DateTime('5-1-2011 11:30 PM', $original_time_zone); //another [...]]]></description>
			<content:encoded><![CDATA[<p> In this example, we are converting a date/time from US Central to GMT.<br />
1) Create two TIme Zone objects, one for each time zone<br />
<code><br />
$original_time_zone = new DateTimeZone('America/Chicago');<br />
$new_time_zone = new DateTimeZone('GMT');<br />
</code></p>
<p>2) Create a Date Time object with the original time zone and the time desired.<br />
<code><br />
$date_time = new DateTime('5-1-2011 11:30 PM', $original_time_zone);<br />
//another example using the current system time<br />
$date_time = new DateTime('now', $original_time_zone);<br />
</code></p>
<p>3) Convert to the new time zone using Date Time Object&#8217;s setTimeZone method.<br />
<code><br />
$date_time->setTimezone($new_time_zone); //GMT time zone object<br />
</code></p>
<p>4) That&#8217;s it! You can also output the converted date time object to any format that php <a href="http://php.net/manual/en/function.date.php">date()</a> accepts.<br />
<code><br />
 //returns the date time in mysql time format<br />
   return $date_time->format('H:i:s');<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://charleszhang.net/time_zones_php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

