- 博客(904)
- 收藏
- 关注
转载 C#方法作参数——关于Action和Func的使用
https://blog.youkuaiyun.com/wf824284257/article/details/83661843
2019-04-01 15:07:35
792
转载 Win10安装MySQL-python 1.2.5
转自http://cxy7.com/articles/2018/01/15/1516004300552.html,但是更正若干地方安装Microsoft Visual C++ Compiler for Python 2.7Microsoft Visual C++ Compiler for Python 2.7下载默认安装即可安装MySQL Connector/C注意选择正确的操...
2019-03-28 01:02:53
922
原创 AWS建站步骤
一、AWS1. Launch t2.micro ubuntu一台。2. 绑定security group,关闭除443和22之外的所有端口,443和22设为只允许本地访问。如果过了几天发现ping和ssh都没反应了,记得去把安全组里的本地IP更新一下。3. 加载security key。如没有则在线生成。4. 绑定elastic IP二、Putty拷贝public DNS IP到Putty,并设置...
2018-06-05 01:17:40
2071
转载 zigzag检测
https://www.mql5.com/en/articles/2774ContentsIntroductionFeatures of the ZigZag indicatorVariants of plotting the ZigzagSimple ZigZag based on High/LowSimple ZigZag based on CloseStarting
2018-01-27 22:43:27
1391
原创 Jenkins配置填坑若干
之前用的Jenkins都是别人配置好的现成的,这次因为是自己的项目,只能自己动手。根据官方教程 https://jenkins.io/doc/book/installing/#debian-ubuntu,安装过程还是很顺利的。安好之后就安心的睡觉去了。但是第二天想要再登录的时候,问题来了。根据自己头一天配置时设的用户名和密码怎么都登录不进去,最后查到https://stac
2017-12-25 00:20:55
718
转载 Install Oracle Java 8 / 9 in Ubuntu 16.04, Linux Mint 18
http://tipsonubuntu.com/2016/07/31/install-oracle-java-8-9-ubuntu-16-04-linux-mint-18/Quick tutorial for beginners how to easily install Oracle Java JDK8 or JDK9 in Ubuntu 16.04 or Linux Mint
2017-12-21 01:01:26
846
1
转载 在centOS上安装Node
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-a-centos-7-serverInstall a Package from the Node SiteAnother option for installing Node.js on your server is to
2017-11-07 10:53:51
483
转载 USING ES7 ASYNC/AWAIT TODAY WITH BABEL
http://masnun.com/2015/11/11/using-es7-asyncawait-today-with-babel.htmlLet’s take a code snippet that contains the demonstration of async/await — https://gist.github.com/patrickarlt/8c56a789e5f185eb97
2017-09-03 21:51:01
860
转载 一小时包教会 —— webpack 入门指南
http://www.cnblogs.com/vajoy/p/4650467.htmlwebpack是近期最火的一款模块加载器兼打包工具,它能把各种资源,例如JS(含JSX)、coffee、样式(含less/sass)、图片等都作为模块来使用和处理。我们可以直接使用 require(XXX) 的形式来引入各模块,即使它们可能需要经过编译(比如JSX和sass),但我
2017-07-24 00:39:36
473
转载 HTTP cookies 讲解(HTTP cookies explained )
https://my.oschina.net/hmj/blog/69638 HTTP cookies,通常又称作"cookies",已经存在了很长时间,但是仍旧没有被予以充分的理解。首要的问题是存在了诸多误区,认为cookies是后门程序或病毒,或压根不知道它是如何工作的。第二个问题是对于cookies缺少一个一致性的接口。尽管存在着这些问题,cookies仍旧在web开发
2017-07-24 00:37:40
501
转载 解决 Webpack "Invalid Host Header"
https://tonghuashuo.github.io/blog/webpack-dev-server-invalid-host-header.html一直以来都在用 Webpack 打包代码,配合 webpack-devserver 作 Hot Module Replacement 感觉棒棒哒,可以专心于程序逻辑,不用被无关紧要的琐事打扰。直到刚才……突如其来
2017-07-19 08:02:51
16182
转载 ES6模块的import和export用法总结
http://www.cnblogs.com/dupd/p/5951311.htmlES6之前已经出现了js模块加载的方案,最主要的是CommonJS和AMD规范。commonjs主要应用于服务器,实现同步加载,如nodejs。AMD规范应用于浏览器,如requirejs,为异步加载。同时还有CMD规范,为同步加载方案如seaJS。ES6在语言规格的层面上,实现了模块功能,
2017-07-12 13:46:53
787
转载 数组操作小技巧
1. 原地清空数组(个人喜欢第二种)https://stackoverflow.com/a/1232046/2177408Ways to clear an existing array A:Method 1(this was my original answer to the question)A = [];This code will set th
2017-07-08 21:54:10
356
转载 ES7的Async/Await
https://cnodejs.org/topic/5640b80d3a6aa72c5e0030b6阅读本文前,期待您对promise和ES6(ECMA2015)有所了解,会更容易理解。本文以体验为主,不会深入说明,结尾有详细的文章引用。第一个例子Async/Await应该是目前最简单的异步方案了,首先来看个例子。这里我们要实现一个暂停功能,输入N毫秒,则停
2017-07-08 21:18:54
417
转载 用ES6 Generator替代回调函数
http://www.html-js.com/article/A-day-to-learn-JavaScript-to-replace-the-callback-function-with-ES6-Generator目前,已经有很多文章讨论过了如何使用ES6 generators来取代JavaScript中经常遇到的“回调金字塔”。但是,其中提到的绝大多数方法都需要依赖于某个库,而
2017-07-04 10:24:29
422
转载 fetch API 简介
http://bubkoo.com/2015/05/08/introduction-to-fetch/十多年来,我们一直使用 XMLHttpRequest(XHR)来发送异步请求,XHR 很实用,但并不是一个设计优良的 API,在设计上并不符合职责分离原则,输入、输出以及状态都杂糅在同一对象中,并用事件机制来跟踪状态变化。并且,基于事件的模型与最近流行的 Promise 和 gener
2017-07-03 19:46:19
532
转载 什么是跨域?
https://segmentfault.com/a/1190000000718840概念:只要协议、域名、端口有任何一个不同,都被当作是不同的域。URL 说明 是否允许通信http://www.a.com/a.jshttp://www.a.com/b.js 同一域名下 允许http://www.a.com
2017-03-16 15:20:45
482
转载 JSONP的优缺点
http://www.qdfuns.com/notes/18271/df9ecd8f0ca5e523ae75745a3996c47c.html 1.优点 1.1它不像XMLHttpRequest对象实现的Ajax请求那样受到同源策略的限制,JSONP可以跨越同源策略; 1.2它的兼容性更好,在更加古老的浏览器中都可以运行,不
2017-03-16 11:56:55
1199
转载 API 服务器搭建笔记:CentOS + Node.js + MongoDB
http://harttle.com/2015/02/24/node-web-api.html本文尝试在CentOS服务器上,使用js来构建整个web服务,包括nodejs运行时、MongoDB json风格数据库、redis内存数据库。首先安装这些软件:# centosyum install git nodejs npm mongodb mongodb-server r
2017-02-19 01:59:51
539
转载 How To Troubleshoot Common ELK Stack Issues
https://www.digitalocean.com/community/tutorials/how-to-troubleshoot-common-elk-stack-issuesIntroductionThis tutorial is an ELK Stack (Elasticsearch, Logstash, Kibana) troubleshooting gu
2017-02-19 01:42:53
2724
转载 Custom grok patterns for logstash
https://cinhtau.net/wp/custom-grok-patterns-for-logstash/grok is a powerful filter plugin. It allows you to use regular expressions (regex). This post gives some advices how to test and de
2017-02-19 01:36:51
691
转载 Refactoring Mongoose with Q
https://medium.com/@AdamRNeary/refactoring-mongoose-with-q-99d2759a97b6#.4hq41cfpfBetter API Code. I Promise.Yikes! Why is it that an engineer who generally writes beautiful, meticulous
2017-02-19 01:31:40
400
转载 Request —— 让 Node.js http请求变得超简单
https://segmentfault.com/a/1190000000385867先前一直比较关注前端的东西,对后端了解较少。不过一直对Node.js比较感兴趣,去年12月还去参加了阿里的CNODE交流聚会。以后希望通过这里的博客分享一些学习Node.js的笔记。一方面总结了自己的学习心得,另一方面也可以和大家一起分享交流。嗯,大概就是这样子。这篇就先介绍一个Nod
2017-02-19 01:28:02
438
转载 ReactJS component names must begin with capital letters?!
http://stackoverflow.com/questions/30373343/reactjs-component-names-must-begin-with-capital-lettersI am playing around with the ReactJS framework on JSBin.I have noticed that if my compone
2017-02-16 08:02:55
724
转载 What does the three dots in react do?
http://stackoverflow.com/a/41640566/2177408As you know ... are called spread operator which the name represents it allows an expression to be expanded.var parts = ['two', 'three'];var num
2017-02-02 07:37:31
492
转载 How to handle Mongoose DB connection interruptions
http://stackoverflow.com/questions/10873199/how-to-handle-mongoose-db-connection-interruptionsQ:Error: connection timeoutI've been evaluating Mongoose (an ORM for node.js which uses MongoDB
2017-01-14 16:35:17
407
转载 Do you want a timeout?
http://blog.mlab.com/2013/10/do-you-want-a-timeout/by chris on 2013/10/04 in GENERALYou’re feeling accomplished and excited; the new features for your application are finished, committed,
2017-01-14 16:33:03
402
转载 Kibana using lots memory
https://number1.co.za/category/elk/Is Digital Oceans 1-click-deploy ELK stack poorly configured on purpose?Kibana is using too much memoryI wanted to see what juicy stats and info I could
2017-01-14 16:26:33
816
转载 Logstash not showing any output (SOLVED)
https://discuss.elastic.co/t/logstash-not-showing-any-output-solved/28636/16By default Logstash will tail files. With start_position => beginning it will indeed read files from the beginning but
2017-01-11 13:43:59
590
转载 How to Install the ELK Stack on AWS: A Step-By-Step Guide
http://logz.io/blog/install-elk-stack-amazon-aws/By Asaf Yigal| October 13th, 2015|Blog, ELK StackThe ELK Stack is a great open-source stack for log aggregation and analy
2017-01-11 13:37:24
890
转载 How To Install Elasticsearch 1.7, Logstash 1.5, and Kibana 4.1 (ELK Stack) on Ubuntu 14.04
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-1-7-logstash-1-5-and-kibana-4-1-elk-stack-on-ubuntu-14-04#conclusionNote: This tutorial is for an older version of
2017-01-11 13:34:38
929
转载 How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on Ubuntu 14.04
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04#conclusionostedMarch 10, 2015 773.4kviews LOGGING NGINX MONITORING E
2017-01-11 13:33:36
823
转载 How To Install and Configure Elasticsearch on Ubuntu 14.04
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-14-04PostedOctober 26, 2015 166.6kviews ELASTICSEARCH UBUNTUIntroductionElastics
2017-01-11 13:32:29
533
转载 Create a Grok Pattern
http://grok.nflabs.com/WhatIsPatternOverviewJava Grok exists to help you do fancier pattern matching with less effort. Grok lets you build (or use existing) sets of named regular express
2017-01-09 17:02:03
620
转载 Visualizing data with Elasticsearch, Logstash and Kibana
http://blog.webkid.io/visualize-datasets-with-elk/APRIL 16TH 2015 by ChristopherWhen designing visualizations, we sometimes have to deal with bigger datasets than standard tools can handle
2017-01-09 16:58:23
657
原创 Ubuntu中ELK安装和调试的一些要点
1. Query all records from Elasticsearchcurl -XGET "http://localhost:9200/logstash-*/_search?size=50&pretty"http://stackoverflow.com/a/38874465/21774082. Run logstash/opt/logstash/bin/logst
2017-01-09 12:29:40
784
转载 Logstash is not reading all the logs
https://discuss.elastic.co/t/logstash-is-not-reading-all-the-logs/61302I want my logstash to read the following pattern of files from the logs directoryCurrent Date File -> server.logHis
2017-01-09 10:04:45
435
转载 How to Set Up the ELK Stack- Elasticsearch, Logstash and Kibana
http://knowm.org/how-to-set-up-the-elk-stack-elasticsearch-logstash-and-kibana/Elastic Search, Logstash and Kibana – the ELK Stack – is emerging as the best technology stack to collect, manage
2017-01-09 07:58:23
1378
原创 Amazon EC2 Instance Express API配置HTTPS
最近在做一个API的项目,放在Amazon EC2上跑,为了提高安全性想把链接搞成HTTPS的。API放在Express上,GoDaddy上面没有Node Server配置的教程,搜到很多教程都是通过AWS Load Balancer来配置的,所以自己把各教程综合了一下,完成了配置。第一步:买一个SSL证书我看很多人都是自己签发证书。但是我因为有折扣,打完折之后$3/年,很便宜,就
2017-01-05 08:10:15
1891
转载 使用 PuTTY 从 Windows 连接到 Linux 实例
http://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/putty.html#Transfer_WinSCP使用 PuTTY 从 Windows 连接到 Linux 实例启动您的实例之后,您可以连接到该实例,然后像使用您面前的计算机一样来使用它。Note启动实例后,需要几分钟准备好实例
2017-01-04 14:44:45
970
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人