/// /// Generates a new path for duplicate filenames./// /// The path./// private string GetNewPathForDupes( string path ){ string directory = Path...
If the current directory of the application. If e.g. you create a File by usingnew FileOutputStream("myfile")then it is created in the "current" direc...
分类:
编程语言 时间:
2014-10-17 02:45:43
阅读次数:
157
相关命令文件 1、runCommandInThreads.sh 多线程实现主代码 cdir=$(dirname?$BASH_SOURCE)?##Current?directory?of?this?script?file.
source?$cdir/logUtil.sh
function?createFile()?{
local?dir...
分类:
编程语言 时间:
2014-10-16 21:12:53
阅读次数:
274
这四天全部都在debug flash 1bit 切换到4bit :原理:step1:把写好的C程序编译为HEX文件,我用的是GCC编译器 step2:用readmemh把HEX文件store到flash的仿真模型 step3:active tcm 功能(设定了TCM的搬移起始地址(Flash的)和搬...
分类:
其他好文 时间:
2014-10-16 20:13:03
阅读次数:
298
<VirtualHost *:80>
DocumentRoot "/opt/www"
ServerName localhost
ServerAlias localhost
<Directory />
Require all granted
</Directory>
</VirtualHost>...
分类:
Web程序 时间:
2014-10-16 18:11:13
阅读次数:
209
(转自:http://blog.csdn.net/zftang/article/details/6387325)1. DIRECTORY指定转储文件和日志文件所在的目录DIRECTORY=directory_objectDirectory_object用于指定目录对象名称.需要注意,目录对象是使用C...
分类:
数据库 时间:
2014-10-16 17:51:42
阅读次数:
275
使用Infor Syteline ERP系统,当需要做系统维护时,我们需要通知所有用户退出系统,在维护期间,严禁用户登录,这样的话,我们需要锁定用户。对于这个问题,很多管理员会打开SL的Users窗口,切换至Login Information标签内,把User Login Status的Active...
分类:
其他好文 时间:
2014-10-16 17:47:02
阅读次数:
225
一、如何定义关联
两个model之间常常会存在关联关系,为了解决这些关联引起的复杂操作问题,可以在model定义时定义其关联关系。如:实体customers和orders定义如下:
class
Customer
has_many
:orders, dependent:
:destroy
end
class
Order...
分类:
其他好文 时间:
2014-10-16 14:55:32
阅读次数:
152
一般我们在Linux下执行某些外部程序的时候可能会提示找不到共享库的错误, 比如: tmux: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory ...
分类:
其他好文 时间:
2014-10-15 20:20:01
阅读次数:
227
1. 没有后缀名的限制:string[] filePaths = Directory.GetFiles(@"c:\MyDir\");2. 有后缀名:string[] filePaths = Directory.GetFiles(@"c:\MyDir\", "*.bmp");3. 获取文件夹以及子文件...
分类:
其他好文 时间:
2014-10-15 19:09:31
阅读次数:
119