Redis的client设计如下:
/* With multiplexing we need to take per-clinet state.
* Clients are taken in a liked list. */
typedef struct redisClient {
int fd;
redisDb *db;
int dictid;
sds que...
分类:
其他好文 时间:
2014-05-10 03:44:21
阅读次数:
292
Oracle will generate something called cursor
after it parse an statement. This thing--cursor will be stored in Library cache,
if next time you need to...
分类:
数据库 时间:
2014-05-10 01:02:22
阅读次数:
579
If you ever had the problem where you need to
extract files from a SharePoint Content Database or normal SQL Database stored
as binary, this post will...
分类:
数据库 时间:
2014-05-09 09:54:59
阅读次数:
495
例子1引入线程概念通过得到当前线程方式循环主线程做某事例子2演示了在主线程之外开启多个线程的基本方式 ( new一个extends Thread )例子3 (
task extends Thread )演示了 把线程类做为一个窗口组件的一个属性当按钮按下时 会new一个task (start在tas...
分类:
编程语言 时间:
2014-05-09 09:01:38
阅读次数:
320
因为在做个小标签的时候需要将部分字符旋转180度,在scn上找了很久也发布了自己的提问,不过最终的结果却不尽人意。Rotated
text in smartforms need use the PCL to control the printer,But part of our
printers w...
分类:
其他好文 时间:
2014-05-08 22:32:20
阅读次数:
471
Why need initialization and cleanup?A large
segment of C bugs occur when the programmer forgets to initialize or clean up a
variable.The class designe...
分类:
编程语言 时间:
2014-05-08 19:13:20
阅读次数:
326
Foreword Need to remove a batch of VMs, which
named with same prefix or belong to same Cloud Service. After remove VMs, should
automatically remove re...
分类:
其他好文 时间:
2014-05-08 09:18:56
阅读次数:
265
安装rlwrap
下载:http://utopia.knoware.nl/~hlub/uck/rlwrap/
或者 百度云盘:http://pan.baidu.com/s/1ntM8YXr
需要先安装readline,否则会报一下错误:You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) t...
分类:
数据库 时间:
2014-05-06 19:36:00
阅读次数:
537
题目链接:http://poj.org/problem?id=1011
这道题用到了深搜+剪枝。
#include
#include
#include
using namespace std;
int a[65];
int vis[65];
int n;
int cmp(int x,int y)
{
return x>y;
}
int dfs(int len,int need,int ...
分类:
其他好文 时间:
2014-05-05 13:28:57
阅读次数:
290
主要功能:实现 网页离线加载。基本思想来源于AFCache。作者是Rob
Napier(IOSX Programming的作者)。使用方法:To build, you will need the Reachability code
from Apple (included). That requir...
分类:
其他好文 时间:
2014-05-04 20:32:05
阅读次数:
1699