﻿<?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>星外飞客</title>
	<atom:link href="http://www.yanghengfei.com/index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.yanghengfei.com</link>
	<description>爱网络，爱研究，也爱老婆，我不是凡客，我是杨恒飞！</description>
	<lastBuildDate>Tue, 15 May 2012 06:45:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>已知MAC计算PIN程序 C 程序源码</title>
		<link>http://www.yanghengfei.com/archives/687/</link>
		<comments>http://www.yanghengfei.com/archives/687/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 02:11:58 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[pin]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=687</guid>
		<description><![CDATA[最近有人爆出某达公司的路由器的PIN码漏洞，更有人给出了C计算代码，源码转来： //Computes PIN code starts with OUI "C83A35" and "00B00C" //Both two OUIs which belonged to Tenda Technology Co., Ltd are confirmed effectively. //Coded by Zhaochunsheng - iBeini.com //Modified by Lingxi - WiFiBETA.COM #include &#60;stdio.h&#62; #include &#60;stdlib.h&#62; int main() { unsigned int wps_pin_checksum(unsigned int pin); int PIN = 0; //printf("ComputePIN-C83A35\n"); printf("Description:\n"); printf("If your wireless router [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F9%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F687%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">win2003找不到vids.cvid解压缩程序的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F599%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F687%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">程序图标变成未知图标</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F283%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F687%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">无法定位程序输入点DwmHintDxupdate于动态链接库USER32.dll</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F417%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F687%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关闭Win7右下角操作中心的小白旗图标</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/687/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apache限制某个目录下的php文件没有执行权限</title>
		<link>http://www.yanghengfei.com/archives/685/</link>
		<comments>http://www.yanghengfei.com/archives/685/#comments</comments>
		<pubDate>Sat, 14 Apr 2012 07:32:50 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=685</guid>
		<description><![CDATA[为了安全期间，有时我们需要限制网站下的某些目录对于php脚本不能执行。 有两种方法可以参考： 1.  使用.htaccess 文件限制 在要限制php执行的目录下，创建.htaccess文件，加入内容 php_flag engine off 2. 使用apache的配置文件httpd.conf 在相关的虚拟主机段，加入 &#60;Directory /www/htdocs/path&#62; php_admin_flag engine off &#60;/Directory&#62; 注意：此处配置要使用绝对路径，经测试相对路径是无效的。 &#160;<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F122%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F685%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache代理缓存系统</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F208%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F685%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用php做apache流量统计</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F133%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F685%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何让Linux Apache支持中文文件名访问？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F181%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F685%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用Apache的mod_limitipconn模块限制IP并发连接数</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/685/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>冯大辉：创业团队成员的挑战与成长</title>
		<link>http://www.yanghengfei.com/archives/683/</link>
		<comments>http://www.yanghengfei.com/archives/683/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 09:22:53 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[日志]]></category>
		<category><![CDATA[团队]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=683</guid>
		<description><![CDATA[文/冯大辉 回想从最初开始负责丁香园技术团队到现在，团队规模已经增加了几倍，有人离职，也有更多的人加入。团队一大，自然有些问题会浮现出来。比如最近在和团队同事聊天或是面试面谈的时候，经常会听到类似的话「觉得现在的工作没什么挑战」或是「感觉学不到东西」，以前偶尔听到团队同事这样的反馈，还是挺让我着急的，我第一直觉是很惭愧，公司或是团队给同事提供的资源和机会太少了，于是，不停的争取资源或是尽量改进，但是最后我逐渐发现，这样还是不能完全解决问题，这并非是问题的根源，因为一方面有人说没挑战 ，一方面是一堆老大难问题很久得不到解决。觉得「没挑战」和「没成长」其实是很多人会有的心态，尤其是刚参加工作没几年的容易形成这样习惯上的认知。 我以前写过一篇 工程师在创业团队的技术挑战 ，说了一下我对技术上的「挑战」的看法，现在趁着有点空闲，再谈谈谈创业团队中的成员的「挑战」以及「成长」的问题。{请注意，这只是一篇随笔，我无意去讨论什么管理之类的废话，也不奢望就这么几个字能解决所有问题，对少数人起到一个提醒的作用就足够了} 一般觉得工作没什么挑战的，原因可能无外乎几个: 要么认为自己的能力足够高了，不屑于再做「简单」的事情; 要么认为自己是在做「重复」的工作;要么，觉得没接触到新东西;也很有可能只是各种借口或是「心态」的体现。 实际上，任何团队中都没有「简单」的事情，只有做得好或是做不好的事情。什么是简单? 给产品写一段文字说明够简单么?写一封 EDM 够简单么? 如果仔细推敲的话，会看到绝大多数文案都是糟糕的一塌糊涂，那么为什么不用更高的标准要求以下自己呢?既然能力够高了，为什么你说的「简单」的事情还做不好呢?所谓眼高手低，不就是说这种情况么? 如果小事情做到比别人好，那么大一点的事情团队就会更加放心的给你去做。否则的话，换了是你，你也不会将重要的任务交给连小事情都做不好的人吧? 任何团队中也没有「重复」的事情。任何事情，如果不针对反馈做任何改进的话，做第二遍你就会觉得是重复;而如果每次都能根据反馈不停的修正，那么做成千上万次可能还会找到乐趣。比如说我们网站经常要给用户设计一些广告图片，有的同事说，总让我做广告图片，枯燥、乏味，我的设计能力如何得到提高? 的确，如果每次都用最低的标准要求自己，怎么提高呢?客户或是同事给你的反馈，比如，图片上的文字都是毛边的，无论怎么说你都无动于衷，那么怎么可能真的提高呢? 所以，面对「重复」的事情，必须不断的给自己设立新标准，然后努力去突破，重复的事情里面依然大有文章，想想如何提高质量，再想想如何提升效率。 至于说接触不到新技术，其实问一句话就好: 你业余时间为什么不学呢? 大部分回答是: 没时间。这是无解的问题。一般听到「没时间」，有时间整天逛淘宝难道没时间学习么? 其实潜台词都是「这是不重要的事情」，任何事情，你不投入比别人更多的精力，怎么做到比别人更好么? 正所谓，「以大多数人的努力程度之低，根本轮不到去拼天赋」，同样，不做好准备，也等不来机会。 至于心态，我引用丁香园 CEO 张进的一句话：两个都是新入职的同事，也都是第一份工作，交给他们差不多的事情做，一个想「他奶奶的，就这么点工资，让干这么多活?」，另一个则想「没想到新人都给这么多机会锻炼」，你说过几年谁的成就更大? 这或许可以回答某些人的疑问「为什么我和同学毕业的时候都差不多，怎么过几年不见，人家都做到某公司总监乃至副总了，我还是在不停的换工作?」，就是心态导致的差异。 有些人觉得创业团队或是小型公司里面，资源少，「学不到什么东西」，其实，是你没仔细去学习应该学的东西。前几天给几个好友的新创业项目提建议，我说你们某个地方做的不及格，他们说要我给讲讲，我说这个应该不用讲的，你们团队中的某某，以前看过我做同样的事情，按理说，他也能做一下的。遗憾的是，没去做，也做不来。为什么? 别人做他熟悉的那一点领域之外的事情，他是漠不关心的，意识不到学习更多东西是有价值的。有人说，问题就是机会，团队的问题，就是每个人的机会，谁能解决掉，就会给团队带来更大的价值，相应的，他也会得到更大的回报。而在创业团队里面，恰恰是需要解决问题的人，不欢迎那些不动脑筋的螺丝钉。创业团队中，可接触的问题不可谓不多，公司的方方面面都需要有人动手来做，如果平时多用点心思，学到的东西早晚在将来还会用到。很多人不都是有创业的想法么?但是你连基本的积累都不够，创业? 怕是要撞墙。 那么是不是在大公司里面才能让人得到锻炼呢? 曾经遇到过不少工程师当面告诉我，想去某某大型互联网公司去工作几年，提高一下技术，遗憾的是，几乎没看到一个人在几年后能力真的得到提升，有的甚至退步，为什么?一个很大的原因是，大公司里面多数的事情都已经固定下来了，而很多牛人之所以牛，是因为他们遇到公司从小到大的过程，在这个过程中他们得到了难得的成长机遇，不停的学习充实自己，解决各种问题，才成为牛人，牛人也多是苦日子熬过来的。等到天下皆定，哪还有那么多硬仗好打呢? 另外，「想锻炼技术」并不是一个很好的出发点，单纯的想锻炼技术实际上并不利于「解决问题」，培养能力和意识更为关键。 我在微博上调侃过：很多人都希望找到一个完美的公司，比如，办公室要无比舒适;用最好的设备;完备的培训机制，还别占用休息时间;弹性工作制;别他妈太累;也别让老子加班;公司前台要好看;没有刻板的工作流程;工作要有创造性不是重复劳动，别管我是否有创造性;队友不是猪而且都是天才，遇到困难他们就会出手解决;做的事必须是最潮的，但别管赚钱与否&#8230; 还有，最重要的，薪水要高。遗憾的是，这样的工作估计是做公务员也不一定完全具备，只会让自己更加痛苦，甚至增加无谓的抱怨。 提起抱怨来，也有必要说一下对队友的抱怨这个事情。曾经见过有人对一起合作项目同事的抱怨，比如设计师抱怨合作的产品经理有问题，总要不停的修改，时间长了，认为产品团队都很烂，经常打扰你，那么有没有想过，你是否可以给产品设计提出更好的建议呢? 甚至，有些产品设计你是否可以进行改进呢? 什么?「那不是我的工作!」 可是，为什么要给自己的能力设定一个边界? 这是多么可悲的事情，你完全可以无限制的突破边界，突破个人的局限。或许再过几年你会成为一个更好的产品设计师的啊。Zynga 的核心价值观有一条是「Level up」，不断升级，这恰恰是我们普遍缺少的心态。 的确，这是个浮躁的时代。大家容易听到各种各样的声音，每当心存困惑的时候不妨静下心来，加强对自身的认知。别幻想着走捷径，也尽量少去问别人如何成功，那些没有用，只要你别总在错误的路上越绕越远，将一些看似细微的事情做到更好，最后的成就依然惊人。 看清无处不在的「挑战」，让自己真正有所「成长」，毕竟，以后每个人都要承担更多的责任，只要你愿意。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F362%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F683%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何做好团队管理工作</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F365%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F683%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">你属于哪种类型的团队领导</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F368%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F683%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">小公司如何留住人</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F370%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F683%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">小公司 提高员工对公司满意度</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/683/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>从PHP5.2.x迁移到PHP5.3.x</title>
		<link>http://www.yanghengfei.com/archives/682/</link>
		<comments>http://www.yanghengfei.com/archives/682/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 06:41:18 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=682</guid>
		<description><![CDATA[写在前面 从PHP5.2.x迁移到PHP5.3.x，这是官方提供的Migrating from PHP 5.2.x to PHP 5.3.x的翻译。还未完成。 文章参考了此文的翻译http://www.flyinghail.net/?p=99 在此表示感谢。 翻译追求表意，由于部分函数/类没有使用经验，翻译出错难免，请大家指正以修改、完善。 &#160; 目录 一、PHP 5.3.x中发生了什么变化 二、向后不兼容的变化 三、新功能 四、Windows支持的变化 五、SAPI modules中的变化 六、PHP 5.3.x中不建议使用的功能 七、PHP 5.3.x中去除不推荐的功能 八、新参数 九、新函数 十、新的stream wrappers 十一、新的类常量 十二、新方法 十三、新扩展 十四、移除的扩展 十五、扩展中的其他变化 十六、新的类 十七、新的全局常量 十八、INI文件handling的变化 十九、其他变化 &#160; 一、PHP 5.3.x中发生了什么变化 PHP 5.3.x中绝大多数的改良对现有代码无影响。但是需要考虑一小部分不兼容和新功能，并且在生产环境中切换PHP版本需要做下test。 从更旧的版本升级到php5.3.x，相关文档如下 Upgrade Notes for PHP 5.2.x. Upgrade Notes for PHP 5.1.x. Migrating from PHP [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F534%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F682%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP 5.3 的 call_user_func_array() 传字符串参数会返回false</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F518%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F682%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php interface接口的使用</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F150%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F682%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">解决安装resin后php解析错误的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F415%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F682%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP Curl实现登陆采集示例</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/682/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.4发布 弃Register Globals增Traits</title>
		<link>http://www.yanghengfei.com/archives/680/</link>
		<comments>http://www.yanghengfei.com/archives/680/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 06:04:40 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=680</guid>
		<description><![CDATA[PHP 5.4于本月尘埃落定，它是PHP自2009年以来的首次重大更新。该版本对语言部分进行了增强，包括支持Traits和移除部分争议特性。 Traits 同Java和.NET一样，PHP使用单一继承模型。虽然这种模型足够应付大部分用例场景，但有时用户也需要将一些通用样板代码放置其他无关联的类中。（.NET的Dispose方法就是这类样板代码（boiler-plate code）中一个很好的例子。）为解决这样的问题，PHP5.4推出了Traits。 Traits是一个方案集合，它不属于任何实际类。用户没法创建Trait实例或直接调用Trait中的方法，相反，用户必须将Traits合并到 实际的类当中方能使用它们。在优先级方面，Trait方法会覆盖继承而来的同名方法，而当前合并类中的同名方法则会覆盖Trait方法。 Traits之间拥有相同的优先级，因此默认情况下，将两个包含重叠方法名的Traits加入到相同类中是个错误的做法。当然，使用 “insteadof”和“as”操作符可以手工解决冲突，从而避免这个错误。此外，“as”操作符还可以用于改变Trait的可见性 （visibility）。 Traits中的方法可以是抽象方法，用于支持Traits的部分泛化；同时，Traits也可以对外暴露静态变量，每个包含Traits的类都将拥有该变量的一份拷贝。此外，在Traits中已经声明过的属性不可以再在包含它的类中声明。 其他语法改进 其他语法改进包括： 数组现在可以使用方括号进行声明，而不再需要使用“array”函数。新的声明方式除了略微简洁之外，没有其他影响； 现在可以直接对函数返回值进行数组取值。在此之前，函数返回值的结果必须先存入一个临时变量中，如：$FirstName = GetNames()[0]； PHP 5.4中的闭包现在可以使用“$this”指针，这在以前是不可以的； 现在可以在实例化时访问类成员，如： (new CustomerService)-&#62;Delete(customerId)； 采用“0b”前缀标识二进制数。 命令行Web服务器 PHP 5.4提供了自己的Web服务器，你可以从命令行中启动它。该Web服务器的设计目的仅在于帮助开发，它不会取代你的生产Web服务器。 弃用特性 备受指责的Register Globals已从PHP中完全删除。十年来，该特性一直以其频繁发生的安全漏洞而著称。2002年该特性被设置为默认关闭。2009年发布的PHP5.3将该特性标记为“弃用”，想必从那时起，大部分开发人员已经不再使用它。 从PHP中移除的另一个不讨喜的特性是Magic Quotes。Magic Quotes本意是对字符串进行自动转义（escape）以试图避免SQL注入攻击。但是由于字符串的转义使用方法常与特定背景相关，因此，比起试图解决 的问题，它反而造成了更多的问题。该特性同Register Globals一样，也在2009年被标记为“弃用”。 PHP中的break和continue 语句之后可以跟上一个参数用来指明跳出的循环层数。如果不指定参数，它会像VB、C#或Java一样跳出最内层的循环。在PHP 5.4之前，开发人员可以向break语句传递一个变量，而现在只能传递常量。 PHP允许参数按引用传递。在早期版本中，你可以通过为调用点添加修饰来指明变量按引用传递。在PHP 5.4中，该选项已被移除。相反，现代PHP编程只需要在函数声明时指定按引用传递即可。与C#不同，你不需要同时在声明和调用点指定按引用传递。 查看英文原文：http://www.infoq.com/news/2012/03/PHP-5.4<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F534%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F680%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP 5.3 的 call_user_func_array() 传字符串参数会返回false</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F163%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F680%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何使用PHP连接ACCESS</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F504%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F680%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php+fastcgi遭遇No input file specified.错误</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F293%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F680%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php_exif.dll – 找不到指定的模块</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/680/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何减去腹部脂肪</title>
		<link>http://www.yanghengfei.com/archives/678/</link>
		<comments>http://www.yanghengfei.com/archives/678/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 15:35:37 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[养生]]></category>
		<category><![CDATA[肚子]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=678</guid>
		<description><![CDATA[许多上班族由于长时间坐在办公室，缺乏运动，很容易堆积脂肪在腹部的位置，而腹部脂肪属深层脂肪，要有效解决，需要多方面的配合； 1. 要改变饮食习惯。 吃完饭后不要立即坐下或趴睡，最好能保持站立的形式，可以选择散散步或整理一些东西。如此除了减少脂肪堆积外，还能帮助消化。因为饭后30分钟内，如果保持不动的状态，最容易形成腹部脂肪。 2. 走姿和坐姿要正确； 走路时要抬头挺胸、摆动手臂。常环抱手臂在胸前，腹肌没有出力，容易突起。而且摆动手臂走路，不仅消耗更多的能量，看起来也格外有精神。而坐下时，也要让脊背打直，不要将弯腰或挺腹，如此才能训练腹肌，使腹肌有力而不易松垮。 3. 要配合运动； 摇摇呼拉圈或随时做一做仰卧起坐、伸伸懒腰，都能逐渐消除腹部脂肪，且使腹肌日益结实而不易再堆积脂肪。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="W32Dasm反汇编工具使用教程" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F164%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F678%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/26/25436467.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">W32Dasm反汇编工具使用教程</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="mssql 2008 用户、组或角色’XXX’在当前数据库中已存在 错误:15023" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F493%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F678%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/26/25436708.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">mssql 2008 用户、组或角色’XXX’在当前数据库中已存在 错误:15023</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="服务器优化IIS压缩传输（gzip）" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F121%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F678%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/26/25436603.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">服务器优化IIS压缩传输（gzip）</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Win7专业级开机画面 显现开机加载信息" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F242%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F678%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/26/25438318.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Win7专业级开机画面 显现开机加载信息</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/678/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aptana快捷键</title>
		<link>http://www.yanghengfei.com/archives/675/</link>
		<comments>http://www.yanghengfei.com/archives/675/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 10:10:33 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[Aptana]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=675</guid>
		<description><![CDATA[APTANA作为一款不错的IDE，确实非常不错，下面是一些它的使用的部分快捷键，希望对大家有用处。 All Aptana Editors Format Ctrl+Shift+F Aptana Editors All Aptana Editors Open Declaration F3 Aptana Editors All Aptana Editors Show Documentation F2 Aptana Editors All Aptana Editors Show Whitespace Ctrl+. Aptana Editors All Aptana Editors Toggle JS Comments Ctrl+/ Aptana Editors 帮助 关闭用户帮助托盘 Ctrl+F4 在对话框中 帮助 关闭用户帮助托盘 Ctrl+W 在对话框中 搜索 在工作空间中查找文本 Ctrl+Alt+G 在窗口中 搜索 打开“搜索”对话框 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="EditPlus 快捷键 中英文对照表" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F473%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F675%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">EditPlus 快捷键 中英文对照表</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="利用dedecms漏洞 自定义模版oday 成功上传webshell" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F420%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F675%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/26/25436887.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">利用dedecms漏洞 自定义模版oday 成功上传webshell</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="ASPX一些安全设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F137%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F675%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/26/25436511.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">ASPX一些安全设置</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="标准的ASCII标点符号编码和编码技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F111%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F675%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/26/25436364.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">标准的ASCII标点符号编码和编码技巧</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/675/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 生成黑白图片</title>
		<link>http://www.yanghengfei.com/archives/673/</link>
		<comments>http://www.yanghengfei.com/archives/673/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 07:15:18 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=673</guid>
		<description><![CDATA[特殊需求，需要生成黑白缩略图，PHP5.X以上版本已经有函数可以搞定了，代码如下： &#60;?php $im = imagecreatefrompng('dave.png'); if ($im &#38;&#38; imagefilter($im, IMG_FILTER_GRAYSCALE)) { echo 'Image converted to grayscale.'; imagepng($im, 'dave.png'); } else { echo 'Conversion to grayscale failed.'; } imagedestroy($im); ?&#62; ==== imagefilter (PHP 5) imagefilter — 对图像使用过滤器 说明 bool imagefilter ( resource $src_im , int $filtertype [, int $arg1 [, int $arg2 [, int $arg3 ]]] [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F534%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F673%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP 5.3 的 call_user_func_array() 传字符串参数会返回false</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F293%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F673%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php_exif.dll – 找不到指定的模块</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F150%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F673%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">解决安装resin后php解析错误的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F503%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F673%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">nginx+php 上传文件大小的问题client_max_body_size</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/673/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP BMP图片处理解决方案</title>
		<link>http://www.yanghengfei.com/archives/672/</link>
		<comments>http://www.yanghengfei.com/archives/672/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 13:53:25 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[bmp]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=672</guid>
		<description><![CDATA[虽然PHP的GD中内置了WBMP图片的处理，但实际上那个WBMP并不能处理windows下的BMP图片，规格不一样。 百度无果，GOOGLE一下，找到一个可用的解决方案：BMP2GD BMP2GD 1.0 BMP2GD is a PHP script designed can be used to convert images in the BMP format. It can read a given image file in the BMP format and create a GD image resource from the contained image data. Note: Only non-compressed BMP images are supported. Requirements: - PHP 4.0 or higher [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F150%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F672%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">解决安装resin后php解析错误的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F60%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F672%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP加速器: eAccelerator的安装和配置</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F148%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F672%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">解决PHP汉字截取乱码</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F415%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F672%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP Curl实现登陆采集示例</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/672/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>腾讯产品的创新“渐进式”</title>
		<link>http://www.yanghengfei.com/archives/669/</link>
		<comments>http://www.yanghengfei.com/archives/669/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 09:55:21 +0000</pubDate>
		<dc:creator>coldstar</dc:creator>
				<category><![CDATA[产品]]></category>
		<category><![CDATA[腾讯]]></category>

		<guid isPermaLink="false">http://www.yanghengfei.com/?p=669</guid>
		<description><![CDATA[文 / 唐沐 不同于“颠覆式”创新，作者提出的创新“渐进式”是依靠精准定位、从小做起、局部发展、快速迭代、持续渐进等理念，推动互联网产品的演化。 我在IT行业从业十余年，只待过两家公司：金山和腾讯。在谈创新之前，我想先从我所观察到的两家公司的节奏谈起。 大家知道，在十年前，传统IT企业如金山或金蝶，软件开发常以年为单位。年初由产品经理写好一份大需求，各方评估完后启动项目。设计、开发各做几个月后进行提测，之后缓慢迭代。虽然现在听来，一年的时间很长，但到最后项目Deadline时，所有人仍喊时间不够用。最终项目经理卡死时间、编版本、压盘，所有残念在压盘的一瞬间烟消云散。这样，一个历经了一年开发出的、被我们称为软件的东西，夹杂着未竟的feature、待解决的Bug、需调整的UI，被压入盘中大规模生产，包装起来送到消费者手里。 而互联网企业的生产，则是完全不同的一番景象。2003年进入腾讯之初，我就被这家公司的敏捷震惊了—一个月一个版本！我只有1～2周的时间做界面设计，并且大部分进度是与开发重合的。产品经理（如果有的话）根据用户反馈和竞争对手的情况做需求，界面设计和开发同步进行，测试时间更是若有若无。就这样，一个历经了一个月开发出的，被我们称为互联网软件的东西，夹杂着更多未竟的feature、待解决的Bug、需调整的UI，被打包放在服务器上，在Web上提供链接，开始供用户下载。 两家公司的开发过程都包含程度不一的慌乱，最大的差别是节奏。相较之下，一个月一个版本，更能抓住用户需求的变化，有更大机会在不断开火中瞄准，也有更多机会尝试创新。 创新是企业保持竞争力的保证，近年来，互联网人都讲“微创新”，这个词虽然道出了创新的“形”，但未道出“势”。我更喜欢用“渐进式创新”来描述我们在产品上做的循序渐进式的创新改良。 请允许我打一个比方：上帝按照他自己的样子造出了亚当，如果你愿意说他山寨的话，这个说法也可行，但特别的是，他还根据亚当的需要造出了女人。从男人到女人，还是有那么一些渐进式的意思。我们转换一个频道到达尔文这里：在广袤的非洲大草原，春天到了，动物们又到了交配的季节……这时，一只猿猴忙碌之余，兴之所至忽然站立起来行走。与其他猿猴相比，当时的它也许并没有显示出划时代的高明，但它做了创新，而这一创新，可以说是以后划时代变革的开始。请大家主意，这只猿猴并没有突然从猿猴1.0升级到猿猴2.0，而是猿猴1.01，因为它只是渐进式地做了变革—站立起来，并未具备可以思考云计算的大脑和足以操作键盘的灵活双手。 还有一个案例：iPhone。在这个时代谈创新，始终绕不开苹果。iPhone是如何出现的？看iPod的演化史，你会发现每一个iPod版本的进化：屏幕更大了、机身更纤薄了、性能和容量变化了、可以声控了……这些渐进式优化一步步发生，终于有一天，当秘密研发iPad的工程师把多点触摸技术也准备好后，乔布斯一拍大腿说：“为什么不做个手机呢？！”【注：关于iPad在苹果内部研发早于iPhone的信息，详见乔布斯访谈】。 鉴于此，我想提出一个观点：其实没有所谓一步到位的划时代的创新，任何一个创新都是建立在已经存在的事物的基础上渐进发生的。 下面，我将以腾讯的案例阐述我的观点。腾讯发布了数以百计个版本的QQ，这其中当然有大的重构和功能的革新，但更多的是遍布在小版本中的渐进式创新。 用户头像下的Tips 关键路径上的创新影响力巨大 如果你碰巧是QQ的付费用户，购买了绿钻，那么你头像的Tip底端会显示一个绿钻图标，作为已经购买该项服务的印记。在最初的版本里，我们只做了已购买服务的图标标记，直到某个版本的需求讨论会上，业务部门提出：如何增加业务的开通量？ 截图功能 如何增加业务的开通量？ 提升业务开通量的方法有很多，比如打广告。当时设计的思路是：有些增值服务用户甚至都不知道，打广告虽然能增加业务曝光度，但从用户看到广告到开通业务，路径很长，而Tip本身确实是一个很好的接触点。于是我们灵光一闪，把未开通的业务图标，以灰色未开通的形式展示在Tip上，而用户鼠标移过灰色图标时，就显示对该项业务的说明，点击则会进入这个业务的详细介绍和开通页面。这个小小的改进对QQ增值业务的开通拉动是非常巨大的，至今我们仍无法估算这个小改进带来的直接经济价值。 创新来自对使用场景的细微观察 在即时通信软件中，人和人沟通最初的方式只有文字。虽然文字传情更有意境，但多媒体、全方位互联网沟通时代早已浩浩荡荡地到来了。在视频、音频多方位沟通的背景下，截图功能是这个历史进程中的一朵奇葩。 两个人在现实中沟通，往往以眼见之实物辅助，而在网络上沟通，往往以眼见屏幕中之物辅助，但首先要能截取并给对方看到。在UI设计师和程序员的合作联调过程中，这样的使用场景太常见了，既然QQ已具备传送图片的功能，为什么不做个截图功能，作为图片来源直接发送给好友呢？ 第一个版本的截图只是简单的截屏、发送给好友。在之后的版本中，我们渐进的在截图功能中加入了标记、文字说明等功能。现在，截图功能这个貌似和即时通信软件不相关的功能，已成了QQ的重要特性之一，甚至是某些用户坚持登录QQ的唯一动力。 大创新可拆解成小创新逐步实现 做产品的人一定很熟悉一句话：资源永远是不够用的。特别是在互联网行业快速迭代的产品节奏下，任何一个功能特性的开发资源都很有限。在有限的资源下，想说服所有人放下其他事情安心实现你的创新大计划几乎是不可能的。这么多年的斗争经验积累下来，在腾讯内部形成了一句话叫“小步快跑”，这句话本用以形容功能迭代，但在创新上其实一样适用。 如果你有一个大的创新计划，需要动员巨大的资源来实现，那么不妨先把它拆解，逐步制作、逐步发布。发布后依据用户反应进行下一步计划：如果反应不好，幸好这时的资源投入还不多，那就偃旗息鼓，还来得及反悔；但如果反应是正向的，提供给你资源的人也会有信心，这时就可以继续推进，逐步地把创新点的最终面貌呈现出来。 保持创新的方向感，做局部创新 中国互联网正处于产品过剩时期。任何一个产品形态在市场上都有上十款免费产品可供选择。虽然份额各有大小，但大家往往都很默契的遵循该形态的一些基本标准。比如：即时通信、邮箱、微博、新闻门户，基本都有已成型的产品形态，用户也习惯了这些产品形态。在这种情况下，全面创新是一种既费力又不符合用户预期的做法。 QQ“主面板”+“聊天窗口”的设计模式，经过十几年的沉淀和发展已经定形，已成为互联网即时通信软件的标准。后来者很少在这个聊天基础体验上做颠覆，但各厂家结合自身业务和资源优势对产品做出创新是常见的。 我们对QQ的基础体验也做过颠覆性的创新尝试，比如主界面摒弃窄面板形式，采用更大的、可容纳更多内容的大界面，但通过用户研究发现市场接受度非常不乐观。 但当我们聚焦到局部创新时，我们发现即使是最基础的“信息输入”体验，可做渐进式创新的点就非常多。我们聚焦在“信息输入”这个小局部，结合用户输入困难，设计和开发出了手写输入、语音输入等功能，很受用户欢迎。 持续渐进创新，为后来者设立门槛 产品体验被模仿的门槛较低。大家都不差钱、不差技术时，一个好的体验创新点，总是很快被竞争对手模仿。但模仿一个点容易，模仿整个思路很难。清晰自己产品的方向，按照思路有节奏的不断创新，始终领跑对手1～2个月，是为后来者设立的最有效的门槛。 手写输入，语音输入 “找朋友”是微信最核心的功能点之一，每个版本创新出新的“找朋友”、“加朋友”的方式，让微信在和竞争对手的赛跑中始终领跑。 在腾讯，渐进式创新的案例数不胜数，维持快速迭代的渐进式创新，是腾讯产品持续成功的重要因素之一。 人类的进步是在不断螺旋重复中上升的。在某些时间点，当渐进式创新进行到一定阶段，会有人进行整合和再创造，量变引发质变，但凭空出现一个划时代创新产品是不可能的。如果你发现了这样的产品，那么很有可能是你对它之前的历史并不了解。 大界面QQ的概念图 从现在起，凝视你手上的产品，承认它的不完美，并发现可进行渐进式创新的方向吧，脚踏实地进行改进，你的产品会在互联网的进化史上，拥有属于自己的位置。（感谢中央美术学院彦风老师对本刊的支持。） 作者唐沐，腾讯用户研究与体验设计中心总经理，腾讯用户研究与体验设计中心的创建者和负责人。自2001年起，唐沐就开始在中国IT界、互联网界研究和推广用户研究和用户体验设计。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F256%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F669%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">腾讯马化腾等当选中国经济十年商业领袖</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F90%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F669%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">国内最大的互动门户腾讯网今天早上被黑客攻击</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F343%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F669%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">腾讯李旬保：WASL-Web应用安全的思考</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F616%2F&from=http%3A%2F%2Fwww.yanghengfei.com%2Farchives%2F669%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">创新能力是中国人必须要学会的</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
		<wfw:commentRss>http://www.yanghengfei.com/archives/669/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

