It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we nee...
分类:
其他好文 时间:
2015-02-25 21:11:19
阅读次数:
141
1、netstat-n|awk‘/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}‘[root@TaoBao~]#netstat-n|awk‘/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}‘
TIME_WAIT2126
FIN_WAIT1137
FIN_WAIT21119
ESTABLISHED5956
SYN_RECV4
LAST_ACK54解析:CLOSED//无连接是活动的或正在进行LISTEN//服..
分类:
其他好文 时间:
2015-02-24 23:31:00
阅读次数:
199
easyui树形显示注意事项:[{"id":"01","text":"商户管理","state":"closed","checked":true,"children":[{"id":"0100","text":"商户管理","state":"closed","checked":true},{&quo
分类:
其他好文 时间:
2015-02-15 16:25:51
阅读次数:
195
Open-Closed Principle软件设计中的“开-闭原则”这个原则最早是由Bertrand Meyer提出,英文的原文是:Software entities should be open for extension,but closed for modification.意思是说,一个软件...
分类:
其他好文 时间:
2015-02-06 00:38:47
阅读次数:
232
Single Responsibility Principle类的设计趋向于:Use Case Diagram --> (derived) --> DetailOpen-Closed Principle/* Software entities should be open for extension...
分类:
其他好文 时间:
2015-02-04 01:58:54
阅读次数:
129
错误信息:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed. 解决方式: 在hibernate的配置...
分类:
数据库 时间:
2015-02-03 19:15:09
阅读次数:
147
错误写法: cxt = new ClassPathXmlApplicationContext(); productService = (ProductService)cxt.getBean("productTypeServiceBean"); 正确写法: cxt = n...
分类:
编程语言 时间:
2015-02-03 13:03:02
阅读次数:
794
1.TCP连接的状态 首先介绍一下TCP连接建立与关闭过程中的状态。TCP连接过程是状态的转换,促使状态发生转换的因素包括用户调用、特定数据包以及超时等,具体状态如下所示:CLOSED:初始状态,表示没有任何连接。LISTEN:Server端的某个Socket正在监听来自远方的TCP端口的连接请求....
CLOSED:这个没什么好说的了,表示初始状态。 LISTEN: 这个也是非常容易理解的一个状态,表示服务器端的某个SOCKET处于监听状态,可以接受连接了。 SYN_RCVD:这个状态表示接受到了SYN报文,在正常情况下,这个状态是服务器端的SOCKET在建立TCP连接时的三次握手会话过程中...
分类:
其他好文 时间:
2015-01-31 14:31:48
阅读次数:
217
符合EasyUI中Tree的Json格式,我们先看一下,格式是如何的[{ "id":1, "text":"My Documents", "children":[{ "id":22, "text":"Photos", "state":"closed", "children":[{ "id":111, ...
分类:
其他好文 时间:
2015-01-30 01:24:20
阅读次数:
127