1.BIND的组成?
* named守护进程–用来回答查询结果的
* 去联系DNS分布式数据库的服务器用来解析主机查询的库例程
* DNS的一些重要命令:nslookup,dig和host
* 2.名字服务器
* 权威--一个区的正式代表
* 主服务器:每个区都有的一个主名字服务器,保存着本区数据的正式拷贝。SA...
分类:
其他好文 时间:
2014-07-22 23:04:55
阅读次数:
334
一,socket 模块
套接字包括两类:服务器,客户机,
创建一个套接字后让它等待连接
服务器:
import socket
s = socket.socket()
port = 1234
host = socket.gethostname()
print host
s.bind((host,port))
s.listen(5)
while True:
get,addr = s...
分类:
编程语言 时间:
2014-05-02 21:59:57
阅读次数:
444
MongoDB常用命令1.启动命令 mongod 启动数据库进程 --dbpath 制定数据库的目录
--port 制定数据库的端口,默认是27017 --bind_ip 绑定IP --directoryperdb 为每个db创建一个独立子目录
--logpath 制定日志存放目录 -...
分类:
数据库 时间:
2014-05-01 21:09:19
阅读次数:
451
RecursionIt is legal for one function to call
another; it is also legal for a function to call itself. It may not be obvious
why what is a good thing,...
分类:
其他好文 时间:
2014-05-01 18:40:44
阅读次数:
302
>>> d1 = dict(a = 1, b = 2)>>> d2
= dict(b = 2, c = 3)>>> d1 & d2 # 字典不?支持该操作Traceback (most recent
call last): File "", line 1, in TypeError: unsupp....
分类:
其他好文 时间:
2014-05-01 12:50:50
阅读次数:
341
ABAP中FORM参数的传递有以下几种方式。 1.引用传递(CALL BY REFERENCE)
传递参数时将参数的地址(ADDRESS)传至子程序中,也就是子程序中的参数变量与外部程序的参数变量共享地址内的值。又叫CALL BY
ADDRESS,若子程序中的参数变量的值发生了改变,那么,外...
分类:
其他好文 时间:
2014-05-01 08:39:35
阅读次数:
339
一、采用tri::function/bind方法实现类成员函数内部调用首先声明函数类型1
std::tr1::function func;在需要调用函数的地方绑定函数 1 switch (flgFun) { 2 case flgSine: 3
func = std::tr1::bind(&C...
分类:
其他好文 时间:
2014-05-01 05:03:39
阅读次数:
346
为方便起见将JQuery.fn.init称之为JQuery对象
JQuery原型对象方法:
(1) toArray()
调用[].prototype.slice.call(jquery)将JQuery对象(类对象)转换为真正的数组
测试html
body>
div id= "div1">div1div >div id= "div2">div2...
分类:
Web程序 时间:
2014-04-29 13:32:22
阅读次数:
361
Object.prototype.toString & typeof
Object.prototype.toString 获取某个对象属于哪种内置类型
typeof 得到某个对象的类型
区别:
举个例子:
var arr = new Array();
typeof(arr); //object
Object.prototype.toString.call(arr); //[Object Array]...
分类:
其他好文 时间:
2014-04-28 10:33:42
阅读次数:
279
Usage: docker [OPTIONS] COMMAND [arg...]
-H=[unix:///var/run/docker.sock]: tcp://host:port to bind/connect to or unix://path/to/socket to use
A self-sufficient runtime for linux containers.
Co...
分类:
其他好文 时间:
2014-04-28 10:17:41
阅读次数:
359