不使用finally块释放资源 错误的写法: public?void?save(File?f)?throws?IOException?{??
??OutputStream?out?=?new?BufferedOutputStream(new?FileOutputStream(f));??
??out.write(...);??...
分类:
编程语言 时间:
2014-09-17 17:02:52
阅读次数:
320
首先下载tar包地址http://www.python.org/ftp/python下载好之后解压tarxjvf在安装python时下载好tar包在./configure时报错提示configure:error:noacceptableCcompilerfoundin$PATH查资料得知是缺少gcc组件安装gcc组件即可再次进行./configure不再报错make&&makeinstall..
分类:
编程语言 时间:
2014-09-17 15:35:03
阅读次数:
190
CMAKE的使用Version 1.02009-3-18一、基本使用安装:下载二进制包后可直接解压使用从源码安装则执行命令:./bootstrap; make; make install——尝试执行bootstrap失败使用:cmake dir_path,生成工程文件或makefile文件二、概念o...
分类:
其他好文 时间:
2014-09-17 14:57:22
阅读次数:
336
在程序设计中我们经常会遇到具有级联关系的多级树结构,本文给出了一些case的常见设计方案,包括分类管理、三级地址管理和多级菜单管理。 Case中使用Oracle数据库做示例。 从几个示例中可以看出,ID,NAME,PARENTID,PATH几个字段是通用的,其他字段根据需求扩展。其中PARE...
分类:
其他好文 时间:
2014-09-17 13:29:12
阅读次数:
193
博客根据http://www.ibm.com/developerworks/cn/opensource/os-php-readfiles个人总结获取文件全部内容以下归类是按平时我们通常的使用方法总结一次性获取file_get_contents($path),将整个文件内容写入到一个字符串中分段获取$...
分类:
Web程序 时间:
2014-09-17 13:27:32
阅读次数:
181
liunx shell 实现对mongodb的备份 #!/bin/bash
#program?
#?this?shell?is?used?for?backup?of?mongodb
#history
#2014/09/16?11:25??????????Qiushi
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/...
分类:
数据库 时间:
2014-09-17 12:16:12
阅读次数:
306
$path = "/www/mywebsite/images/myphoto.jpg";1.pathinfo()函数pathinfo()函数返回的是一个包含了文件信息的数组,数组中有四个元素,分别是dirname、basename、extension、filename。打印数组的代码:复制代码代码如...
分类:
Web程序 时间:
2014-09-17 12:02:42
阅读次数:
250
warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777解决方法:sudo chmod 775 /usr/localtips:775 => root(7) group(7) others(5), 7 => rea...
分类:
其他好文 时间:
2014-09-17 11:54:12
阅读次数:
248
Linux最优秀的地方之一,就在于它的多用户、多任务环境。为了让用户具有较安全的管理机制,文件的权限管理是很重要的。Linux通常将文件的访问方式分为分为三个类别,分别是owner/group/other,而且具有read/write/excute等权限。在Linux下面这么多的目录/文件,到底.....
分类:
系统相关 时间:
2014-09-17 11:53:22
阅读次数:
333
在Editable Email Notification的Default Content里面加入这样一段:${FILE,path="result-output/overview-summary.html"} 用于换行
分类:
Web程序 时间:
2014-09-17 11:46:32
阅读次数:
536