It is not safe to rely on the system’s timezone settings.

Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system’s timezone settings. Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘UTC’ for ’8.0/no DST’ instead in C:\Apache2.2\htdocs\phpinfo.php on line 2 . . . → Read More: It is not safe to rely on the system’s timezone settings.

Apache、Nginx、Lighttpd对比

Apache

  • * 经典的Web服务器
  • * 除了慢没有别的缺点了
  • * 对了,Apache2对fcgi支持并不好
  • * 非常好用的proxy和proxy_ajp(很多人用它作为tomcat的前端)
  • * 不支持epoll(这年头,epoll几乎是性能的必备)

Continue reading »Apache、Nginx、Lighttpd对比

htaccess Rewrite重定向

最近在弄htaccess Rewrite重定向,很多语法生疏了,有找了一番,分享一下。 

RewriteEngine On|Off

RewriteEngine 可用On 或者 Off 打开或关闭rewrite功能。
rewrite configurations 不会继承,所以你得给每个你想用 rewrite功能的virtual host加上这个指令。

RewriteBase URL-path Continue reading »htaccess Rewrite重定向

程序员大话vs2010

我装了VS2010之后,发现它既不能点一个按钮就毁灭银河系,也不能敲个回车就把钱包里的钱翻番,更可气的是它竟然不能运行在小霸王上面,也不支持心感感应编程。出于MS的名气,我还是把它推荐给了朋友,甲装完之后表示很愤怒,因为它不能使自己WOW的账号免点卡,乙装完之后出离的愤怒,因为他发现自己硬盘空间少了,这么先进的东西不是应该把硬盘空间翻倍的吗?我无言以对,只能默默的把VS2010卸载。

Continue reading »程序员大话vs2010

Simple is not Easy

实际上,应该是“简单并不容易”,也就是Simple is not Easy.在我们的日常口语中,简单和容易之间的区别真是微妙。实际我们都知道,simple is quite often Difficult.

好吧,我现在已经能准确的理解simple不是easy这个语义上的分别了,所以就开始对 What is the simplest thing? 有点兴趣了,因为大家越来越多的说YAGNI和TSTCPW。不过,Udi Dahan告诉大家It’s does not matter,因为

The reason it doesn’t matter is that we don’t have to be 100% right the first time is because we’re going to be changing it over, and over, and over again.

只要我们沿着TDD经典的Red/Green/Refactoring小步快跑, Continue reading »Simple is not Easy