Sqli Lab?支持报错注入、二次注入、盲注、Update注入、Insert注入、Http头部注入、二次注入练习等。支持GET和POST两种方式。 https://github.com/Audi-1/sqli-labsDVWA (Dam Vulnerable Web Application)DVW...
分类:
Web程序 时间:
2014-06-23 07:01:36
阅读次数:
6603
class Solution {public: int searchInsert(int A[], int n, int target) { if (A == NULL || n target) { q = mi; } els...
分类:
其他好文 时间:
2014-06-23 06:29:20
阅读次数:
169
题目链接:http://61.187.179.132/JudgeOnline/problem.php?id=1924题意:思路:首先建立所有可达点之间的有向图。之后求强连通分量SCC,缩点重新构图。然后就是一个树,树形DP一下即可。int n,r,c;map mp;map mp1,mp2;struc...
分类:
其他好文 时间:
2014-06-23 06:20:05
阅读次数:
238
PHP如何防止SQL注入及开发安全[php]function inject_check($sql_str) {$check=eregi('select|insert|update|delete|\'|\/\*|\*|\.\.\/|\.\/|union|into|load_file|outfile',...
分类:
数据库 时间:
2014-06-23 06:07:14
阅读次数:
317
String slicesA segment of a string is called a slice. Selecting a slice is similar selecting a character: The operator [n:m] returns the par...
分类:
其他好文 时间:
2014-06-23 00:53:23
阅读次数:
253
曾今写过一个坑货的数组方法function array_insert($myarray,$value,$position=0){ $fore=($position==0)?array():array_splice($myarray,0,$position); $fore[]=$value; $ret...
分类:
Web程序 时间:
2014-06-23 00:47:05
阅读次数:
265
typedef可以用于定义函数指针类型:【语法】typedef (*)(参数表)typedef (::*)(参数表)【用途】1、可以用来定义该函数类型的函数指针,就不用每次使用函数指针都要写一次函数原型了;2、有了类型名,就可以使用在容器里面,譬如map,用于实现灵活的函数调用。【示例】例1:t.....
分类:
其他好文 时间:
2014-06-23 00:41:13
阅读次数:
198
例如:1KW数据,200个map,100个reduce。(1)map阶段,每个map分别局部排序,得到200个排好顺序的结果(2)对所有的数据进行99个抽样s1,s2...s99(按照顺序排列)(3)根据每个map中数据在抽样数据的前后,将每个map划分成(最多)100个部分m1-1,m1-2......
分类:
其他好文 时间:
2014-06-21 16:23:11
阅读次数:
181
package com.jp.algorithm.sort;/** * 假设我们要对0-7内的5个元素(4,7,2,5,3)排序(这里假设这些元素没有重复)。那么我们就可以采用Bit-map的方法来达到排序的目的。要表示8个数 * ,我们就只需要8个Bit(1Bytes),首先我们开辟1Byte的空...
分类:
其他好文 时间:
2014-06-21 16:20:21
阅读次数:
352
第一种是通过ActionContext来实现;首先通过ActionContext类的静态方法getContext来获取实例;然后可以通过相应的方法就可以获取不同域中的对象;Map getApplication() Map中保存的是ServletContext作用域的对象Map getSession(...
分类:
其他好文 时间:
2014-06-21 14:34:32
阅读次数:
312