1.先制作需要执行的Sql文件listCMD 中输入【dir E:\FolderName>E:\ExcuteSqlList.txt 】2.根据ExcuteSqlList.txt 中的文件名list制作执行文件【Excute.sql】。3.Excute.sql [文件里的内容] @@sql1.sql ...
分类:
数据库 时间:
2014-06-25 21:01:22
阅读次数:
258
project(my)cmake_minimum_required(VERSION 2.8.9)set (CMAKE_PREFIX_PATH "C:\\Qt\\Qt5.3.0\\5.3\\msvc2010_opengl")set(CMAKE_INCLUDE_CURRENT_DIR ON)find_p...
分类:
其他好文 时间:
2014-06-25 16:59:54
阅读次数:
221
//载入核心文件include "./libs/Smarty.class.php";$smarty = new Smarty();//模版目录$smarty->template_dir = "template";//模版目录$smarty->compile_dir = "temp/compile";...
分类:
其他好文 时间:
2014-06-25 16:45:02
阅读次数:
184
#pragma once#ifndef __FileOperation_H__#define __FileOperation_H__#include using namespace std;class FileOperation{public: // 构造函数,dir为文件夹名称:标注、书签、试题、...
分类:
编程语言 时间:
2014-06-25 15:55:07
阅读次数:
467
如果MySQL数据库是自己安装的,可以用如下方法分别启动和停止MySQL。1. MySQL服务器的启动 $mysql_dir/bin/mysqld_safe & (其中&表示后台运行,也可以不加)2. MySQL服务器的停止 $mysql_dir/bin/mysqladmin -u root -.....
分类:
数据库 时间:
2014-06-25 09:32:40
阅读次数:
248
目录迭代器$dir = new DirectoryIterator(dirname(__FILE__));foreach ($dir as $fileinfo) { if (!$fileinfo->isDot()) { echo $fileinfo->getFilename...
分类:
其他好文 时间:
2014-06-25 00:26:31
阅读次数:
231
1、构建session抽象类,实现Session_set_save_hanlder函数必须的基础函数View Code2、编写txt文本模式具体方法实现类save_path = 'D:\session'; if(!is_dir($this->save_path)){ ...
分类:
其他好文 时间:
2014-06-24 22:39:38
阅读次数:
165
碰到一个shell中函数调用的小问题,记录一下。
shell中函数有三种调用方式,一种是在文件前面定义函数,然后在下面直接调用;一种是通过载入shell,在shell中直接调用;第三种是将函数写入文件,然后在其他shell中调用函数。
这里写一下关于第三种方法的例子:
is_it_a_directory()
{
if [ $# -lt 1 ];then
echo "is_it_a_dir...
分类:
其他好文 时间:
2014-06-24 20:17:56
阅读次数:
195
今天遇到一个bug,查了一个小时才发现是文件路径比较出了问题:比如有两个路径:D:\dir\..\a.txt和D:\a.txt。这两个路径写法虽然不同,但是很容易知道这两个路径指向的是同一个文件。如果我们使用Java的File去判断两个路径是否相同,判断如下:Filef1=newFile("D:\\dir\\..\\a.t..
分类:
编程语言 时间:
2014-06-24 17:01:52
阅读次数:
223
TBMainClient.ipa改名为TBMainClient.zip并解压得到TBMainClient.app
然后将TBMainClient.app TBMainClient.app.dSYM TBMainClient.crash 三个文件放到一个目录下,然后终端下命令进入目录,
依次执行:
export DEVELOPER_DIR=/Applicati...
分类:
移动开发 时间:
2014-06-24 15:56:57
阅读次数:
216