最近工作需要,加上国内Kong的文章相对缺乏(搜来搜去就那么两篇文章),而且官方文档在某些demo上也有一些过时的地方,遂提笔记录下这些,希望能有帮助。 先随大流介绍下KONG(主要参考官网): 官方站点:https://getkong.org 官方描述:Kong is a scalable, op ...
1.查看端口,发现端口不通 2.修改安装redis的目录的redis.conf文件,把bind改为虚拟机的本机ip 3.关闭虚拟机的防火墙 4.重启redis服务就可以用客户端连接了 ...
分类:
其他好文 时间:
2017-02-24 11:00:42
阅读次数:
221
1 %% Perceptron Regression 2 close all 3 clear 4 5 %%load data 6 x = load('ex4x.dat'); 7 y = load('ex4y.dat'); 8 9 x=ones(80,2); 10 for i=1:80 11 x(i,... ...
分类:
其他好文 时间:
2017-02-23 21:17:51
阅读次数:
231
背景及需求 项目使用的是MVC4框架,其中有一个功能是根据设置生成PDF文件,并在点击时直接预览。 实现过程 1、第一版实现代码: HTML内容 控制器代码 缺点:标题和文件下载时名称不是很友好。 1、第二版实现代码: 我们做了2件事情: 1、让下载弹出框能显示友好的下载文件名。 2、让浏览器中的其 ...
分类:
Web程序 时间:
2017-02-23 21:00:40
阅读次数:
233
import android.os.Handler; import android.os.Looper; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class ... ...
分类:
其他好文 时间:
2017-02-23 20:40:04
阅读次数:
370
find . -name "*.java" -type f find all the files within a director and its sub-directory ended with .java rm *~ delete all the files ended with ~ grep ...
分类:
其他好文 时间:
2017-02-23 18:29:28
阅读次数:
220
http://www.alexedwards.net/blog/golang-response-snippets ...
分类:
Web程序 时间:
2017-02-23 17:26:08
阅读次数:
232
1 下载一个新的ABP模板项目 http://www.aspnetboilerplate.com/ 2 在Windows上安装MySql, 创建一个新的数据库 sampledb https://dev.mysql.com/doc/refman/8.0/en/mysql-installer-gui.h ...
分类:
数据库 时间:
2017-02-23 17:16:01
阅读次数:
191
最近遇到要把windows exe文件部署为service,因为原先开发为exe程序,现在有不想修改code改为service,但是部署必须是service服务, 所以我们需要一个包装器来包装exe为service服务。 snnm(免费 开源的)的运行方式: 1.创建service服务 查看serv ...