题意:对序列取出连续的一段接到剩下的第k个值后面,或者把一段序列反转。解题思路:splay 区间操作。解题代码: 1 // File Name: hdu3487.cpp 2 // Author: darkdream 3 // Created Time: 2015年04月09日 星期四 10时1...
分类:
其他好文 时间:
2015-04-09 13:42:08
阅读次数:
132
mysql -uroot -p root GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘root‘ WITH GRANT OPTION; /sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT...
分类:
数据库 时间:
2015-04-09 10:45:57
阅读次数:
123
centos IPTables 配置方法 CentOS 配置防火墙操作实例(启、停、开、闭端口)
分类:
其他好文 时间:
2015-04-08 18:21:08
阅读次数:
311
Problem Description:
Aekdycoin and abcdxyzk are playing a game. They get a circle chain with some beads. Initially none of the beads is painted. They take turns to paint the chain. In Each turn one p...
分类:
其他好文 时间:
2015-04-08 18:14:42
阅读次数:
175
#uname-r
2.6.32-504.el6.x86_64下载kernel-2.6.32-504.el6.src.rpm和iptables-1.4.7-14.el6.src.rpmhttp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/下载iptables-1.4.20.tar.bz2ftp://ftp.netfilter.org/pub/iptables下载netfilter-layer7-v2.22.tar.gzh..
分类:
其他好文 时间:
2015-04-08 16:48:50
阅读次数:
466
iptables是Linux内核中内置的防火墙,可以允许管理员通过设置table,chain以及相关的规则来进行数据包过滤和NAT。一般来讲,iptables防火墙已经内置于CentOS6及其他Linux版本中,而且iptables服务默认都是启动的。iptables应用于IPv4,如果要用IPv6,需要使用ip6tables.查看当前..
分类:
系统相关 时间:
2015-04-08 16:43:49
阅读次数:
192
[root@i-d99cdn63~]#vi/etc/iptables_settings.sh
[root@i-d99cdn63~]#more/etc/iptables_settings.sh
#!/bin/sh-e
#----------------------------------------------------------
#iptablessettings
#----------------------------------------------------------
#Connectio..
分类:
Web程序 时间:
2015-04-08 16:43:21
阅读次数:
208
在没有硬件防火墙的前提下,Linux系统也提供了很完善的防火墙策略Iptable,同样能胜任防火墙的策略,但由于规则负责的原因很少被使用。我总结一下iptable的使用方法。通常防火墙策略配置文件所在的路径为/etc/sysconfig/iptables#Generatedbyiptables-savev1.4.7onWedApr813:50..
分类:
系统相关 时间:
2015-04-08 16:41:45
阅读次数:
216
职责链模式(Chain of Responsibility)(对象行为型) :使多个对象都有机会处理请求,从而避免请求的发送者和接收者之间的耦合关系。将这些对象连成一条链,并沿着这条链传递该请求,直到有一个对象处理它为止。(Avoid couplingthe sender of a request ...
分类:
其他好文 时间:
2015-04-07 19:19:13
阅读次数:
139
原文地址:http://www.cnblogs.com/java-my-life/archive/2012/05/28/2516865.html在阎宏博士的《JAVA与模式》一书中开头是这样描述责任链(Chain of Responsibility)模式的: 责任链模式是一种对象的行为模式。在责任....
分类:
编程语言 时间:
2015-04-07 15:17:54
阅读次数:
161