- (void)yourButtonTitleTime{ __block int timeout=30; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);.....
分类:
其他好文 时间:
2014-06-26 00:43:27
阅读次数:
305
一个简单的block的定义:(void)(^myblock)()=^{ NSLog(@"------block输出----");};//调用blockmyblock();有参数和返回值的block(int)(^blockAdd)(int,int)=^(a,b){ return a+b; ...
分类:
移动开发 时间:
2014-06-26 00:33:45
阅读次数:
263
Hbase是一个分布式,版本化(versioned),构建在 Apache Hadoop和 Apache ZooKeeper上的列数据库.本文使用默认的Zookeeper,构造HDFS基础上的分布式Hbase。1 安装环境操作系统:Ubuntu-12.04 JDK版本:jdk1.7.0_51 计算....
分类:
其他好文 时间:
2014-06-26 00:31:04
阅读次数:
302
背景: 有些分布式服务(比如HBase服务), 依赖于系统时间戳, 如果集群各个节点, 系统时间不一致, 导致服务出现诡异的情况.解决方案: 那如何同步集群各个节点之间的时间? 采用NTP(Network Time Protocol)方式来实现, 选择一台机器, 作为集群的时间同步服务器, 然...
分类:
其他好文 时间:
2014-06-25 22:59:50
阅读次数:
346
ocp 053:399.Which of the following is not an advantage of block media recovery (BMR)?A. Reduced MTTR.B. Datafiles remain offline while corrupt blocks ...
分类:
其他好文 时间:
2014-06-25 15:42:15
阅读次数:
201
Apache Hadoop的服务的部署比较繁琐,需要手工处理配置文件、下载依赖包等。Cloudera Manager以GUI的方式的管理CDH集群,提供向导式的安装步骤。由于需要对Hive,HBase,Impala,Spark进行功能测试,就采用了Cloudera Manager方式进行安装。本文讲解的是parcel安装方式。...
分类:
其他好文 时间:
2014-06-24 22:44:17
阅读次数:
501
Amazon EBS(Elastic Block Store,简称EBS) 为 Amazon EC2 实例提供块级存储服务。EBS 卷需要通过网络访问,并且能独立于实例的生命周期而存在,也就是说假如EC2实例出现问题,那么存放在EBS卷上的数据还是可以得到保存。Amazon EBS 提供高可用性、高可靠性的存储卷,并可以与一个正在运行 EC2 实例相连接且在实例中显示的为一个设备。对于那些需要建立...
分类:
其他好文 时间:
2014-06-24 20:03:43
阅读次数:
385
// JSON & XML解析及代码块封装
// Created by apple on 13-10-10.
/*
异步加载网络图像的内存缓存解决方法
1. 在对象中定义一个UIImage
2. 在控制器中,填充表格内容时,判断UIImage是否存在内容
1> 如...
分类:
移动开发 时间:
2014-06-24 15:33:10
阅读次数:
354
在实际应用中,考虑到seo,很多button,icon都要用到inline-block和text-indent来处理,例如:Buttoncss我习惯写成这样.btn{display:inline-block; width:100px; height:23px; text-indent:-9999px...
分类:
其他好文 时间:
2014-06-22 12:56:49
阅读次数:
204
There are two types of Standby databases:
1, Physical standby database
block-for-block basis
the physically identical with the primary database
user recovery technology
2, Logical standby databa...
分类:
其他好文 时间:
2014-06-22 08:35:53
阅读次数:
355