服务器端的Bind(IPEndPoint)只能绑定本机所拥有的地址,如127.0.0.1,过路由的还可以绑定你在从路由获得的地址(如192.168.1.100),直接单机拨号上网的,还可以绑定你的拨号获得的外网IP。总之就是只能绑定本机可以获得的合法IP,最重要的是服务器端提供了端口号。客户端的Co...
分类:
其他好文 时间:
2014-05-23 07:24:47
阅读次数:
296
建立ssh无验证连接
Check for SSH keys、
cd ~/.ssh
ls
Check the directory listing to see if you have a file named either id_rsa.pub or id_dsa.pub
检查有无产生过的key,一台机器只能创建一个。如果重新创建则前一个会被覆盖。
Generate a new SSH ...
分类:
其他好文 时间:
2014-05-22 18:33:48
阅读次数:
261
【题目】
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of ju...
分类:
其他好文 时间:
2014-05-22 17:02:20
阅读次数:
244
cocos2d-x升级到3.0后变化不小,除了API的变化(主要是函数和类名称变化,以及使用了C++11的不少特性,function/bind, lamda, std::thread…),创建和编译工程也做了一些简化调整。本文主要讨论一下cocos2d-x3.0 在android平台开发的环境设置及工程创建编译流程。...
分类:
移动开发 时间:
2014-05-22 13:38:47
阅读次数:
1044
转自:http://blog.csdn.net/Solstice/archive/2008/10/13/3066268.aspx这是一篇比较情绪化的blog,中心思想是“继承就像一条贼船,上去就下不来了”,而借助boost::function和boost::bind,大多数情况下,你都不用上贼船。b...
分类:
其他好文 时间:
2014-05-22 02:12:42
阅读次数:
287
ECMAScript5浏览器支持情况:
Opera 11.60Internet Explorer 9*Firefox 4Safari 5.1**Chrome 13
* IE9不支持严格模式 — IE10 添加
** Safari 5.1 仍不支持 Function.prototype.bind, 尽管 Function.prototype.bind现在已经被Webki...
分类:
其他好文 时间:
2014-05-21 08:54:09
阅读次数:
227
今天带大家来看看如何手动编译源码bind,自己手动编译安装的很多文件都要自己去建立,配置文件也要从零写起,而且没有服务启动脚本,需要自己编写启动脚本。实验规划:1、在192.168.1.200这台主机上编译安装bind,完成后为named服务编写启动脚本,加入到service。2、配置view实..
分类:
其他好文 时间:
2014-05-20 23:57:40
阅读次数:
439
yuminstallbind*一、修改下面配置文件vi/etc/named.confoptions{listen-onport53{192.168.100.210;};listen-on-v6port53{::1;};directory"/var/named";dump-file"/var/named/data/cache_dump.db";statistics-file"/var/named/data/named_stats.txt";memstatistics-file"/var/na..
分类:
其他好文 时间:
2014-05-20 22:07:44
阅读次数:
341