<?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>Li(ttle)URL.cn &#187; Site Related</title>
	<atom:link href="http://blog.liurl.cn/category/site-related/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.liurl.cn</link>
	<description>Behind the scene's at LiURL.cn</description>
	<lastBuildDate>Sat, 25 Apr 2009 04:07:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cool Stuff &#124; Fridgelingo Chinese Fridge Magnets</title>
		<link>http://blog.liurl.cn/2009/04/cool-stuff-fridgelingo-chinese-fridge-magnets/</link>
		<comments>http://blog.liurl.cn/2009/04/cool-stuff-fridgelingo-chinese-fridge-magnets/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 04:18:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Shopping]]></category>
		<category><![CDATA[Site Related]]></category>
		<category><![CDATA[ayi]]></category>
		<category><![CDATA[cool hunting]]></category>
		<category><![CDATA[fridge magnets]]></category>
		<category><![CDATA[fridgelingo]]></category>
		<category><![CDATA[iwantone]]></category>
		<category><![CDATA[shanghainese]]></category>

		<guid isPermaLink="false">http://blog.liurl.cn/?p=46</guid>
		<description><![CDATA[While I&#8217;m aware that its usually a little skeezy promoting your own stuff, this is actually quite a cool product that we designed in-house.
iWantOne.cn has some cool Fridge Magnet sets for those wanting to learn Chinese (or English).

The first set is available now, and includes phrases useful for talking to your ayi.
The idea came about [...]]]></description>
			<content:encoded><![CDATA[<p>While I&#8217;m aware that its usually a little skeezy promoting your own stuff, this is actually quite a cool product that we designed in-house.</p>
<p><a href="http://www.iWantOne.cn">iWantOne.cn</a> has some cool Fridge Magnet sets for those wanting to learn Chinese (or English).</p>
<p><img src="http://blog.liurl.cn/wp-content/uploads/2009/04/127-259-large.jpg" alt="Fridge Lingo :: Set #1 - Talking to your Ayi" title="Fridge Lingo :: Set #1 - Talking to your Ayi" width="300" height="300" class="aligncenter size-full wp-image-48" /></p>
<p>The first set is available now, and includes phrases useful for talking to your ayi.</p>
<p>The idea came about from a client &#8211; who asked why we didn&#8217;t put some English translation on our <a href="http://liurl.cn/0ah">Shanghainese</a> or <a href="http://liurl.cn/0ai">Mandarin</a> badges.<br />
(Yes, we do have a <a href="http://liurl.cn/a9">Grass Mud Horse</a> badge, for those that read the New York Times).</p>
<p>I thought about it for a while, and remembered the fridge poetry craze from a few years ago, and had the seminal idea to make a magnet set with Chinese, English and Pinyin translations.</p>
<p>A month or three and many prototypes later, we finally had a product.</p>
<p>That my i could also finally tell the Ayi to clean under the sofa was also a bonus!</p>
<p>Link here: <a href="http://liurl.cn/eu">http://liurl.cn/eu</a></p>
<p><strong>Disclaimer &#8211; Our parent company owns <a href="http://www.iwantone.cn">iWantOne</a>. and <a href="http://www.fridgelingo.com">FridgeLingo</a>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.liurl.cn/2009/04/cool-stuff-fridgelingo-chinese-fridge-magnets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SmartShanghai.com now using LiURL</title>
		<link>http://blog.liurl.cn/2009/04/smartshanghaicom-now-using-liurl/</link>
		<comments>http://blog.liurl.cn/2009/04/smartshanghaicom-now-using-liurl/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 23:38:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Site Related]]></category>
		<category><![CDATA[franck]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[smartshanghai]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.liurl.cn/?p=36</guid>
		<description><![CDATA[SmartShanghai.com is now using LiURL.cn to generate small url&#8217;s for all their twitter links.

Its not immediately obvious, but if you click on the Twitter link (example below), you&#8217;ll see LiURL in use.

We worked with SmartShanghai in order to assist them with integration.  SmartShanghai&#8217;s original plan was to run a script to generate url&#8217;s for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.SmartShanghai.com">SmartShanghai.com</a> is now using LiURL.cn to generate small url&#8217;s for all their twitter links.</p>
<p><img class="aligncenter size-full wp-image-38" title="Franck Bistro Shanghai - good but expensive French food, in the French Concession" src="http://blog.liurl.cn/wp-content/uploads/2009/04/frank.jpg" alt="frank" width="585" height="431" /></p>
<p>Its not immediately obvious, but if you click on the Twitter link (example below), you&#8217;ll see LiURL in use.</p>
<p><a href="http://twitter.com/home?status=Franck%27s%20Bistro%20http://liurl.cn/ij"><img class="alignnone size-full wp-image-37" title="twitter" src="http://blog.liurl.cn/wp-content/uploads/2009/04/dating_twitter.png" alt="twitter" width="21" height="20" /></a></p>
<p>We worked with SmartShanghai in order to assist them with integration.  SmartShanghai&#8217;s original plan was to run a script to generate url&#8217;s for all 5000+ venues.  While this would have worked, it wasn&#8217;t an optimal solution for either site.</p>
<p>Our revised design works something like this.</p>
<p>On page load, SmartShanghai checks to see if they have a small url for the page in their database.<br />
If they don&#8217;t, they call LiURL&#8217;s API (http://liurl.cn/api-create.php?url=[YOURURL]) to generate a Little URL, and save the URL locally in their database.</p>
<p>Simple, and elegant.  URL&#8217;s are generated only once, on a page request by a user.</p>
<p>If you would like to use LiURL.cn in your site, let us know, and we can assist with integration.</p>
<p>For the technically inclined, sample PHP code to use LiURL.cn is below.</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">&lt;?php</span></p>
<p><span class="co1">//Use cUrl to retrieve content</span><br />
<span class="kw2">function</span> get_content<span class="br0">&#40;</span><span class="re0">$url</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$ch</span> = curl_init<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
curl_setopt <span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_URL, <span class="re0">$url</span><span class="br0">&#41;</span>;<br />
curl_setopt <span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_HEADER, <span class="nu0">0</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/ob_start"><span class="kw3">ob_start</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
curl_exec <span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span>;<br />
curl_close <span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span>;<br />
<span class="re0">$string</span> = <a href="http://www.php.net/ob_get_contents"><span class="kw3">ob_get_contents</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/ob_end_clean"><span class="kw3">ob_end_clean</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw1">return</span> <span class="re0">$string</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="co1">//URL = url to encode</span><br />
<span class="re0">$url</span>=<span class="st0">&quot;http://www.example.com&quot;</span>;</p>
<p><span class="co1">//Call the LiURL api</span><br />
<span class="re0">$content</span> = get_content <span class="br0">&#40;</span><span class="st0">&quot;http://liurl.cn/api-create.php?url=&quot;</span>. <span class="re0">$url</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">//Show our short url</span><br />
<a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$content</span>;</p>
<p><span class="kw2">?&gt;</span><br />
&nbsp;</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.liurl.cn/2009/04/smartshanghaicom-now-using-liurl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site usage Statistics</title>
		<link>http://blog.liurl.cn/2009/03/site-usage-statistics/</link>
		<comments>http://blog.liurl.cn/2009/03/site-usage-statistics/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 10:14:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Site Related]]></category>
		<category><![CDATA[Stats]]></category>

		<guid isPermaLink="false">http://blog.liurl.cn/?p=5</guid>
		<description><![CDATA[As we&#8217;ve had Google analytics running on the LiURL site since its launch, its been interesting for me to see where the site is actually being used.
So far usage has spread to a bunch of cities I&#8217;ve never even heard of in China, as well as the usual culprits (Shanghai, Beijing).  Lets hope that we [...]]]></description>
			<content:encoded><![CDATA[<p>As we&#8217;ve had Google analytics running on the LiURL site since its launch, its been interesting for me to see where the site is actually being used.<br />
So far usage has spread to a bunch of cities I&#8217;ve never even heard of in China, as well as the usual culprits (Shanghai, Beijing).  Lets hope that we can spread to more cities next month, and cover the map!</p>
<p>Interestingly enough, zero hits from outside China so far.</p>
<p>网站使用统计</p>
<p>在LiURL网站开启的时候 我们就启用了谷歌分析系统。观察网站在被如何使用对我来说是十分有趣的。<br />
目前为止，网站被大量的中国城市使用，如文化中心（上海，北京）甚至更有些我从未听说过的中国城市。希望我们在下个月能将网站推广到更多的城市中去，覆盖整个地图！</p>
<p>非常有趣的是，目前没有中国以外的使用记录。</p>
<div id="attachment_7" class="wp-caption alignnone" style="width: 568px"><img class="size-full wp-image-7" title="usage-map" src="http://blog.liurl.cn/wp-content/uploads/2009/03/usage-map.jpg" alt="City Usage Map" width="558" height="416" /><p class="wp-caption-text">City Usage Map</p></div>
<div id="attachment_6" class="wp-caption alignleft" style="width: 203px"><img class="size-full wp-image-6" title="usage-cities" src="http://blog.liurl.cn/wp-content/uploads/2009/03/usage-cities.jpg" alt="Chinese City's LiURL is being used from!" width="193" height="238" /><p class="wp-caption-text">Chinese City&#39;s LiURL is being used from!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.liurl.cn/2009/03/site-usage-statistics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
