组里用的几台机器换了网段,MongoDB需要做重新配置。查看Replica
Set的状态如下:rs.status(){ "startupStatus" : 1, "ok" : 0, "errmsg" : "loading
local.system.repls...
分类:
数据库 时间:
2014-05-10 06:26:06
阅读次数:
693
在ASP.NET使用javascript的一点小技巧
我们在进行ASP.NET开发时,经常会用到一些javascript脚本,比如:
private void Button1_Click(object sender, System.EventArgs e)
{
Response.Write( "alert('OK');") ;
}
经常是重复的书写这些脚本,如果我们能做成一个相...
分类:
编程语言 时间:
2014-05-09 21:12:11
阅读次数:
268
/************************************************************************/
/* * 文件名称:write_log.cpp * 摘 要:此文件实现了普通WINDOWS程序中的日志功能 * 主要有以下特点: * 1. 根据日期创...
分类:
其他好文 时间:
2014-05-09 20:38:20
阅读次数:
304
Generate ParenthesesGiven n pairs of parentheses,
write a function to generate all combinations of well-formed parentheses.For
example, given n = 3, a...
分类:
其他好文 时间:
2014-05-09 20:09:32
阅读次数:
333
1.document.write(""); 输出语句 2.JS中的注释为//
3.传统的HTML文档顺序是:document->html->(head,body)
4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,documen...
分类:
Web程序 时间:
2014-05-09 19:40:08
阅读次数:
470
function JudgeParaRegular(intID)
if intID
JudgeParaRegular=intId
else
Response.Write "输入错误!"
Response.End
end if
end function
intFileSize=JudgeParaRegular(Request.QueryString("intFileSi...
分类:
其他好文 时间:
2014-05-09 14:39:32
阅读次数:
299
HubbleDotNet 从 1.2.3 版本以后开始在官方代码中支持和 Mongodb
对接,Mongodb 是10gen 公司开发的 no-sql 数据库,其读写性能比传统关系数据库要快很多,而且可以非常方便的分布式部署。HubbleDotNet
通过支持 Mongodb 也使其本身同时具备了 ...
分类:
数据库 时间:
2014-05-09 08:05:58
阅读次数:
476
贴代码了,已经测试,可正常编译
package org.mark.streamRW;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
/**
* 字节流输出OutputStream
* 注意:1,write(byte[] b)数组方法写入;
*
* @author ...
分类:
其他好文 时间:
2014-05-09 06:19:20
阅读次数:
267
1. Write a procedure count-list to count the
number of elements in a list1 (defun count-list (numbers)2 (if (null numbers) 03
(+ 1 (co...
分类:
其他好文 时间:
2014-05-09 05:41:41
阅读次数:
307