<?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>Sun, 23 Oct 2011 21:43:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Windows Phone 7, Hammock, OAuth and Sina Weibo&#8217;s API</title>
		<link>http://www.binzywu.com/2011/02/windows-phone-7-hammock-oauth-and-sina-weibos-api/</link>
		<comments>http://www.binzywu.com/2011/02/windows-phone-7-hammock-oauth-and-sina-weibos-api/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 21:47:42 +0000</pubDate>
		<dc:creator>binzywu</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[Hammock]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[Sina]]></category>
		<category><![CDATA[Weibo]]></category>
		<category><![CDATA[windows phone 7]]></category>
		<category><![CDATA[wp7]]></category>
		<category><![CDATA[客户端]]></category>
		<category><![CDATA[微博]]></category>
		<category><![CDATA[新浪]]></category>

		<guid isPermaLink="false">http://www.binzywu.com/?p=145</guid>
		<description><![CDATA[OK, I am developing a windows phone 7 app for Sina Weibo. I just simply don&#8217;t like the basic authorisation&#8230; And OAuth is much better since once you get the access token, you can use it all the time rather than always passing the username and password around. though there are already two Sina Weibo [...]]]></description>
			<content:encoded><![CDATA[<p>OK, I am developing a windows phone 7 app for Sina Weibo. I just simply don&#8217;t like the basic authorisation&#8230; And OAuth is much better since once you get the access token, you can use it all the time rather than always passing the username and password around. though there are already two Sina Weibo client apps (1 free and 1 is asking for $0.99) in marketplace, my friend Remy and I still want to develop a new app which will be free and open source.</p>
<p><span id="more-145"></span></p>
<p>We restarted (or I can say started&#8230;) the development work from this Monday and things are in good progress. In the meantime, I would like to share what we&#8217;ve experienced during development and I hope this can help you if you are thinking to develop your own client on Windows Phone 7 or Silverlight for Sina Weibo. So this first entry is about getting OAuth access token for Sina Weibo via Hammock. Hammock is a great lib for you to consume and wrap RESTful services and it supports OAuth and XAuth.</p>
<p><strong>Step 1 register your app.</strong><br />
Sure, you need to apply/register an application on <a title="Sina Weibo API" href="http://open.t.sina.com.cn/" target="_blank">http://open.t.sina.com.cn/</a>. You will then get your app key and secret (which is actually consumer key and secret).</p>
<p><strong>Step 2 authentication.</strong><br />
OAuth is quite simple and straightforward. In summary, you need to pass your consumer key and secret to get the request token, like this,<br />
<pre><pre>void OAuthTest()
{
    RestClient c = new RestClient()
    {
        Authority = &quot;http://api.t.sina.com.cn/&quot;,
        HasElevatedPermissions = true,
        Credentials = new OAuthCredentials()
        {
            ConsumerKey = &quot;your appkey&quot;,
            ConsumerSecret = &quot;your appsecret&quot;,
            SignatureMethod = OAuthSignatureMethod.HmacSha1,
            ParameterHandling = 
OAuthParameterHandling.HttpAuthorizationHeader,
            Version = &quot;1.0&quot;
        }
    };

    RestRequest r = new RestRequest()
    {
        Path = &quot;oauth/request_token&quot;,

    };

    c.BeginRequest(r, new RestCallback(Callback));

}

void Callback(RestRequest request, RestResponse response, 
object userState)
{
    Regex r = 
new Regex(&quot;oauth_token=([^&amp;amp;.]*)&amp;amp;oauth_token_secret=([^&amp;amp;.]*)&quot;);
    var match = r.Match(response.Content);
    token = match.Groups[1].Value;
    tokensecret = match.Groups[2].Value;
}</pre></pre><br />
once you get the request token and tokensecret, you can pass them along with consumer key for the authorization. Then Sina Weibo API will ask for username and password. But for client app like this, you may want user provide the info at your app and you take care the whole interaction in app. So you could generate a dynamic callback page. Beyond, the Sina Weibo API supports directly xml callback to return the xml which contains the oauth_verifier.<br />
<pre><pre>RestClient c = new RestClient()
{
    Authority = &quot;http://api.t.sina.com.cn/&quot;,
};

RestRequest req = new RestRequest()
{
    Path = string.Format(&quot;oauth/authorize?{0}&amp;amp;oauth_callback=xml
&amp;amp;userId={1}&amp;amp;passwd={2}&quot;, response.Content, &quot;user&quot;, &quot;password&quot;)
};

c.BeginRequest(req, new RestCallback(Callback2));        

void Callback2(RestRequest request, RestResponse response,
 object userState)
{
&nbsp;&nbsp;&nbsp;&nbsp;Regex r = new Regex(&quot;&amp;lt;oauth_token&amp;gt;(.*?)&amp;lt;/oauth_token&amp;gt;
&amp;lt;oauth_verifier&amp;gt;(.*?)&amp;lt;/oauth_verifier&amp;gt;&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;var match = r.Match(response.Content);
}</pre></pre><br />
then you are ready to ask for the access token,<br />
<pre><pre>RestClient c = new RestClient()
{
    Authority = &quot;http://api.t.sina.com.cn/&quot;,
    HasElevatedPermissions = true,
    Credentials = new OAuthCredentials()
    {
        ConsumerKey = &quot;your appkey&quot;,
        ConsumerSecret = &quot;your appsecret&quot;,
        Token = &quot;request token&quot;,
        TokenSecret = &quot;request tokensecret&quot;,
        Verifier = &quot;your oauth verifier from last step&quot;,
        SignatureMethod = OAuthSignatureMethod.HmacSha1,
        ParameterHandling = OAuthParameterHandling.HttpAuthorizationHeader,
        Type = OAuthType.AccessToken,
        Version = &quot;1.0&quot;
    }
};

RestRequest r2 = new RestRequest()
{
    Path = &quot;oauth/access_token&quot;,

};

c.BeginRequest(r2, new RestCallback(Callback3));

public void Callback3(RestRequest request, RestResponse response, 
object userState)
{
    // you will get format like this and that&#039;s your access
 token: oauth_token=token&amp;amp;oauth_token_secret=secret&amp;amp;user_id=id
    var s = response.Content;
}</pre></pre><br />
<strong>Step 3 make an update to your statuses!</strong><br />
As mentioned before once you&#8217;ve got the access token, the token can be used until the user revokes the authentication. The following things will be very simple. like if you want to post an update from your app, you just need some very familiar codes.<br />
<pre><pre>        private void Test()
        {
            RestClient c = new RestClient()
            {
                Authority = &quot;http://api.t.sina.com.cn/&quot;,
                HasElevatedPermissions = true,
                Credentials = new OAuthCredentials()
                {
                    ConsumerKey = &quot;your appkey&quot;,
                    ConsumerSecret = &quot;your appsecret&quot;,
                    Token = &quot;your access token&quot;,
                    TokenSecret = &quot;your access tokensecret&quot;,
                    SignatureMethod = OAuthSignatureMethod.HmacSha1,
                    ParameterHandling = OAuthParameterHandling.HttpAuthorizationHeader,
                    Type = OAuthType.ProtectedResource,
                    Version = &quot;1.0&quot;
                }
            };

            RestRequest r2 = new RestRequest()
            {
                Path = &quot;statuses/update.xml&quot;
            };

            r2.AddParameter(&quot;status&quot;, &quot;hello world&quot;);
            r2.Method = WebMethod.Post;
            c.BeginRequest(r2, new RestCallback(Callback));

        }

        void Callback(RestRequest request, RestResponse response,
 object userState)
        {
            // check wheather post is successful
        }</pre></pre><br />
Enjoy.</p>
<p>references:<br />
OAuth:<a href=" http://oauth.net" target="_blank"> http://oauth.net</a><br />
Sina Weibo API: <a href="http://open.t.sina.com.cn/" target="_blank">http://open.t.sina.com.cn/</a><br />
Hammock: <a href="http://hammock.codeplex.com" target="_blank">http://hammock.codeplex.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.binzywu.com/2011/02/windows-phone-7-hammock-oauth-and-sina-weibos-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Phone Marketplace Tip for 5.6 Technical Support Information</title>
		<link>http://www.binzywu.com/2011/02/windows-phone-marketplace-tip-for-5-6-technical-support-information/</link>
		<comments>http://www.binzywu.com/2011/02/windows-phone-marketplace-tip-for-5-6-technical-support-information/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 21:48:48 +0000</pubDate>
		<dc:creator>binzywu</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[marketplace]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[windows phone 7]]></category>
		<category><![CDATA[wp7]]></category>

		<guid isPermaLink="false">http://www.binzywu.com/?p=137</guid>
		<description><![CDATA[OK, it turns out that Microsoft is forcing this policy from the new year, I mean from 2011. My little simple free app&#8217;s update was failed the certification at 5.6, which simply requires you to expose your app&#8217;s version number and your contact information to end users. So if your app has just single page, [...]]]></description>
			<content:encoded><![CDATA[<p>OK, it turns out that Microsoft is forcing this policy from the new year, I mean from 2011. My little simple free app&#8217;s update was failed the certification at 5.6, which simply requires you to expose your app&#8217;s version number and your contact information to end users. So if your app has just single page, probably just put it in some corner and set the opacity lower. If you have multiple pages, adding an about page will be a good idea.</p>
<p>So how about contact info? I tried to add my twitter link to the app, and it just works. From some internal discussion, I would think following information will be OK (not guaranteed&#8230;) since in basic, it just requires you to provide a contact approach for end user to contact/feedback to you.</p>
<ul>
<li>twitter link</li>
<li>a webpage/website</li>
<li>embedded contact form page</li>
<li>email</li>
<li>anything else can find you&#8230;</li>
</ul>
<p>Hope this helps&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binzywu.com/2011/02/windows-phone-marketplace-tip-for-5-6-technical-support-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>4</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. I&#8217;m living in China within the famous GFW, and I&#8217;m using a twitter proxy site [...]]]></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 helpful to you to try nginx on Windows, especially Windows 7. 1. Download nginx and [...]]]></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.<br />
<pre><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></pre><br />
<strong>Configure for Zend Framework<br />
</strong>-f and !-f are used for checking whether file exists.<br />
<pre><pre class="brush:plain">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error_page 404 /index.php;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!-f $request_filename) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^.*$ /index.php last;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</pre></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<br />
<pre><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></pre><br />
stop-nginx.bat<br />
<pre><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></pre><br />
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 &#34;/views/helpers&#34; resources.view.helperPath.My_Custom_Helper = &#34;/path to helpers&#34; 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.]]></description>
			<content:encoded><![CDATA[<p>As you may have multiple configuration for helpers of Zend View, simply configure as below will help<br />
<pre><pre class="brush:php">resources.view.helperPath.Zend_View_Helper = APPLICATION_PATH &quot;/views/helpers&quot;
resources.view.helperPath.My_Custom_Helper = &quot;/path to helpers&quot;</pre></pre><br />
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 neon to subversion source code, reconfigure it&#8230; without &#8211;with-neon option&#8230; still doesn&#8217;t work! Shit&#8230; via [...]]]></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 14th] Yes, just know the fifth, Ninject: http://code.google.com/p/ninject/ Apache 2.0 License. No comment yet&#8230;]]></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>

