最近在写Servlet的时候,看到之前的代码里都是这样写的: InputStream?is?=?xxx.class.getResourceAsStream(filePath); 但是我用另一种写法: ClassLoader.getSystemResourceAsStream(filePath); 在本地测试的...
分类:
其他好文 时间:
2014-08-30 12:44:49
阅读次数:
213
通常用于删除缓存的时,计算缓存大小//单个文件的大小- (long long) fileSizeAtPath:(NSString*) filePath{ NSFileManager* manager = [NSFileManager defaultManager]; if ([manag...
分类:
移动开发 时间:
2014-08-28 19:41:55
阅读次数:
229
import osimport shutilvpath = "H:/v3/b/"fobj = open('H:/v3/a.txt','rb')line = fobj.readline()while line: line = line.strip('\r\n') filepath = l...
分类:
其他好文 时间:
2014-08-27 18:20:08
阅读次数:
164
1 _filepath = empty($dir) ? '': $dir;12 $this->_filename = empty($filename) ? date('Y-m-d',time()).'.log' : $filename;13 14 //创建路径15 ...
分类:
Web程序 时间:
2014-08-26 19:36:46
阅读次数:
297
scp实现数据的拷贝
其他机子copy到本地文件:scp username@hostname/IP:filepath localpath
本地copy到其他机子:scp localpath username@hostname/IP:filepath
文件夹copy: scp -r username@hostname/IP:folderpath localpath
详细参考:http://b...
分类:
系统相关 时间:
2014-08-25 15:05:54
阅读次数:
281
public static int getExifOrientation(String filepath) {
int degree = 0;
ExifInterface exif = null;
try {
exif = new ExifInterface(filepath);
} catch (IOException ex) {
Log...
分类:
移动开发 时间:
2014-08-20 22:47:13
阅读次数:
329
一、SDE要素导出到shapefile中。1、创建一个新的shapefile文件。 private bool CreateShapefile(string filepath, string name) { bool isSuccssed = false; ...
分类:
其他好文 时间:
2014-08-20 12:22:12
阅读次数:
278
Aspose.PDF的使用方法,官网上介绍的都有,但是都比较简单,主要是起示例作用。结合自己实际工作,我对相关方法进行了整理,自认为比较关键的地方,会作简要说明。用来转换成html之前,必须对filepath和folder进行定义,切记切记。class PdfTools{ /// //...
分类:
Web程序 时间:
2014-08-19 00:58:53
阅读次数:
543
burpsuite上传必须要有filepath这个参数第一步:选择一个jpg后缀的马。 第二步:设置本地代理,burp的本地端口是8080 第三步:打开burp suite 按图操作就ok了。 第四步:点击上传,同时上传的表单就会发送到burp上。点击action 选择send t...
分类:
其他好文 时间:
2014-08-16 12:26:00
阅读次数:
1040
1 @Override 2 public Image myWrite(Image image, String filePath) throws IOException { 3 if (image == null) { 4 throw new IOE...
分类:
编程语言 时间:
2014-08-12 03:07:23
阅读次数:
204