#!/bin/bash#Date:2015.11.13#Description:first,buildtheneedfiles,secondpushtothemachine.#youneedtoinputyourhostip#Version:0.0.1echo"theminekeywillcometo"[!-f/root/.ssh/id_rsa]&&ssh-keygen-trsa-f~/.ssh/id_rsa-N‘‘[-f/root/.ssh/id_rsa.pub]&&cat/..
分类:
其他好文 时间:
2016-11-14 02:45:48
阅读次数:
134
主要参考这个https://www.topcoder.com/community/data-science/data-science-tutorials/binary-search/讲的非常仔细。 以前做题的时候,经常遇到一些二分的题目,但是对边界条件,主要是加一还是减一,把握的不是很准确,后来看到 ...
分类:
其他好文 时间:
2016-11-13 19:01:06
阅读次数:
180
1、用shell来连接HBase 2、创建表 3、插入记录 4、查看记录(scan) 5、 用get查看单行数据 6、 用disable和drop删除表 ...
分类:
其他好文 时间:
2016-11-12 23:07:30
阅读次数:
223
1,日期转换db.sales.aggregate( [ { $project: { year: { $year: "$date" }, month: { $month: "$date" }, day: { $dayOfMonth: "$date" }, hour: { $hour: "$date" ...
分类:
其他好文 时间:
2016-11-12 02:13:05
阅读次数:
212
// 获得零点的时间戳 $time = strtotime(date('Ymd')); // 获得零点的时间戳 $time = strtotime(date('Ymd')); // 获得今天24点的时间戳 $time = strtotime(date('Ymd')) + 86400; // 获得今天 ...
分类:
Web程序 时间:
2016-11-11 19:57:06
阅读次数:
269
XML文档内容如下: 给XML指定的标签内添加标签 修改指定的标签 ...
一、Array对象 ArrayObject.reverse() 将数组进行翻转 ArrayObject.shift() 删除数组中的第一个元素并将其返回 ArrayObject.unshift(元素1,元素2) 往数组中的开头添加一个或者多个数组元素 并返回新的数组的长度 ArrayObject.p ...
分类:
编程语言 时间:
2016-11-10 03:10:46
阅读次数:
237
大家都知道如果手机只有一个活动的应用,那这个应用也太简单了吧。如同网页一下,是有多个组成的,在C#中我们可以使用各程skip控件或代码,这里不再赘述。 ...
分类:
其他好文 时间:
2016-11-10 02:40:33
阅读次数:
168
koa-static-server Static file serving middleware for koa with directory, rewrite and index support koa-static-server static file serving middleware fo ...
分类:
Web程序 时间:
2016-11-08 13:49:29
阅读次数:
230