<?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>effective life plus &#187; Programming</title>
	<atom:link href="http://www.binzywu.com/category/life/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binzywu.com</link>
	<description>Binzy&#039;s blog</description>
	<lastBuildDate>Thu, 17 Jun 2010 00:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>深入PHP ：面向对象，模式与实践</title>
		<link>http://www.binzywu.com/2010/06/%e6%b7%b1%e5%85%a5php-%ef%bc%9a%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%ef%bc%8c%e6%a8%a1%e5%bc%8f%e4%b8%8e%e5%ae%9e%e8%b7%b5/</link>
		<comments>http://www.binzywu.com/2010/06/%e6%b7%b1%e5%85%a5php-%ef%bc%9a%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%ef%bc%8c%e6%a8%a1%e5%bc%8f%e4%b8%8e%e5%ae%9e%e8%b7%b5/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 00:00:00 +0000</pubDate>
		<dc:creator>binzywu</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[实践]]></category>
		<category><![CDATA[模式]]></category>
		<category><![CDATA[深入php]]></category>
		<category><![CDATA[翻译]]></category>
		<category><![CDATA[面向对象]]></category>

		<guid isPermaLink="false">http://www.binzywu.com/?p=121</guid>
		<description><![CDATA[书终于在上个月出版了，而我对翻译的记忆的细节已经完全模糊了，只依稀记得那是从2007年到2008年。刚开始的时候是第一版，然后第二版出来了，然后继续翻译，因为2版之间区别不大。大部分的时间都是haohappy在沟通和协调，而我仅是负责我的那部分。虽然我也已然记不大清我具体负责了哪几章，大体是模式那部分。书最终还是出版了，虽然有读者抱怨说原书第三版已然出版，但我还是想说，虽然是第二版，书还是好书。这本书是为数不多的把面向对象，模式及相关良好实践阐述的比较清晰和深人，并且按照PHP的方式来阐述的书。虽然书中的一部分内容，现在看来有些许过时，但理论是一致的。大部分应用软件开发的成本如果不计质量（当然也不计研发），那主要在于单位时间的人力成本及时间总量。而优秀的设计，模式和实践都有助于降低成本及提高或保持质量。 原书的第三版从目录来看，更新了一些有些过时的内容，比如版本管理从CVS改为SVN，针对PHP5.3的一些新特性添加了一些内容，并且加入了持续集成这样的重要敏捷元素章节。 不得不说，翻译比我想象的要累得多。不仅要考虑到原作的表达，也要符合中文的习惯。希望我的翻译不是太糟糕。 更多关于本书，可前往douban等网站，也希望大家多批评指正。]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="深入php" src="http://img2.douban.com/mpic/s4261122.jpg" alt="" width="108" height="136" />书终于在上个月出版了，而我对翻译的记忆的细节已经完全模糊了，只依稀记得那是从2007年到2008年。刚开始的时候是第一版，然后第二版出来了，然后继续翻译，因为2版之间区别不大。大部分的时间都是haohappy在沟通和协调，而我仅是负责我的那部分。虽然我也已然记不大清我具体负责了哪几章，大体是模式那部分。书最终还是出版了，虽然有读者抱怨说原书第三版已然出版，但我还是想说，虽然是第二版，书还是好书。这本书是为数不多的把面向对象，模式及相关良好实践阐述的比较清晰和深人，并且按照PHP的方式来阐述的书。虽然书中的一部分内容，现在看来有些许过时，但理论是一致的。大部分应用软件开发的成本如果不计质量（当然也不计研发），那主要在于单位时间的人力成本及时间总量。而优秀的设计，模式和实践都有助于降低成本及提高或保持质量。</p>
<p>原书的<a title="第三版" href="http://www.amazon.com/PHP-Objects-Patterns-Practice-Third/dp/143022925X/ref=sr_1_3?ie=UTF8&amp;s=books&amp;qid=1276732693&amp;sr=8-3" target="_blank">第三版</a>从目录来看，更新了一些有些过时的内容，比如版本管理从CVS改为SVN，针对PHP5.3的一些新特性添加了一些内容，并且加入了持续集成这样的重要敏捷元素章节。</p>
<p>不得不说，翻译比我想象的要累得多。不仅要考虑到原作的表达，也要符合中文的习惯。希望我的翻译不是太糟糕。<br />
更多关于本书，可前往<a title="douban" href="http://book.douban.com/subject/4746407/">douban</a>等网站，也希望大家多批评指正。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binzywu.com/2010/06/%e6%b7%b1%e5%85%a5php-%ef%bc%9a%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%ef%bc%8c%e6%a8%a1%e5%bc%8f%e4%b8%8e%e5%ae%9e%e8%b7%b5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Expand Short Url &amp; Google App Engine</title>
		<link>http://www.binzywu.com/2010/04/expand-short-url-google-app-engine/</link>
		<comments>http://www.binzywu.com/2010/04/expand-short-url-google-app-engine/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 12:46:48 +0000</pubDate>
		<dc:creator>binzywu</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[app engine]]></category>
		<category><![CDATA[expand]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[longurl]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.binzywu.com/?p=110</guid>
		<description><![CDATA[1. I decided to play around with Python several months ago, but the only thing I&#8217;ve done is once creating a script to retrieve an online manual with still few understanding of python. I think I should keep trying… 2. &#8230; <a href="http://www.binzywu.com/2010/04/expand-short-url-google-app-engine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>1.</strong> I decided to play around with Python several months ago, but the only thing I&#8217;ve done is once creating a script to retrieve an online manual with still few understanding of python. I think I should keep trying…</p>
<p><strong>2.</strong> I&#8217;m living in China within the famous GFW, and I&#8217;m using a twitter proxy site to tweet when I&#8217;m at home or using mobile phone.   So there is a problem to me, the <a href="http://bit.ly">http://bit.ly</a> is almost the most popular short url service on twitter which is also blocked by GFW…</p>
<p><strong>3.</strong> There are some short url expanding service sites, like <a href="http://longurl.org">http://longurl.org</a>, but they were blocked sometime…</p>
<p>I decided to create a simple function with google app engine after dinner. So that I can continue to learn some of python and also know a little of google&#8217;s cloud stuff.</p>
<p>Then here you go the app: <a href="http://yatlongurl.appspot.com/">http://yatlongurl.appspot.com/</a> and the source code <a title="longurl soucecode" href="http://cid-d9567c418d80ac34.skydrive.live.com/self.aspx/.Public/misc/longurl.zip" target="_blank">here</a>. Really quite fun to write code with python. But it looks the app will be intermittently unavailable. And apparently, I did not use any of real functionalities of google&#8217;s app engine. Possibly I will add support to automatically retweet or delicious the useful link while expanding it .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binzywu.com/2010/04/expand-short-url-google-app-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx + Zend Framework @ Windows</title>
		<link>http://www.binzywu.com/2009/10/nginx-zend-framework-windows/</link>
		<comments>http://www.binzywu.com/2009/10/nginx-zend-framework-windows/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 13:54:32 +0000</pubDate>
		<dc:creator>binzywu</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php-cgi]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[ZF]]></category>

		<guid isPermaLink="false">http://www.binzywu.com/?p=82</guid>
		<description><![CDATA[If you feel pretty boring with Apache, just like me, so having a try of nginx might be good idea. Although at most of my time, I&#8217;m using Windows, fortunately, nginx has native Windows build. So my steps might be &#8230; <a href="http://www.binzywu.com/2009/10/nginx-zend-framework-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you feel pretty boring with Apache, just like me, so having a try of nginx might be good idea. Although at most of my time, I&#8217;m using Windows, fortunately, nginx has native Windows build. So my steps might be helpful to you to try nginx on Windows, especially Windows 7.</p>
<p>1. Download nginx and php and install</p>
<ul>
<li><a href="http://nginx.net/">http://nginx.net/</a></li>
<li><a href="http://windows.php.net/download/">http://windows.php.net/download/</a> (I don&#8217;t like the installer)</li>
</ul>
<p>2. Configure nginx and php</p>
<ul>
<li>PHP, no specific configuration, just do what you like to php.ini.</li>
<li>Nginx<br />
<strong>Fast-CGI of php</strong><br />
You can find sample from wiki.nginx.org, <a href="http://wiki.nginx.org/PHPFastCGIOnWindows">http://wiki.nginx.org/PHPFastCGIOnWindows</a>, below works for me.</p>
<pre class="brush:plain">location ~ \.php$ {
            fastcgi_pass   127.0.0.1:9999;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  D:/www/public/$fastcgi_script_name;
            include        fastcgi_params;
        }</pre>
<p><strong>Configure for Zend Framework<br />
</strong>-f and !-f are used for checking whether file exists.</p>
<pre class="brush:plain">        error_page 404 /index.php;

        if (!-f $request_filename) {
            rewrite ^.*$ /index.php last;
            break;
        }</pre>
</li>
</ul>
<p>3. batch script to start and stop nginx + php-cgi</p>
<p>I&#8217;m using <a href="http://www.msfn.org/board/tool-hide-console-command-line-windows-t49184.html&amp;t=49184" target="_blank">RunHiddenConsole</a> to hide the prompt window and actually you also can use vbs to run nginx.</p>
<p>start-nginx.bat</p>
<pre class="brush:plain">@ECHO OFF
ECHO Starting PHP FastCGI...
C:\nginx\RunHiddenConsole.exe C:\PHP5\php-cgi.exe -b 127.0.0.1:9999
ECHO Starting nginx...
C:\nginx\RunHiddenConsole.exe c:\nginx\nginx.exe</pre>
<p>stop-nginx.bat</p>
<pre class="brush:plain">@ECHO OFF
ECHO Stopping nginx...
taskkill /F /IM nginx.exe
ECHO Stopping php-cgi...
taskkill /F /IM php-cgi.exe</pre>
<p>but php-pfm doesn&#8217;t work on Windows unless you are using cygwin.</p>
<p><img class="alignnone size-medium wp-image-90" title="nginx_zend" src="http://www.binzywu.com/wp-content/uploads/2009/10/nginx_zend-300x125.jpg" alt="nginx_zend" width="300" height="125" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.binzywu.com/2009/10/nginx-zend-framework-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zend Framework Multiple Helper Path Configuration</title>
		<link>http://www.binzywu.com/2009/10/zend-framework-multiple-helper-path-configuration/</link>
		<comments>http://www.binzywu.com/2009/10/zend-framework-multiple-helper-path-configuration/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 04:22:02 +0000</pubDate>
		<dc:creator>binzywu</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[Zend_View]]></category>
		<category><![CDATA[ZF]]></category>

		<guid isPermaLink="false">http://www.binzywu.com/?p=79</guid>
		<description><![CDATA[As you may have multiple configuration for helpers of Zend View, simply configure as below will help resources.view.helperPath.Zend_View_Helper = APPLICATION_PATH "/views/helpers" resources.view.helperPath.My_Custom_Helper = "/path to helpers" The &#8220;My_Custom_Hepler&#8221; is the prefix, so that you can support your different modules&#8217; help &#8230; <a href="http://www.binzywu.com/2009/10/zend-framework-multiple-helper-path-configuration/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As you may have multiple configuration for helpers of Zend View, simply configure as below will help</p>
<pre class="brush:php">resources.view.helperPath.Zend_View_Helper = APPLICATION_PATH "/views/helpers"
resources.view.helperPath.My_Custom_Helper = "/path to helpers"</pre>
<p>The &#8220;My_Custom_Hepler&#8221; is the prefix, so that you can support your different modules&#8217; help path without hard coding in php codes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binzywu.com/2009/10/zend-framework-multiple-helper-path-configuration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>subversion client and http</title>
		<link>http://www.binzywu.com/2009/10/subversion-client-and-http/</link>
		<comments>http://www.binzywu.com/2009/10/subversion-client-and-http/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 03:05:07 +0000</pubDate>
		<dc:creator>binzywu</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[neon]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.binzywu.com/?p=76</guid>
		<description><![CDATA[I hate subversion&#8230; while using linux, I thought subversion client should natively support http schema,  but actually it doesn&#8217;t. By reading installation instruction, it says I need Neon&#8230; Then I download Neon and configure with &#8211;with-neon=&#60;neonpath&#62;, doesn&#8217;t work! try copy &#8230; <a href="http://www.binzywu.com/2009/10/subversion-client-and-http/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I hate subversion&#8230;</p>
<p>while using linux, I thought subversion client should natively support http schema,  but actually it doesn&#8217;t. By reading installation instruction, it says I need Neon&#8230; Then I download Neon and configure with &#8211;with-neon=&lt;neonpath&gt;, doesn&#8217;t work! try copy neon to subversion source code, reconfigure it&#8230; without &#8211;with-neon option&#8230; still doesn&#8217;t work! Shit&#8230; via looking into configure log, it says&#8230;</p>
<blockquote><p>checking neon library version&#8230; 0.29.0<br />
You have a neon/ subdir containing version 0.29.0,<br />
but Subversion needs neon 0.28.4.</p>
<p>An appropriate version of neon could not be found, so libsvn_ra_neon<br />
will not be built.  If you want to build libsvn_ra_neon, please either<br />
install neon 0.28.4 on this system</p>
<p>or</p>
<p>get neon 0.28.4 from:<br />
    <a href="http://www.webdav.org/neon/neon-0.28.4.tar.gz">http://www.webdav.org/neon/neon-0.28.4.tar.gz</a><br />
unpack the archive using tar/gunzip and rename the resulting<br />
directory from ./neon-0.28.4/ to ./neon/</p>
<p>no suitable neon found</p></blockquote>
<p>&#8230; download 0.28.4, copy to sub folder, configure&#8230; yeah&#8230; works, finally. You can check whether it supports http via &#8220;svn &#8211;version&#8221;, there should be a ra_neon module.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binzywu.com/2009/10/subversion-client-and-http/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.Net IoC Containers</title>
		<link>http://www.binzywu.com/2009/08/net-ioc-containers/</link>
		<comments>http://www.binzywu.com/2009/08/net-ioc-containers/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 22:47:15 +0000</pubDate>
		<dc:creator>binzywu</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[Container]]></category>
		<category><![CDATA[DI]]></category>
		<category><![CDATA[IoC]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://www.binzywu.com/?p=58</guid>
		<description><![CDATA[Unity, http://unity.codeplex.com, Ms-PL license Developed by Microsoft P&#38;P. Spring.Net, http://www.springframework.net/, Apache 2.0 License Port from the famous Spring framework. Castle, http://www.castleproject.org/, Apache 2.0 License The first .Net IoC Container? StructureMap, http://structuremap.sourceforge.net/, Apache 2.0 License Looks good. The fifth? [updated on Sep &#8230; <a href="http://www.binzywu.com/2009/08/net-ioc-containers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Unity</strong>, <a href="http://unity.codeplex.com">http://unity.codeplex.com</a>, Ms-PL license</p>
<p>Developed by Microsoft P&amp;P.</p>
<p><strong>Spring.Net</strong>, <a href="http://www.springframework.net/">http://www.springframework.net/</a>, Apache 2.0 License</p>
<p>Port from the famous Spring framework.</p>
<p><strong>Castle</strong>, <a href="http://www.castleproject.org/">http://www.castleproject.org/</a>, Apache 2.0 License</p>
<p>The first .Net IoC Container?</p>
<p><strong>StructureMap</strong>, <a href="http://structuremap.sourceforge.net/">http://structuremap.sourceforge.net/</a>, Apache 2.0 License</p>
<p>Looks good.</p>
<p>The fifth?</p>
<p><em><span style="color: #808080;">[updated on Sep 14th]</span></em></p>
<p>Yes, just know the fifth,</p>
<p><strong>Ninject</strong>: <a href="http://code.google.com/p/ninject/">http://code.google.com/p/ninject/</a> Apache 2.0 License. No comment yet&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binzywu.com/2009/08/net-ioc-containers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
