ES是分布式的。当document被create,update,或者delete,这个document的新版本就会冗余到cluster的其他node中。ES是异步和并发的,意味着冗余请求也是并行进行的,并且请求到达也是无次序的。因此需要一个方式保证老版本的document不能重写新版本的数据。如上所...
分类:
其他好文 时间:
2014-05-20 02:31:47
阅读次数:
499
比windows下真是方便很多,爱上ubuntu1:首先安装apache:打开终端(ctrl+Alt+t),输入命令:sudo
apt-get install apache2即可安装,安装完后,打开浏览器,在地址栏输入:localhost或者http://127.0.0.1看到It
works,表示...
分类:
数据库 时间:
2014-05-20 02:24:54
阅读次数:
394
QuicklinksIf you already know what are the
features of the new plug-in and just want to know how to install/use it, you can
directly skip to:J-Link in...
分类:
系统相关 时间:
2014-05-17 14:32:55
阅读次数:
890
字典树
#ifndef TIRE_H_INCLUDED
#define TIRE_H_INCLUDED
/*
** 字典树
*/
#define MAX 26
typedef struct Node
{
int num;
struct Node* next[MAX];
}Tire;
/*
** 创建一个节点
*/
Tire* create(void);
/*
*...
分类:
其他好文 时间:
2014-05-16 02:52:23
阅读次数:
246
线段树
#ifndef LINETREE_H_INCLUDED
#define LINETREE_H_INCLUDED
typedef struct Node
{
int i, j; // 表示线段树区间[i, j]
int cover; // 表示区间被覆盖的次数
stru...
分类:
其他好文 时间:
2014-05-16 01:54:46
阅读次数:
234
环境: "Ubuntu 13.10" 安装: apt-get install munin
munin-nodeapt-get install apache2配置:1. vim /etc/munin/munin.conf dbdir
/var/lib/muninhtmldir /var/c...
分类:
其他好文 时间:
2014-05-16 00:05:58
阅读次数:
455
第一步先安装LaTex,这里我装的是texlive,在ubuntu下可以使用以下命令来安装
sudo apt-get install texlive
然后安装一个编辑器,ubuntu下有很多LaTex编辑器,比如texmaker、texstudio等,我先安装了texmaker,但因为快捷键冲突问题导致texmaker基本无法使用,百度知道提问无果,索性换了texstudio,对比发现其实...
分类:
其他好文 时间:
2014-05-15 23:14:15
阅读次数:
555
原理都很简单,关键是某些边界能否正确写对:
#include
#include
using namespace std;
class Node {
public:
int val;
Node* next;
Node(int val = 0):val(val),next(NULL){
}
};
Node* quicksort(Node* head, Node* tai...
分类:
其他好文 时间:
2014-05-15 20:27:36
阅读次数:
296
1、gem安装出现下面错误
root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https...
分类:
其他好文 时间:
2014-05-15 18:19:48
阅读次数:
304
5道题目分别是:【Triangle】、【Pascal's Triangle】、【Pascal's Triangle II 】、【Populating Next Right Pointers in Each Node 】、【Populating Next Right Pointers in Each Node II】,由于有一些题目不需要发一整篇博文来记录,所以就将这些题目以一篇博文5道来记录...
分类:
其他好文 时间:
2014-05-15 18:19:07
阅读次数:
272