<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/feedsky1.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/alexcheng1982" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/alexcheng1982" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 30 Aug 2011 02:07:03 GMT</lastBuildDate><title>站在别人脚趾上的侏儒</title><description>关注Web 2.0相关的话题</description><image><url>http://www.feedsky.com/feed/alexcheng1982/sc/gif</url><title>站在别人脚趾上的侏儒</title><link>http://www.cheng-fu.com</link></image><link>http://www.cheng-fu.com</link><language>zh-hans</language><item><title>已发表的文章列表</title><link>http://www.cheng-fu.com/zh-cn/node/144</link><description>&lt;p&gt;刚在微博上发表了一条感慨的消息，就有人问具体的发表的文章的列表，完整的列表见 &lt;a href=&quot;http://www.cheng-fu.com/node/14&quot;&gt;http://www.cheng-fu.com/node/14&lt;/a&gt;。 其中具体的文章链接基本上是在developerWorks上的。&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
InfoQ上的文章在InfoQ网站上搜索我的名字：&lt;a href=&quot;http://www.infoq.com/cn/author/%E6%88%90%E5%AF%8C&quot;&gt;http://www.infoq.com/cn/author/%E6%88%90%E5%AF%8C&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085359/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/144&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><pubDate>Tue, 30 Aug 2011 10:07:03 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/144#comments</comments><guid isPermaLink="false">144 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/144</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085359/5763274</fs:itemid></item><item><title>个人博客恢复更新</title><link>http://www.cheng-fu.com/zh-cn/node/143</link><description>&lt;p class=&quot;rteleft&quot;&gt;从去年开始，博客就有很长的一段时间没有更新，原因主要是大部分的业余时间都花在了写作上，随着写作任务的减轻，会开始恢复对博客的内容更新，希望提供更多高质量的内容吧。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085360/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/143&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/10">生活</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><pubDate>Fri, 08 Apr 2011 18:33:39 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/143#comments</comments><guid isPermaLink="false">143 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/143</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085360/5763274</fs:itemid></item><item><title>Fibonacci（斐波纳契）数列的计算</title><link>http://www.cheng-fu.com/zh-cn/node/142</link><description>&lt;p class=&quot;rteleft&quot;&gt;斐波纳契数列的计算是一个很老的话题了，出现在各种算法书中。今天写这篇博文的出发点是在网上看了MIT 6.00的公开课，正好把一些思路理清一些，毕竟有些东西，自己实践过后才有深刻的认识。&lt;/p&gt;
&lt;h2 class=&quot;rteleft&quot;&gt;普通的递归计算&lt;/h2&gt;
&lt;p class=&quot;rteleft&quot;&gt;这是最简单的算法了，根据斐波纳契数列的定义就可以得出来：fib(n) = fib(n - 1) + fib(n - 2)，具体的代码如下。（需要说明的是代码中都省略了对参数的检查，在实际的代码中是需要的）。&lt;/p&gt;
&lt;p class=&quot;rteleft&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre title=&quot;code&quot; class=&quot;brush: jscript;&quot;&gt;
function fib(n) {
    return (n === 0 || n === 1) ? 1 : fib(n - 1) + fib(n - 2);
}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2 class=&quot;rteleft&quot;&gt;使用查找表的递归计算&lt;/h2&gt;
&lt;p class=&quot;rteleft&quot;&gt;普通的递归计算会执行很多重复计算，通过查找表就可以获取到之前已经计算过的fib(k)的值，从而避免重复计算。代码如下：&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cheng-fu.com/zh-cn/node/142&quot; target=&quot;_blank&quot;&gt;阅读全文&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085361/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/142&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/93">算法</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><pubDate>Fri, 08 Apr 2011 18:20:34 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/142#comments</comments><guid isPermaLink="false">142 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/142</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085361/5763274</fs:itemid></item><item><title>发布自己的一个小的开源项目：JsWorker</title><link>http://www.cheng-fu.com/zh-cn/node/141</link><description>&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://code.google.com/p/jsworker/&quot;&gt;JsWorker&lt;/a&gt;是我搁置了有一段时间的开源项目，一直没有正式的发布。 它的目的是封装目前浏览器中三种常见的JavaScript工作线程实现方式：Web Worker、Google Gears和setTimeout。这个库提供了一个统一的API接口，用来屏蔽这三种实现方式之间的差异，可以在不同的浏览器上实现JavaScript工作线程的效果。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085362/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/141&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/77">开源</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><pubDate>Mon, 10 Jan 2011 19:36:56 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/141#comments</comments><guid isPermaLink="false">141 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/141</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085362/5763274</fs:itemid></item><item><title>分享的杯具</title><link>http://www.cheng-fu.com/zh-cn/node/140</link><description>&lt;p&gt;搞IT，做技术的都明白知识分享的重要性。在互联网上有着海量的信息，可以供你方便的学习和使用。你也可以通过各种方式把你所学到的东西分享出来，贡献给大家。我自己之前也是一个非常积极的分享贡献者。最开始的时候是自己的这个网站，主要写一些博客，发布自己写的一些小应用之类的，对此乐此不疲。慢慢的，随着工作的压力变大，自己也变得懒惰，博客的更新也就越来越少了。后来有了微博这个东西之后，就隔三差五的在Twitter或是新浪微博冒点泡，但是久了之后也发现自己失去了更新的动力。&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
惟一坚持下来的就是写作了，自己算是不间断的在developerWorks、InfoQ和Slideshare上面发表一些文章。可能是写作这些文章占据了我太多的业余时间吧。所以关注我的人就看看我写的文章吧。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085363/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/140&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/10">生活</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><pubDate>Mon, 10 Jan 2011 19:32:13 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/140#comments</comments><guid isPermaLink="false">140 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/140</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085363/5763274</fs:itemid></item><item><title>地图说微博 - 新浪微博应用</title><link>http://www.cheng-fu.com/zh-cn/node/139</link><description>&lt;p&gt;&amp;nbsp;之前开发了一个基于新浪微博的应用&amp;ldquo;&lt;a target=&quot;_blank&quot; href=&quot;http://www.cheng-fu.com/sina/map/index.php&quot;&gt;地图说微博&lt;/a&gt;&amp;rdquo;，后来又做了一些改进，现在来推广一下。欢迎有新浪微博账号的朋友测试使用，觉得不错的话，可以帮忙推广一下。&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
主要功能：&lt;br /&gt;
1）发布地图到微博上。很多时候可能需要在微博上分享一个位置，比如去过的不错的饭馆之类的，通过&amp;ldquo;发布地图到微博&amp;rdquo;这个功能就可以完成。有两种方式来选择地图：第一种是输入关键词搜索位置，第二种是直接浏览地图并选择。&lt;br /&gt;
2）地图消息墙。这个有点类似游戏的性质。在地图上随便选择一个地方，然后留下你想说的话。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cheng-fu.com/zh-cn/node/139&quot; target=&quot;_blank&quot;&gt;阅读全文&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085364/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/139&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/91">地图</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/92">微博</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><pubDate>Tue, 02 Nov 2010 14:18:19 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/139#comments</comments><guid isPermaLink="false">139 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/139</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085364/5763274</fs:itemid></item><item><title>Drupal迁移之后出现404错误的问题</title><link>http://www.cheng-fu.com/zh-cn/node/138</link><description>&lt;p&gt;前段时间把网站迁移到了另外的一个服务器上面，发现drupal除了首页面之外，访问其它页面都出现404的错误。出现这个错误的原因很简单，是因为缺少了根目录下面的.htaccess文件。当用FTP工具进行备份的时候，这个.htaccess并没有被列出来，也就没有被备份下来。重新上传的时候就漏掉了这个文件。解决的办法也比较简单，只需要从drupal的安装包中找到这个文件，重新上传到服务器即可。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085365/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/138&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/44">Drupal</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><pubDate>Tue, 26 Oct 2010 14:05:16 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/138#comments</comments><guid isPermaLink="false">138 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/138</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085365/5763274</fs:itemid></item><item><title>《主流网站前端代码分析》系列之序</title><link>http://www.cheng-fu.com/zh-cn/node/137</link><description>&lt;p&gt;&amp;nbsp;博客很久没有更新了，主要是由于有些时候发现确实没什么值得在博客上面来写的，很多就直接写了一条&lt;a target=&quot;_blank&quot; href=&quot;http://t.sina.com.cn/alexcheng1982&quot;&gt;微博&lt;/a&gt;。另外自己也花了比较多的时间在文章的写作上面。不过现在打算花点时间用边学边写的态度来认真研究一下主流网站的前端代码，并进行一下详细的分析，找出其中值得学习的地方，也从我个人的观点出发找出一些不足。&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;strong&gt;分析的目标网站&lt;/strong&gt;：国内外比较知名的网站&lt;br /&gt;
&lt;strong&gt;分析的内容&lt;/strong&gt;：前端代码，包括HTML，JavaScript和CSS，主要以JavaScript为主&lt;br /&gt;
&lt;strong&gt;分析的方式&lt;/strong&gt;：查看网站网页的源代码&lt;br /&gt;
&lt;strong&gt;分析的目标&lt;/strong&gt;：找出网站上代码中值得学习的地方并记录下来。&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cheng-fu.com/zh-cn/node/137&quot; target=&quot;_blank&quot;&gt;阅读全文&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085366/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/137&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/90">主流网站前端代码分析</category><pubDate>Sat, 25 Sep 2010 18:29:06 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/137#comments</comments><guid isPermaLink="false">137 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/137</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085366/5763274</fs:itemid></item><item><title>使用Dojo开发Ajax应用</title><link>http://www.cheng-fu.com/zh-cn/node/135</link><description>&lt;p class=&quot;rteleft&quot;&gt;&amp;nbsp;前几天给同事讲的一个PPT。&lt;/p&gt;
&lt;p class=&quot;rteleft&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cheng-fu.com/zh-cn/node/135&quot; target=&quot;_blank&quot;&gt;阅读全文&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085367/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/135&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/41">Dojo</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/89">ajax</category><pubDate>Fri, 20 Aug 2010 18:15:55 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/135#comments</comments><guid isPermaLink="false">135 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/135</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085367/5763274</fs:itemid></item><item><title>Java类加载器</title><link>http://www.cheng-fu.com/zh-cn/node/134</link><description>&lt;p class=&quot;rteleft&quot;&gt;&amp;nbsp;把之前写的《深入探讨Java类加载器（class loader）》那篇文章总结了一下，写了下面的PPT，可以作为快速的参考。&lt;/p&gt;
&lt;p class=&quot;rteleft&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cheng-fu.com/zh-cn/node/134&quot; target=&quot;_blank&quot;&gt;阅读全文&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/585085368/alexcheng1982/feedsky/s.gif?r=http://www.cheng-fu.com/zh-cn/node/134&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/52">java</category><category domain="http://www.cheng-fu.com/zh-cn/taxonomy/term/1">技术</category><pubDate>Thu, 19 Aug 2010 13:23:06 +0800</pubDate><author>admin</author><comments>http://www.cheng-fu.com/zh-cn/node/134#comments</comments><guid isPermaLink="false">134 at http://www.cheng-fu.com</guid><dc:creator>admin</dc:creator><fs:srclink>http://www.cheng-fu.com/zh-cn/node/134</fs:srclink><fs:srcfeed>http://www.cheng-fu.com/rss.xml</fs:srcfeed><fs:itemid>feedsky/alexcheng1982/~7654136/585085368/5763274</fs:itemid></item></channel></rss>
