FTDI’s CDM drivers provide both D2XX and VCP functionality through a single driver package on PCs running the following Windows operating systems: Win ...
分类:
其他好文 时间:
2016-05-04 21:10:59
阅读次数:
319
第二钟单例模式当系统压力增大,并发量增加时则可能在内存中出项多个实例,破坏了最初的预期。出现这种情况是因为如果一个线程A执行到singleton=new Singleton(),但是还没有获得对象(对象初始化是需要使时间的),第二个线程B也在执行,执行到(single==null)判断,那么线程B获 ...
分类:
其他好文 时间:
2016-05-04 16:59:44
阅读次数:
121
在开发过程中,面向对象的六大原则非常重要,所以本节给大家带来了这六大原则的讲解,全文会以一个简单的ImageLoader为例进行讲解,为以后学习设计模式做铺垫。
单一职责原则(Single Responsibility Principle)
定义:就一个类而言,应该仅有一个引起它变化的原因,简单来说,一个类中应该是一组相关性很高的函数、数据的封装。
一般情况下,我们会这样写一个Imag...
分类:
其他好文 时间:
2016-05-04 11:57:02
阅读次数:
178
一个数组中除了一个数字出现过一次外,其余的数字都出现了两次,找出那个只出现一次的数字。...
分类:
其他好文 时间:
2016-05-03 18:40:20
阅读次数:
119
一、Linux运行级别1)0:关机2)1:单用户3)2:多用户状态没有网络服务4)3:多用户状态有网络服务5)4:系统未使用保留给用户6)5:图形界面7)6:系统重启注:常用运行级别是3和5,要修改运行级别可改文件/etc/inittab的id:5:initdefault中的数字。二、忘记root密码解决方..
分类:
其他好文 时间:
2016-05-03 16:21:05
阅读次数:
192
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2016-05-01 21:54:59
阅读次数:
155
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2016-05-01 13:31:15
阅读次数:
162
今天推荐一个Html5开发工具 sublimetext3 找了一个注册码 可用 —– BEGIN LICENSE —– Michael Barnes Single User License EA7E-821385 8A353C41 872A0D5C DF9B2950 AFF6F667 C458EA6 ...
分类:
Web程序 时间:
2016-05-01 11:03:15
阅读次数:
255
一.说明: 新建一个Single View Application,删除main.stroryboard中原有的控制器,拖入一个新的CollectionViewController; 在原有的ViewController.h文件中,将继承改成UICollectionViewController,且绑 ...
分类:
其他好文 时间:
2016-04-30 11:18:18
阅读次数:
231
一、Sublime Text3的下载安装 建议直接去官网下载最新版deb安装包:http://www.sublimetext.com/3 二、Sublime Text3的破解 —– BEGIN LICENSE —– Nicolas Hennion Single User License EA7E-8 ...
分类:
系统相关 时间:
2016-04-29 22:03:21
阅读次数:
318