会动的耳朵  

2016年5月24日

摘要: 将emoji转换成utf8 然后存储到数据库,但是 效率低 直接mysql支持:需要5.5以上的版本 阅读全文
posted @ 2016-05-24 17:33 会动的耳朵 阅读(2189) 评论(0) 推荐(0) 编辑

2015年7月20日

摘要: 参照:http://stackoverflow.com/questions/7290958/php-fatal-error-call-to-undefined-function-imagettftextJust recompile extension gd.so, under folderphp/e... 阅读全文
posted @ 2015-07-20 22:04 会动的耳朵 阅读(274) 评论(0) 推荐(0) 编辑

2015年7月14日

摘要: mysql使用阿里云的rdshttpd服务1. 安装apr和apr-util2. 安装 httpdapache.org,apr.apache.org安装命令: ./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enabl... 阅读全文
posted @ 2015-07-14 13:24 会动的耳朵 阅读(300) 评论(0) 推荐(0) 编辑

2015年3月28日

摘要: retryTimes = $retryTimes; if(!empty($appKey)) $this->_app_key = $appKey; if(!empty($masterSecret)) $this->_master_... 阅读全文
posted @ 2015-03-28 14:47 会动的耳朵 阅读(688) 评论(0) 推荐(0) 编辑

2015年3月20日

摘要: 最近一直在为移动应用提供 php服务端api,以前 实时交互数据需求不严格(定时从手机端发送http请求),现在业务需求变更,需要实时交互式接口,必须增加socket。服务端框架使用YII 1.1.15,准备加上swoole 扩展,实现需求。但调研中发现yii自带的命令行无法启动 swoole tc... 阅读全文
posted @ 2015-03-20 13:37 会动的耳朵 阅读(231) 评论(0) 推荐(0) 编辑

2015年3月18日

摘要: 首先先了解 身份证号码的编码规则,从百度经验上找到了别人的分享 :http://jingyan.baidu.com/article/7f41ececff944a593d095c8c.html感谢。 15位长度的验证正则是从网上找的,但发现并不是万能的(月份可以出现00,日期可以出现00等),所... 阅读全文
posted @ 2015-03-18 13:30 会动的耳朵 阅读(1219) 评论(0) 推荐(0) 编辑

2015年3月11日

摘要: mac 10.10 系统安装php memcache扩展在使用memcache的时候出现错误dyld: Symbol not found: _mmc_queue_free需要重新编译memcacheMACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-fgnu89-inlin... 阅读全文
posted @ 2015-03-11 20:05 会动的耳朵 阅读(753) 评论(0) 推荐(0) 编辑

2015年2月15日

摘要: 2014年安装了一次,使用U盘启动安装的,但是当时网络有问题,断断续续,没有做详细记录。现在到了杭州,重新来一次。使用U盘安装下载ISO :http://mirrors.163.com/archlinux/iso/max os 制作启动盘:https://wiki.archlinux.org/ind... 阅读全文
posted @ 2015-02-15 20:22 会动的耳朵 阅读(237) 评论(0) 推荐(0) 编辑

2015年1月22日

摘要: 因为启用了rewrite,导致css,js,images等静态文件也定向到index.php我不得不重定向静态文件的路径仅供参考; 1 2 server { 3 listen 80; 4 server_name wap.test.com; 5 6 7 ... 阅读全文
posted @ 2015-01-22 14:08 会动的耳朵 阅读(301) 评论(0) 推荐(0) 编辑

2014年12月25日

摘要: 日式键盘 没有反斜线\,但是有快捷键可以输入:alt+¥ (英文模式下) 阅读全文
posted @ 2014-12-25 13:48 会动的耳朵 阅读(567) 评论(0) 推荐(0) 编辑