——译自Apple Reference Library《Blocks Programming Topic》简介块对象是C语言的句法和运行时特性。它类似于标准C函数,但可以将代码、变量绑定到堆(heap)、栈(stack)。一个块还维护了一系列的状态,这些状态或数据影响着执行的结果。可以把块组成函数表...
分类:
移动开发 时间:
2014-12-31 17:52:31
阅读次数:
241
__weak是一个宏,和__packed是同一种东西都是gcc的扩展属性:#define __packed __attribute__((packed))#define __weak __attribute__((weak))假设这个keyword用在函数定义上面,普通情况下和一般函数没有两样。可是...
分类:
其他好文 时间:
2014-12-31 16:11:18
阅读次数:
128
1. Context.getFilesDir()http://developer.android.com/reference/android/content/Context.html#getFilesDir()"Returns the absolute path to the directory o...
分类:
移动开发 时间:
2014-12-31 14:16:06
阅读次数:
189
Spring4.x框架参考文档
为了不出现重复翻译Spring4参考文档,专门发此文进行通知,同时也希望有兴趣参与翻译的参与进来。
项目地址: http://git.oschina.net/free/spring-framework-reference
基本说明
Spring文档为adoc格式,文件已经按基本的章节拆分为多个adoc文件,该...
分类:
编程语言 时间:
2014-12-31 10:06:20
阅读次数:
392
1. Reference:https://github.com/jesolem/PCV2. 介绍PCV is a pure Python library for computer vision based on the book "Programming Computer Vision with P...
分类:
编程语言 时间:
2014-12-31 09:58:22
阅读次数:
318
关键字:ARC __weak __block__weak不增加引用,__block增加引用。举例:对象内有一个强引用的block成员变量,此成员变量又强引用该对象,若对象不经过__weak处理,则二者循环引用。参考:http://www.cocoachina.com/bbs/3g/read.php?...
分类:
移动开发 时间:
2014-12-30 18:55:16
阅读次数:
722
Reference:Why can't convert TCHAR* to char*Need toUse Multi-Byte Character Set in project's setting.If your project defines UNICODE/_UNICODE, which is...
分类:
其他好文 时间:
2014-12-30 18:36:16
阅读次数:
151
看吕大的书,其中对mutex的介绍让人心动,因此我做一次搬运工。mutex与latch区别:mutexlatch没有等待队列,没有持有队列,抢占机制使用队列spin255次,在spin期间无法获得,转入睡眠,自己醒来spin2000次,在spin期间无法获得,转入睡眠,等待唤醒使用引用计数器(referencecou..
分类:
其他好文 时间:
2014-12-30 11:58:04
阅读次数:
182
1、创建一个控件库2、除掉项目所有的引用3、右键点击项目然后查看项目属性4、在Build标签点击高级按钮,在弹出的对话框中勾上“'Do not reference mscorlib.dll”复选框5、手动添加对Silverlight安装目录(默认在\Program Files\Microsoft S...
分类:
其他好文 时间:
2014-12-30 11:29:23
阅读次数:
153
原文:SSAS系列——【08】多维数据(程序展现Cube)1、引用DLL? 按照之前安装的MS SQLServer的步骤安装完成后,发现在新建的项目中“Add Reference”时居然找不到Microsoft.AnalysisServices.AdomdClient命名空间,不知道是什么状况?只好...
分类:
其他好文 时间:
2014-12-30 11:12:16
阅读次数:
185