使用xcode6.1创建的项目, 添加新浪SDK,运行[WeiboSDKregisterApp:kAppKey];这一步崩溃,抛出以下*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:...
分类:
其他好文 时间:
2015-07-31 10:25:04
阅读次数:
311
设计模式的设计原则包含了:单一职责原则、里氏替换原则、依赖倒置原则、接口隔离原则、迪米特法则和开闭原则等6大原则。
单一职责原则(Single Responsibility Principle,简称SRP),英文介绍为:There should never be more than one reason for a class to change,即一个类,应当只有一个引...
分类:
其他好文 时间:
2015-07-29 23:09:47
阅读次数:
239
之前有两位朋友碰到过在对greenplum的系统构架更改后,出现全量恢复gprecoverseg -F也无法正常运行的情况。
报错信息为Unable to connect to database. Retrying 1
gprecoverseg failed. (Reason='Unable to connect to database and start transaction') exiting...
有幸拷得一份虚拟机上的全部文件,对其进行分析。
发现其实出现这个问题只需要修改pg_changetra...
分类:
数据库 时间:
2015-07-28 00:52:21
阅读次数:
741
一.单一职责原则 Single Responsibility Principle, 简称SRP。 定义:There should never be more than one reason for a class to change. 应该有且仅有一个原因引起类的变更。 ? 职责的划分?单一的定义和级别...
分类:
其他好文 时间:
2015-07-27 13:25:13
阅读次数:
104
一、简介 errstr命令用于查询错误代码 二、语法 errstr [-stats] 选项 -stats:打印哈希表状态 errno:错误号 三、实例 1、查看错误信息 错误提示:27594:error:2006D080:lib(32):func(109):reason(128):bss_file....
分类:
其他好文 时间:
2015-07-25 12:14:18
阅读次数:
159
一、简介 ca命令能够签发证书请求文件以及生成CRL列表 二、语法 openssl ca [-verbose] [-config filename] [-name section] [-gencrl] [-revoke file][-crl_reason reason] [-crl_hold ins...
分类:
其他好文 时间:
2015-07-24 23:58:48
阅读次数:
560
查看了下别的api的返回示例 我选出这样的返回样式
{
“resultcode”:”200”,
“reason”:”Successed!”,
“result”:{
“count”: 11,
“commentlist”: []
},
“notice”….
}
当前api访问的错误和原因加 非当前api的处理(比如notice 通知 注:来自开源中国ios版...
原因
我遇到的是,存在出数为0的情况时,所得结果为NaN。
解决方法
添加判断,处理错误
if(isnan(ecg)){ //isnan为系统函数,判断结果是否为NaN
//特殊处理
ecg = 0.0;
}else{
//正常情况,不做处理
}...
分类:
其他好文 时间:
2015-07-21 10:44:34
阅读次数:
205
'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier ActiveListCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'...
分类:
其他好文 时间:
2015-07-18 18:37:10
阅读次数:
104
解释在这里http://stackoverflow.com/questions/14296892/nsobjectinaccessibleexception-reason-coredata-could-not-fulfill-a-fault这里是中文的详细解释http://blog.csdn.net...
分类:
移动开发 时间:
2015-07-17 15:56:49
阅读次数:
165