一. 种类: 标准STL序列容器:vector、string、deque和list。 标准STL关联容器:set、multiset、map和multimap。 非标准序列容器slist和rope。slist是一个单向链表,rope本质上是一个重型字符串 非标准关联容器hash_set、hash_mu Read More
posted @ 2017-09-04 17:38 Duerbin Views(292) Comments(0) Diggs(0) Edit
查看计算机路由表 Route print 跟踪路由表 Tracert ip or dnsname 本次需求,连接greenvpn之后,公司10.130.41.** 网段的机器无法使用。本机ip 10.130.73.1 简单解释下上图: 网络目标: 目标地址的网路段,需要跟网络掩码来确定。网络掩码:2 Read More
posted @ 2017-04-13 11:22 Duerbin Views(866) Comments(0) Diggs(0) Edit
# -*- coding: utf-8 -*-import argparseargs = "-f hello.txt -n 1 2 3 -x 100 -y b -z a -q hello @args.txt i_am_bar -h".split() # 使用@args.txt要求fromfile_p... Read More
posted @ 2014-12-30 11:14 Duerbin Views(3321) Comments(0) Diggs(1) Edit
1.基本的读取配置文件-read(filename) 直接读取ini文件内容-sections() 得到所有的section,并以列表的形式返回-options(section) 得到该section的所有option-items(section) 得到该section的所有键值对-get(sect... Read More
posted @ 2014-12-29 17:01 Duerbin Views(164) Comments(0) Diggs(0) Edit
linux之cut用法cut是一个选取命令,就是将一段数据经过分析,取出我们想要的。一般来说,选取信息通常是针对“行”来进行分析的,并不是整篇信息分析的。(1)其语法格式为:cut [-bn] [file] 或 cut [-c] [file] 或 cut [-df] [file]使用说明cut 命令... Read More
posted @ 2014-12-29 12:08 Duerbin Views(178) Comments(0) Diggs(0) Edit
I am getting the following error in my Rails 3.2 functional tests:ActionView::Template::Error: undefined method `error_messages' for # The view code that is creating the error:# problematic codeHere is the code in my controller that is calling the above view code:render :action =>"edit&q Read More
posted @ 2014-02-28 16:48 Duerbin Views(463) Comments(0) Diggs(0) Edit
ActiveRecord::StatementInvalid in WelcomeController#indexActiveRecord::StatementInvalid in WelcomeController#indexCould not find table 'posts'rake db:setuprake db:migraterake db:seed另一个问题是:::解决ActiveRecord::StatementInvalid (Mysql2::Error: Incorrect string value:今天碰到一个相当棘手的问题,那就是ActiveRecord Read More
posted @ 2014-02-28 14:31 Duerbin Views(534) Comments(0) Diggs(0) Edit
Linux svn管理工具的12个命令实践2010-08-25 10:50 佚名 icycling.cublog.cn字号:T|T目前,绝大多数开源软件都使用svn作为代码版本管理软件。本文结合实例向大家介绍Linux svn经常使用的12个常用命令。本文从目录命令开始一直到帮助命令,为大家进行了详细的讲解。AD:2013云计算架构师峰会课程资料下载svn(subversion)是近年来崛起的版本管理工具,svn服务器有2种运行方式:独立服务器和借助apache。2种方式各有利弊。不管是那种方式,都需要使用各种命令来实现。在本文中,会结合实例向大家介绍Linux svn的常用命令。51CTO编 Read More
posted @ 2013-12-17 11:58 Duerbin Views(472) Comments(0) Diggs(0) Edit
一. SVN简介Subversion(SVN)是一个开源的版本控制系統,也就是说Subversion管理着随时间改变的数据。这些数据放置在一个中央资料档案库(repository)中。这个档案库很像一个普通的文件服务器,不过它会记住每一次文件的变动。这样你就可以把档案恢复到旧的版本,或是浏览文件的变动历史。SVN中的一些概念:(1). repository(源代码库)源代码统一存放的地方(2). Checkout(提取)当你手上没有源代码的时候,你需要从repository checkout一份(3). Commit(提交)当你已经修改了代码,你就需要Commit到repository(4). Read More
posted @ 2013-12-17 11:40 Duerbin Views(169) Comments(0) Diggs(0) Edit
x 删除当前光标下的字符dw 删除光标之后的单词剩余部分。d$ 删除光标之后的该行剩余部分。dd 删除当前行。c 功能和d相同,区别在于完成删除操作后进入INSERT MODEcc 也是删除当前行,然后进入INSERT MODE Read More
posted @ 2013-12-12 15:49 Duerbin Views(196) Comments(0) Diggs(0) Edit