配置环境 准备: 三台虚拟机 配置主节点: 1. 查看当前使用网卡 [root@localhost ~]# dmesg | grep -i eth
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
eth0: no IPv6 routers present dmesg是显示开机启动信息...
分类:
系统相关 时间:
2015-03-29 15:15:19
阅读次数:
251
There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. This cha...
分类:
编程语言 时间:
2015-03-19 23:28:10
阅读次数:
317
public?HashSet()?{
????map?=?new?HashMap<>();
}
public?boolean?add(E?e)?{
????return?map.put(e,?PRESENT)==null;
} HashSet是HashMap的key值集合,所以是唯一的...
分类:
其他好文 时间:
2015-03-19 15:01:25
阅读次数:
151
虚拟机Vmware上克隆了一个Red Hat Enterprise Linx启动时发现找不到网卡,如下所示,如果你在命令窗口启动网络服务就会遇到”Device eth0 does not seem to be present, delaying initialization“错误 关于这个错误,搜索...
分类:
系统相关 时间:
2015-03-17 23:24:19
阅读次数:
281
Disclaimer: Here is a complete answer taking the last version of OS X (10.9 AKA Mavericks) into account. I am aware that everything I compiled in this answer is already present in the page, but having...
分类:
系统相关 时间:
2015-03-17 21:53:23
阅读次数:
278
when configure the emacs:?? error like this! You seem to be running X, but no X development libraries were found. You should install the relevant development files for X and for the toolkit you ...
分类:
系统相关 时间:
2015-03-17 10:41:06
阅读次数:
267
Present Situation
GFWGreat Firewall of China
Theory
How ToPresent SituationAs we all know, those who from Mainland China could not enjoy the freedom which brought by the real Internet. For example, we...
分类:
其他好文 时间:
2015-03-16 23:12:10
阅读次数:
694
题意: 输入 n,m,w, n个数,每次将三个连续的w个数+1,加m次,使得最终的序列最大,输出最大序列里的最小的数二分+贪心(详见代码) 1 #include 2 #include 3 #include 4 using namespace std; 5 #define inf 0x3f...
分类:
其他好文 时间:
2015-03-16 23:01:23
阅读次数:
230
跨域错误:XMLHttpRequest cannot load 'url'. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'url' is therefore not all...
分类:
Web程序 时间:
2015-03-16 12:45:18
阅读次数:
161
.nil? , .empty?, .blank? .present? 的区别首先这三个都是判空的。 而 .nil? 和 .empty? 是ruby的方法。 .blank? 是rails的方法.nil? 判断对象是否存在(nil)。不存在的对象都是nil的.empty? 对象已经存在,判断是否为...
分类:
其他好文 时间:
2015-03-13 10:33:36
阅读次数:
203