码迷,mamicode.com
首页 >  
搜索关键字:route add    ( 40374个结果
c++训练营
// demo1.cpp : 定义控制台应用程序的入口点。//通过此例程了解重载#include "stdafx.h"#include using namespace std;class CMath{public:CMath(float a):m_a(a){}~CMath(){}double Add...
分类:编程语言   时间:2014-05-17 13:24:50    阅读次数:343
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-05-16 23:18:16    阅读次数:360
添加故障转移(add failover)
运行单独的节点意味着有将会面对单点故障——没有冗余的数据备份。幸运的是我们可以启动另外的node来保护我们的数据。一个新的node,只要他的cluster name和已经存在的cluster节点的名称相同,就会自动加入这个cluster,并且能和其他的node进行通信。增加第二个node之后,clu...
分类:其他好文   时间:2014-05-16 19:11:21    阅读次数:341
Set与list测试
public class SetTest { public static void main(String[] args) { Set set = new HashSet(); List list = new ArrayList(); list.add...
分类:其他好文   时间:2014-05-16 07:18:35    阅读次数:263
LINQ 简单用法【1】
LINQ:Language INtegrated Query,语言集成查询。以下内容演示如何利用LINQ进行增加,修改,删除和查询操作,针对数据库。首先创建Linq Class。添加数据库信息,直接Add一个Connection,输入服务器和登录ID,测试连接成功。现在可以看到数据库里面的信息了,比...
分类:其他好文   时间:2014-05-13 20:46:42    阅读次数:333
添加一个index(add an index)
想ES中存储数据,需要index——存储数据的地方,实际上,index就是一个指向若干物理shard的逻辑命名空间。shard就是更底层的工作单元,每个shard是一个Lucene的实例,每个shard在其控制范围内都是一个完整的搜索引擎。我们的文档被存储,并且被index到shard,但是应用程序...
分类:其他好文   时间:2014-05-13 19:13:16    阅读次数:289
SQL2005 表分区亲测
--增加文件组alter database Test add filegroup [FG1]goalter database Test add filegroup [FG2]GOalter database Test add filegroup [FG3]--增加文件ALTER DATABASE [...
分类:数据库   时间:2014-05-13 17:34:41    阅读次数:374
python版wc
#!/usr/bin/envpython#coding:utf8fromoptparseimportOptionParserimportsys,os#parser=OptionParser()defset():parser=OptionParser("Usage:%prog[file1][file2]...")parser.add_option("-c","--chars",dest="characters",action="store_true",default=False,help="onlycountc..
分类:编程语言   时间:2014-05-13 04:31:41    阅读次数:488
原创python多线程批量管理工具batch(不断完善)
#!/usr/bin/envpythonimportthreadingimporttimeimportparamikoimportos,sysfromipimportip_list,web_server,ip_msgfromoptparseimportOptionParserfromssh_co.cfg.configimporthost_msgdefopts():parser=OptionParser(usage="usage%progoptions")parser.add_option("-i","--it..
分类:编程语言   时间:2014-05-13 03:32:03    阅读次数:537
Linux01-Linux网络配置38
一、网卡1、Linux:网络属于内核的功能2、网卡定义:a)RHEL5网卡定义文件:/etc/modprobe.confb)RHEL6网卡定义文件:/etc/udev/rules.d/70-persistent-net.rules3、网卡命名:a)lo:本地回环b)以太网网卡:ethXc)点对点连接网卡:pppX4、网卡配置命令a)ifconfig[ethX]:显示网卡信..
分类:系统相关   时间:2014-05-13 01:13:33    阅读次数:434
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!