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
最近对内存管理,有了一些新的认识,以前只知道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
在使用ansible中报错"msg":"Error:ansiblerequiresajsonmodule,nonefound!",然后各种google,最后查到一个文件说是在客户端需要安装python-simplejson这个包,安装上包以后就没有问题了
分类:
其他好文 时间:
2014-07-03 14:41:59
阅读次数:
172
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
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
上一篇,咱们总结了下,ansible里的variables,这东西是从哪里来的。楼主举的例子可能都比较白痴,不过重在说明原理和过程,大伙有实际需求的时候,可以弄点高深的玩玩。说过了,variables来自哪里,那variables该咋用呢?说起用,用可以简单的用,也可以复杂的用,简单的用var..
分类:
其他好文 时间:
2014-07-02 11:39:34
阅读次数:
330