码迷,mamicode.com
首页 > 其他好文
谁动了我的截图?--Monkeyrunner takeSnapshot方法源码跟踪分析
本文章的目的是通过分析monkeyrunner是如何实现截屏来作为一个例子尝试投石问路为下一篇文章做准备,往下一篇文章本人有意分析下monkeyrunner究竟是如何和目标测试机器通信的,所以最好的办法本人认为是先跟踪一个调用示例从高层到底层进行分析,本人以前分析操作系统源代码的时候就是先从用户层的write这个api入手,然后一路打通到vfs文件系统层,到设备驱动层的,其效果比单纯的理论描述更容...
分类:其他好文   时间:2014-10-19 17:13:43    阅读次数:149
ZOJ 2405 Specialized Four-Digit Numbers(写个进制求和函数)
看到网上的一些写法,10进制/12进制/16进制 都写了个子函数,其实统一写个进制求和子函数很简单...
分类:其他好文   时间:2014-10-19 17:12:10    阅读次数:189
设计模式:代理模式
代理模式,如上图所示。concreteObject与Proxy都实现IInterface接口,并且Proxy关联concreteObject. 它可以在不修改concreteObject的基础上,利用Proxy完成一些附加功能,做到职责清晰。 并且,它是spring中aop(面向切面编程)实现的基础。 blog宗旨:用图说话....
分类:其他好文   时间:2014-10-19 17:11:33    阅读次数:151
POJ 1631 Bridging signals(LIS 二分 快速方法)
Language: Default Bridging signals Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 10762   Accepted: 5899 Description 'Oh no, they've done it again', cri...
分类:其他好文   时间:2014-10-19 17:12:02    阅读次数:162
POJ 2084 Catalan数+高精度
POJ 2084 /**************************************** * author : Grant Yuan * time : 2014/10/19 15:42 * source : POJ 2084 * algorithm: Catal...
分类:其他好文   时间:2014-10-19 17:10:30    阅读次数:157
HDU 1023 Catalan数+高精度
链接:HDU 1023 /**************************************** * author : Grant Yuan * time : 2014/10/19 15:51 * source : HDU 1023 * algorithm : ...
分类:其他好文   时间:2014-10-19 17:10:40    阅读次数:198
hdu 1213 (How Many Tables)(简单的并查集,纯模板)
How Many Tables Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 14081    Accepted Submission(s): 6912 Problem Description Today is ...
分类:其他好文   时间:2014-10-19 17:09:54    阅读次数:196
管理经验(一)——如何当好一个管理者
有过了带领几次团队的基础后,不知不觉中已经为自己积累了一些管理的经验,而项管考试的准备也在如火如荼的进行着,在这个过程中也不得不让自己更多的去思考,如何才能当好一个管理者?          首先说管理上是没有什么绝对的内容的,就像在做选择题一样,描述太过绝对的选项十之八九就是错误的。因材施教、因地制宜、具体情况具体分析也算是对一个管理者巨大的考验了吧。在准备信息系统项目管理师考试的过程中也是...
分类:其他好文   时间:2014-10-19 17:09:54    阅读次数:282
HDU 1269 迷宫城堡(强连通)
HDU 1269 迷宫城堡 题目链接 题意:中文题 思路:强连通模板题 代码: #include #include #include #include using namespace std; const int N = 10005; int n, m; vector g[N], scc[N]; int pre[N], lowlink[N], sccno[...
分类:其他好文   时间:2014-10-19 17:07:43    阅读次数:189
swoole入门教程01-环境搭建及扩展安装
写在前面的废话 《swoole源码分析》已经写了13章,整个swoole的核心架构基本都分析的差不多了。于是心里一直以来想整理swoole的文档并写一份教程的想法就再度浮了出来。实话说,我接触swoole乃至接触PHP都仅有9个月的时间,而自7月份以来一直在公司做Android开发,也有没有了使用swoole的机会。所以,现在我只能写出一份入门级教程,帮助刚刚接触swoole的人理解和使用s...
分类:其他好文   时间:2014-10-19 17:08:22    阅读次数:495
Distinct Subsequences 解题报告
题目:给两个字符串S和T,判断T在S中出现的次数。 A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (ie, "ACE" is a subsequence...
分类:其他好文   时间:2014-10-19 17:09:51    阅读次数:190
POJ 2418 Hardwood Species( AVL-Tree )
#include #include #include #include typedef struct AVLTree{ char name[31]; int nCount; int nHeight; struct AVLTree* pLeft; struct AVLTree* pRight; }AVLTree; int Max( int...
分类:其他好文   时间:2014-10-19 17:09:29    阅读次数:243
SGU 197 Nice Patterns Strike Back || ZOJ 2317 Nice Patterns Strike Back
矩阵快速幂...
分类:其他好文   时间:2014-10-19 17:07:28    阅读次数:185
POJ 1833 生成排列
题目链接:POJ 1833 /************************************ * author : Grant Yuan * time : 2014/10/19 16:38 * source : POJ 1833 * ...
分类:其他好文   时间:2014-10-19 17:08:36    阅读次数:202
YY前端笔试总结
YY(欢聚时代)笔试总结--走的更远...
分类:其他好文   时间:2014-10-19 17:08:26    阅读次数:218
HDU-1025 Constructing Roads In JGShining's Kingdom O(nlogn)的最长上升子序列
模板题,唯一问题是当长度为1是,road是单数,不然road是复数roads。 #include #include #include #include #include #include #include #include using namespace std; const int maxn=1021000; struct node { int r; int b...
分类:其他好文   时间:2014-10-19 17:07:26    阅读次数:206
hdu 4035 Maze (概率DP)
Maze Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 1713    Accepted Submission(s): 659 Special Judge Problem Description When wake...
分类:其他好文   时间:2014-10-19 17:07:21    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!