#include#include#include#include using namespace
std;template class joseph{ struct node { T data; node * next; node():next(...
分类:
编程语言 时间:
2014-05-26 13:58:27
阅读次数:
215
存储:文件存储: FastDFS数据库: MySQL(集群, mster,
Slave读写分离),缓存: Redis, Memcache前端:Jquery, Angular框架:python django
分类:
Web程序 时间:
2014-05-26 11:16:56
阅读次数:
240
1 Twenproxy介绍
Twemproxy是为memcached或者Redis集群提供一个高速、轻量级代理服务。它的主要用途是降低对缓存server打开的连接数。它的主要特性例如以下:l
保持对缓存server非常低的链接数l 使用管道来发送和响应请求l 使用并发多server连接池l 代理全....
分类:
其他好文 时间:
2014-05-26 10:57:39
阅读次数:
177
原文地址:http://antirez.com/news/52Hello! As
promised today I did some SSD testing.The setup: a Linux box with 24 GB of RAM,
with two disks.A) A spinning ...
分类:
其他好文 时间:
2014-05-26 10:24:56
阅读次数:
427
今天闲来没事干,写个堆排序,用模版类实现的,数据可是任何可比较的类型。代码如下:MySqList.h 1 #ifndef __MYSQLIST 2
#define __MYSQLIST 3 template 4 class MySqList 5 { 6 private: 7 int len...
分类:
其他好文 时间:
2014-05-26 08:18:02
阅读次数:
274
#include#include#include#include using namespace
std;template class joseph{ struct node { T data; node * next; node():next(...
分类:
编程语言 时间:
2014-05-26 06:44:29
阅读次数:
390
模板与泛型编程--模板特化[续]三、特化成员而不特化类 除了特化整个模板之外,还可以只特化push和pop成员。我们将特化push成员以复制字符数组,并且特化pop成员以释放该副本使用的内存:template<>
void Queue::push(const char *const &val)
{
char *new_item = new char[sizeof(val) + 1];
...
分类:
编程语言 时间:
2014-05-24 14:16:21
阅读次数:
339
ImLazy是个人使用的小程序,抽时间在公司写了个ruby版本,未完成equals_verb#
To change this template, choose Tools | Templates# and open the template in the
editor.require "SDK/ve...
分类:
其他好文 时间:
2014-05-24 12:51:59
阅读次数:
496
验证redis的主从复制,将实验过程抓图复制配置文件更改slave的端口
和相关master配置主从复制测试研究在OAuth中的“一次数”nonce有什么用途?怎样使用?以此熟悉OAuth的全流程 nonce
,一个随机的混淆字符串,仅仅被使用一次的数。nonce 用于防御回放攻击和选择明文攻击。使...
分类:
数据库 时间:
2014-05-24 09:35:59
阅读次数:
396
#includeusing namespace std;template class
Stack{ private: struct Node{ Object data; Node * next; Node(cons...
分类:
其他好文 时间:
2014-05-24 09:32:25
阅读次数:
215