cat ./bash_history 查看历史操作 mac osx连接ssh如何保持在线状态不断或自动重连 sudo vi ~/.ssh/config 添加两行 ServerAliveInterval 120 TCPKeepAlive no然后保存 ...
分类:
系统相关 时间:
2017-04-27 21:12:43
阅读次数:
162
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 递归进行。每次找到排序数组的中点,中点左边的子排序数组构成左子树,中点右边的子排序数组构成右子树。 ...
分类:
其他好文 时间:
2017-04-27 19:44:17
阅读次数:
120
本文编写中参考了一下两位大神的文章。其中介绍各种git版本控制服务器,受益良多。感谢感谢!http://www.cnblogs.com/lwme/archive/2012/12/25/configuring-git-server-and-client-on-windows.htmlhttp://www.oschina.net/news/50222/git-code-platforms
分类:
其他好文 时间:
2017-04-27 19:41:55
阅读次数:
225
linux 打开文件数 too many open files 解决方法 too many open files 出现这句提示的原因是程序打开的文件/socket连接数量超过系统设定值。 查看每一个用户最大同意打开文件数量 ulimit -a fdipzone@ubuntu:~$ ulimit -a ...
分类:
系统相关 时间:
2017-04-27 19:39:52
阅读次数:
170
原本用的webstorm部署的gulp,后来由于太卡,打算换个编辑器,考虑了一番,之前用的是sublime,配置很是麻烦,最新听说饥人谷老师用的是vsCode,所以打算尝试一下这个编辑器,安装还是很方便的,不需要破解,直接下载,安装,就可以用了,然后开始配置gulp,百度搜了下,有配置gulp的先例 ...
分类:
其他好文 时间:
2017-04-27 19:37:03
阅读次数:
4846
利用质数做随机图形 参考网站 http://2016.uxlondon.com/speakers ...
分类:
Web程序 时间:
2017-04-27 17:51:42
阅读次数:
289
上面的代码是不能达到每轮循环等待100ms 的预期的,因为调用select 后,delay.tv_sec 和 delay.tv_usec 被修改为0 了。 delay需要在循环内赋值,才能达到预期。 ...
分类:
其他好文 时间:
2017-04-27 17:51:34
阅读次数:
146
spark笔记big dataspark 比较Hadoop生态圈:MapReduce Hive Storm Yarn Sqoop Flume HDFSSpark它会代替Hadoop:不能,可能会替代MR炒作 社区比较完善hadoop3.0作者:Doug cutting(hadoop以后也要走内存)S... ...
分类:
其他好文 时间:
2017-04-27 17:48:36
阅读次数:
242
转载:http://www.cnblogs.com/kaituorensheng/archive/2012/08/20/2648209.html 先看代码instance: 究其因: 1. 正则表达式中的三组括号把匹配结果分成三组 m.group() == m.group(0) == 所有匹配的字符 ...
分类:
编程语言 时间:
2017-04-27 16:19:41
阅读次数:
5227
1 #include 2 using namespace std; 3 int func1(unsigned int i) { 4 5 unsigned int temp = i; 6 7 temp = (temp & 0x55555555) + ((temp & 0xaaaaaaaa) >> 1)... ...
分类:
其他好文 时间:
2017-04-27 15:42:50
阅读次数:
163