有时候,查看服务器日志时会发现某些人的恶意登录记录: 这时候,我们就要把这个ip封掉。 首先ping一下这个ip: 然后打开monowall路由页面,点击Firewall-->Rules: 点击下方的,添加一个规则,然后更改: Action ==> Block Proto...
分类:
其他好文 时间:
2015-01-22 01:36:48
阅读次数:
169
mysql导入数据load data infile用法
基本语法:
load data [low_priority] [local] infile 'file_name txt' [replace | ignore]
into table tbl_name
[fields
[terminated by't']
[OPTIONALLY] enclosed by '']
[escap...
分类:
数据库 时间:
2015-01-21 11:37:40
阅读次数:
265
题意 质因数只可能有2,3,5的数称为丑数 输出第1500个丑数
STL优队列应用 1是丑数 丑数的2,3,5倍都是丑数 用优先队列模拟就行了
#include
#include
#include
#include
using namespace std;
typedef long long ll;
//priority_queue, greater > q;
struct...
分类:
其他好文 时间:
2015-01-20 22:20:23
阅读次数:
233
1. Business rules are an important part of the business domain. They define data validation and other constraints that need to be applied on domain ob...
分类:
其他好文 时间:
2015-01-20 20:11:50
阅读次数:
424
个人需求,仿着CI的表单验证写了一个自己的验证类 1.定义验证类 CI =& get_instance(); //读取验证类配置文件 TODO } public function set_rules($field, $rules = '') { //如果field是数组,我们遍历它并递归调用这些验证...
分类:
其他好文 时间:
2015-01-19 20:46:48
阅读次数:
394
Data Structures 基本数据结构Dictionaries 字典Priority Queues 堆Graph Data Structures 图Set Data Structures 集合Kd-Trees 线段树Numerical Problems 数值问题Solving Linear E...
分类:
其他好文 时间:
2015-01-19 14:10:41
阅读次数:
312
Queuing
Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
Queues and Priority Queues are data structures which are known to most comp...
分类:
其他好文 时间:
2015-01-17 16:36:07
阅读次数:
201
#include using namespace std;/*priority_queue只允许在底端加入元素,并从顶端取出元素,其内部元素不是依照被推入的次序排列,而是自动按照元素的权值排列,权值最大的元素排在最前面缺省情况下priority_queue是利用一个max_heap完成*/templ...
分类:
其他好文 时间:
2015-01-17 13:51:18
阅读次数:
123
今天帮一个同学的朋友安装win7, 竟然安不上,很久没有出现安不上系统了, 后来发现他的笔记本是新的类型,预先注意事项为:1,启动的时候,使用 Fn+F2进入 BIOS.2,将Boot中的Boot Mode设置为Legacy Support,并将Boot Priority设置为 Legacy Fir...
这个题是个高中的物理公式,只要细节处理好就能过(现在最怕的就是细节啊)~~
题目大意:
城市A、B之间有一条路,长度为l,在距离A城市d的位置放置了限速标志,意味着到那个点的时候速度必须不大于限制速度。现有一车在城市A出发,车的加速度为a,最大速度为v,求通过这条路的最小时间。车出发时的速度为零。
解题思路:
套物理公式,分类讨论
下面...
分类:
其他好文 时间:
2015-01-15 13:02:21
阅读次数:
154