./configure --prefix=/usr/local/php-5.6.8 --with-config-file-path=/usr/local/php-5.6.8/etc --with-bz2 --with-curl --enable-ftp --enable-sockets --disa...
分类:
Web程序 时间:
2015-04-23 23:14:14
阅读次数:
208
public static void doFileDownload(String path,
HttpServletResponse response, String filename) throws Exception {
// path是指欲下载的文件的路径。
File file = new File(path);
// 以流的形式下载文件。
InputStream fis = ne...
分类:
其他好文 时间:
2015-04-22 13:58:32
阅读次数:
162
public static void doFileDownload(String path,
HttpServletResponse response, String filename, int width, int hight)
throws Exception {
// path是指欲下载的文件的路径。
File file = new File(path);
Image img =...
分类:
其他好文 时间:
2015-04-22 13:57:26
阅读次数:
127
9-6.文件比较.写一个比较两个文本文件的程序,如果不同,给出第一个不同处的行号和列号. 1 FA=raw_input("please input 1st file's path:") 2 FB=raw_input("please input 2nd file's path:") 3 file_a=...
分类:
编程语言 时间:
2015-04-21 22:11:29
阅读次数:
175
1 查看apk的sha1值
有时,希望查看到对应签名了的apk文件的sha1值。使用下面脚本,脚本文件为showInfo.sh :
#!/bin/bash
get_signature() {
path=`jar tf "$1" | grep RSA`
jar xf $1 $path
keytool -printcert -file $path...
分类:
其他好文 时间:
2015-04-20 14:58:51
阅读次数:
629
第一步,安装sublime第二步,安装MinGW,里面有gcc第三步,把MinGW/bin的路径添加到PATH第四步,在sublime里添加新的编译系统,输入内容如下:{ "cmd": ["gcc", "${file}", "-std=c99", "-o", "${file_path}/${fil....
分类:
编程语言 时间:
2015-04-18 23:29:59
阅读次数:
213
/**
* 判断图片大小
* @return
*/
public static boolean judegImgMaxMin(String path){
boolean flog = true;
File file = new File(path);
DecimalFormat df = new DecimalFormat("#.00...
分类:
编程语言 时间:
2015-04-17 11:18:52
阅读次数:
308
几种不太安全的:1. new File(path),这个方法的路径到底在那里取决于调用java命令的起始位置定义在哪里, tomcat/bin下面的catalina.bat调用了java,所以在tomcat下相对起始位置是tomcat/bin,但是eclipse启动时,起始位置 是eclipse的....
分类:
编程语言 时间:
2015-04-16 23:38:44
阅读次数:
189
通过Nuget安装NPOI类库 1 public class ExcelOperator 2 { 3 /// 4 /// Init Workbook 5 /// 6 /// excel file path ...
分类:
其他好文 时间:
2015-04-16 19:09:26
阅读次数:
125
症状如图所示 出错代码段在第3行 QString dir = QFileDialog::getExistingDirectory(this, tr("Save file path"), "."); txtSavePath->setText(dir); txtSavePath为QlineEdit。分析...
分类:
其他好文 时间:
2015-04-15 18:29:02
阅读次数:
112