1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state --state ...
分类:
数据库 时间:
2014-10-01 17:02:01
阅读次数:
236
We can change the state of an object by making an assignment to one of its attributes. For example, to change the size of a rectangle without changing...
分类:
其他好文 时间:
2014-09-30 02:18:01
阅读次数:
190
最近在用ruby的一些库的时候,总是出现这个错误。在使用net/imap库的时候,或者net/http库(主要是用到了https,https是用了ssl) 的时候,具体如下:错误提示:E:/Ruby200/lib/ruby/2.0.0/net/imap.rb:1454:in `connect': S...
分类:
其他好文 时间:
2014-09-29 21:12:11
阅读次数:
631
题目来源:To the Max题目大意:给定一个N*N的矩阵,求该矩阵中的某一个矩形,该矩形内各元素之和最大,即最大子矩阵问题。解题方法:最大子序列之和的扩展解题步骤:1、定义一个N*N的矩阵state,state[j][k]用来存放矩阵的某行中第j到k个元素的最大值;2、对于行如何处理呢?我们可以...
分类:
其他好文 时间:
2014-09-29 04:10:06
阅读次数:
216
在Python中定义函数的时候,可以使用参数默认值的方式定义函数例子:1 def welcome(who,state='is',action='talking'):2 print(who,state,action)调用函数:1 welcome('Tom')输出Tom is talking1 ...
分类:
编程语言 时间:
2014-09-27 16:33:59
阅读次数:
195
本章应该结合gen_fsm(3)来阅读,其中面有所有接口函数和回调函数的详细说明。有限状态机一个有限状态机FSM,可以用一个关系式来描述:State(S) x Event(E) -> Actions(A), State(S’)这些关系解释如下:如果我们处在状态S并且事件E发生了,那么,我们需要执行动...
分类:
其他好文 时间:
2014-09-27 13:27:39
阅读次数:
285
Last night , I attended writting examination for Bai Du,There is a problem, ask us implement a state machine to deleting the comments in c,I don't k.....
分类:
编程语言 时间:
2014-09-27 10:43:39
阅读次数:
178
A multi-way cache system includes multi-way cache storage circuitry, a pseudo least recently used (PLRU) tree state representative of a PLRU tree, the...
分类:
其他好文 时间:
2014-09-26 12:48:39
阅读次数:
314
1 #include 2 #include 3 4 class WordCounter 5 { 6 enum class _state 7 { 8 STATE_INIT = 0, 9 STATE_IN_WORD,10 STATE...
分类:
其他好文 时间:
2014-09-26 00:53:08
阅读次数:
175
1、cookie机制Cookies是服务器在本地机器上存储的小段文本并随每一个请求发送至同一个服务器。IETF RFC 2965 HTTP State Management Mechanism 是通用cookie规范。网络服务器用HTTP头向客户端发送cookies,在客户终端,浏览器解析这些coo...
分类:
其他好文 时间:
2014-09-25 21:49:07
阅读次数:
172