using System.IO;string path = @"D:\accountDaoRu"; if (Directory.Exists(path) == false) { Directory.CreateDirectory(path); }if (Directory.Exists(Server...
分类:
其他好文 时间:
2014-07-23 22:13:17
阅读次数:
250
遇到android项目导入出现后重复空包等错误,往往是导入的java编译级别有关,点击项目properties->java Compiler ->修改Compiler compliance level 一般是1.6。修改完成clean项目之后,往往还会遇到:gen already exists bu...
分类:
其他好文 时间:
2014-07-23 14:47:56
阅读次数:
244
PathView ,顾名思义,沿着特定的路径显示 Model 内的数据。 Model 可以是 QML 内建的 ListModel 、 XmlListModel ,也可以是在 C++ 中实现的 QAbstractListModel 的派生类。
PathView 恐怕是 Qt Quick 提供的 Model-View 类库中最复杂也最灵活的一个了。...
分类:
其他好文 时间:
2014-07-23 13:06:56
阅读次数:
413
1.
启动开启
[tt@host2 info]$ ttDaemonAdmin -start -force
/home/tt/TimesTen/tt1122/info/timestend.pid file exists, attempt start due to -force option.
TimesTen Daemon startup OK.
2.
添加测...
分类:
其他好文 时间:
2014-07-23 13:06:36
阅读次数:
244
在某些情况下,or条件可以避免全表扫描的。 1 .where 语句里面如果带有or条件, myisam表能用到索引, innodb不行。1)myisam表: CREATE TABLE IF NOT EXISTS `a` ( `id` int(1) NOT NULL AUTO_INCREMENT, `...
分类:
数据库 时间:
2014-07-23 12:44:26
阅读次数:
303
Windows 8使用Windows Media Player播放音乐的时候,其实有一个这样的情况,WMP和某个什么名字看起来很屌的进程跑CPU很高,这个跑很高视你插入的SD卡内的文件数或者移动硬盘的文件数来定,如果文件很多,这个跑起来可以把系统都快卡死。
就像下面这样:
原因:
WMP命令WPD系统服务去扫描外部移动存储,它用于更新媒体库。
系统服务就去访问那个移动设备,不断...
1. 归并排序(MERGE SORT)、快速排序(QUICK SORT)和堆积排序(HEAP SORT)哪个排序算法效率最高?这要看情况。这也就是我把3种算法放在一起讲的原因,可能你更常用其中一种,不过它们各有千秋。归并排序算法,是目前为止最重要的算法之一,是分治法的一个典型应用,由数学家John ...
分类:
其他好文 时间:
2014-07-22 22:46:15
阅读次数:
180
先上quick代码: 1 --[[创建扇形的进度加载条]] 2 3 --创建进度动作的Action(进度时间,最终比例) 4 local to1 = CCProgressTo:create(1, 100) 5 6 --传入作为进度条用的精灵,创建ProgressT...
分类:
其他好文 时间:
2014-07-22 00:13:35
阅读次数:
167
select a.* from A awhere exists ( select 1 from B b where a.id=b.id ) 1 public List exist(){ 2 List result; 3 Array A=(select * from A) 4 5 for...
分类:
其他好文 时间:
2014-07-22 00:13:34
阅读次数:
202
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points ...
分类:
其他好文 时间:
2014-07-21 22:11:18
阅读次数:
289