随笔 - 547  文章 - 213 评论 - 417 阅读 - 107万

10 2017 档案
discuz上传头像失败怎么解决
摘要:刚安装好的discuz程序,可能需要我们做许多修改,而头像上传失败则是最为常见的问题之一,那么discuz上传头像失败怎么解决呢 进入ftp,打开跟目录下config文件 下载"config_ucenter.php" 用编辑器打开config_ucenter.php文件,复制define('UC_KEY',后面的字符串 进入网站后台ucenter,应用管理 ... 阅读全文
posted @ 2017-10-31 21:21 今夜太冷 阅读(378) 评论(0) 推荐(0) 编辑
Mongoose vs mongodb native driver – what to prefer?
摘要: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 今夜太冷 阅读(297) 评论(0) 推荐(0) 编辑
registry-1.docker.io TimeOut 错误
摘要:用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 今夜太冷 阅读(5982) 评论(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 今夜太冷 阅读(297) 评论(0) 推荐(0) 编辑
Node.js中exports与module.exports的区别
摘要:你肯定对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 今夜太冷 阅读(204) 评论(0) 推荐(0) 编辑
Node js : Best way to define entity class
摘要: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 今夜太冷 阅读(172) 评论(0) 推荐(0) 编辑
使用 mongodb 的 Docker Image 快速上手系列 lab
摘要: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 今夜太冷 阅读(495) 评论(1) 推荐(0) 编辑
CreateFont函数为什么改变不了字体?该怎么解决
摘要:CreateFont函数为什么改变不了字体?CFont * f; f = new CFont; f-> CreateFont(30, // nHeight 0, // nWidth 0, // nEscapement 0, // ... 阅读全文
posted @ 2017-10-28 20:26 今夜太冷 阅读(1316) 评论(0) 推荐(0) 编辑
docker service ps打印出来的错误信息被截断了怎么办?
摘要:【解决方法】 用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 今夜太冷 阅读(708) 评论(0) 推荐(0) 编辑
Docker for windows可用性检查
摘要:Docker for windows不太稳定,每次启动机器后, 等待Docker启动起来后,要进行如下的检查: Docker启动看,看看图标是否正常,如果是红色,或者报错就是有问题。 打开Hyper-V Manager,看看虚机是否正常,里面应该包含默认的虚机,名字通常为MobyLinuVM,另外还有我们自己创建的虚机。 用管理员身份打开PowerShell, 执行docker pull来下载一个... 阅读全文
posted @ 2017-10-26 11:01 今夜太冷 阅读(249) 评论(0) 推荐(0) 编辑
Express application generator的使用
摘要:首先拷贝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 今夜太冷 阅读(267) 评论(0) 推荐(0) 编辑
Docker: 如何将node.js的项目部署到docker的swarm上面去
摘要:前提条件: 正文: 执行docker images列出当前所有的image. 执行docker login登录 给nodehello image打上tag: docker tag image username/repository:tag 例如: docker tag nodehello john/ 阅读全文
posted @ 2017-10-25 14:34 今夜太冷 阅读(247) 评论(0) 推荐(0) 编辑
Docker worker nodes shown as “Down” after re-start
摘要: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 今夜太冷 阅读(267) 评论(0) 推荐(0) 编辑
Docker创建虚机和swarm
摘要:创建虚机: 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 今夜太冷 阅读(694) 评论(0) 推荐(0) 编辑
Port already be taken
摘要:我运行同一个docker run命令两次后,第二次给出提示,说端口已经被占用。 Port has already been allocated 【解决方法】 运行docker container ls来列出所有的container. 找到之前启动的container, 运行docker container stop 来停掉container就可以了。 阅读全文
posted @ 2017-10-24 17:03 今夜太冷 阅读(147) 评论(0) 推荐(0) 编辑
Docker: Unknown – Unable to query docker version: x509: certificate is valid for
摘要: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 今夜太冷 阅读(8012) 评论(0) 推荐(0) 编辑
如何用Docker建立一个Node.js的开发环境
摘要:建立一个文件夹 用管理员身份打开powershell. 在文件夹下面运行npm init, 根据提示填入信息,以便产生一个package.json文件。 在文件中加入需要的dependencies,例如: { "name": "docker_web_app", "version": "1.0.0"... 阅读全文
posted @ 2017-10-20 17:32 今夜太冷 阅读(569) 评论(0) 推荐(0) 编辑
Authentication and Authorization in ASP.NET Web API
摘要:You've created a web API, but now you want to control access to it. In this series of articles, we'll look at some options for securing a web API from unauthorized users. This series will cover both... 阅读全文
posted @ 2017-10-19 17:08 今夜太冷 阅读(470) 评论(0) 推荐(0) 编辑
Window.sessionStorage
摘要:ThesessionStorageproperty allows you to access a sessionStorageobject for the current origin. sessionStorage is similar toWindow.localStorage, the only difference is while data stored in localS... 阅读全文
posted @ 2017-10-19 17:07 今夜太冷 阅读(1680) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示