[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
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
Sys.Application.add_load(function() {
var form = Sys.WebForms.PageRequestManager.getInstance()._form;
form._initialAction = form.action = window.location.href;
});
if (!documen...
分类:
Web程序 时间:
2014-05-06 23:36:38
阅读次数:
408
QListWIdget的Drag和Drop. 真是坑爹到不行...
其实很简单的.. 最后搞到好多行代码..
真是作死的节奏..................
分类:
其他好文 时间:
2014-05-06 23:19:08
阅读次数:
403
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
网上找到http://blog.csdn.net/heihuifeng/article/details/6561615这篇文章 ,插入的字符串需加引号',
[_db
executeUpdate:[NSString
stringWithFormat:@"INSERT INTO %@ (name,img,date,isCome,msg_type,message,isNew,sendFla...
分类:
数据库 时间:
2014-05-06 22:13:22
阅读次数:
611
工欲善其事,必先利其器。对IDE的熟练程度,真能影响开发效率 。
先普及下常识,以后有新的收获再补充。
最常用快捷键:
Ctrl+E Delete current line
Ctrl-Shift-Up/D Copy lines up/down
Ctrl-/ Add/remove comment lines
Alt-Shift-F Format select...
分类:
Web程序 时间:
2014-05-06 19:54:58
阅读次数:
486
一、基础
1、说明:创建数据库?CREATE DATABASE database-name?
2、说明:删除数据库?drop database dbname?
3、说明:备份sql server?
--- 创建 备份数据的 device?
USE master?EXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwin...
分类:
数据库 时间:
2014-05-06 18:57:44
阅读次数:
506
DbNetList是一个综合功能的列表选择组件,作为动态HTML(DHTML)实现。运用DbNetList,你可以快速为自己的web页面添加数据库驱动的列表、下拉式列表(drop-down)、树型和复选框列表。DbNetList兼容最流行的各种数据库服务器,包括:SQLServer、Oracle和Informix。具体功能:生..
分类:
数据库 时间:
2014-05-06 17:26:44
阅读次数:
549
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