两台机器:172.16.91.101 172.16.91.107在91.101上增加虚拟ip,92网段的ifconfig eth0:1 172.16.92.2 netmask 255.255.255.0 up由于不再同一个网段需要添加路由(与vip交互的机器上):增加路由:route add -ne...
分类:
其他好文 时间:
2014-07-16 23:21:32
阅读次数:
284
1. add a new branch cd workspace git branch user1/newbranch1 git checkout user1/newbranch1 or git checkout -b user2/newbranch2 2. when user1/newbranch...
分类:
其他好文 时间:
2014-07-16 23:09:50
阅读次数:
164
Excel.Application myExcel = new Excel.Application();发 表Excel.Workbook workbookData = myExcel.Application.Workbooks.Add(Excel.XlWBATemplate.xlWBATWorks...
分类:
Web程序 时间:
2014-07-10 14:24:28
阅读次数:
210
Step 1: Convert any text into uint8 type in matlab : Step 2: Add models in matlab : copy the uint8 numbers and put them in Repeating Sequence Stair mo...
分类:
其他好文 时间:
2014-07-10 13:47:42
阅读次数:
327
Word Break IIGiven a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Retur...
分类:
其他好文 时间:
2014-06-28 09:45:34
阅读次数:
223
题目:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:
其他好文 时间:
2014-06-28 08:17:11
阅读次数:
305
1. 赋予scott用户连接权限:Grant connect to scott;
2. 在Myeclipse中新建java项目导入jdbc包(classes12.jar):右键项目 bulid path -〉add external archives 选择classes12.jar
3. 新建java文件, lianxi01.java
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLExceptio...
分类:
数据库 时间:
2014-06-28 08:02:18
阅读次数:
272
学习过C语言的同学都知道,再写代码的时候,位操作运算总比算数运算操作快,
本文就是用C语言提供的位运算实现两个数的加法。
本文使用的代码都经过调试正常并且能够运行,调试环境centos gcc 一下是实现代码,以及测试结果:
#include
#include
int main(int argc, char **argv)
{
int add_a,add_b;...
分类:
其他好文 时间:
2014-06-28 07:26:38
阅读次数:
183
集合框架最大的作用就是维护一组类型相同的对象。只是不同的类有不同的行为和性能。通常关注以下这些行为:
能否存放重复的元素遍历的顺序是怎样的是否支持多线程
下面首先介绍集合的常用,随后根据每种行为分别进行讨论。
常用操作
常用的操作一般就是增加删除查询。常用的增加操作有add、addAll,常用的删除操作有remove、removeAll,常用的读取操作有contains、get...
分类:
编程语言 时间:
2014-06-28 00:00:26
阅读次数:
449
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.
Return all such possible sentences.
For example, given
s = "...
分类:
其他好文 时间:
2014-06-27 09:23:00
阅读次数:
220