<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-8645493911655404458</atom:id><lastBuildDate>Tue, 15 Apr 2008 05:54:22 +0000</lastBuildDate><title>The RoLLing cOde</title><description/><link>http://rollingcode.org/blog/</link><managingEditor>FreeWizard</managingEditor><generator>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-1047219983082734017</guid><pubDate>Sun, 06 Apr 2008 06:39:00 +0000</pubDate><atom:updated>2008-04-06T17:36:31.187+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>AIR</category><category domain='http://www.blogger.com/atom/ns#'>webkit</category><category domain='http://www.blogger.com/atom/ns#'>SliverLight</category><category domain='http://www.blogger.com/atom/ns#'>ria</category><category domain='http://www.blogger.com/atom/ns#'>Prism</category><category domain='http://www.blogger.com/atom/ns#'>desktop</category><category domain='http://www.blogger.com/atom/ns#'>google</category><title>A new player to the desktop RIA playground?</title><description>With the release of &lt;a href="http://www.google.com/talk/labsedition/"&gt;GTalk Lab Ed&lt;/a&gt;, an desltop version of &lt;a href="http://talkgadget.google.com/talkgadget/popout"&gt;GTalk Gadget&lt;/a&gt;, Google  has showed up its achievement of  &lt;a href="http://webkit.org/"&gt;WebKit&lt;/a&gt; engine embedding. After Adobe AIR, Mozilla Prism and &lt;a href="http://www.techcrunch.com/2008/03/01/microsoft-office-online-and-attacking-the-innovators-dilemma/"&gt;some announcement&lt;/a&gt; from m$, the search giant maybe also silently joined the Desktop RIA game. Will the &lt;a href="http://gears.google.com/"&gt;gears&lt;/a&gt; finally become a &lt;span class="a"&gt;Porsche? Let's guess...&lt;br /&gt;&lt;/span&gt;</description><link>http://rollingcode.org/blog/2008/04/new-player-to-desktop-ria-playground.html</link><author>FreeWizard</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-3011105447026630389</guid><pubDate>Sat, 02 Feb 2008 10:56:00 +0000</pubDate><atom:updated>2008-02-02T19:52:42.584+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>MySpace</category><category domain='http://www.blogger.com/atom/ns#'>OAuth</category><category domain='http://www.blogger.com/atom/ns#'>facebook</category><category domain='http://www.blogger.com/atom/ns#'>f8</category><title>Developer Platform Comparison: MySpace vs. Facebook</title><description>&lt;p&gt;&lt;a href="http://myspace.cn/"&gt;MySpace China&lt;/a&gt; has opened its &lt;a href="http://developer.myspace.cn/community/"&gt;developer platform&lt;/a&gt; to some beta testers. Similar to &lt;a href="http://developers.facebook.com/"&gt;Facebook Platform&lt;/a&gt;, the dev zone has a list of APIs, some language wrappers(only ActionScript for now) for the API and a test console. Detailed comparison follows:&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;Facebook&lt;/th&gt;&lt;th&gt;MySpace&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;RESTful API&lt;/th&gt;&lt;td&gt;yes&lt;/td&gt;&lt;td&gt;yes (see below)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Query&lt;/th&gt;&lt;td&gt;FQL&lt;/td&gt;&lt;td&gt;n/a&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Markup&lt;/th&gt;&lt;td&gt;FBML + FBJS&lt;/td&gt;&lt;td&gt;n/a&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Test Console&lt;/th&gt;&lt;td&gt;yes&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Authentication&lt;/th&gt;&lt;td&gt;own protocol&lt;/td&gt;&lt;td&gt;&lt;a href="http://oauth.net/"&gt;OAuth&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;SDK&lt;/th&gt;&lt;td&gt;&lt;a href="http://wiki.developers.facebook.com/"&gt;15+&lt;/a&gt;&lt;/td&gt;&lt;td&gt;1 for now&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;Generally, I appericiate their picking up of OAuth. But the number of objects and functions accessible via API is too much fewer than Facebook's. OpenSocial API to push activities is still on its way either.&lt;/p&gt;&lt;p&gt;Well, for MySpace, opening is a big step, but too early to give them a bravo.&lt;/p&gt;</description><link>http://rollingcode.org/blog/2008/02/developer-platform-comparison-myspace.html</link><author>FreeWizard</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-2079254462773198076</guid><pubDate>Wed, 30 Jan 2008 09:08:00 +0000</pubDate><atom:updated>2008-01-30T17:31:52.790+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>OAuth</category><title>OAuth Core 1.0 Final in Chinese</title><description>&lt;blockquote&gt;The OAuth protocol enables websites or applications (Consumers) to access Protected Resources from a web service (Service Provider) via an API, without requiring Users to disclose their Service Provider credentials to the Consumers. More generally, OAuth creates a freely-implementable and generic methodology for API authentication.&lt;/blockquote&gt;&lt;br /&gt;&lt;blockquote&gt;OAuth协议致力于使网站和应用程序（统称为消费方）能够在无须用户透露其认证证书（译注：如登录密码）的情况下，通过API访问某个web服务（统称为服务提供方）的受保护资源。更一般地说，OAuth为API认证提供了一个可自由实现且通用的方法。&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://oauth.net/core/1.0/"&gt;Official Document in English&lt;/a&gt; / &lt;a href="http://rollingcode.org/blog/f/oauth-core-1.0-final-cn.html"&gt;My Translation in Chinese&lt;/a&gt; （中文版附录暂未翻译）&lt;/p&gt;</description><link>http://rollingcode.org/blog/2008/01/oauth-core-10-final-in-chinese.html</link><author>FreeWizard</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-5540628425417840899</guid><pubDate>Mon, 14 Jan 2008 07:31:00 +0000</pubDate><atom:updated>2008-01-20T22:48:09.717+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>zeuux</category><category domain='http://www.blogger.com/atom/ns#'>OAuth</category><category domain='http://www.blogger.com/atom/ns#'>API</category><category domain='http://www.blogger.com/atom/ns#'>JiWai</category><category domain='http://www.blogger.com/atom/ns#'>OpenID</category><title>Presentation about JiWai.de</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://rollingcode.org/blog/uploaded_images/jwarch-713410.png"&gt;&lt;img style="cursor: pointer;" src="http://rollingcode.org/blog/uploaded_images/jwarch-713401.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;A presentation about &lt;a href="http://jiwai.de/"&gt;JiWai.de&lt;/a&gt; was made by &lt;a href="http://zixia.net/" target="_blank" title="zixia"&gt;zixia&lt;/a&gt; and me last weekend at &lt;a href="http://www.zeuux.org/" target="_blank" title="zeuux"&gt;ZEUUX&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;What I talked about was:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;JiWai.de gadgets, API and user-contributed apps;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How we use OSS to build and scale JiWai.de site;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;The open standards we focus on. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Download the slides(PDF, in Chinese) &lt;a href="http://www.zeuux.org/pub/zeuux-monthly-2-200801-jiwai-arch.pdf" target="_blank" title="PDF"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><link>http://rollingcode.org/blog/2008/01/presentation-about-jiwaide.html</link><author>FreeWizard</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-2725524345623527780</guid><pubDate>Mon, 24 Dec 2007 07:27:00 +0000</pubDate><atom:updated>2008-01-15T19:46:21.690+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>inotify</category><category domain='http://www.blogger.com/atom/ns#'>php</category><category domain='http://www.blogger.com/atom/ns#'>spread</category><title>Get Spread Toolkit and inotify-tools PHPized</title><description>Just very basic wrapping :)&lt;br /&gt;Get them from Google Code SVN.&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family: courier new;"&gt;svn checkout http://php-spread.googlecode.com/svn/trunk/ php-spread-read-only&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;svn checkout http://php-inotifytools.googlecode.com/svn/trunk/ php-inotifytools-read-only&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;</description><link>http://rollingcode.org/blog/2008/01/get-spread-toolkit-and-inotify-tools.html</link><author>FreeWizard</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-1943992238529582400</guid><pubDate>Mon, 12 Nov 2007 12:51:00 +0000</pubDate><atom:updated>2008-01-16T11:46:59.150+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>javascript</category><category domain='http://www.blogger.com/atom/ns#'>AIR</category><title>File upload with URLRequest in AIR</title><description>&lt;p&gt;A function to help upload without FileReference.upload() in AIR HTML/JS application.&lt;/p&gt;&lt;p&gt;Function Parameters:&lt;/p&gt;&lt;blockquote&gt;void PrepareMultipartRequest(&lt;br /&gt;URLRequest request, ByteArray file_bytes,&lt;br /&gt;string field_name = "file", string native_path = "C:\FILE",&lt;br /&gt;object data_before = {}, object data_after = {}&lt;br /&gt;);&lt;/blockquote&gt;&lt;p&gt;Sample JS Code:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt; var request = new air.URLRequest('http://example.com/upload.php');&lt;br /&gt;var loader = new air.URLLoader();&lt;br /&gt;var file = new air.File('C:\\TEST.TXT'); //use file.browseForOpen() on ur wish&lt;br /&gt;var stream = new air.FileStream();&lt;br /&gt;var buf = new air.ByteArray();&lt;br /&gt;var extra = {&lt;br /&gt;"id": "abcd"&lt;br /&gt;};&lt;br /&gt;stream.open(file, air.FileMode.READ);&lt;br /&gt;stream.readBytes(buf);&lt;br /&gt;MultipartRequest(request, buf, 'myfile', file.nativePath, extra);&lt;br /&gt;loader.load(request);&lt;/blockquote&gt;&lt;p&gt;Sample PHP Code:&lt;/p&gt;&lt;blockquote&gt;  $id = $_POST['id'];&lt;br /&gt;move_uploaded_file($_FILES['myfile']['tmp_name'], '/opt/blahblah');&lt;br /&gt;&lt;/blockquote&gt;&lt;p&gt;Download: &lt;a href="http://rollingcode.org/blog/f/multipart.js"&gt;multipart.js&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Original code inspired from &lt;a href="http://www.actionscript.org/forums/showpost.php3?p=636159&amp;amp;postcount=4"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><link>http://rollingcode.org/blog/2007/11/file-upload-with-urlrequest-in-air.html</link><author>FreeWizard</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-767487329244998345</guid><pubDate>Sun, 11 Nov 2007 07:32:00 +0000</pubDate><atom:updated>2008-01-16T11:29:28.764+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>javascript</category><category domain='http://www.blogger.com/atom/ns#'>AIR</category><title>"AIR crash"</title><description>&lt;p&gt;The AIR(Adobe Integrated Runtime) 1.0b2 for win32 crashed on very simple js/html code.&lt;/p&gt;&lt;p&gt;Setting style.display of an iframe(or its container) element to none is dangerous, the workaround cound be setting style.visibility to hidden.&lt;/p&gt;&lt;p&gt;Get the crashing code here: &lt;a href="http://rollingcode.org/blog/f/AIRb2CrashSample.air"&gt;AIRb2CrashSample.air&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;It's even my first AIR program. :|&lt;/p&gt;&lt;p&gt; &lt;/p&gt;</description><link>http://rollingcode.org/blog/2007/11/air-crash.html</link><author>FreeWizard</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-7932061804612058391</guid><pubDate>Wed, 24 Oct 2007 01:19:00 +0000</pubDate><atom:updated>2008-01-15T19:35:53.365+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>sina</category><category domain='http://www.blogger.com/atom/ns#'>memcached</category><title>Memcached hack from Sina guys</title><description>&lt;p&gt;a BDB-backended memcached hack&lt;/p&gt;&lt;p&gt;&lt;a href="http://code.google.com/p/memcachedb/" target="_blank" title="memcachedb"&gt;http://code.google.com/p/memcachedb/&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;similar to Tugela.&lt;/p&gt;&lt;p&gt;Supported memcache command&lt;/p&gt;&lt;p&gt;    * get, set, add, replace&lt;br /&gt;    * incr, decr&lt;br /&gt;    * delete&lt;br /&gt;    * stats&lt;br /&gt;    * flush_all &lt;br /&gt;&lt;br /&gt;Private commands&lt;br /&gt;&lt;br /&gt;    * db_checkpoint&lt;br /&gt;    * db_archive  &lt;/p&gt;</description><link>http://rollingcode.org/blog/2007/10/memcached-hack-from-sina-guys.html</link><author>FreeWizard</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-374173838633421897</guid><pubDate>Thu, 20 Sep 2007 08:48:00 +0000</pubDate><atom:updated>2008-01-15T19:31:58.919+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>memcached</category><title>Cool features upcoming in memcached</title><description>&lt;p&gt;Memcached is cool, KISS and powerful. After no-new-release-silence of months, I'm always expecting some new feature from it. Here are things I'm looking forward:&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;64 bit counter: patch available from Evan Miller&lt;/li&gt;&lt;li&gt;APPEND: patch available from Filipe Laborde&lt;/li&gt;&lt;li&gt;Binary wire protocol: patch and python/java client  code available from Dustin Sallings&lt;/li&gt;&lt;li&gt;Atomic operation: patch available from Chris Goffinet&lt;/li&gt;&lt;li&gt;Mass deletion: have not seen the patch yet, but I believe it will not take too long...&lt;/li&gt;&lt;li&gt;Replication? Sounds cool, but a bit complex and not so useful IMHO.&lt;/li&gt;&lt;li&gt;Storage backend? Useful in certain cases, but not so necessary since we have Tugela and &lt;a href="http://auriga.wearlab.de/~alb/nmdb/"&gt;NMDB&lt;/a&gt;. Ofcoz the world will be more perfect if author of NMDB make a memcached-compatible interface.&lt;/li&gt;&lt;li&gt;Iterating keys/items? Useful or not? Certainly leads to abusing.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;For all memcached lovers, we should give our thanks to Facebook, who contributes patches and hosts hackathon. :)&lt;/p&gt;</description><link>http://rollingcode.org/blog/2007/09/cool-features-upcoming-in-memcached.html</link><author>FreeWizard</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8645493911655404458.post-6282159258373380771</guid><pubDate>Thu, 23 Aug 2007 17:14:00 +0000</pubDate><atom:updated>2008-01-20T22:49:12.434+08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>facebook</category><category domain='http://www.blogger.com/atom/ns#'>f8</category><category domain='http://www.blogger.com/atom/ns#'>php</category><category domain='http://www.blogger.com/atom/ns#'>douban</category><title>Unofficial Facebook application for Douban</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://rollingcode.org/blog/uploaded_images/image6-772125.png"&gt;&lt;img style="cursor: pointer;" src="http://rollingcode.org/blog/uploaded_images/image6-772123.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;A Chinese F8 app was put online by me lately which would help ppl on &lt;a href="http://www.facebook.com/"&gt;Facebook&lt;/a&gt; to show off their &lt;a href="http://douban.com/"&gt;Douban&lt;/a&gt; collections.&lt;/p&gt;&lt;p&gt;200+ Facebook user enjoyed this small creation.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.facebook.com/apps/application.php?api_key=105fdf5d436e99641adfba4c8614bccb"&gt;Wanna a try?&lt;/a&gt;(Facebook account required)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;For ppl interested with the TODO list in the maybe-near-maybe-far future:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strike&gt;FBML 1.1&lt;/strike&gt;&lt;/li&gt;&lt;li&gt;Display more items in collection &lt;/li&gt;&lt;li&gt;Profile action&lt;/li&gt;&lt;li&gt;Story line update&lt;/li&gt;&lt;li&gt;&lt;strike&gt;Invite friends&lt;/strike&gt;&lt;/li&gt;&lt;li&gt;Collections in common with friends&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;For bugs and advices, visit &lt;a href="http://www.facebook.com/board.php?uid=3191895434"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><link>http://rollingcode.org/blog/2007/08/unofficial-facebook-application-for.html</link><author>FreeWizard</author></item></channel></rss>