IIS中的application总是报404错误
摘要:在IIS的一个站点下面建立了一个application,访问其中页面的时候总是报404(找不到页面)的错误,哪怕是最简单只包含一个简单html页面的application也是如此,而其他同级的application就没有这个问题, 怎么回事那? 【解决方法】 原来这是其中的一个load balance服务器,访问页面的时候,请求可能发送到另一个服务器上去了,而另一个服务器上由于没有对应的页面,...
阅读全文
posted @
2017-11-30 16:56
今夜太冷
阅读(223)
推荐(0) 编辑
Mongoose JS findOne always returns null
摘要:【问题】 I've been fighting with trying to get Mongoose to return data from my local MongoDB instance; I can run the same command in the MongoDB shell and I get results back. I have found a post on stac...
阅读全文
posted @
2017-11-28 16:27
今夜太冷
阅读(248)
推荐(0) 编辑
Mongoose Connection best practice
摘要:There is often quite a lot of confusion about how best to set up a database connection with Mongoose. So I thought I'd clear it up! There are two ways
阅读全文
posted @
2017-11-21 10:05
今夜太冷
阅读(187)
推荐(0) 编辑
Extend一个web application没有反应怎么办?
摘要:通过SharePoint管理中心Extend一个web application的时候, 点完确定按钮后,没有反应,怎么回事? 【解决方法】 多等一会,不要连续点。 等待的过程中看看iis, 过一会应该就会有一个web application被创建出来,再多等一会,等待管理中心上打开的窗口自动关闭,这个时候试着访问一下扩展出来的站点,这个时候可能会报Page Not Found的错误,这个时候可...
阅读全文
posted @
2017-11-17 10:42
今夜太冷
阅读(178)
推荐(0) 编辑
Is there anyway to discover which ip addresses are connected to the db?
摘要:From mongo shell run db.currentOp() to show all active connections or db.currentOp(true) to show all connections. From: https://stackoverflow.com/questions/9945107/is-there-anyway-to-discover-which-...
阅读全文
posted @
2017-11-16 16:23
今夜太冷
阅读(169)
推荐(0) 编辑
红米除线刷的另外一种救砖方法fastboot
摘要:原文来自:https://jingyan.baidu.com/article/48a42057e945bca9242504d7.html , 按照它操做了一下,虽然没有救活我的红米1,但是让我更好的了解了红米的fastboot功能,可以留着作参考。斜体的内容是我加入的,其他的部分都是原文。 可以修复开机卡MI,如果手机开不了机那这个方法就行不通了。 原理是通过fastboot模式刷入正常的第三...
阅读全文
posted @
2017-11-11 23:33
今夜太冷
阅读(6989)
推荐(0) 编辑
红米1线刷救砖教程V5版(移动联通适用,线刷包永久有效)
摘要:红米1线刷救砖教程V5版(移动联通适用,线刷包永久有效) 原文来自:http://www.miui.com/thread-1890972-1-1.html?mobile=2 ,加了些自己的经验。 (我用这个方法救活了一块红米砖头) 论坛里看到好多米粉在刷机时有不能刷或变砖或移动定制(联通合约机)版想刷标准版的情况,本人总结了一下自己的玩机经验,来和大家分享一下(纯属个人经验)。以上问题最简单的方法...
阅读全文
posted @
2017-11-11 23:24
今夜太冷
阅读(5868)
推荐(0) 编辑
Javascript常用语法 (一)
摘要:判断成员是否是一个函数: if (typeof options.sourceMapName === 'function') { mapNameGenerator = options.sourceMapName; } Try/Catch var result; try { result = uglify.minify(availa...
阅读全文
posted @
2017-11-08 15:18
今夜太冷
阅读(171)
推荐(0) 编辑
Docker container常用命令
摘要:列出所有的container. docker container ls 启动一个container. docker run –p : -d -m 其中–m可选。 停止一个container. docker container stop 启动一个container. docker container start 进入一个container. docker exec –it 进入...
阅读全文
posted @
2017-11-07 14:20
今夜太冷
阅读(456)
推荐(0) 编辑
例子:使用Grunt创建一个Node.js类库
摘要:创建一个文件夹。 打开命令行或者powershell, 运行npm init,根据提示填入package的信息。 在文件夹中创建index.js文件。 /*! * mymongolib * Copyright(c) 2009-2013 Blabla * MIT Licensed */ 'use stri...
阅读全文
posted @
2017-11-07 11:47
今夜太冷
阅读(211)
推荐(0) 编辑
Jquery的分页插件
摘要:Jquery的分页插件, 用起来还不错。 来自: http://flaviusmatis.github.io/simplePagination.js/ 下载地址: https://github.com/flaviusmatis/simplePagination.js
阅读全文
posted @
2017-11-03 10:11
今夜太冷
阅读(132)
推荐(0) 编辑
Mongoose的分页功能
摘要:来自: https://github.com/edwardhotchkiss/mongoose-paginate 拷贝如下: Note:This plugin will only work with Node.js >= 4.2 and Mongoose >= 4.2 Installation npm install mongoose-paginate Usage Add plugin ...
阅读全文
posted @
2017-11-03 09:53
今夜太冷
阅读(3911)
推荐(0) 编辑