上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 56 下一页
摘要: 1 responce添加Set-Cookie参数: http request的返回responce为; [('Content-Type', 'application/x-javascript'), ('P3P', 'CP="CAO DSP COR CUR ADM DEV TAI PSA PS... 阅读全文
posted @ 2013-12-27 18:02 唐僧吃肉 阅读(1309) 评论(0) 推荐(0) 编辑
摘要: 摘要bycrazyhacking: typedef 是定义了一种“函数指针”类型,可以再声明很多变量。函数指针的定义是定义了一个变量。 int max(int x,int y){ return(x>y?x:y); } 1.定义函数指针类型: typedef int... 阅读全文
posted @ 2013-12-27 11:28 唐僧吃肉 阅读(666) 评论(0) 推荐(0) 编辑
摘要: /usr/local/bin/uwsgi --ini etc/bfdds_conf.ini 阅读全文
posted @ 2013-12-24 12:07 唐僧吃肉 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1、在.proto文件中定义消息格式 2、使用protobuf编译器 3、使用c++ api来读写消息 0、为何使用protobuf? 1、原始内存数据结构,可以以二进制方式sent/saved.这种方式需要相同的内存布局和字节序。 2、以ad-hoc方式将数据项编码成一个简单... 阅读全文
posted @ 2013-12-22 21:55 唐僧吃肉 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 摘要:set add replace get delete gets cas stats 和 flush_all 命令 获取所有key .你可以使用MemCachedClient的statsItems(),statsSlabs()组合获取key。这也就是所谓的快速keySet;但返回的k... 阅读全文
posted @ 2013-12-22 17:38 唐僧吃肉 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 一 首先,启动ice grid 1 修改配置文件 node.cfg,appication.xml 修改registry.cfg 配置注册表信息: IceGrid.Registry.Client.Endpoints=default -h alg-1 -p 10033, // regis... 阅读全文
posted @ 2013-12-21 22:42 唐僧吃肉 阅读(868) 评论(0) 推荐(0) 编辑
摘要: 一 理论部分 (1) 为什么要使用icebox? icebox server代替了通常的server. icebox是为了方便集中管理多个ice服务而建立的。 它通过使用icebox服务器,把ice服务注册进去,从而建立联系。 所以它除了建立传统的ice服务器,ice客户端,主要是配置icebo... 阅读全文
posted @ 2013-12-21 17:33 唐僧吃肉 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: 资料收集 数据结构可视化 http://www.cs.usfca.edu/~galles/visualization/Algorithms.html 阅读全文
posted @ 2013-12-20 21:11 唐僧吃肉 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 今天来介绍一下“Protocol Buffers”(以下简称protobuf)这个玩意儿。本来俺在构思“生产者/消费者模式”系列的下一个帖子:关于生产者和消费者之间的数据传输格式。由于里面扯到了protobuf,想想干脆单独开一个帖子算了。 ★protobuf是啥玩意儿? 为... 阅读全文
posted @ 2013-12-19 19:46 唐僧吃肉 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 待补充 一 理论准备 一个IceGrid集群有一个registry(注册表,用于定位)和多个node组成。 IceGrid配置包括集群配置和应用配置: config.grid是集群配置,配置Registry,Node,Server的信息。 application.xml是应用部署文件... 阅读全文
posted @ 2013-12-18 10:22 唐僧吃肉 阅读(678) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 56 下一页