1. Post: http://localhost:11804/My/Commentfor
plain html parameter submission, like the GET in URL:Request Header:User-Agent:
FiddlerContent-Length: 3...
分类:
其他好文 时间:
2014-05-21 20:54:49
阅读次数:
346
1、不用权限2、启动照相机和图库 static final int
TAKE_AVATAR_CAMERA_REQUEST = 1;//图库 static final int TAKE_AVATAR_GALLERY_REQUEST
= 2;//照相机//启动照相机String strAvatarPro...
分类:
其他好文 时间:
2014-05-21 19:50:06
阅读次数:
268
linux的touch命令不常用,一般在使用make的时候可能会用到,用来修改文件时间戳,或者新建一个不存在的文件。1.命令格式:touch[选项]...文件...2.命令参数:-a或--time=atime或--time=access或--time=use 只更改存取时间。-c或--no-crea...
分类:
其他好文 时间:
2014-05-21 19:47:57
阅读次数:
297
接着上次的讲,这次我们讲 网络请求的封装
打开创建的项目,让我们一起来继续完成他,上次我们说到GET请求地址的拼接;我们接着昨天的继续完善;下边我们要定义的是block//定义block__block
ASIFormDataRequest *request=[ASIFormDataRequest r...
分类:
移动开发 时间:
2014-05-21 17:49:48
阅读次数:
434
Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-21 17:27:55
阅读次数:
252
【题目】
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant space.
【题意】
给定一个数组,找出第一个缺失的正数。时间复杂度O(n)
...
分类:
其他好文 时间:
2014-05-21 17:13:07
阅读次数:
219
Alignment
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 12571
Accepted: 4021
Description
In the army, a platoon is composed by n soldiers. During the m...
分类:
其他好文 时间:
2014-05-21 11:23:16
阅读次数:
227
用springMVC来做项目,如果遇到文件上传,那么一定要用spring自带的文件处理类来处理上传的文件,因为效率实在高过其他的。
从界面传过来的参数,如果设置了值对象,那么可以从值对象里面取出字符串类型的普通参数,如果不这样做,也可以直接从request里面获得,两种方法都可以。
问题是如果值对象里面写了其他类型的变量,妄想像Struts2那样处理,springMVC就会报出400 Bad...
分类:
编程语言 时间:
2014-05-21 10:13:27
阅读次数:
422
Balance
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 10065
Accepted: 6231
Description
Gigel has a strange "balance" and he wants to poise it. Actually...
分类:
其他好文 时间:
2014-05-21 07:23:20
阅读次数:
312
对象
计数器
描述
度量值
System
%Total
Processor
Time
系统上所有处理器都忙于执行非空闲线程的时间的平均百分比,体现整体的处理器利用率。例如在多处理器系统上,当所有处理器始终处于忙碌状态,则此值为100%;当所有处理器中的1/4处于100%忙碌状态,则此值为25%
该值若持续高于80%~...