1.curl192.168.106.58:9200/_cat/health?v 集群健康查看epoch timestamp cluster status node.total node.data shards pri relo init unassign1400639131 10:25:3...
分类:
Web程序 时间:
2015-01-06 13:31:33
阅读次数:
285
class?A(object):????#?A?must?be?new-style?class
??def?__init__(self):???print?"enter?A"
???print?"leave?A"class?B(C):?????#?A?-->?C
??def?__init__(self):???pri...
分类:
编程语言 时间:
2014-12-31 16:35:23
阅读次数:
192
#include"stdio.h"intmain(){intnum=0;inta[100];inti=0;intm=0;intyushu;charhex[16]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};pri...
分类:
编程语言 时间:
2014-12-30 16:53:42
阅读次数:
347
#include #include struct LNode{ int data; struct LNode *next;};void create(struct LNode *L);//创建链表void clearlist(struct LNode *L);//清除链表void pri...
分类:
编程语言 时间:
2014-12-29 10:20:52
阅读次数:
213
#python正则表达式
import re
if __name__=="__main__":
subPattern= "(([a-zA-Z]+)\.)*"
subPattern2= "([a-zA-Z]+)"
pattern= "%s%s@%s%s" % (subPattern, subPattern2, subPattern,subPattern2)
pri...
分类:
编程语言 时间:
2014-12-22 18:01:19
阅读次数:
293
HBase MemStoreFlusher 虽与最新版0.98.7的实现已经有差异,但分析的比较好 MemeStoreFlusher在HRegionServer类中初始化。 HRegionServer实现了Runnable接口,在run方法中针对MemeStoreFlusher进行了初始化 ?pri...
分类:
其他好文 时间:
2014-12-22 16:26:49
阅读次数:
150
S.O.L.I.D.是一组面对面向对象设计的最佳实践的设计原则。术语来自Robert C.Martin的著作Agile Principles, Patterns, and Practices in C#,代表了下面五个设计原则: 1. SRP(Single Responsibility Pri...
分类:
其他好文 时间:
2014-12-22 10:52:44
阅读次数:
184
说明:
(1) http://www.3322.org/dyndns/getip 这个网址可以获取本机IP,读取的内容就是本机IP
(2)方法经测试,可以实现。
(3)参考:http://www.cnblogs.com/ceachy/articles/CSharp_Retrive_Page_Document.html
两种方法:
(1)使用WebClient
pri...
1. 效果图2. 实现代码 1. 配置权限吧 最容易忘记的一件事情 2. 布局文件 3. java文件public class MainActivity extends Activity { private List urlList = new ArrayList(); pri...
分类:
移动开发 时间:
2014-12-14 11:50:46
阅读次数:
195
循环结构:1.goto无条件转移语句//goto//无条件转移语句////label://goto label;//goto 结合if语句使用//尽量不要使用goto//只能在当前函数内跳转int main(int argc, const char * argv[]){ int i=0;pri...
分类:
编程语言 时间:
2014-12-13 14:57:30
阅读次数:
180