deviceeth0doesnotseemtobepresent,delayinginitialization1、vi/etc/sysconfig/network-scripts/ifcfg-eth0ifcfg-eth0的配置文件里保存了以前的MAC地址,就把这一行删除掉在重启网卡2、/etc/udev/rules.d/70-persistent-net.rules删除后重启机器因为这个文件绑定了网卡和mac地..
分类:
其他 时间:
2015-12-29 06:24:09
收藏:
0 评论:
0 赞:
0 阅读:
119
鲁春利的工作笔记,好记性不如烂笔头apply需要构造有参数需求的伴生对象时,可定义并使用apply方法。classHelloWorld(varm:String,varn:Char){
println("I‘mclassHelloWorld!");
defspeak(){
println("ClassHelloWorldSpeak.");
}
}
objectHelloWorld{
defapply(n:Char)=newHe..
分类:
其他 时间:
2015-12-29 06:23:59
收藏:
0 评论:
0 赞:
0 阅读:
213
平时我们使用操作系统,只会简单的安装和按下电源开机,然后登陆用户的“傻瓜式”操作,很少去了解系统启动到底是怎样一个流程。既然最近学到这里,就画了个图来理解一下,希望大家挑挑毛病,不吝赐教^_^。启动流程图:如图所示:由内核空间启动和用户空间启动两部分组成
分类:
其他 时间:
2015-12-29 06:23:49
收藏:
0 评论:
0 赞:
0 阅读:
155
安装openstackk版本OS:CentOSLinuxrelease7.0.1406(Core)host:node1(管理):10.10.0.1010.20.0.1010.30.0.10node2(网络):10.10.0.2010.20.0.2010.30.0.20192.168.74.211node2(计算):10.10.0.3010.20.0.3010.30.0.301:环境准备1):关闭防火墙systemctlstopfirewalld2):关..
分类:
其他 时间:
2015-12-29 06:23:29
收藏:
0 评论:
0 赞:
0 阅读:
303
一朋友搭建DG,参数没有错误,但是就是无法进行实时同步,,主库日志:DestinationLOG_ARCHIVE_DEST_2isSYNCHRONIZEDDestinationLOG_ARCHIVE_DEST_2nolongersupportsSYNCHRONIZATIONThread1advancedtologsequence1099(LGWRswitch)Currentlog#1seq#1099mem#0:/data/oradata/sch/..
分类:
其他 时间:
2015-12-29 06:23:18
收藏:
0 评论:
0 赞:
0 阅读:
569
Given an unsorted array of integers, find the length of longest increasing subsequence.For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest incr...
分类:
其他 时间:
2015-12-29 06:20:48
收藏:
0 评论:
0 赞:
0 阅读:
235
#include#include#includeusing namespace std;int main(){ set strset; set::iterator iter; strset.insert("apple"); strset.insert("orange"); ...
分类:
其他 时间:
2015-12-29 06:20:28
收藏:
0 评论:
0 赞:
0 阅读:
248
1 #include"stdio.h" 2 #include"stdlib.h" 3 #include"malloc.h" 4 5 6 const int maxlen=1000;//线性表的最大长度 7 typedef char type; 8 //------------线...
分类:
其他 时间:
2015-12-29 06:20:08
收藏:
0 评论:
0 赞:
0 阅读:
297
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time...
分类:
其他 时间:
2015-12-29 06:19:59
收藏:
0 评论:
0 赞:
0 阅读:
199
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:
其他 时间:
2015-12-29 06:19:38
收藏:
0 评论:
0 赞:
0 阅读:
158
根据上述要求来用建造者模式设计程序。我将程序放在了https://github.com/RoyalBob/Decorator-Mode-Practice.git 欢迎访问。以下是本程序的UML图以及代码:1、创建抽象组件类MobilePhone。1 public abstract class Mo....
分类:
其他 时间:
2015-12-29 06:19:18
收藏:
0 评论:
0 赞:
0 阅读:
214
这三中情况大都是可以正常运行的,注意cell的创建使用 alloc init.下面的创建cell的样式(subTitle),要求必须注册否则程序会崩溃.
分类:
其他 时间:
2015-12-29 06:19:08
收藏:
0 评论:
0 赞:
0 阅读:
153
Tool-->Option--> Environment--> Tab and Windows--> Preview Tab--> 去掉Allow new files to be opened in the Preview Tab前的勾勾
分类:
其他 时间:
2015-12-29 06:18:58
收藏:
0 评论:
0 赞:
0 阅读:
167
UI自动化核心部分应该就是元素定位,很多时候会因为元素ID动态变化、不可编辑不可见的状态以及复杂的控件元素等使得元素定位总是失败。1、元素ID动态变化正常思路就是层层向上找到不变的元素然后通过相对路径加绝对路径的方式定位元素举例:今晚帮网络上的同学解决的网易邮箱写信按钮无法定位的问题html代码如下...
分类:
其他 时间:
2015-12-29 06:18:18
收藏:
0 评论:
0 赞:
0 阅读:
259
1、克隆Git项目到本地(1)设置Git工具路径:file>settings>Version Control>Git(2)设置GitHub账户:file>settings>Version Control>GitHub(3)克隆git项目VCS>Checkout from Version Contro...
分类:
其他 时间:
2015-12-29 06:17:38
收藏:
0 评论:
0 赞:
0 阅读:
872
Given a binary tree, find the length of the longest consecutive sequence path.The path refers to any sequence of nodes from some starting node to any ...
分类:
其他 时间:
2015-12-29 06:17:28
收藏:
0 评论:
0 赞:
0 阅读:
190
Sphinx是一个基于SQL的全文检索引擎,可以结合MySQL,PostgreSQL做全文搜索,它可以提供比数据库本身更专业的搜索功能,使得应用程序更容易实现专业化的全文检索。Sphinx特别为一些脚本语言设计搜索API接口,如PHP,Python,Perl,Ruby等,同时为MySQL也设计了一个...
分类:
其他 时间:
2015-12-29 06:16:38
收藏:
0 评论:
0 赞:
0 阅读:
279
number?x+product?y=1 有整数x,y解的条件是gcd(number, product) == 1. product用线段树维护一下,然后现学了个欧拉函数。 可以这样假如x = p1^a1 * p2^a2 * p3^a3 * ... * pn^an,那么phi(x) = (p...
分类:
其他 时间:
2015-12-29 06:16:28
收藏:
0 评论:
0 赞:
0 阅读:
153
题目链接给一个n个节点m条边的树, 每条边有权值, 输出m个数, 每个数代表包含这条边的最小生成树的值。先将最小生成树求出来, 把树边都标记。 然后对标记的边的两个端点, 我们add(u, v), add(v, u)。 对于每一次输出, 如果这条边被标记了, 那么直接输出mst的值。 否则, 加上这...
分类:
其他 时间:
2015-12-29 06:15:08
收藏:
0 评论:
0 赞:
0 阅读:
254
如果没记错的话,昨天我刚考完人生中最重要的一场考试,还是说成最特殊的好了,其重要性比不上我的高考。今晚记一笔吧,不然以后也不会有这样的机会了,难得现在有这样的心情。 这次考试,我想先给个总评:得大于失。失?自然是指这次基本是挂了,除非上面给我个奇迹,下调分数线。先说下考试,我考政治、英语、数学...
分类:
其他 时间:
2015-12-29 06:14:58
收藏:
0 评论:
0 赞:
0 阅读:
123