2014年11月6日

PHP Warning: strftime(): It is not safe to rely on the system's timezone set

摘要: 当运行一些程序时,在httpd日志中会有如下警告日志:PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timez... 阅读全文

posted @ 2014-11-06 16:46 chenzc 阅读(2974) 评论(0) 推荐(1) 编辑

2014年11月4日

Jackson 使用

摘要: // 序列化出来的 JSON, 不包含值为 NULL 类型字段。mapper.setSerializationInclusion(Include.NON_NULL); Jackson provides a few different mechanisms to configure handli... 阅读全文

posted @ 2014-11-04 17:14 chenzc 阅读(441) 评论(0) 推荐(0) 编辑

2014年7月30日

用vim去掉utf-8 BOM

摘要: 1 '去掉utf-8 BOM 2 :set nobomb 3 '保留utf-8 BOM 4 :set bomb 阅读全文

posted @ 2014-07-30 23:26 chenzc 阅读(498) 评论(0) 推荐(0) 编辑

2014年7月7日

oracle 11g 从 dmp 文件中导出 sql 代码 的方法.

摘要: impdp sys/password full=y dumpfile=bg.dmp nologfile=y sqlfile=bg_dmp.sql备注: bg.dmp 是 dmp 文件, bg_dmp.sql 是导出来的 SQL 代码。 导出的文件和代码都存放在:oracle 安装目录: ap... 阅读全文

posted @ 2014-07-07 17:55 chenzc 阅读(1201) 评论(0) 推荐(0) 编辑

2014年6月16日

git gitosis 添加项目

摘要: example:1,user@my-test:~/perl_src$ git inituser@my-test:~/perl_src$ git add .user@my-test:~/perl_src$ git commit -am "add"2, 在: gitosis-admin 里面添加项目权限... 阅读全文

posted @ 2014-06-16 22:35 chenzc 阅读(380) 评论(0) 推荐(0) 编辑

2014年5月29日

Linux gcc和gdb程序调试用法 {转}

摘要: gcc一般调试格式:gcc -Wall -o test test.c // -wall 显示程序错误详细信息 gcc -v // 显示gcc的版本gcc -o{1,2,3} test test.c // 1,2,3三个级别的优化,优化级别越高编译的时间越长gcc -ggdb3 -Wall -o t... 阅读全文

posted @ 2014-05-29 08:54 chenzc 阅读(433) 评论(0) 推荐(0) 编辑

导航