上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 56 下一页
摘要: 关键点: (1)如果想提高并发的话,还是在一个node上对于同一个application开多个server instance. 1.名词解释 。Replica groups A replica group is the term for a collection of replicate... 阅读全文
posted @ 2014-09-29 10:25 唐僧吃肉 阅读(1141) 评论(0) 推荐(0) 编辑
摘要: 摘要:mongodb相对于mysql的优势在于性能和分布式扩展方面 阅读全文
posted @ 2014-09-23 16:25 唐僧吃肉 阅读(186) 评论(0) 推荐(0) 编辑
摘要: double s1 = score_1.get(entry.getKey().substring(0, 1)); //单字s1得分 double s2 = score_1.get(entry.getKey().substring(1, 2)); //单字s2得分 double s = entr... 阅读全文
posted @ 2014-09-22 20:59 唐僧吃肉 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 推荐系统可以简单看成一个用户-商品的二部分图,推荐算法要做的就是分析用户浏览、收藏、购买的记录,以及用户和商品的其他辅助信息,自动化找到用户喜欢的商品。推荐系统往往规模巨大,以刚刚上市的阿里巴巴为例,其淘宝平台是“10亿用户-10亿商品”的规模。是不是每一个用户都携带了同样价值的信息,对于算法... 阅读全文
posted @ 2014-09-22 20:11 唐僧吃肉 阅读(197) 评论(0) 推荐(0) 编辑
摘要: “#ifdef __cplusplus extern "C" { #endif”的定义 看一些程序的时候老是有 “#ifdef __cplusplus extern "C" { #endif”的定义,搞搞清楚是怎么回事: Microsoft-Specific Predefined... 阅读全文
posted @ 2014-09-18 19:41 唐僧吃肉 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 今天在尝试Python的CGI模块时遇到中文字符不能正确显示的问题,很郁闷.在网上仔细找了找,终于解决了这个问题,现在将解决方法陈述如下,以防下次失误. 页面源代码如下 #-*- coding: utf8 -*- import cgitb , cgi cgitb.enable() ... 阅读全文
posted @ 2014-09-18 17:02 唐僧吃肉 阅读(458) 评论(0) 推荐(0) 编辑
摘要: redis五种数据类型的使用 redis五种数据类型的使用 (摘自:http://tech.it168.com/a2011/0818/1234/000001234478_all.shtml ) 1、String 常用命令: set,get,decr,incr,mget 等。 ... 阅读全文
posted @ 2014-09-16 14:55 唐僧吃肉 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Java http://code.google.com/p/protobuf-java-format/ maven com.googlecode.protobuf-java-format protobuf-java-format 1.2 从protobuf转json Message... 阅读全文
posted @ 2014-09-15 17:21 唐僧吃肉 阅读(12365) 评论(0) 推荐(0) 编辑
摘要: Git global setup: git config --global user.name "xx"git config --global user.email "xx@yy.com Create Repository mkdir projectcd projectgit initt... 阅读全文
posted @ 2014-09-13 16:54 唐僧吃肉 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: url处理 对于一个站点来说,URL 的组织是最重要的一个部分,因为这是用户看得到的部分,而且直接影响到站点是如何工作的,在著名的站点如:del.icio.us ,其URLs 甚至是网页界面的一部分。而web.py 以简单的方式就能够构造出一个强大的URLs。 在每个web.py 应用,必须... 阅读全文
posted @ 2014-09-13 15:39 唐僧吃肉 阅读(393) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 56 下一页