作者 Author : binzywu - 目前发表了 17 篇文章

URL:

Is Windows Phone 7 Series the One I Expect?

<Category: Mobile> 1 条评论

Microsoft announced WP7 series on WMC2010. (Announce video: http://www.youtube.com/watch?v=5q-HtdW03Zs, pretty cool!) And there are lots of people are talking about it. Like livesino has lots of information for it (Chinese). But what I expect of a mobile OS? I write this down 9 months ago:

1. Small/Micro kernel.
2. Powerful UI.
3. Simple Application development.

And what I can see now is it really has an innovative UI and I like it. The kernel should be neat althought it definitely will be based on Win CE. So what I really want to know is how to develop app based on this new UI. It should bring a tough switch… But let’s check it out on MIX10

本文来自: Is Windows Phone 7 Series the One I Expect?

Word Clouds: Wordle

<Category: Others> 发表评论

Everyone is showing me a cool style of word clouds, like Jasmin, Tee and Windows Phone 7.  And thanks to Jasmin for sharing this tool to me which is really awesome! Wordle, http://www.wordle.net/. Below is my blog’s word clouds before having this entry.

本文来自: Word Clouds: Wordle

6 Key points of a successful project with fixed deadline

<Category: PM> 发表评论

Last November, we were about to move to our new apartment in 4 weeks. The bathroom, living room were planned to be re-decorated completely and we planned to partially make kitchen and bedroom up. And we only had a small amount budget and we are both quite busy on our full-time job. But finally I think we are pretty successful on this project since following six things.

1. Good Plan
Stick to your budget, make a well plan according to your real needs and budget. Never trying to achieve more than  reality. Clearly write down the items into a backlog with milestones/check points.

2. Clear Defined Scope
This should be part of the plan, but I separate it since it is critical to the whole project.  If you really want to extend the scope, that means either the project will be delayed or you have to remove something from the scope finally.

3. A Good Team Lead
A good team is always required for any successful project. But a good team lead is much more important. A good team leader means a lot of things, like:
a. Accurate data of status which is also in time
b. Appropriated arrangement
c. Risks identified
d. Agile, frankly, without a great team lead (a good scrum master or project manager),  you are not able to be real agile.

4. Choose Good Suppliers
During the whole decoration period, you need to buy lots of stuff. If time is not a matter, it will be pretty OK to find cheap stuff with good quality. But it’s not the case to me. So there are only two places where I bought things I need, they are IKEA and B&Q. IKEA almost always has goods in stock while B&Q almost has everything. Another great thing of this kind of supplier is that they sell at expressly marked price and I can easily manage the account.

5. Delegation
You have to delegate many things to the project/team leader, as they are good at the decoration and you should put your time and effort to the things you most concern. So look back to your project backlog and see what you must to do in person.

6. Compromise
No perfect. You have to make trade-offs. Make decisions based on the values not the feelings.

本文来自: 6 Key points of a successful project with fixed deadline

nginx + Zend Framework @ Windows

<Category: Programming> 2 条评论

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’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 php and install

2. Configure nginx and php

  • PHP, no specific configuration, just do what you like to php.ini.
  • Nginx
    Fast-CGI of php
    You can find sample from wiki.nginx.org, http://wiki.nginx.org/PHPFastCGIOnWindows, below works for me.

    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;
            }

    Configure for Zend Framework
    -f and !-f are used for checking whether file exists.

            error_page 404 /index.php;
    
            if (!-f $request_filename) {
                rewrite ^.*$ /index.php last;
                break;
            }

3. batch script to start and stop nginx + php-cgi

I’m using RunHiddenConsole to hide the prompt window and actually you also can use vbs to run nginx.

start-nginx.bat

@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

stop-nginx.bat

@ECHO OFF
ECHO Stopping nginx...
taskkill /F /IM nginx.exe
ECHO Stopping php-cgi...
taskkill /F /IM php-cgi.exe

but php-pfm doesn’t work on Windows unless you are using cygwin.

nginx_zend

本文来自: nginx + Zend Framework @ Windows

Zend Framework Multiple Helper Path Configuration

<Category: Programming> 1 条评论

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 “My_Custom_Hepler” is the prefix, so that you can support your different modules’ help path without hard coding in php codes.

本文来自: Zend Framework Multiple Helper Path Configuration

subversion client and http

<Category: Programming> 发表评论

I hate subversion…

while using linux, I thought subversion client should natively support http schema,  but actually it doesn’t. By reading installation instruction, it says I need Neon… Then I download Neon and configure with –with-neon=<neonpath>, doesn’t work! try copy neon to subversion source code, reconfigure it… without –with-neon option… still doesn’t work! Shit… via looking into configure log, it says…

checking neon library version… 0.29.0
You have a neon/ subdir containing version 0.29.0,
but Subversion needs neon 0.28.4.

An appropriate version of neon could not be found, so libsvn_ra_neon
will not be built.  If you want to build libsvn_ra_neon, please either
install neon 0.28.4 on this system

or

get neon 0.28.4 from:
    http://www.webdav.org/neon/neon-0.28.4.tar.gz
unpack the archive using tar/gunzip and rename the resulting
directory from ./neon-0.28.4/ to ./neon/

no suitable neon found

… download 0.28.4, copy to sub folder, configure… yeah… works, finally. You can check whether it supports http via “svn –version”, there should be a ra_neon module.

本文来自: subversion client and http