//定义一个函数 读取目录信息的函数function dirInfo($dirName) { //判断目录是否存在 if (!file_exists($dirName)) { die('目录不存在!'); } //判断是否是目录 if (!...
分类:
Web程序 时间:
2014-10-20 00:32:39
阅读次数:
268
最近在Jenkins上部署项目时遇到无法展示覆盖率测试报告的问题。build success后,出现配置的覆盖率报告存储位置not exists的失败问题,评估是Jenkins每次按照publish build step中有关配置设置了路径并且在启动时删除后,并没有重新建立这个路径。百思不得其解。同...
分类:
其他好文 时间:
2014-10-19 21:08:09
阅读次数:
376
Problem Description
Kids in kindergarten enjoy playing a game called Hawk-and-Chicken. But there always exists a big problem: every kid in this game want to play the role of Hawk.
So the teacher ...
分类:
其他好文 时间:
2014-10-18 22:26:11
阅读次数:
291
下面为您介绍sql下用了判断各种资源是否存在的代码,需要的朋友可以参考下,希望对您学习sql的函数及数据库能够有所帮助。库是否存在if exists(select * from master..sysdatabases where name=N'库名')print 'exists'elseprint...
分类:
数据库 时间:
2014-10-18 00:43:09
阅读次数:
228
DROP PROCEDURE IF EXISTS pr_pager;CREATE PROCEDURE pr_pager( IN p_table_name VARCHAR(1024), IN p_fields VARCHAR(1024), IN p_page_size INT, IN p_page_n...
分类:
数据库 时间:
2014-10-17 13:28:51
阅读次数:
216
1publicfunctionguid(){2//检测是否存在函数3if(function_exists('com_create_guid')){4//创建全局唯一UUID标识.5returncom_create_guid();6}else{7//随机数生成器.php4.2.0以上版本支持.8mt_...
分类:
Web程序 时间:
2014-10-16 23:11:03
阅读次数:
385
总结 Android避免文件泄露在系统图库和系统铃声中
在应用开发中 项目的图片总是被系统的图库收录了
发现有2个方法
第一种针对图片
将 .png为后缀的图片全部改名为 .ing 后缀
例如 ic_launcher.png 改为 ic_launcher.ing
第二种
在项目存放图片的文件夹写入
/.nomedia
File nomedia = new File(filePath + "/.nomedia" );
if (! nomedia.exists())
...
分类:
移动开发 时间:
2014-10-15 17:18:31
阅读次数:
221
做了个东西老提示删除文件没权限,郁闷if (File.Exists("D://phone//headImages//" + this.txtNumber.Text.Trim() + ".jpg")) { ...
分类:
其他好文 时间:
2014-10-15 13:11:14
阅读次数:
130
创建表 列名 类型,1...create table Student (id integer , name text, sex text, age integer)2…create table if not exists Student (id integer , name tex...
分类:
数据库 时间:
2014-10-14 21:57:29
阅读次数:
190
一、写EXCEL String path="D:/zhangxinxin/files/excels/test.xls"; // 打开文件 File file = new File(path); if (file.exists()) ...
分类:
编程语言 时间:
2014-10-13 13:57:09
阅读次数:
200