什么是 SLOWLOG
Slow log 是 Redis 用来记录查询执行时间的日志系统。
查询执行时间指的是不包括像客户端响应(talking)、发送回复等 IO 操作,而单单是执行一个查询命令所耗费的时间。
另外,slow log 保存在内存里面,读写速度非常快,因此你可以放心地使用它,不必担心因为开启 slow log
而损害 Redis 的速度。
设...
分类:
其他好文 时间:
2014-07-30 20:46:04
阅读次数:
465
题意:典型的线段树C,Q问题,有n个数a[i] (1~n),C, a, b,c在[a,b]区间增加c
Q a b 求[a,b]的和。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#defi...
分类:
其他好文 时间:
2014-07-30 20:45:24
阅读次数:
242
RTOS里面最常见也最核心的数据结构,双向链表实现VS 2008下可编译测试。/** @file
Copyright (c) 2008 - 2014, MX.Studio
All rights reserved.
Created by Cstyle
**/
#ifndef _LIST_H_
#define _LIST_H_
#ifdef __cplus...
分类:
其他好文 时间:
2014-07-30 20:44:44
阅读次数:
407
Description
Let us define a regular brackets sequence in the following way:
1. Empty sequence is a regular sequence.
2. If S is a regular sequence, then (S) and [S] are both regular sequences....
分类:
其他好文 时间:
2014-07-30 20:44:34
阅读次数:
267
RTOS里面最常见的以及最核心的数据结构,队列的实现。可在VS2008 下编译测试。
/** @file
Copyright (c) 2008 - 2014, MX.Studio
All rights reserved.
Created by Cstyle
**/
#ifndef _QUEUE_H_
#define _QUEUE_H_
#ifdef ...
分类:
其他好文 时间:
2014-07-30 20:44:14
阅读次数:
344
Cutting Sticks
You have to cut a wood stick into pieces. The most affordable company, The Analog Cutting Machinery, Inc. (ACM), charges money according to the length of the stick being cut...
分类:
其他好文 时间:
2014-07-30 20:44:04
阅读次数:
263
在安装vistual studio 2012过程中,出现安装失败,提示Microsoft Vistual Studio 2012 Devenv找不到元素,等错误信息
解决方法是更新对应的服务器补丁,更新完成后,重新安装vistual studio 2012,就可以通过....
分类:
其他好文 时间:
2014-07-30 20:43:54
阅读次数:
308
方法一:
NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"查看所有中奖记录"];
NSRange strRange = {0,[str length]};
[str addAttribute:NSUnderlineStyleAttributeName ...
分类:
其他好文 时间:
2014-07-30 20:43:44
阅读次数:
468
Primitive Roots
题目链接:http://poj.org/problem?id=1284
利用定理:素数 P 的原根的个数为euler(p - 1)
typedef long long ll;
using namespace std;
/*
求原根
g^d ≡ 1(mod p) 其中d最小为p-1,g 便是一个原根
复杂度:O(m)*lo...
分类:
其他好文 时间:
2014-07-30 20:43:34
阅读次数:
260
No connection could be made because the target machine actively refused it 127.0.0.1:8888你妹的微软用的Win7系统,今天打开WindowsUpdate,升级了几个补丁,然后安装了最新的IE11,结果发现VS调用...
分类:
其他好文 时间:
2014-07-30 20:42:24
阅读次数:
303
1:在会员注册记录表中,通过结算时间可以查找一定时间内的会员信息,然后将这些时间段内的会员进行奖金结算。2:得到一个会员的详细信息,包括会员ID、会员姓名、会员安置人、会员推荐人、该会员所在的层、会员在该层所处的位置。3:通过上层等到的安置人ID ,我们可以通过查找job_users表中该安置人的对...
分类:
其他好文 时间:
2014-07-30 20:41:54
阅读次数:
223
最近在做项目时使用了tempo,感觉还不错,但是发现网上对于tempo 2.0 的介绍比较少,我也是在GitHub才找到了比较完整的使用说明,我也简单记录一下自己的使用过程,重新学习一下tempo 2.0 ,不喜勿喷,喜欢看英文的朋友请移步tempo 2.0 英文说明 .1.引入tempo.js2....
分类:
其他好文 时间:
2014-07-30 20:41:44
阅读次数:
318
C语言的int类型与开发环境平台有关,可能是16位(2^16),也可能是32位(2^32),估计现在大多数开发环境都是用32位的,所以范围远远超出65535,可达到4294967296.unsigned int 0~4294967295int ...
分类:
其他好文 时间:
2014-07-30 20:41:34
阅读次数:
158
1:dedecms文章录入的时候,如何控制文章重复. 在dede/article_add.php里面,加入该程序就OK了 if($cfg_check_title == 'Y'){ $has = $dsql->GetOne("select * from dede_archives where titl...
分类:
其他好文 时间:
2014-07-30 20:41:24
阅读次数:
243
设计模式目录:设计模式 1 ——观察者模式设计模式 2 —— 装饰者模式设计模式 3 —— 迭代器和组合模式概要
分类:
其他好文 时间:
2014-07-30 20:41:14
阅读次数:
155
【本文简介】一个servlet文件下载的简单例子。【文件夹结构】【java代码】 1 package com.zjm.www.servlet; 2 3 import java.io.BufferedInputStream; 4 import java.io.BufferedOutputStream....
分类:
其他好文 时间:
2014-07-30 20:41:04
阅读次数:
343