import java.net.UnknownHostException;import com.mongodb.BasicDBObject;import com.mongodb.DB;import com.mongodb.DBCollection;import com.mongodb.DBObjec...
分类:
数据库 时间:
2014-06-27 16:08:46
阅读次数:
296
1、MongoDB 安装:在Linux下安装MongoDB2、对于MongoDB自己的理解:面向对象,极具扩展性,比如多增字段,或少存字段,存储内容为一个BJON字符串。手动启动mongoDB1、新建一个mongo文件夹2、在mongo文件夹中新建mongodb.bat3、在mongodb.bat中...
分类:
数据库 时间:
2014-06-27 15:25:15
阅读次数:
263
1 staitc void Main(string[] args) 2 { 3 for(int i=1;i<=9;i++)//乘数 4 { 5 for(int j=1;j<=i;j++)//被乘数 6 { 7 Console.Write("{0}*{1}={2}...
分类:
其他好文 时间:
2014-06-27 13:58:40
阅读次数:
188
mongod --port 10001 --logpath cluster/log/shard1.log --logappend --shardsvr -dbpath cluster/data/shard1 --directoryperdb --restmongod --port 10002 --l...
分类:
数据库 时间:
2014-06-27 13:39:45
阅读次数:
221
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
分类:
其他好文 时间:
2014-06-27 12:25:27
阅读次数:
721
一、基本操作1)创建> post={"title":"MyBlog Post", "content":"Here's my blog post.", "date":new Date()}> db.blog.insert(post)2)查看> db.blog.find()或者 db.blog.find...
分类:
数据库 时间:
2014-06-27 11:22:03
阅读次数:
254
题目
Write a program to solve a Sudoku puzzle by filling the empty cells.
Empty cells are indicated by the character '.'.
You may assume that there will be only one unique solution.
...
分类:
其他好文 时间:
2014-06-27 07:06:50
阅读次数:
184
在SQL Server 中插入一条数据使用Insert语句,但是如果想要批量插入一堆数据的话,循环使用Insert不仅效率低,而且会导致SQL一系统性能问题。下面介绍SQL Server支持的两种批量数据插入方法:Bulk和表值参数(Table-Valued Parameters)。运行下面的脚.....
分类:
数据库 时间:
2014-06-26 12:21:46
阅读次数:
282
document.write(parseInt(10*Math.random())); //输出0~10之间的随机整数document.write(Math.floor(Math.random()*10+1)); //输出1~10之间的随机整数//输出指定位数的随机数的随机整数function .....
分类:
编程语言 时间:
2014-06-26 11:22:20
阅读次数:
249
最近写程序的时候发现一个这样的问题,一个if判断如下:[php]if (!empty(trim($ch_url))) { ...}[/php]执行程序报出如下错误:[code]Fatal error: Can't use function return value in write context ...
分类:
其他好文 时间:
2014-06-26 11:15:31
阅读次数:
195