顾名思义,write-out的作用就是输出点什么。curl的-w参数用于在一次完整且成功的操作后输出指定格式的内容到标准输出。 输出格式由普通字符串和任意数量的变量组成,输出变量需要按照%{variable_name}的格式,如果需要输出%,double一下即可,即%%,同时,\n是换行,\r是回车 ...
分类:
Web程序 时间:
2016-05-06 20:19:36
阅读次数:
254
在eclipse中,启动server时报此错,是因为文件系统不同步造成的,解决方法有两个: (1)选中工程,右键,选择F5(手动刷新); (2)Window->Preferences->General->Workspace,选中Refresh automatically(设置eclipse自动刷新) ...
分类:
其他好文 时间:
2016-05-06 20:16:10
阅读次数:
143
Scanner键盘录入importjava.util.Scanner;
publicclassScannerDemo{
publicstaticvoidmain(String[]args){
Scannersc=newScanner(System.in);
System.out.println("请录入一个数据整数");
intx=sc.nextInt();
System.out.println("请录入第二个数据整数");
inty=sc.nextInt();
..
分类:
编程语言 时间:
2016-05-06 19:44:35
阅读次数:
122
/*位运算二进制补码基本的&(与)|(或)^(异或)~(按位取反) 连接的是数值(除了布尔类型的) 一般我们做案例,用的数据都是采用整数(int)*/classOperatorDemo{
publicstaticvoidmain(String[]args){
inta=3;
intb=4;
//位与&
System.out.println(a&b);//0
//位或
System...
分类:
编程语言 时间:
2016-05-06 19:44:17
阅读次数:
243
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the ...
分类:
编程语言 时间:
2016-05-06 19:34:53
阅读次数:
171
Problem Description
Give you a lot of positive integers, just to find out how many prime numbers there are.Input
There are a lot of cases. In each case, there is an integer N representing the num...
分类:
其他好文 时间:
2016-05-06 15:23:44
阅读次数:
114
openssl 证书操作命令
生成Self Signed证书
# 生成一个key,你的私钥,openssl会提示你输入一个密码,可以输入,也可以不输,
# 输入的话,以后每次使用这个key的时候都要输入密码,安全起见,还是应该有一个密码保护
> openssl genrsa -des3 -out selfsign.key 4096
# 使用上面生成的key,生成一个certif...
分类:
其他好文 时间:
2016-05-06 12:43:41
阅读次数:
195
public class LogInSftpByPubKey {
private static final Logger logger=LoggerFactory.getLogger(AuthSftpByPubKey.class);
/**session 超时时间 1分钟**/
private static final int SESSION_TIME_OUT=60000;//6...
分类:
其他好文 时间:
2016-05-06 12:42:10
阅读次数:
482
BankTemplateMethod抽象类
public abstract class BankTemplateMethod {
//具体方法
public void takeNumber(){
System.out.println("取号排队");
}
public abstract void transact(); //办理具体的业务 //钩子方法
public v...
分类:
编程语言 时间:
2016-05-06 12:31:00
阅读次数:
150
转自:http://www.w2bc.com/Article/74904 一.堆栈的定义 1.栈是一种特殊的线性表。其特殊性在于限定插入和删除数据元素的操作只能在线性表的一端进行。 结论:后进先出(Last In First Out),简称为LIFO线性表。 栈的应用有:数制转换,语法词法分析,表达 ...
分类:
Web程序 时间:
2016-05-06 10:46:46
阅读次数:
281