第一种:使用命令修改(直接即时生效,重启失效)#ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up说明:eth0是第一个网卡,其他依次为eth1,eth*192.168.0.1是给网卡配置的第一个网卡配置的ip地址netmask 255.255.25...
分类:
系统相关 时间:
2015-01-21 22:12:11
阅读次数:
240
UnixStudy--Solaris10添加新网卡在Solaris10上构建OracleRAC,在系统上添加了新的网卡,如何识别和配置相关的参数呢?本案例结合实际应用讲述如何配置第二块网卡1、查看网卡名称[root@node1:/]#ifconfig-a
lo0:flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&..
分类:
其他好文 时间:
2015-01-21 20:19:57
阅读次数:
169
使用git push直接推送未关联分支的时候,出现如下提示:$ git pushCounting objects: 46, done.Delta compression using up to 4 threads.Compressing objects: 100% (7/7), done.Writi...
分类:
其他好文 时间:
2015-01-21 19:37:51
阅读次数:
411
Problem Description
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specifie...
分类:
其他好文 时间:
2015-01-21 18:22:56
阅读次数:
155
IntelliJ-Idea 的快捷键Ctrl+/或Ctrl+Shift+/注释(//或者/*…*/)Shift+F6重构-重命名Ctrl+X删除行Ctrl+D复制行Ctrl+G查找行Ctrl+Shift+Up/Down代码向上/下移动。F2或Shift+F2高亮错误或警告快速定位写代码,按Tab生成...
分类:
Web程序 时间:
2015-01-21 01:12:21
阅读次数:
224
http://poj.org/problem?id=1087
Description
You are in charge of setting up the press room for the inaugural meeting of the United Nations Internet eXecutive (UNIX), which has an international ma...
分类:
其他好文 时间:
2015-01-20 22:19:47
阅读次数:
198
主要介绍布局之前的准备工作:1.导入网表file->import->logic主要是要找到原理图的目录,该目录下有一个文件夹(allegro)然后点击import cadence(此时在导入的时候出现了错误,后续进行解决)2.设置栅格点set up->grids此处山栅格点的设置分为电气层以及非电气...
分类:
其他好文 时间:
2015-01-20 22:00:22
阅读次数:
163
用了几天的时间终于把俄罗斯方块写完了,本想把黑框换掉然后弄一个好的界面的,但是感觉不好弄就先这样吧。。
#include
#include
#include
#include
#include
using namespace std ;
const int LF_up_x = 13 ;
bool vis[100][100] ; // 用于标记坐标
int Co[100][100] ; // 坐标...
分类:
编程语言 时间:
2015-01-20 20:31:26
阅读次数:
255
第一种方式是使用ActionProvider。定义一个如下代码的ActionBarpublic class PopupMenuActionProvider extends ActionProvider { public PopupMenuActionProvider(Context conte...
分类:
其他好文 时间:
2015-01-20 20:01:01
阅读次数:
244
现在,几乎在每一个APP顶部都有一个标题栏,可能会用ActionBar,也可能自己写一个xml来添加标题栏中的控件。在以往自己做项目时大多使用后者来写一个标题栏,然后使用include包含在每一个页面布局中。今天,试下使用自定义属性来自定义一个标题栏。
一般的标题栏都分为三个模块:左侧、标题、右侧,所以我们自定义的标题栏中允许用户添加左侧文字(或图片)、标题、右侧文字(或图片),并且提供相应接口...
分类:
其他好文 时间:
2015-01-20 15:47:25
阅读次数:
226