开发软件的时候,一方面,我们总是希望使用别人已经写好的代码,另一方面,又希望自己写的代码尽可能重用,以求减少工作量。要做到这两个目标,这需要"抽象化"。最近,我读到美国程序员Derick Bailey的一篇文章,谈到"抽象化"应该遵循的三个原则,觉得很有启发。一、DRY原则DRY是 Don't re...
分类:
其他好文 时间:
2015-10-19 10:40:36
阅读次数:
176
0 背景 阻塞队列在生产业务的很多场景里,都有使用需要。例如:在数据流式处理服务中,我们需要并行化的运行上游逻辑a与下游逻辑b;在rpc网络通讯框架场景中,我们需要解耦网络读写线程与消息处理线程。总之,阻塞队列是在不同职责的线程之间进行数据沟通的桥梁。在java的jdk里面有现成的Blockin.....
分类:
其他好文 时间:
2015-10-19 10:41:37
阅读次数:
238
很多时候,我们在开发的时候是面对嵌入式平台,因此由于资源的限制需要用到相关的交叉编译。即在你host宿主机上要生成target目标机的程序。里面牵扯到相关头文件的切换和编译器的选择以及环境变量的改变等,我今天仅仅简单介绍下相关CMake在面对交叉编译的时候,需要做的一些准备工作。 CMake给交叉编...
分类:
其他好文 时间:
2015-10-19 10:40:50
阅读次数:
123
1. ISO/OSI的参考模型共有7层,由低层至高层分别为:物理层、数据链路层、网络层、传输层、会话层、表示层、 应用层。各层功能分别为:(1)物理层提供建立、维护和拆除物理链路所需的机械、电气、功能和规程的特性;提供有关在传输介质上传输非结构的位流 及物理链路故障检测指示。在这一层,数据还没有被组...
分类:
其他好文 时间:
2015-10-19 10:39:11
阅读次数:
178
先粗略记一下。。。。对同一个操作符同时实现成员函数重载和友元重载时,优先调用成员重载,当不存在成员重载时调用友元重载 1 #include "stdafx.h" 2 3 class CTest { 4 public: 5 CTest(int nValue) : nValue_(nValue...
分类:
其他好文 时间:
2015-10-19 10:38:50
阅读次数:
118
HMM隐马尔科夫模型 MATLAB 工具包对各种数据的处理HMM 工具包下载地址:http://www.cs.ubc.ca/~murphyk/Software/HMM/hmm.html工具包使用说明:http://www.cs.ubc.ca/~murphyk/Software/HMM/hmm_usa...
分类:
其他好文 时间:
2015-10-19 10:38:25
阅读次数:
233
ARM芯片:2440(arm9) 6410(arm11) 210(cortex-A8)ARM核:arm9(arm-v4) arm11(arm-v6) cortex-A8(arm-v7)指令架构:arm-v4 arm-v6 arm-v7在一个芯片中最重要的是ARM核ARM核演变ARM经典:ARM7、A...
分类:
其他好文 时间:
2015-10-19 10:39:33
阅读次数:
116
英文原文:Understanding Automatic Reference Counting in Objective-C自动引用计数(Automatic Reference Counting, ARC)把压在程序员们肩头的管理内存的重担卸除了不少,更不用说让跟踪内存泄漏那样的烦心事也少了很多。不...
分类:
其他好文 时间:
2015-10-19 10:35:18
阅读次数:
290
在3D打印技术还没有出现的时候,我们脑海中一些天马行空的想象是没办法实现的。也有很多创意相关的工作人员在叹息,似乎有一种生不逢时的遗憾。近年来,随着3D打印技术越来越成熟,自由设计成为一种优势弥补了一些...
分类:
其他好文 时间:
2015-10-19 09:34:45
阅读次数:
212
WordPress主题Log Style发布,具备响应自适应功能,比较适合个人、情侣、设计、博客网站,主题截图: WordPress theme Log Style主题更新提示 主题特色 响应式流媒体终端自适应,兼容电脑、平板和手机访问 兼容I...
分类:
其他好文 时间:
2015-10-19 09:34:59
阅读次数:
309
QUESTION NO: 501
The following databases are registered in the base recovery catalog: PROD1, PROD2, and PROD3. The
database user CATOWNER owns the base recovery catalog. You want a new user VPC1 to h...
分类:
其他好文 时间:
2015-10-19 09:28:51
阅读次数:
231
QUESTION NO: 502
While deploying a new application module, the software vendor ships the application software along with
appropriate SQL plan baselines for the new SQLs being introduced. Which two st...
分类:
其他好文 时间:
2015-10-19 09:29:36
阅读次数:
186
QUESTION NO: 506
Examine the section of the Health Check report given below:DBMS_HM.GET_RUN_REPORT(‘HM_RUN_1061’)
Run Name : HM_RUN_1061 Run Id : 1061 Check Name : Data Block Integrity Check Mode : R...
分类:
其他好文 时间:
2015-10-19 09:31:26
阅读次数:
179
QUESTION NO: 500
In your database, the LDAP_DIRECTORY_SYSAUTH initialization parameter has been set to YES and the
users who need to access the database as DBAs have been granted SYSDBA enterprise ro...
分类:
其他好文 时间:
2015-10-19 09:28:36
阅读次数:
240
QUESTION NO: 508
You need to configure fine-grained access control to external network resources from
within your database. You create an access control list (ACL) using the DBMS_NETWORK_ACL_ADMIN
p...
分类:
其他好文 时间:
2015-10-19 09:30:33
阅读次数:
242
QUESTION NO: 507
You are working on a CATDB database that contains an Oracle Database version 11.1 catalog schema owned
by the user RCO11. The INST1 database contains an Oracle Database version 10.1...
分类:
其他好文 时间:
2015-10-19 09:28:54
阅读次数:
147
QUESTION NO: 505
Which three components does the Scheduler use for managing tasks within the Oracle environment? (Choose three.)
A. a job
B. a program
C. a schedule
D. a PL/SQL procedure
Answer:...
分类:
其他好文 时间:
2015-10-19 09:28:11
阅读次数:
178