组里用的几台机器换了网段,MongoDB需要做重新配置。查看Replica
Set的状态如下:rs.status(){ "startupStatus" : 1, "ok" : 0, "errmsg" : "loading
local.system.repls...
分类:
数据库 时间:
2014-05-10 06:26:06
阅读次数:
693
raspberry的/usr/local/src目录没有权限,可执行如下命令pi@raspberrypi:~$
sudo chmod -R 777 /usr/local/src
(-R是对所有子文件夹都有效)开始下载软件:cd/usr/local/src/sudowgethttp://www.pyt...
分类:
编程语言 时间:
2014-05-10 05:57:19
阅读次数:
355
测试webservice的时候,如果出现这个错误:"The test form is only
available for requests from the local machine" 在web.config中加入以下配置,就可以解决问题。
也就是说,在默认情况下,...
分类:
Web程序 时间:
2014-05-10 02:24:13
阅读次数:
352
#增加软连接ln -s /usr/local/git/bin/* /usr/bin/
分类:
其他好文 时间:
2014-05-09 23:26:47
阅读次数:
313
在设备管理器的usb设备的属性中,显示提示“由于其配置信息(注册表中的)不完整或已损坏,Windows
无法启动这个硬件设备”。注册表坏了。经过查询,解决方法如下:
方法:打开注册表编辑器(开始--》运行--》regedit),依次展开HKEY_LOCAL_MACHINE/SYSTEM/Curre....
在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
var wait = 60; function time(o) { if (wait == 0) {
$(o).attr("disabled", false); $(o).val("获取验证码"); wait = 60; ...
分类:
Web程序 时间:
2014-05-09 19:25:41
阅读次数:
569