<!-- 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>Sat, 07 Nov 2009 10:36:26 -0500</pubDate> 
    <ttl>60</ttl>
  
    <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>
      
    <item>
      <title><![CDATA[给 ExtJS 的输入控件增加提示功能]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=759]]></link> 
      <category><![CDATA[编程相关]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Wed, 09 Sep 2009 01:49:57 -0400</pubDate> 
      <description><![CDATA[在页面的 js 代码最上层，追加以下代码<br />Ext.override(Ext.form.Field, {<br />    afterRender: function() {<br />        this.initEvents();<br />        this.initValue();<br />        //取得控件的标签<br />        var findLabel = function(field) {<br />            var wrapDiv = null;<br />            var label = null<br />            wrapDiv = field.getEl().up(&#39;div.x-form-element&#39;);<br />            if(wrapDiv) {<br />                label = wrapDiv.child(&#39;label&#39;);        <br />]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=759]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[JavaScript: 判断字符串是否数字]]></title> 
      <link><![CDATA[http://www6.webng.com/seaboat/article.asp?id=758]]></link> 
      <category><![CDATA[编程相关]]></category> 
      <author><![CDATA[seaboat <null@null.com>]]></author> 
      <pubDate>Thu, 03 Sep 2009 02:00:40 -0400</pubDate> 
      <description><![CDATA[一个小小的数字判断功能，也有很多学问。<br />请看解答： <a href="http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric" title="http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric" target="_blank">http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric</a><br /><br />总结一下文章中提到的方法：<br /><br /><b>1. 内建函数 isNaN</b><br />这个不用多说。<br /><br /><b>2. 正则表达式</b><div class="code">function isNumeric(x) {<br />&nbsp;return /^-?\d*\.?\d+$/.test(x);<br />}</div><br /><b>3. 利用类型变换</b><div class="code">function isNumeric(x) {<br />&nbsp;return parseFloat(x) == x;<br />}</div><br /><b>4. 利用“潜规则”</b><div class="code">function isNumeric(x) {<br />&nbsp;return (x - 0) == x &amp;&amp; x.length &gt; 0;</div>]]></description>
      <wfw:commentRss><![CDATA[http://www6.webng.com/seaboat/feed.asp?q=comment&id=758]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
