playerken

博客园 首页 新随笔 联系 订阅 管理

2015年3月2日 #

摘要: Git 保存的不是文件差异或者变化量,而只是一系列文件快照。在 Git中提交时,会保存一个提交(commit)对象,它包含一个指向暂存内容快照的指针,作者和相关附属信息,以及一定数量(也可能没有)指向该提交对象直接祖先的指针。当使用 git commit 新建一个提交对象前,Git 会先计算每一个子... 阅读全文
posted @ 2015-03-02 23:40 playerken 阅读(242) 评论(0) 推荐(0) 编辑

2015年3月1日 #

摘要: 近乎所有操作都可本地执行在Git中的绝大多数操作都只需要访问本地文件和资源,不用连网。三种状态对于任何一个文件,在 Git 内都只有三 种状态:已提交(committed),已修改(modified)和已暂存(staged)。已提交表示该 文件已经被安全地保存在本地数据库中了;已修改表示修改了某个文... 阅读全文
posted @ 2015-03-01 23:05 playerken 阅读(165) 评论(0) 推荐(0) 编辑

2014年12月24日 #

摘要: 需要安装paramiko,paramiko需要PyCrypto ,PyCrypto 需要GCC编译。安装PyCrypto:安装Mingw32,确认环境变量。下载并编译PyCrypto - setup.py build --compiler=mingw32安装 - setup.py install或者... 阅读全文
posted @ 2014-12-24 15:42 playerken 阅读(150) 评论(0) 推荐(0) 编辑

摘要: 在大端机器(solaris-sparc,hpux-hppa)上从奇数内存地址取一个整形(2 or 4 bytes)会崩溃。如:unsigned short Res = *(unsigned short *) tmpArray;应该: char tmpArray[sizeof(unsigned sho... 阅读全文
posted @ 2014-12-24 15:31 playerken 阅读(228) 评论(0) 推荐(0) 编辑

2014年12月16日 #

摘要: Parent-child relationshipsParent-child relationships are formed when using view controller containers. Examples of viewcontroller containers are UINav... 阅读全文
posted @ 2014-12-16 14:37 playerken 阅读(139) 评论(0) 推荐(0) 编辑

摘要: On the iPhone or iPod touch, a modal view controller takes over the entire screen. This is the defaultbehavior and the only possibility on these devic... 阅读全文
posted @ 2014-12-16 14:28 playerken 阅读(109) 评论(0) 推荐(0) 编辑

2014年12月11日 #

摘要: 产生core文件条件用ulimit -c 指定core文件大小来开启core文件的生成,如:ulimit -c unlimited用gdb分析core文件的条件可执行程序在编译时,需加入-g参数,否则gdb无法找到symbol信息,从而无法定位问题。例如,如下两个cpp文件中,test.cpp会导致... 阅读全文
posted @ 2014-12-11 14:09 playerken 阅读(3770) 评论(0) 推荐(0) 编辑

2014年12月8日 #

摘要: For every object that can have a delegate, there is a corresponding protocol that declares themessages that the object can send its delegate. The dele... 阅读全文
posted @ 2014-12-08 17:59 playerken 阅读(173) 评论(0) 推荐(0) 编辑

摘要: When an iOS application is launched, it starts a run loop. The run loop’s job is to listen for events,such as a touch. When an event occurs, the run l... 阅读全文
posted @ 2014-12-08 14:23 playerken 阅读(117) 评论(0) 推荐(0) 编辑

2014年11月27日 #

摘要: Thus, we arrive at the rules that all stylish Objective-C programmers follow when writing initializers:• If a class has several initializers, only one... 阅读全文
posted @ 2014-11-27 18:16 playerken 阅读(162) 评论(0) 推荐(0) 编辑