Step 1: Add following lines to rotate data before buildLuminanceSource(..) in decode(byte[] data, int width, int height)DecodeHandler.java:byte[] rotatedData = new byte[data.length];
for (int y = 0; y...
分类:
其他好文 时间:
2015-07-20 19:43:41
阅读次数:
268
2010年下半年试真题36:
软件测试原则中指出“完全测试是不可能的”,主要原因是()。
A.输入量太大,输出结果太多以及路径组合太多
B.自动化测试技术不够完善
C.测试的时间和人员有限
D.仅仅靠黑盒测试不能达到完全测试
分析解答:完全测试是不可能的,因为不可能穷举软件的所有测试路径、输入有输出,所以本题的正确答案A。
2010年下半年试真题38:
以下关于设计功能测试用例...
分类:
其他好文 时间:
2015-07-20 19:41:40
阅读次数:
155
#include
#include
#include
#include
#include
#include
using namespace std;
const int MAXN = 10000 + 10;
int A[MAXN];
int lis[MAXN];
int f[MAXN];
int stack[MAXN];
int N;
int main()
{
while(sc...
分类:
其他好文 时间:
2015-07-20 19:42:30
阅读次数:
122
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
A: a1 → a2
↘
...
分类:
其他好文 时间:
2015-07-20 19:43:57
阅读次数:
105
ZigZag Conversion :
The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A...
分类:
其他好文 时间:
2015-07-20 19:41:58
阅读次数:
116
一、操作系统引论
1、操作系统作用
1)为用户与计算机硬件系统之间提供接口;2)管理计算机系统资源;3)对计算机资源进行抽象。
2、操作系统发展:
1)无操作系统的计算机系统:用户直接使用操作系统;
2)单道批处理系统:将作业输入到磁带上,每次调用一道作业进入内存;
3)多道批处理系统:将作业输入到磁带上,...
分类:
其他好文 时间:
2015-07-20 19:42:09
阅读次数:
107
《OSGi原理与最佳实践》,看到第四章,做 HelloWorld-cxf 的例子,亲测可以运行,osgi版本4.4 cxf插件版本1.2...
分类:
其他好文 时间:
2015-07-20 19:40:29
阅读次数:
251
2008年第一次在WPF中使用MVVM模式之后,就一直热衷于耦合隔离、模块化与重构、UI和逻辑分离、单元测试以及后面的领域模型。谈及MVVM模式,自己也开发过一套框架,但没有长期更新和维护,所以索性就一直使用Prism和MVVM Light。到2012年的时候,看到HTML5的大行其道和Silverlight的衰落,果断把主要精力投入到ASP.NET MVC和Knockout的开发和研究当中,虽然...
分类:
其他好文 时间:
2015-07-20 19:41:10
阅读次数:
188
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i,
0). Fin...
分类:
其他好文 时间:
2015-07-20 19:39:27
阅读次数:
103
本文介绍使用Email的身份验证(OpenID)的原理,指出分布式身份验证的优点,并讨论将Email用于银行电子支付的链接处理机制。...
分类:
其他好文 时间:
2015-07-20 19:39:05
阅读次数:
193
Implement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, / operators and empty spaces . The integer division should trunca...
分类:
其他好文 时间:
2015-07-20 19:41:19
阅读次数:
111
主要以OSChina Android客户端源码中Notice的轮询机制进行解读。一、基础知识
一般IM(即使通讯)的实现有两种方式:推送和轮询,推送就是服务器主动向客户端发送消息,用特定的协议比如XMPP、MQTT。另一种是轮询,实时性并不高,而且比较耗电。这种有分为两种情况:一段时间发起一次查询和死循环进行查询。
参考: http://jcodecraeer.com/a/anzhuokaifa/...
分类:
其他好文 时间:
2015-07-20 19:37:44
阅读次数:
133
最近接手到一个已经成型的项目,然后我们的任务就是对它进行重构,这个项目是一个功能很齐全的WPF视频播放器(附带很多其他功能),在仔细研究了项目的背景和架构以后,初步做出了一下的重构方案:
目前现状:
虽然整个系统做得很漂亮,代码也写得不错,但仍有以下不足:
架构有待改善。虽然看似MVC架构,却没有遵循MVC的模式,里面逻辑和UI耦合很高,没有清晰的规律。没有充分用到WPF的特性。...
分类:
其他好文 时间:
2015-07-20 19:39:19
阅读次数:
162
这个小型项目有点曲折,始于2006年,当时由于没有总结经验,所以后来又做了N个类似的项目,鉴于此,记下总结。
系统软件架构概括
系统采用了B/S结构, 多层运行模式,同时适用于Intranet/Internet。浏览器为第一层,作为系统的应用界面;中间层为以WCF为载体的SOA;应用逻辑服务为第三层;数据链接为第四层,作为系统的数据存取服务。此架构无须安装客户端软件,便于软件的分发和维...
分类:
其他好文 时间:
2015-07-20 19:40:15
阅读次数:
113
需要使用第三方工具#import "GDataXMLNode.h"@property (nonatomic, strong) NSMutableArray *xmlDOMArray;- (IBAction)XMLDOMButtonDidClicked:(UIButton *)sender {
// 1、拿到 xml 文件的路径
NSString *path = [[NSBundle...
分类:
其他好文 时间:
2015-07-20 19:39:43
阅读次数:
89
1 layoutSubviews 是UiView 的属性方法 调用情况,以下简称 ls 方法
(a) init 方法不会调用 initwithFrame 会调用(frame 不为CGRectZero)
例如:
_myView = [[MyView alloc] initWithFrame:CGRectMake(20, 20, 100, 100)];// 调用
_myVi...
分类:
其他好文 时间:
2015-07-20 19:38:47
阅读次数:
96
着色程序分为两类:vertex shader program(顶点着色程序)和fragment shader program(片断着色程序)。为了清楚的解释顶点着色和片断着色的含义,我们首先从阐述GPU上的两个组件:Programmable Vertex Processor(可编程顶点处理器,又称为顶点着色器)和 Programmable Fragment Processor(可编程片断处理器,又...
分类:
其他好文 时间:
2015-07-20 19:36:47
阅读次数:
153