<?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>Shang Liang &#187; Others</title>
	<atom:link href="http://shang-liang.com/blog/category/others/feed/" rel="self" type="application/rss+xml" />
	<link>http://shang-liang.com/blog</link>
	<description>Life in a Flash</description>
	<lastBuildDate>Fri, 27 Apr 2012 08:08:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flash + IE + Session + IFrame = 1 Angry Developer</title>
		<link>http://shang-liang.com/blog/flash-ie-session-iframe-1-angry-developer/</link>
		<comments>http://shang-liang.com/blog/flash-ie-session-iframe-1-angry-developer/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 16:44:36 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=323</guid>
		<description><![CDATA[I&#8217;m very sick of this Flash session issue. I thought I had the perfect solution of passing the session id into Flash and fix the session by appending all the request, then the bomb drops to me. It doesn&#8217;t work in an iframe in IE. Apparently, IE doesn&#8217;t trust cookies set from an iframe so [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m very sick of this Flash session issue. I thought I had the perfect solution of passing the session id into Flash and fix the session by appending all the request, then the bomb drops to me. It doesn&#8217;t work in an iframe in IE. Apparently, IE doesn&#8217;t trust cookies set from an iframe so there goes the session. The solution is to add a header information in the backend code. Something like this for PHP.<br />
<code>header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');</code><br />
It&#8217;s not hard to find the code for other languages in Google.</p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/flash-ie-session-iframe-1-angry-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Searching text with Suffix Tree</title>
		<link>http://shang-liang.com/blog/searching-text-with-suffix-tree/</link>
		<comments>http://shang-liang.com/blog/searching-text-with-suffix-tree/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 09:22:48 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=317</guid>
		<description><![CDATA[http://en.wikipedia.org/wiki/Suffix_tree Here&#8217;s the speed test. The speed boost is not obvious for daily usage but it&#8217;s very significant when the word base get larger, or it&#8217;s searching against long sentences. Suffix tree search speed test]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Suffix_tree">http://en.wikipedia.org/wiki/Suffix_tree</a></p>
<p>Here&#8217;s the speed test. The speed boost is not obvious for daily usage but it&#8217;s very significant when the word base get larger, or it&#8217;s searching against long sentences.</p>
<p><a href="http://shang-liang.com/blog/wp-content/uploads/2011/06/test.swf">Suffix tree search speed test</a></p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/searching-text-with-suffix-tree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook is tweaking its system for iframe apps, yours may be broken now</title>
		<link>http://shang-liang.com/blog/facebook-is-tweaking-its-system-for-iframe-apps-yours-may-be-broken-now/</link>
		<comments>http://shang-liang.com/blog/facebook-is-tweaking-its-system-for-iframe-apps-yours-may-be-broken-now/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 09:04:33 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=309</guid>
		<description><![CDATA[Facebook parameters passed to applications&#8217; iframe is changed from GET to POST. It&#8217;s unclear whether this will be permanent. If your Facebook application uses iframe and tries to check parameters view GET method, it&#8217;s very likely to be broken now. Many iframe applications  check &#8216;fb_sig_in_iframe&#8217; to determine whether the user is accessing the app directly, [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook parameters passed to applications&#8217; iframe is changed from GET to POST. It&#8217;s unclear whether this will be permanent. If your Facebook application uses iframe and tries to check parameters view GET method, it&#8217;s very likely to be broken now.</p>
<p>Many iframe applications  check &#8216;fb_sig_in_iframe&#8217; to determine whether the user is accessing the app directly, not going through Facebook. Such applications will go into a looping re-directing.</p>
<p>To be safe, you can try to get the parameters via both GET and POST in case Facebook change it back to GET in the future.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/facebook-is-tweaking-its-system-for-iframe-apps-yours-may-be-broken-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Incorrect NSStringEncoding value 0&#215;0000 Error with ASIHTTPRequest</title>
		<link>http://shang-liang.com/blog/incorrect-nsstringencoding-value-0x0000-error-with-asihttprequest/</link>
		<comments>http://shang-liang.com/blog/incorrect-nsstringencoding-value-0x0000-error-with-asihttprequest/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 17:58:57 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=273</guid>
		<description><![CDATA[I was using ASIHTTPRequest and encountered the following error Incorrect NSStringEncoding value 0&#215;0000 detected. Assuming NSStringEncodingASCII. Will stop this compatiblity mapping behavior in the near future. After I tried various ways of setting the encoding of the NSString, nothing really worked. I then dug a bit more and realized I didn&#8217;t initialize ASIHTTPRequest properly. The [...]]]></description>
			<content:encoded><![CDATA[<p>I was using ASIHTTPRequest and encountered the following error</p>
<blockquote><p>Incorrect NSStringEncoding value 0&#215;0000 detected. Assuming NSStringEncodingASCII. Will stop this compatiblity mapping behavior in the near future.</p></blockquote>
<p>After I tried various ways of setting the encoding of the NSString, nothing really worked. I then dug a bit more and realized I didn&#8217;t initialize ASIHTTPRequest properly. The only right way to initialize it is through calling initWithURL. The &#8220;init&#8221; function is empty and it does not set the instance into the working state. The error is raised when you try to call setURL function of when it&#8217;s not initialized properly.</p>
<p>What I was trying to od is to reuse one instance of ASIHTTPRequest. After I looked into the source code, I chose not to play around with it and initialize separate instances when needed and destroy them afterward. The class is very complicated because of the threadings happening inside it. I&#8217;m sure there&#8217;s a better solution of reusing an instance, for example calling a &#8220;close&#8221; function of the instance. But I can&#8217;t find the right function at the moment. </p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/incorrect-nsstringencoding-value-0x0000-error-with-asihttprequest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SWFObject 2.2 and SWFAddress 2.3 Conflict &#8211; flashvars have problem in IE</title>
		<link>http://shang-liang.com/blog/swfobject-22-and-swfaddress-23-conflict-flashvars-have-problem-in-ie/</link>
		<comments>http://shang-liang.com/blog/swfobject-22-and-swfaddress-23-conflict-flashvars-have-problem-in-ie/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 05:47:23 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=162</guid>
		<description><![CDATA[The problem has been noted in SWFObject&#8217;s issue log. If you encounter any problem with flashvars not showing up in IE, downgrade SWFAdress to 2.2 will solve the problem. You can download other versions of SWFAdress from SourceForge.]]></description>
			<content:encoded><![CDATA[<p>The problem has been noted in <a href="http://code.google.com/p/swfobject/issues/detail?id=338#c0">SWFObject&#8217;s issue log</a>. If you encounter any problem with flashvars not showing up in IE, downgrade SWFAdress to 2.2 will solve the problem. You can download other versions of SWFAdress from <a href="http://sourceforge.net/projects/swfaddress/files/">SourceForge</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/swfobject-22-and-swfaddress-23-conflict-flashvars-have-problem-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trying PureMVC for website navigation</title>
		<link>http://shang-liang.com/blog/trying-puremvc-for-website-navigation/</link>
		<comments>http://shang-liang.com/blog/trying-puremvc-for-website-navigation/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 12:01:07 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=99</guid>
		<description><![CDATA[I was always wondering how to use PureMVC for website development. Today, I&#8217;ve finally got a chance to try it.  I&#8217;ve read the documents many times but never really understand it so clearly after this small hands on practice. The example is the most typical scenario, some clickable buttons on the stage and click at [...]]]></description>
			<content:encoded><![CDATA[<p>I was always wondering how to use PureMVC for website development. Today, I&#8217;ve finally got a chance to try it.  I&#8217;ve read the documents many times but never really understand it so clearly after this small hands on practice. The example is the most typical scenario, some clickable buttons on the stage and click at one button will show the corresponding content.</p>
<p><a href="http://shang-liang.com/blog/wp-content/uploads/2009/01/puremvc_navigation.zip">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/trying-puremvc-for-website-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Link:Next Step in Live Visuals</title>
		<link>http://shang-liang.com/blog/linknext-step-in-live-visuals/</link>
		<comments>http://shang-liang.com/blog/linknext-step-in-live-visuals/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 06:36:22 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=83</guid>
		<description><![CDATA[Great stuff! Very inspring!]]></description>
			<content:encoded><![CDATA[<p><a title="next step in live visuals" href="http://www.eskimoblood.de/2008/10/26/next-step-in-live-visuals/" target="_blank">Great stuff! Very inspring!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/linknext-step-in-live-visuals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINK: Solution to the Adobe Flash Player 10 upload problem</title>
		<link>http://shang-liang.com/blog/link-solution-to-the-adobe-flash-player-10-upload-problem/</link>
		<comments>http://shang-liang.com/blog/link-solution-to-the-adobe-flash-player-10-upload-problem/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 09:24:08 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=81</guid>
		<description><![CDATA[The people there are really happy with their solution.]]></description>
			<content:encoded><![CDATA[<p>The people there are really <a title="flash player 10 upload problem solution" href="http://www.wetpaintcentral.com/thread/2016149/Solution+to+the+Adobe+Flash+Player+10++upload+problem?offset=0&amp;t=anon">happy with their solution</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/link-solution-to-the-adobe-flash-player-10-upload-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Passport Photo</title>
		<link>http://shang-liang.com/blog/new-passport-photo/</link>
		<comments>http://shang-liang.com/blog/new-passport-photo/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 16:09:57 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[fun yearbook]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=78</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-79" title="yearbookyourself.com" src="http://shang-liang.com/blog/wp-content/uploads/2008/08/5.jpg" alt="" width="225" height="320" /></p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/new-passport-photo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configure FlashDevelop Code Autocompletion For AIR API</title>
		<link>http://shang-liang.com/blog/configure-flashdevelop-code-autocomplition-for-air-api/</link>
		<comments>http://shang-liang.com/blog/configure-flashdevelop-code-autocomplition-for-air-api/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 06:46:05 +0000</pubDate>
		<dc:creator>Shang</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://shang-liang.com/blog/?p=76</guid>
		<description><![CDATA[This will enable code auto-completion feature for AIR API in FlashDevelop Project-&#62;Properties-&#62;Compiler Options-&#62;Intrinsic Libraries, click at the &#8220;&#8230;&#8221; button and put these lines there Library\AS3\frameworks\FlashCS3 Library\AS3\frameworks\AIR]]></description>
			<content:encoded><![CDATA[<p>This will enable code auto-completion feature for AIR API in <a title="flashdevelop actionscript editor" href="http://www.flashdevelop.org" target="_blank">FlashDevelop</a></p>
<p>Project-&gt;Properties-&gt;Compiler Options-&gt;Intrinsic Libraries, click at the &#8220;&#8230;&#8221; button and put these lines there</p>
<p>Library\AS3\frameworks\FlashCS3<br />
Library\AS3\frameworks\AIR</p>
]]></content:encoded>
			<wfw:commentRss>http://shang-liang.com/blog/configure-flashdevelop-code-autocomplition-for-air-api/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

