MKLINK [[/D] | [/H] | [/J]] Link Target/D 创建目录符号链接。黙认为文件符号链接。/H 创建硬链接,而不是符号链接。/J 创建目录联接。Link 指定新的符号链接名称。Target 指定新链接引用的路径(相对或绝对)。mklink /j D:\apache-t...
1,mount虚拟cdrom # mount /dev/cdrom /mnt/cdrom 2, ls一下,看有没有 # cd /mnt/cdrom # ls –l 3,copy 文件到/tmp目录: 4,到/tmp目录,解压,安装: # tar zxvf VMwareTools-9.6.2-1688...
分类:
其他好文 时间:
2014-07-07 09:18:15
阅读次数:
255
typedef void (^dd)(void);@property (strong) dd a ;@property (copy) dd a ;__weak id b=self; self.a=^{ NSLog(@"%@",self); };编译器都会有警告:循环引用造成的内存泄露---...
分类:
其他好文 时间:
2014-07-07 09:17:36
阅读次数:
221
BOOL CopyFile( LPCTSTR lpExistingFileName, // pointer to name of an existing file LPCTSTR lpNewFileName, // pointer to filename to copy to BOOL bFailI...
分类:
编程语言 时间:
2014-07-05 17:16:57
阅读次数:
275
翻译的是wikipedia关于copy constructor,地址:http://en.wikipedia.org/wiki/Copy_constructor...
分类:
其他好文 时间:
2014-07-05 10:36:42
阅读次数:
342
最近对内存管理,有了一些新的认识,以前只知道alloc,或者retain,或者copy,之后需要release或者autorelease;
只知其一,但是在工作学习中仅仅知道这些是不够用的,还需要知道属性等内部的内存存管理才行.
@property (readwrite,nonatomic,assign)NSInteger age;
@property (readwrite,no...
分类:
其他好文 时间:
2014-07-04 09:31:10
阅读次数:
354
最近阅读leveldb源码,作为一个保证可靠性的kv数据库其数据与磁盘的交互可谓是极其关键,其中涉及到了不少内存和磁盘同步的操作和策略。为了加深理解,从网上整理了linux池畔同步IO相关的函数,这里做一个罗列和对比。大部分为copy,仅为记录,请各位看官勿喷。 传统的UNIX实现在内核中设有缓冲区...
分类:
系统相关 时间:
2014-07-04 00:08:09
阅读次数:
414
1.Linux链接概念
Linux链接分两种,一种被称为硬链接(Hard Link),另一种被称为符号链接(Symbolic Link)。默认情况下,ln命令产生硬链接。
【硬连接】
硬连接指通过索引节点来进行连接。在Linux的文件系统中,保存在磁盘分区中的文件不管是什么类型都给它分配一个编号,称为索引节点号(Inode Index)。在Linux中,多个文件名指向同一索引节点是存在的...
分类:
系统相关 时间:
2014-07-03 15:56:55
阅读次数:
318
refer linkThe"*and"+registers are for the system's clipboard (:help registers). Depending on your system, they may do different things. For instance, ...
分类:
其他好文 时间:
2014-07-03 12:10:56
阅读次数:
195
ant构建文件时基于xml文件编写的,默认名称为build.xmlbulid.xml示例<?xmlversion="1.0"?><projectname="helloWorld"default="copy"> <targetname="copy"description="copy"> <copytodir="D:\AntTest"> <filesetdir="D:\JavaTest"/> </co..
分类:
其他好文 时间:
2014-07-02 16:18:41
阅读次数:
215