1.修改conf/core-site.xml增加 fs.checkpoint.period 3600 The number of seconds between two periodic checkpoints. fs.checkpoint.size 67108864 The size of ...
分类:
其他好文 时间:
2014-09-22 20:25:53
阅读次数:
247
Configuring the Gesture Recognizer@property(nonatomic) NSUInteger maximumNumberOfTouches//The maximum number of fingers that can be touching the view ...
分类:
其他好文 时间:
2014-09-22 19:04:23
阅读次数:
241
1、用于删除重复记录(The use of to delete the common record)例子:(Example)#1初始化数据(Initialize the data)CREATE TABLE #tmp1 ( id int, name nvarchar(20), age int );IN...
分类:
其他好文 时间:
2014-09-22 17:19:22
阅读次数:
133
经常用到的自动生成验证码小技术,在此总结一下。
可以分为两个部分,一个生成四位随机数,一部分是绘制背景。代码如下:
//自动生成验证码
private string GenerateCheckCode()
{
int number;
char code;
string checkCode = String.Empty;
...
分类:
其他好文 时间:
2014-09-22 16:30:02
阅读次数:
168
PHP中的魔术变量小结PHP中,有不少很好用的魔术变量,用好之,能事半功倍,下面小结之: 1 _LINE_ 显示当前代码的行数: echo "This is line number : ". __LINE__;2 _FILE_ 显示当前文件的路径3 _METHOD_ 显示当前方法的名,比如 clas...
分类:
Web程序 时间:
2014-09-22 12:26:52
阅读次数:
322
class Solution {public: // a valid number should be in the below form // -/+digit.digitE/e+/-digit bool isNumber(const char *s) { if (...
分类:
其他好文 时间:
2014-09-22 12:05:32
阅读次数:
180
一、针对GB2、GB3等版本,预置联系人可以 中Part one这部分即可。
例如:在AbstractStartSIMService类的开始增加的定义如下:
public static final int INSERT_NUMBER_COUNT = 4; //定义要预置的联系人的个数
public static...
分类:
移动开发 时间:
2014-09-22 11:10:42
阅读次数:
275
What do Leonard Nimoy, Stana Katic, and RobertDowney Jr. have in common? They all have a Bacon number of 2. The Six Degreesof Kevin Bacon, a game crea...
分类:
其他好文 时间:
2014-09-22 06:43:22
阅读次数:
181
zookeeper中节点数量理论上仅受限于内存,但一个节点下的子节点数量受限于request/response 1M数据 (size
of data / number of znodes)
zookeeper的watch机制用于数据变更时zookeeper的主动通知。watch可以被附加到每一个节点上,那么如果一个应用有10W个节点,那zookeeper中就可能有10W个watch(甚至更多...
分类:
其他好文 时间:
2014-09-21 23:54:21
阅读次数:
275
NUMBER:? ? ????number:38位;number(p,s):p:精度,s:刻度(小数位数),在Oracle数据库中,number数据类型代表int,double,float等数字类型数据 举例: 1234.567 number(6,2) --------> 1234.57 0.00123...
分类:
数据库 时间:
2014-09-21 23:10:11
阅读次数:
208