iptables四表:filter,nat,mangle,raw;五链:PREROUTING,INPUT,OUTPUT,FORWARD,POSTROUTING。通常查看的表:filter(默认),nat:查看filter表:查看nat表:编写表(定义规则):数据的流向分为源和目标两种类型:源和目标都是相对于iptables而言,数据包经由iptables,数据的发..
分类:
其他好文 时间:
2014-08-20 14:24:03
阅读次数:
358
Simply with output redirection:system_profiler > file.txtBasically, this will take the output of system_profiler and save it to the file file.txt. The...
分类:
其他好文 时间:
2014-08-20 11:57:42
阅读次数:
169
资料1
-- Created on 2014/8/20
declare
-- Local variables here
i integer;
begin
i := 12;
-- Test statements here
DBMS_OUTPUT.put_line(i);
end;
资料2
declare
cursor s is
...
分类:
数据库 时间:
2014-08-20 09:20:36
阅读次数:
228
例子:往商品表插入的同时,也将对应的多个分类加入到商品分类表中create PROCEDURE TProduct_ADD@ProID bigint output, --自动编号@ISBN nvarchar(50),@pCode nvarchar(100),@pName nvarchar(200),@...
分类:
其他好文 时间:
2014-08-20 09:14:06
阅读次数:
213
module ActiveRecord module ConnectionAdapters module Sqlserver module DatabaseStatements def sql_for_insert(sql, pk, id_value, sequenc...
分类:
数据库 时间:
2014-08-19 18:28:25
阅读次数:
209
在erlang查看占用内存最多的进程,可以用etop,在终端输入下面语句:spawn(fun()->etop:start([{output,text},{interval,1},{lines,20},{sort,memory}])end).但etop有时会启动不起来,循环是系统比较繁忙的时候,这时可以用下面的方法:%%查找最大内存的进程
find_max_memory_..
分类:
其他好文 时间:
2014-08-19 16:54:25
阅读次数:
191
----SET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GOCreate Procedure vipinsert(@RETURN bit output)ASBEGIN BEGIN TRANSACTION insert into bas...
分类:
其他好文 时间:
2014-08-19 12:19:24
阅读次数:
265
/*统计字符
Problem Description
统计一个给定字符串中指定的字符出现的次数
Input
测试输入包含若干测试用例,每个测试用例包含2行,第1行为一个长度不超过5的字符串,第2行为一个长度不超过80的字符串。注意这里的字符串包含空格,即空格也可能是要求被统计的字符之一。当读到'#'时输入结束,相应的结果不要输出。
Output
对每个测试用例,统计第1行中...
分类:
其他好文 时间:
2014-08-18 20:34:22
阅读次数:
204
//这个是有什么作用来这忘了fopen('php://output','w');1.//demo zip格式的压缩文件上传function zqFileUpload($path,$proDir,$filename){ global $_configuration;// root_sys 得到项目的....
分类:
Web程序 时间:
2014-08-18 20:19:42
阅读次数:
204
Problem Description
要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。
Input
数据的第一行是一个T,表示有T组数据。
每组数据有两个数n(0
Output
对应每组数据输出(A/B)%9973。
Sampl...
分类:
其他好文 时间:
2014-08-18 18:39:52
阅读次数:
219