代码改变世界

get_object_vars($var) vs array($var)

2015-09-07 20:46 by brookin, 268 阅读, 0 推荐, 收藏, 编辑
摘要:get_object_vars($var) vs array($var) test case class Test { public function actionGetObjectVarsVsArrayCast() { $obj = new TestA(); println... 阅读全文

mount: unknown filesystem type 'ntfs'

2015-08-26 23:28 by brookin, 1443 阅读, 0 推荐, 收藏, 编辑
摘要:# mount: unknown filesystem type 'ntfs' #**问题描述** # mount –t ntfs /dev/sdc1 /mnt/usb2 mount: unknown filesystem type ‘ntfs’原因:系统无法识别ntfs格式分区**解决办法**编译... 阅读全文

mysql 大小写 整理

2015-08-18 23:18 by brookin, 1137 阅读, 0 推荐, 收藏, 编辑
摘要:mysql字段的值默认不区分大小写,如果有主键的表,主键列就不能插入重复的值(大小写不同)## 实验 ##**默认方式创建** CREATE TABLE `t1` ( `ID` varchar(40) CHARACTER SET utf8 NOT NULL, `NAME` varchar(2... 阅读全文

Slave failed to initialize relay log info structure from the repository

2015-08-17 20:22 by brookin, 717 阅读, 0 推荐, 收藏, 编辑
摘要:## 现象 ##查看slave 服务状态 show slave status\G;错误 Last_Errno: 1872 Last_Error: Slave failed to initialize relay log info structure from the repository## 原因 ... 阅读全文

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

2015-08-15 22:26 by brookin, 1351 阅读, 0 推荐, 收藏, 编辑
摘要:# ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) ### 背景: ## mysql -uroot -p123456 提示: ERROR 200... 阅读全文

zendstudio 声明变量类型,让变量自动方法提示

2015-07-27 10:30 by brookin, 342 阅读, 0 推荐, 收藏, 编辑
摘要:zendstudio 行内注释, 显式声明变量类型,让变量自动方法提示 $out = []; /* @var $row \xxyy\SizeEntity */ foreach ($rows[ 'list'] as $row) { $out[ '... 阅读全文

linux /usr/bin/ld: cannot find -lxxx

2015-07-23 23:34 by brookin, 375 阅读, 0 推荐, 收藏, 编辑
摘要:在linux环境编译应用程式或lib的source code时出现如下错误:/usr/bin/ld: cannot find -lxxx这些讯息会随着编译不同类型的source code 而有不同的结果出来如:/usr/bin/ld: cannot find -lc/usr/bin/ld: cann... 阅读全文

chm手册显示已取消到该网页的导航

2015-06-23 19:47 by brookin, 330 阅读, 0 推荐, 收藏, 编辑
摘要:解决:在chm右键查看有没有解除锁定选项。1、右键单击chm文件,选择属性;2、在最下面点击“解除锁定”并确定后,再次打开chm,就正常了 阅读全文

安装 composer SSL operation failed with code 1

2015-04-14 20:23 by brookin, 3989 阅读, 0 推荐, 收藏, 编辑
摘要:gavin@webdev:~> curl -sS https://getcomposer.org/installer | phpDownloading...Download failed: file_get_contents(): SSL operation failed with code 1. ... 阅读全文

protoc-gen-php --php_out: protoc-gen-php: Plugin output is unparseable.

2015-04-13 23:54 by brookin, 5101 阅读, 0 推荐, 收藏, 编辑
摘要:背景业务需要用protobuffer 进行通讯。client: phpserver: c++在github 上找到Protobuf-PHP(https://github.com/drslump/Protobuf-PHP) 的评分不错,故采用它作为协议生成库来生成PHP侧的交互协议。问题生成php p... 阅读全文
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页