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
最近阅读leveldb源码,作为一个保证可靠性的kv数据库其数据与磁盘的交互可谓是极其关键,其中涉及到了不少内存和磁盘同步的操作和策略。为了加深理解,从网上整理了linux池畔同步IO相关的函数,这里做一个罗列和对比。大部分为copy,仅为记录,请各位看官勿喷。 传统的UNIX实现在内核中设有缓冲区...
分类:
系统相关 时间:
2014-07-04 00:08:09
阅读次数:
414
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
翻译整理自:http://web.mit.edu/~mkgray/project/silk/root/afs/sipb/project/git/git-doc/git-clone.html在使用git来进行版本控制时,为了得一个项目的拷贝(copy),我们需要知道这个项目仓库的地址(Git URL)...
分类:
其他好文 时间:
2014-07-03 10:05:55
阅读次数:
206
来源:剑指offer逆序对定义:a[i]>a[j],其中i= begin && j >= mid + 1) { if(array[i] > array[j]) { copy[pos--] = array[i--]; ...
分类:
编程语言 时间:
2014-07-02 22:02:18
阅读次数:
287
1) Append a slice b to an existing slice a: a = append(a, b...)2) Copy a slice a to a new slice b: b = make([]T, len(a))copy(b, a)3) Delete item at in...
分类:
移动开发 时间:
2014-07-02 18:52:39
阅读次数:
182
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
如何禁止C++ 类支持拷贝
C++ 编译器默默地为你做了不少工作
当你写下
class Empty {};
//其实等价于
class Empty {
public:
Empty() { ... } //default constructor
Empty(const Empty &rhs) { ... } //copy constructor
~Empty() { ......
分类:
编程语言 时间:
2014-07-01 08:04:25
阅读次数:
274