Question 1: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...
分类:
其他好文 时间:
2014-05-19 09:35:41
阅读次数:
321
using System.Xml;using System.Xml.Linq;XmlDocument
document = new XmlDocument();document.Load("SessionDef.xml");XmlNodeList
nodelist = document.Select...
分类:
其他好文 时间:
2014-05-19 07:10:10
阅读次数:
227
1 把李明杰的MJRfresh文件夹拖到工程中2 然后引入头文件3 在.m 文件中设置两个变量4
在viewDidLoad里调用两个方法5 实现需要调用的两个方法
分类:
移动开发 时间:
2014-05-18 20:19:32
阅读次数:
397
using DevExpress.XtraGrid;// ...string fileName
="c:\\XtraGrid_SaveLayoutToXML.xml";privatevoid Form1_Load(object sender,
System.EventArgs e) { gridCo...
分类:
其他好文 时间:
2014-05-18 20:15:22
阅读次数:
300
//创建一个默认的文档app.documents.add()//建立第一个图层 //
在现有激活的文档上建立一个图层var layerRef = app.activeDocument.artLayers.add()// 下面是对图片的命名
还有就是图层的模式layerRef.name = "第一次....
分类:
其他好文 时间:
2014-05-18 19:32:02
阅读次数:
369
BIOS -> MBR -> boot loader ->
kernel加电->主板BIOS(允许从光盘、USB和硬盘来启动计算机)->读取所选存储器的头512
bytes(MBR),MBR告诉电脑从某一分区加载boot loader->boot loader存储有关OS的信息,比如系统版本,ker...
分类:
系统相关 时间:
2014-05-18 19:19:18
阅读次数:
290
今天给nginx 升级的时候碰到一个问题通过执行 add-apt-repository
命令来添加nginx 的ppa的时候发现 命令找不到root@ubuntu:~# sudo
add-apt-repositoryppa:nginx/stablesudo: add-apt-repository: ...
分类:
其他好文 时间:
2014-05-17 22:10:10
阅读次数:
336
在原有数据库中使用 CodeFirst
,除了第一次添加实体后要立即执行一次Enable-Migrationsadd-migration Initial
-IgnoreChangesupdate-database之外,其它的与新数据库就一样了,再次修改就执行add-migration NewModi...
分类:
数据库 时间:
2014-05-17 21:14:06
阅读次数:
401
1 //Accepted 250MS 2480K 2 #include 3 #include 4
const int MAXN = 50005; 5 struct node 6 { 7 int l,r; 8 int add,sum; 9
}f[3*MAXN];10 int n;...
分类:
其他好文 时间:
2014-05-17 20:36:37
阅读次数:
316
上传文件:1. $_files[""];(需要接收) 2.判断是否有文件上传
3.将文件上传到服务器的哪里$_files[""];(需要接收) is_upload()
move_upload_file(1(临时文件),2(移动临时文件的路径))
分类:
其他好文 时间:
2014-05-17 19:22:47
阅读次数:
288