Archiv der Kategorie: Uncategorized
更换 git 的用户名字
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config –global user.name „Your Name“
git config –global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit –amend –reset-author
IE VM Box
Microsoft 开始提供完整的ie虚拟机供开发人员测试。
http://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCIQFjAA&url=http%3A%2F%2Fwww.modern.ie%2Fvirtualization-tools&ei=yQKfU9acIeK-sQTktIKgCg&usg=AFQjCNElNXTTGVhxcY8E0WuLbTGwKlADkw&bvm=bv.68911936,d.cWc
code to find the doubled value in array
$a = file('TJ.csv');
$b = array_count_values($a);
print_r(array_search(2, $b));
[PHP] PSR Documenet in Chinese on github
http://feiyang.me/2013/03/php-psr-in-chinese/
or
https://github.com/hfcorriez/fig-standards
How do AOP in PHP and Annotation in PHP
Brother Samwer
德国互联网行业的Samwer兄弟可谓是风云人物。下面是台湾的inside做的一篇详细报道。
http://www.inside.com.tw/2011/06/30/germany-samwer
php升级到5.5的问题
周末同事升级了php,升到5.5, 之前是5.3.
周一上班发现很多问题,主要集中如下
1. datetime 出现问题。这个问题其实应该是5.4的改动 。
在 日期与时间扩展 中,不再支持时区使用 TZ(TimeZone)环境变量设置。必须使用 date.timezone php.ini 配置选项或 date_default_timezone_set() 函数来指定时区。PHP 将不再尝试猜测时区,而是回退到“UTC”并发出一条
E_WARNING
错误。
2. 第二个问题是 mysql 的连接问题。出现的错误是
SQLSTATE[HY000] [2002] No such file or directory
[PHP] High performance for in_array
Why do you need the third parameter for in_array:
Chinese:
http://www.zendstudio.net/archives/php-in_array-s-low-performance/
Auf deutsch, gib es änliche Thema:
http://www.phpgangsta.de/php-in_array-die-performance-bremse
Add git branch in prompt under Mac OSX
I found a article to do this:
http://www.phpvim.net/os/mac/git-branch-in-bash-prompt.html
It works.