默认情况下,对象属性是strong的,标量属性是assign的。但是有一个例外,就是对于具有可变副本的属性,我们倾向于将其声明为copy。比如说@interface
Person : NSObject@property (nonatomic,copy) NSString* name; @proper...
分类:
其他好文 时间:
2014-06-29 07:54:44
阅读次数:
444
JAVA线程 工作内存 主内存java内存模型中的八种操作:lock unlock read load
use assign store write八种基本操作必须满足的规则volatile当一个变量被定义成volatile之后,它将具备两种特性
一是保证此变量对所有线程的...
分类:
编程语言 时间:
2014-06-13 13:22:55
阅读次数:
294
1.1Implement an algorithm to determine if a
string has all unique characters. What if you cannot use additional data
structures?字符串问题,需要先确定是不是只有ASCII码...
分类:
其他好文 时间:
2014-06-11 12:27:53
阅读次数:
247
安装完Nginx之后,启动报错。[vagrant@localhost sbin]$ sudo
./nginx./nginx: error while loading shared libraries: libpcre.so.1: cannot open
shared object file: No ...
分类:
其他好文 时间:
2014-06-08 19:01:47
阅读次数:
294
设置字体出错:txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent"));
然后发现,竟然是因为自己没有加上后缀,改成下面这样就好了
txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent.ttf"));
出这个错误了先看看名字...
分类:
编程语言 时间:
2014-06-08 15:03:27
阅读次数:
298
在vm下redhat5下安装oracle 11g后,登录sqlplus 报:
sqlplus: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc:...
分类:
数据库 时间:
2014-06-07 12:00:29
阅读次数:
303
ecmall中类库的继承过程:defaultAPP->MallbaseApp->FrontendApp->EcBaseApp->BaseApp->Object在baseAPP中有三个方法,如下:
function assign($k, $v = null) { $this->...
分类:
其他好文 时间:
2014-06-06 17:24:17
阅读次数:
266
最近,用到了pdfcrop,用来去除pdf中空白的边。但是使用pdfcrop
--margins 0 *.pdf 后,给出了错误:Error: pdfcrop cannot call ghostscript
但是我已经安装了CTEX,里面已经包含Ghostscript,所以就不知道什么错误。在网上针...
分类:
其他好文 时间:
2014-06-06 16:49:28
阅读次数:
179
动态 变量类型在运行期间确定下来静态 在编译期确定下来强类型 类型不会发生自动变换,弱类型
类型会自动变,比如double+int -> double类型安全 类型对数据访问有严格控制类型不安全 ...Well-typed programs
cannot "go wrong" ...
分类:
编程语言 时间:
2014-06-06 15:36:16
阅读次数:
238
由于项目的软件版本会逐渐递增,原来的测试脚本在新版本上执行的时候会出现错误1.“The
"App(1.0.1.0)-T(0.0.0." Dialog object was not found in the Object
Repository.”错误2.“Cannot identify the obj...
分类:
其他好文 时间:
2014-06-06 07:28:11
阅读次数:
227