上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: note that libGLESv2 is the recommended Khronos naming convention for the OpenGL ES 3.0 library. This is the same name as the OpenGL ES 2.0 library. The names match because OpenGL ES 3.0 is backward co... 阅读全文
posted @ 2017-12-05 11:05 今夜太冷 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: 在IIS的一个站点下面建立了一个application,访问其中页面的时候总是报404(找不到页面)的错误,哪怕是最简单只包含一个简单html页面的application也是如此,而其他同级的application就没有这个问题, 怎么回事那? 【解决方法】 原来这是其中的一个load balance服务器,访问页面的时候,请求可能发送到另一个服务器上去了,而另一个服务器上由于没有对应的页面,... 阅读全文
posted @ 2017-11-30 16:56 今夜太冷 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 【问题】 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 今夜太冷 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 通过SharePoint管理中心Extend一个web application的时候, 点完确定按钮后,没有反应,怎么回事? 【解决方法】 多等一会,不要连续点。 等待的过程中看看iis, 过一会应该就会有一个web application被创建出来,再多等一会,等待管理中心上打开的窗口自动关闭,这个时候试着访问一下扩展出来的站点,这个时候可能会报Page Not Found的错误,这个时候可... 阅读全文
posted @ 2017-11-17 10:42 今夜太冷 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 原文来自:https://jingyan.baidu.com/article/48a42057e945bca9242504d7.html , 按照它操做了一下,虽然没有救活我的红米1,但是让我更好的了解了红米的fastboot功能,可以留着作参考。斜体的内容是我加入的,其他的部分都是原文。 可以修复开机卡MI,如果手机开不了机那这个方法就行不通了。 原理是通过fastboot模式刷入正常的第三... 阅读全文
posted @ 2017-11-11 23:33 今夜太冷 阅读(6931) 评论(1) 推荐(0) 编辑
摘要: 红米1线刷救砖教程V5版(移动联通适用,线刷包永久有效) 原文来自:http://www.miui.com/thread-1890972-1-1.html?mobile=2 ,加了些自己的经验。 (我用这个方法救活了一块红米砖头) 论坛里看到好多米粉在刷机时有不能刷或变砖或移动定制(联通合约机)版想刷标准版的情况,本人总结了一下自己的玩机经验,来和大家分享一下(纯属个人经验)。以上问题最简单的方法... 阅读全文
posted @ 2017-11-11 23:24 今夜太冷 阅读(5705) 评论(0) 推荐(0) 编辑
摘要: 判断成员是否是一个函数: if (typeof options.sourceMapName === 'function') { mapNameGenerator = options.sourceMapName; } Try/Catch var result; try { result = uglify.minify(availa... 阅读全文
posted @ 2017-11-08 15:18 今夜太冷 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 列出所有的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 今夜太冷 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 创建一个文件夹。 打开命令行或者powershell, 运行npm init,根据提示填入package的信息。 在文件夹中创建index.js文件。 /*! * mymongolib * Copyright(c) 2009-2013 Blabla * MIT Licensed */ 'use stri... 阅读全文
posted @ 2017-11-07 11:47 今夜太冷 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Jquery的分页插件, 用起来还不错。 来自: http://flaviusmatis.github.io/simplePagination.js/ 下载地址: https://github.com/flaviusmatis/simplePagination.js 阅读全文
posted @ 2017-11-03 10:11 今夜太冷 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 来自: 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 今夜太冷 阅读(3894) 评论(0) 推荐(0) 编辑
摘要: 刚安装好的discuz程序,可能需要我们做许多修改,而头像上传失败则是最为常见的问题之一,那么discuz上传头像失败怎么解决呢 进入ftp,打开跟目录下config文件 下载"config_ucenter.php" 用编辑器打开config_ucenter.php文件,复制define('UC_KEY',后面的字符串 进入网站后台ucenter,应用管理 ... 阅读全文
posted @ 2017-10-31 21:21 今夜太冷 阅读(356) 评论(0) 推荐(0) 编辑
摘要: Paul Shan 7th Jun 2015 Mongoose or mongodb native driver, which one to use? This is one of the initial queries for a node-mongo developer; and probably one of the most important ones. Because one us... 阅读全文
posted @ 2017-10-31 16:29 今夜太冷 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 用Docker For Windows在Windows 10上执行docker login或者 docker pull/push的时候,经常会报这样的错误: https: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exce... 阅读全文
posted @ 2017-10-31 16:25 今夜太冷 阅读(4661) 评论(1) 推荐(0) 编辑
摘要: Once a texture has been loaded as a compressed texture, it can be used for texturing in exactly the same way as an uncompressed texture. The details of the ETC2/EAC formats are beyond our scope here... 阅读全文
posted @ 2017-10-31 11:57 今夜太冷 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 你肯定对Node.js模块中用来创建函数的exports对象很熟悉(假设一个名为rocker.js的文件): exports.name = function() { console.log('My name is Lemmy Kilmister'); }; 然后你在另一个文件中调用: var rocker = require('./rocker.js'); rocker.... 阅读全文
posted @ 2017-10-30 15:36 今夜太冷 阅读(202) 评论(0) 推荐(0) 编辑
摘要: If you start to use a DB like mongo, you might be better off creating objects with mongoose but that's personal preference as well. As for your example - 1) Export Person module.exports = Person; ... 阅读全文
posted @ 2017-10-30 15:26 今夜太冷 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Docker 主要的概念 Dockerfile => 用來產生 docker image 用的(介紹) Image => 可以用來產生 docker container Container => 實際上在 run 我們想要的 service Docker pool (類似 git hub 的概念)https://hub.docker.com/ 常用的指令: docker com... 阅读全文
posted @ 2017-10-30 15:13 今夜太冷 阅读(481) 评论(1) 推荐(0) 编辑
摘要: CreateFont函数为什么改变不了字体?CFont * f; f = new CFont; f-> CreateFont(30, // nHeight 0, // nWidth 0, // nEscapement 0, // ... 阅读全文
posted @ 2017-10-28 20:26 今夜太冷 阅读(1282) 评论(0) 推荐(0) 编辑
摘要: 【解决方法】 用Format属性: 这个其实解决不了截断的问题,不过可以显示更少的列,看起来更清楚。 Formatting The formatting options (--format) pretty-prints tasks output using a Go template. Valid placeholders for the Go template are listed belo... 阅读全文
posted @ 2017-10-26 16:30 今夜太冷 阅读(672) 评论(0) 推荐(0) 编辑
摘要: Docker for windows不太稳定,每次启动机器后, 等待Docker启动起来后,要进行如下的检查: Docker启动看,看看图标是否正常,如果是红色,或者报错就是有问题。 打开Hyper-V Manager,看看虚机是否正常,里面应该包含默认的虚机,名字通常为MobyLinuVM,另外还有我们自己创建的虚机。 用管理员身份打开PowerShell, 执行docker pull来下载一个... 阅读全文
posted @ 2017-10-26 11:01 今夜太冷 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 首先拷贝express官网的一篇文章: (http://expressjs.com/en/starter/generator.html ) Express application generator Use the application generator tool,express-generator, to quickly create an application skeleton. Th... 阅读全文
posted @ 2017-10-25 17:09 今夜太冷 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 前提条件: 正文: 执行docker images列出当前所有的image. 执行docker login登录 给nodehello image打上tag: docker tag image username/repository:tag 例如: docker tag nodehello john/ 阅读全文
posted @ 2017-10-25 14:34 今夜太冷 阅读(243) 评论(0) 推荐(0) 编辑
摘要: After docker is shutdown, the worker node changes its status toDown, but availability remains atActive. [解决方案] From: https://github.com/moby/moby/issues/23828 this is a docker issue, rather th... 阅读全文
posted @ 2017-10-25 13:55 今夜太冷 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 创建虚机: First, quickly create a virtual switch for your virtual machines (VMs) to share, so they will be able to connect to each other. Launch Hyper-V Manager ClickVirtual Switch Managerin the right-h... 阅读全文
posted @ 2017-10-25 13:41 今夜太冷 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 我运行同一个docker run命令两次后,第二次给出提示,说端口已经被占用。 Port has already been allocated 【解决方法】 运行docker container ls来列出所有的container. 找到之前启动的container, 运行docker container stop 来停掉container就可以了。 阅读全文
posted @ 2017-10-24 17:03 今夜太冷 阅读(143) 评论(0) 推荐(0) 编辑
摘要: I was playing around with Docker locally and somehow ended up with this error when I tried to list mydocker machines: $ docker-machine ls NAME ACTIVE DRIVER STATE URL ... 阅读全文
posted @ 2017-10-24 10:26 今夜太冷 阅读(7921) 评论(0) 推荐(0) 编辑
摘要: 建立一个文件夹 用管理员身份打开powershell. 在文件夹下面运行npm init, 根据提示填入信息,以便产生一个package.json文件。 在文件中加入需要的dependencies,例如: { "name": "docker_web_app", "version": "1.0.0"... 阅读全文
posted @ 2017-10-20 17:32 今夜太冷 阅读(531) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页