摘要: 原文地址:一致性hash算法释义 - Haippy - 博客园 http://www.cnblogs.com/haippy/archive/2011/12/10/2282943.html 一致性Hash算法背景 一致性哈希算法在1997年由麻省理工学院的Karger等人在解决分布式C... 阅读全文
posted @ 2016-06-27 11:14 chimmu 阅读(107) 评论(0) 推荐(0) 编辑
摘要: db.runCommand({geoNear:"demo", near: { type: "Point" , coordinates: [118.134535,24.468728]},spherical:true, "query":{"id":"222"}}) 阅读全文
posted @ 2016-06-23 16:53 chimmu 阅读(101) 评论(0) 推荐(0) 编辑
摘要: php调用json_encode将中文字符串存入mysql后读取出来有问题,发现存进去的时候把'\'给去掉了。解决方法是调用json_encode时候后面加JSON_UNESCAPED_UNICODE 如json_encode("测试",JSON_UNESCAPED_UNICODE) ... 阅读全文
posted @ 2016-06-21 11:18 chimmu 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 执行git config --global credential.helper store 阅读全文
posted @ 2016-06-17 14:05 chimmu 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 今天调试phalcon的一个接口时候碰到如下提示: Deprecated: mongogo::mongogo(): The Mongo class is deprecated, please use the MongoClient class in /***/db/mongo.php on l... 阅读全文
posted @ 2016-06-13 11:34 chimmu 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 编译的时候加上-g3 阅读全文
posted @ 2016-06-02 10:46 chimmu 阅读(116) 评论(0) 推荐(0) 编辑
摘要: url:http://www.cnblogs.com/losesea/archive/2012/05/15/2501970.html 阅读全文
posted @ 2016-05-24 14:21 chimmu 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 在centos6.5 x86_64服务器上编译安装完tcc, 版本0.9.25(在github上clone的),似乎一切正常 但当用tcc来编译"hello, world"程序时,却出现如下提示: tcc: undefined symbol '__libc_csu_fini' tcc: unde... 阅读全文
posted @ 2016-05-17 11:29 chimmu 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 趁着最近有时间写了个拉勾爬虫抓取了后端、前端和移动端技术岗位的数据,总共大约6多万条记录,对其取前十名进行统计 按地域划分: 可以看出北上广深杭的数量远远超出其它城市,机会相对较多 2. 按融资阶段来看: 初创型未融资的居多,已上市及A轮的差不多,C轮是最少的,难道就是传说中的C轮魔咒 ... 阅读全文
posted @ 2016-04-28 11:37 chimmu 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 用group by 如有个student表里有性别sex来统计 select sex,count(*) from student group by sex; 阅读全文
posted @ 2016-04-22 11:37 chimmu 阅读(677) 评论(0) 推荐(0) 编辑