本篇博文中谈及的Hadoop和HBase都是单机版,简单了解。首先在Ubuntu上搭建Hadoop开发环境,主要参考另外一篇博客,仔细照做并解决出现的问题即可。地址:http://www.powerxing.com/install-hadoop-2-4-1-single-node/这篇文章的思路很清...
分类:
系统相关 时间:
2015-04-21 17:22:45
阅读次数:
157
一、引号定义字符串 在Php中,通常一个字符串被定义在一对引号中,如:'I am a string in single quotes'"I am a string in double quotes" Php语法分析器是用成对的引号来判断一个字符串的。因此,所有字符串必须使用同一种单或者双引号来定.....
分类:
Web程序 时间:
2015-04-21 12:40:11
阅读次数:
178
hadoop的配置见下面这篇文章http://www.powerxing.com/install-hadoop-2-4-1-single-node/Hadoop安装教程_单机/伪分布式配置_Hadoop2.4.1_Ubuntu14.04 2014-08-09 (updated: 2014-12-30...
分类:
其他好文 时间:
2015-04-20 23:57:12
阅读次数:
209
参考:http://blog.csdn.net/kufeiyun/article/details/6166673private static Single instance = nullpublic synchronized static Single getInstance(){ if(ins.....
分类:
编程语言 时间:
2015-04-20 20:45:21
阅读次数:
103
单一职责原则:Single Responsibility Principle,以下举例说明我在代码重构方面对单一职责原则的使用。
1、单行代码职责单一
private double GetSubtotalAmount(doube singlePrice,int productCount)
{
return singlePrice*productCount;
} 上文中的retu...
分类:
其他好文 时间:
2015-04-19 18:02:24
阅读次数:
167
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-04-19 17:48:57
阅读次数:
127
来源:https://stackoverflow.com/questions/8337180/custom-single-choice-listview/12823457#12823457
1.在listview item里面设置
<RadioButton
android:id="@+id/radio1"
android:checked="false"
a...
分类:
其他好文 时间:
2015-04-18 14:37:42
阅读次数:
169
SOLID原则是面向对象范式的核心单一职责原则(Single Responsible Principle, SRP):对于一个类,应该仅有一个引起它变化的原因。其基础是内聚,表示类完成单一功能的程度。开放—封闭原则(Open Closed Principle,OCP):类应该对扩展开放,对修改关闭。...
分类:
其他好文 时间:
2015-04-18 12:59:19
阅读次数:
144
AQtGui.QLineEditis a widget that allows to enter and edit a single line of plain text. There are undo and redo, cut and paste, and drag & drop functio...
分类:
其他好文 时间:
2015-04-17 21:52:50
阅读次数:
180
windows的动态库有几个需要注意的地方,因为相比较linux的动态库而言,需要设置的地方实在太多了。
1、首先需要注意的是运行时库的模式的选择一定要一致的!
原因在于每个dll库的堆管理器都是建立在运行时库crt的副本的基础之上,而每一个库必然有一个运行时库的副本。这里涉及到几个选择问题。
第一,选择mt还是md的问题,
1)mt表示的是mutilt-thread single,表示的...