附录(一) 扩展知识: 1--> 面向对象的三个基本特征 1.0 封装:将客观事物抽象成类,每个类对自身的数据和方法实行protection(private,protected,public) 1.1 继承:广义的继承有三种实现形式:实现继承(指使用基类的属性和方法而无需额外编码的能力)、可视继承( ...
分类:
编程语言 时间:
2017-01-20 14:07:49
阅读次数:
246
使用CAGradientLayer可以实现颜色的渐变, 我们先看下头文件 下面是我用上面的代码实现的最终效果,startPoint是(0,0),endPoint是(1,1)。 下面我们试试用这个来实现一个渐变色的圆环, 需要说明的是CAGradientLayer只能实现矩形范围内的颜色渐变, 那渐变 ...
分类:
其他好文 时间:
2017-01-18 10:59:17
阅读次数:
244
其中一台controller上面加入环境变量,我选controller1,关注的是endpoint的名称不一样,其它创建的参数与生产环境一致 export OS_TOKEN=venicchina export OS_URL=http://controller:35357/v3 export OS_I ...
使用Microsoft Data Protection Manager(DPM)有时会造成虚拟机的动态和固定磁盘变成差异磁盘,这个应该与DPM进行差异备份有关,未知原因造成DPM差异备份后无法复原原来的磁盘类型,并且在Hyper-V Manager中看到非常多树形结构的层层依赖的Checkpoint... ...
分类:
其他好文 时间:
2017-01-11 16:00:50
阅读次数:
388
numpy.linspace(start, stop, num=50, endpoint=True, retstep=False) start 起始位置 stop 终止位置 num 个数 endpoint 终止位置是否计算 是否返回步长 np.linspace(0, 1, 5) array([ 0. ...
分类:
其他好文 时间:
2017-01-04 20:10:47
阅读次数:
138
天气预报Web服务,数据来源于中国气象局 Endpoint : http://www.webxml.com.cn/WebServices/WeatherWebService.asmx Disco : http://www.webxml.com.cn/WebServices/WeatherWebSer ...
分类:
Web程序 时间:
2016-12-25 13:46:45
阅读次数:
259
Observer协处理器通常在一个特定的事件(诸如Get或Put)之前或之后发生,相当于RDBMS中的触发器。Endpoint协处理器则类似于RDBMS中的存储过程,因为它可以让你在RegionServer上对数据执行自定义计算,而不是在客户端上执行计算。 本文是以上两者的简单实例,使用的环境:环境 ...
分类:
其他好文 时间:
2016-12-23 07:47:31
阅读次数:
294
https://en.wikipedia.org/wiki/General_protection_fault In memory errors, the faulting program accesses memory that it should not access. Examples incl ...
分类:
数据库 时间:
2016-12-15 21:08:31
阅读次数:
281
Computer Systems A Programmer's Perspective Second Edition Exception number Description Exception class0 Divide error Fault13 General protection fault ...
分类:
系统相关 时间:
2016-12-15 20:50:16
阅读次数:
211
用nodejs soap 0.2.7以上版本时,总是调用不成功,经研究原代码发现,必须设置wsdlOptions属性,才能正常调用。 var wsdlOptions = { endpoint:endpoint, attributesKey: '$attributes', ignoredNamespa ...
分类:
Web程序 时间:
2016-12-06 07:40:59
阅读次数:
160