1、RBT#include "stdafx.h"#include#include#include#include#include#define maxn 1111111#define RED 0#define BLACK 1#define nil 0using namespace std;int n...
分类:
其他好文 时间:
2014-11-28 00:55:35
阅读次数:
311
今天搭建logsatsh+redis+elasticsearch时出现了问题,经过近一小时排查,终于解决。记录一下。
环境是这样,一台客户端发送数据到位于服务器的redis,服务器端的logstash读redis的数据,存储到elasticsearch中。
初步问题是这样的:在服务器端,没有收到客户端发送过来的日志。
这样就可能有两种问题:一是客户端的logstash没有成功发送数据到red...
分类:
其他好文 时间:
2014-11-27 20:31:10
阅读次数:
185
Red and BlackTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10133Accepted Submission(s): 6321Prob...
分类:
其他好文 时间:
2014-11-27 15:52:47
阅读次数:
148
Qt的皮肤设计,也可以说是对Qt应用程序的界面美化,Qt使用了一种类CSS的样式规则QSS。一、Style Sheet的应用1.直接在程序代码中设置样式,利用setStyleSheet()方法widget->setStyleSheet("color:red"); //widget内字体颜色为红色wi...
分类:
其他好文 时间:
2014-11-27 15:52:22
阅读次数:
177
1 //add addCssRule('.bcd',{'color':'red','font-weight':'bold','font-size':'12px'},document.styleSheets[1]); 2 function addCssRule(selector,styl...
分类:
编程语言 时间:
2014-11-27 12:19:36
阅读次数:
224
<html>
<head>
<title>
事件冒泡与事件捕获示例
</title>
<styletype="text/css">
div{
color:red;
}
</style>
</head>
<body>
<divid="myDiv"class="main"onclick="alert(‘clickdiv‘);">
&..
分类:
编程语言 时间:
2014-11-27 10:53:15
阅读次数:
184
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:
其他好文 时间:
2014-11-27 06:44:23
阅读次数:
118
事件冒泡与事件捕获示例
div{
color:red;
}
div接受点击事件
List item 1
List item 1.1
List item 1.2
List item 1.3
var btn=document.getElemen...
分类:
编程语言 时间:
2014-11-27 00:16:55
阅读次数:
334
"green","", "red","b" => "green", "","blue", "red","c" => "witer","hello","witer");//$result = array_unique($input); //去除重复元素$result = a_array_unique....
分类:
编程语言 时间:
2014-11-26 18:48:40
阅读次数:
177
InstallationDownload, extract and compile Redis with:$ wget http://download.redis.io/releases/redis-2.8.17.tar.gz$ tar xzf redis-2.8.17.tar.gz$ cd red...
分类:
系统相关 时间:
2014-11-26 18:45:11
阅读次数:
195