当我们使用git提交代码时,别人可能也同时修改了我们修改的文件,但是别人的先合入到配置库里边,这样当我们的提交要合入时,就会产生冲突,可以使用以下步骤来解决冲突:
(1) git rebase 分支名称 本地分支名称
(2)rebase之后,就会显示冲突,到目标文件进行修改
(3)git add .
(4)git rebase --continue
(5) git rebase...
分类:
其他好文 时间:
2014-05-10 09:59:20
阅读次数:
643
Add-in Express .NET是市面上的一款直观的Microsoft? Office
extensions规划部署工具,它包含了COM Add-ins, Smart Tags, RTD Servers和 Excel
用户定义函数功能,它完全支持Microsoft? Visual Studio...
分类:
Web程序 时间:
2014-05-08 22:29:07
阅读次数:
505
表值函数就是返回table 的函数使用它可以方便的进行查询的处理创建的代码如下:create
FUNCTION returunclassfirstlist(-- Add the parameters for the function
here)RETURNS TABLE ASRETURN (-- A...
分类:
数据库 时间:
2014-05-08 22:00:43
阅读次数:
454
public class LinkedList {
Node head = null;
Node tail = null;
int length = 0;
public void add(Object object) {
Node node = new Node(object, null);
if (head == null) {
head = tail = nod...
分类:
其他好文 时间:
2014-05-07 08:24:17
阅读次数:
306
public class ArrayList {
Object[] objects = new Object[10];
int index = 0;
public void add(Object object) {
if (index == objects.length) {
Object[] newObjects = new Object[objects.length*2];
...
分类:
其他好文 时间:
2014-05-07 07:57:10
阅读次数:
257
[Question]
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 t...
分类:
其他好文 时间:
2014-05-07 05:37:44
阅读次数:
278
eshell是emacs shell的简称,是emacs自带的shell.开始设置的时候还在想是否要找到它的key map (eshell-mode-map?).
原来它是采用hook设置,如下所示
(add-hook 'eshell-mode-hook
(lambda ()
(local-set-key (kbd "C-j") 'switch-to...
分类:
其他好文 时间:
2014-05-07 05:25:39
阅读次数:
253
1,可以用route命令临时修改:
route add default gw
2, 通过修改/etc/sysconfig/network 文件永久修改:
脚本:
#!/bin/sh
#configure default gw
# $1 is ip of gateway
defgw=$1
sed -i "s/NETWORKING.*/NETWORKING=yes/" /et...
分类:
其他好文 时间:
2014-05-06 23:37:22
阅读次数:
374
n个数,只能用
F[i][j]=(F[i-1][j]+F[i-1][j-1])*j
F[i][j]代表i个数,有j个不同值的情况。比如A
大数模板
#include
#include
const int MAX =505;
struct BigNum
{
int num[MAX];
int len;
} a[51][51];
BigNum Add(...
分类:
其他好文 时间:
2014-05-06 23:06:51
阅读次数:
364
ubuntu12.04服务器可以使用apt-get方式安装NodeJS,但是,安装完后的版本为v0.6.12的版本,如果我们想要使用新一点的版本需要做如下配置:apt-getinstallpython-software-properties
apt-add-repositoryppa:chris-lea/node.js
apt-getupdate
apt-getinstallnodejs安装完成后可以..
分类:
Web程序 时间:
2014-05-06 16:45:52
阅读次数:
378