码迷,mamicode.com
首页 > 其他好文
Justinmind使用教程(3)——管理原型
前面已经介绍了Justinmind的概述以及通过Justinmind实现简单的计算器功能 Justinmind使用教程(1)——概述部分 Justinmind使用教程(2)——计算表达式及条件使用方法 本章将回到最原始的部分,以iphone 5为例,介绍如何创建原型...
分类:其他好文   时间:2014-10-23 12:32:14    阅读次数:196
ListView优化adapter getview的两种方式ViewHolder vs HolderView
一、ViewHolder方式 如果你还没听说过ViewHolder,那么你该去好好看看官方文档了,而不是埋头写代码。 一个ListView的item布局中需要赋值的子元素太多为了避免重复的调用FindViewById方法,我们一般考虑使用ViewHolder方式来实现BaseAdapter。 如下://在外面先定义,ViewHolder静态类 static class ViewHolde...
分类:其他好文   时间:2014-10-23 12:33:42    阅读次数:136
TestNg之@Factory详解------如何进行参数值变化性测试
TestNg的 @Factory注解从字面意思上来讲就是采用工厂的方法来创建测试数据并配合完成测试 其主要应对的场景是:对于某一个测试用例或方法,我们需要输入多个测试数据进行测试,并且这些测试数据可以是有一定关系(可以通过代码控制), 此时,我们就可以把自动化或者手动测试时的遇到的只因测试数据不同的多个测试用例合并成一个测试用例,来进行更方便和快捷的测试, 对编写自动化测试代码人员节省了很多时间 策略:一般我们会在标有@Factory注解的方法中对测试类进行调用,这时TestNg会自动调用测试类中带...
分类:其他好文   时间:2014-10-23 12:32:10    阅读次数:183
TestNg的工厂测试引用@DataProvider数据源----灵活使用工厂测试
@Factory的高级用法 @Factory和@DataProvider相结合的方式...
分类:其他好文   时间:2014-10-23 12:32:00    阅读次数:204
UIAlertView 和 UIAlertController
UIAlertView及UIActionSheet在ios8中被放弃 其功能将完全由UIAlertController代替: 1.Alert用法  UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"This is Title" ...
分类:其他好文   时间:2014-10-23 12:30:07    阅读次数:167
hdu 5074 相邻数和最大dp
http://acm.hdu.edu.cn/showproblem.php?pid=5074 给定一个序列 有些位数未知,给你所有两个数连续所得到的能量,问你怎么安排数字使得总能量最大 二维dp,dp[i][j]表示第i位放音符j 分类讨论即可 #include #include #include #include #include #include #include #...
分类:其他好文   时间:2014-10-23 12:30:17    阅读次数:151
POJ 2421 Constructing Roads(最小生成树)
题意  在n个村庄之间修路使所有村庄连通  其中有些路已经修好了  求至少还需要修多长路 还是裸的最小生成树  修好的边权值为0就行咯 #include #include #include #include using namespace std; const int N = 105, M = 10050; int par[N], n, m, mat[N][N]; int ans; struc...
分类:其他好文   时间:2014-10-23 12:29:17    阅读次数:200
使用objdump调试驱动
最近在调式一个判断nand是好的还是坏的驱动+测试程序,于是有了以下的调式过程,似乎自己也学到了一点知识,所以记录一下。这篇文章主要是讲述调式驱动的一个方法而已。先来看看测试程序#include #include #include "dragonboard_inc.h" #include #include #include #include #include #include #i...
分类:其他好文   时间:2014-10-23 12:31:13    阅读次数:350
11g R2RAC Dynamic remastering
In this post, I will demonstrate dynamic remastering of the resources in RAC . In RAC, every data block is mastered by an instance. Mastering a block simply means that master instance keeps tra...
分类:其他好文   时间:2014-10-23 12:29:24    阅读次数:260
leetcode - Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique permutations: [1,1,2], [1,2,1], and [2,1,1]....
分类:其他好文   时间:2014-10-23 12:29:48    阅读次数:136
git命令笔记
tag 1. 显示所有tag列表 git tag2. 添加tag git tag -a v1.0 -m 'add version 1.0'// 后期加注标签 git tag -a v1.2 9fceb02 3. 推送本地tag到远程 git push origin 1.0 git push origin --tags4. 查看相应tag信息 git show v1.05. 删除本地...
分类:其他好文   时间:2014-10-23 12:30:38    阅读次数:174
正则表达式
1.行首与行尾字符^$ 行首: oyzhx@ubuntu:~$ grep -n '^the' regular_express.txt 12:the symbol '*' is represented as start. 行尾 oyzhx@ubuntu:~$ grep -n '\.$' regular_express.txt 1:"Open Source" is a good m...
分类:其他好文   时间:2014-10-23 12:29:00    阅读次数:165
Ambari-Blueprint介绍
Ambari-Blueprint整体介绍 ambari-blueprint主要作用是通过提供一个restAPI,调用几次API就可以创建一个集群,ambari-server解析stack下的role_command_order.json文件来自动部署集群,role_command_order.json文件记录着各个服务与组件的部署顺序,ambari-server会自动根据顺序建立task,这...
分类:其他好文   时间:2014-10-23 12:29:45    阅读次数:304
PS 滤镜——扩散特效, 毛玻璃 效果
%%%  Diffuse %%%  扩散效果    clc; clear all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); Image=imread('4.jpg'); Image=double(Image); size_info=size(Image);   height=...
分类:其他好文   时间:2014-10-23 12:29:17    阅读次数:226
CSDN专家吐槽实录
今天打开CSDN发现界面上的几个图标发生了变化,一个小小的变化,却引起了诸多CSDN专家对CSDN社区未来发展的思考,我特意从群里讲对话黏贴出来,希望各位能给予积极评价和建议。你已经是群成员了,和大家打个招呼吧!阳光小强(739299362) 11:12:53 大家好,这里还深藏着这么一个群11:13:26墨镜猫。加入本群11:13:37风加入本群阳光小强(739299362) 11:13:44 ...
分类:其他好文   时间:2014-10-23 12:26:16    阅读次数:211
系统级性能分析工具 — Perf
Perf是内置于Linux内核源码树中的性能剖析(profiling)工具。 它基于事件采样原理,以性能事件为基础,支持针对处理器相关性能指标与操作系统相关性能指标的性能剖析。 常用于性能瓶颈的查找与热点代码的定位。...
分类:其他好文   时间:2014-10-23 12:26:06    阅读次数:326
codeforces 468B 2-sat
今天明白了2-SAT; 表示对一对整数之间的关系是否存在 #include #include #include #include #include using namespace std; const int Maxn = 1e5+10; int mark[Maxn << 1]; int s[Maxn * 2],top,tp; int head[Maxn*2]; map mp; int x...
分类:其他好文   时间:2014-10-23 12:26:34    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!