<!-- Free Hosting WebNG.com --> 
<center>
<script type="text/javascript" charset="utf-8">

  var redvase_ad = { version: 1.5 };

  redvase_ad.publisher = 'webng';

  redvase_ad.kind      = 'leaderboard';

  redvase_ad.content   = 'creative'

  redvase_ad.refurl    = encodeURI('**URL_HERE**');

  </script>

<script src="http://redvase.bravenet.com/javascripts/redvase.js" type="text/javascript" charset="utf-8"></script>

</center>
<!-- Free Hosting WebNG.com --> 
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[○白子○ 的Blog]]></title> 
    <link>http://www6.webng.com/seaboat/</link> 
    <description><![CDATA[关注互联网，拥抱开源，记录工作和生活的点点滴滴]]></description> 
    <language>zh-cn</language> 
    <copyright><![CDATA[Copyright 2009, ○白子○ 的Blog]]></copyright> 
    <webMaster><![CDATA[ouzhiwei@gmail.com (Jlake Ou)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Sun, 22 Nov 2009 23:30:20 -0500</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[ExtJS 2.x 的多行工具条实现]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=769]]></link> 
      <category><![CDATA[编程相关]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Mon, 16 Nov 2009 21:41:48 -0500</pubDate> 
      <description><![CDATA[通常的写法<div class="code">tbar: [{<br />&nbsp;... ...<br />}, {<br />&nbsp;... ...<br />}]</div>这样实现的工具条只有一行。<br /><br />有时候工具条按钮比较多，一行放不下，需要加行。<br />简单的做法是：<div class="code">tbar: new Ext.Panel({<br />&nbsp;border: false,<br />&nbsp;items:[{<br />&nbsp;xtype: &#39;toolbar&#39;,<br />&nbsp;items: [<br />&nbsp;... ...<br />&nbsp;]<br />&nbsp;}, {<br />&nbsp;xtype: &#39;toolbar&#39;,<br />&nbsp;items: [<br />&nbsp;... ...<br />&nbsp;]<br />&nbsp;}, {<br />&nbsp;xtype: &#39;toolbar&#39;,<br />&nbsp;items: [<br />&nbsp;... ...<br />&nbsp;]<br />&nbsp;}]<br />})</div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=769]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[让 Zend_Db 支持 MySQL 的 SQL_CALC_FOUND_ROWS]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=768]]></link> 
      <category><![CDATA[DB&SQL]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Tue, 10 Nov 2009 05:23:23 -0500</pubDate> 
      <description><![CDATA[修改 Zend/Db/Select.php， 增加以下代码<br /><div class="code">const FOUND_ROWS     = &#39;foundrows&#39;; <br />const SQL_FOUND_ROWS = &#39;SQL_CALC_FOUND_ROWS&#39;; <br /><br />protected static $_partsInit = array(<br />&nbsp;self::FOUND_ROWS   =&gt; false,  <br />&nbsp;... ...<br />);<br /><br />/**<br />&nbsp;* Makes the query SELECT SQL_CALC_FOUND_ROWS.  <br />&nbsp;*<br />&nbsp;* @param bool $flag Whether or not add SQL_CALC_FOUND_ROWS to SELECT.<br />&nbsp;* @return Zend_Db_Select This Zend_Db_Select object.</div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=768]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[三个 JavaScript 工具 + 批处理]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=767]]></link> 
      <category><![CDATA[Windows]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Thu, 05 Nov 2009 20:36:59 -0500</pubDate> 
      <description><![CDATA[收集了三个针对 JavaScript 的工具:<br /><br />1. <a href="http://www.javascriptlint.com/index.htm" title="http://www.javascriptlint.com/index.htm" target="_blank">JavaScript Lint</a><br />用于 js 查错。<br /><br />2. <a href="http://developer.yahoo.com/yui/compressor/" title="http://developer.yahoo.com/yui/compressor/" target="_blank">YUI Compressor</a><br />用于压缩 js 文件。<br /><br />3. <a href="http://code.google.com/intl/ja/closure/compiler/" title="http://code.google.com/intl/ja/closure/compiler/" target="_blank">Closure Compiler</a><br />用于压缩和优化 js 文件。<br /><br />我把以上三个工具都放在 C:\jsl 下面，并把该目录加入系统变量 PATH。<br />随后在 C:\jsl 下新作三个 bat 文件，分别如下：<br /><br /><b>jsl.bat</b><div class="code">@echo off<br />c:\jsl\jsl.exe </div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=767]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[GAE 开发最常用的两个命令]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=766]]></link> 
      <category><![CDATA[编程相关]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Sun, 01 Nov 2009 20:18:05 -0500</pubDate> 
      <description><![CDATA[GAE开发离不开两个很简单的命令，我是想起来才用一下，每次都上搜索引擎查询用法，费时费力，因此这儿做个笔记。<br /><br /><b>命令一</b><br /><span style="color:blue">dev_appserver.py appname</span><br /><br /><b>命令二</b><br /><span style="color:blue">appcfg.py update appname</span><br /><br />详细用法请参考 Google 的文档：<br /><a href="http://code.google.com/intl/ja/appengine/docs/python/tools/devserver.html" title="http://code.google.com/intl/ja/appengine/docs/python/tools/devserver.html" target="_blank">dev_appserver.py</a><br /><a href="http://code.google.com/intl/ja/appengine/docs/python/tools/uploadinganapp.html" title="http://code.google.com/intl/ja/appengine/docs/python/tools/uploadinganapp.html" target="_blank">appcfg.py</a>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=766]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[采用 Zend Framework 的开源产品]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=765]]></link> 
      <category><![CDATA[Web]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Thu, 15 Oct 2009 00:48:38 -0400</pubDate> 
      <description><![CDATA[<a href="http://www.magentocommerce.com/" title="http://www.magentocommerce.com/" target="_blank">Magento</a><br />开网店用，已经很有名气了，代码大而全，授权方式采用OSL 3.0。<br /><br /><a href="http://digitaluscms.com/" title="http://digitaluscms.com/" target="_blank">Digitalus CMS</a><br />内容管理系统，后台管理做得还不错，其代码可用于学习ZF。<br /><br /><a href="http://www.dodoapp.com/" title="http://www.dodoapp.com/" target="_blank">Dodo</a><br />用于搭建任务管理网站。 ZF的版本较新(目前是1.9.1)，非常适合于学习ZF。]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=765]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Windows 下构建 PHP 开发环境： WampServer + Xdebug]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=764]]></link> 
      <category><![CDATA[安装设定]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Wed, 30 Sep 2009 05:30:49 -0400</pubDate> 
      <description><![CDATA[1. 下载 WampServer <br />网址：　<a href="http://www.wampserver.com/en/download.php" title="http://www.wampserver.com/en/download.php" target="_blank">http://www.wampserver.com/en/download.php</a><br /><br />2. 安装 WampServer<br />Windows 的标准安装步骤，连续点“下一步”即可。<br /><br />3. 下载 Xdebug<br />网址：　<a href="http://xdebug.org/download.php" title="http://xdebug.org/download.php" target="_blank">http://xdebug.org/download.php</a><br /><br />页面上有好几个版本，刚开始一定会被迷惑，不知道该用哪个版本。<br />经过试验，我的环境（Windows XP）最终能用的是 5.3 VC6 (32 bit）。<br />（Apache 以外的服务器需用　nts 版本）<br /><br />下载之后把文件移动（或复制）到 WampServer 的 php 的 ext 目录。<br />]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=764]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Smarty 下最简单的调试方法]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=763]]></link> 
      <category><![CDATA[编程相关]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Mon, 28 Sep 2009 21:44:44 -0400</pubDate> 
      <description><![CDATA[很简单的一句话，却常常忘记，因此记录一下：<div class="code">{$var|@debug_print_var}</div>稍微复杂一点的用法：<div class="code">{$var|@debug_print_var:2:100}</div>意思是缩进长度为2个空格，每行最多字数为100。<br /><br />其他调试方法可以参考<a href="http://memo.xight.org/2006-11-30-7" title="http://memo.xight.org/2006-11-30-7" target="_blank">这个</a>（日文）]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=763]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[在虚拟主机上创建 Symbol Link]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=762]]></link> 
      <category><![CDATA[Web]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Tue, 15 Sep 2009 01:31:29 -0400</pubDate> 
      <description><![CDATA[便宜的虚拟主机不提供 Shell，因此需要用命令实现的功能不大容易实现。<br />做网站经常要用 ln 命令创建链接，而要在一般的虚拟主机上就不得不想其他办法了。<br />不用命令的情况下，用程序倒也能解决一些问题，比如这个建立链接的目标，可用以下 PHP 程序实现:<div class="code">&lt;?php<br />$appLib = realpath(dirname(__FILE__) . &#39;/../library&#39;);<br />$zfLib = realpath(dirname(__FILE__) . &#39;/../../ZF&#39;);<br />symlink(&quot;$appLib/Zend&quot;, &quot;$zfLib/Zend&quot;);</div>经测试，链接正常建立，然而不能正常工作，只能说虚拟主机的自我保护功能做得还不错。]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=762]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Zend Framework 下实现简单的 proxy 功能]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=761]]></link> 
      <category><![CDATA[编程相关]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Sun, 13 Sep 2009 21:17:45 -0400</pubDate> 
      <description><![CDATA[用 Zend_Http_Client 可实现简单的 Proxy 功能，代码如下：<div class="code">public function proxyAction()<br />{<br />&nbsp;$params = $this-&gt;_getAllParams();<br />&nbsp;if(!isset($params[&#39;url&#39;])) {<br />&nbsp;echo &#39;URL未指定。&#39;;<br />&nbsp;} else {<br />&nbsp;$http = new Zend_Http_Client($params[&#39;url&#39;]);<br />&nbsp;$response = $http-&gt;request();<br />&nbsp;if ($response-&gt;getStatus() == 200) {<br />&nbsp;header(&#39;Content-Type: text/html; charset=utf-8&#39;);</div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=761]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[用于分割字符串的两个 PHP 函数]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=760]]></link> 
      <category><![CDATA[编程相关]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Wed, 09 Sep 2009 22:16:25 -0400</pubDate> 
      <description><![CDATA[新作了两个函数，结果没用上，放在在这儿以备用。<div class="code">/**<br />&nbsp;* 按词分割字符串<br />&nbsp;* @param $str 元字符串<br />&nbsp;* @param $maxLength 单词最大长度<br />&nbsp;* @return array<br />&nbsp;*/<br />function splitInWords($str, $maxLength = 16) {<br />&nbsp;if(empty($str)) return array();<br />&nbsp;if($maxLength &lt;= 0) $maxLength = 1;<br />&nbsp;$rawWords = explode(&#39; &#39;, $str);<br />&nbsp;$words = array();<br />&nbsp;foreach($rawWords as $word) {<br />&nbsp;$len = mb_strlen($word);<br />&nbsp;if($len &gt; $maxLength) {</div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=760]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
