swoole battle in 2018 7-process details
Following the last chapter 2018 swoole 6-asynchronous redis
This presentation swoole process management module
Create child process
New process.php
<?php
$process = new swoole_process(function(swoole_process $pro) {
echo 'swoole Create process' . PHP_EOL;
}, false); // If set to true, the terminal will not display standard o ...
Posted by sandsquid on Fri, 31 Jan 2020 12:04:36 -0800
Porting Python quantitative transaction TA lib library to function calculation
TA-Lib , full name "Technical Analysis Library", namely Technical Analysis Library, is a high-level Library of Python financial quantification, covering more than 150 technical analysis indicators commonly used in stock and futures trading software, such as MACD, RSI, KDJ, momentum indicators, brin belt, etc.
TA lib can be divided int ...
Posted by crag on Tue, 24 Dec 2019 06:25:03 -0800
luminus web framework learning
Chapter one your first program
Because I am a mac computer, I am temporarily based on my operation (clojure is not friendly to windows, jdk and maven data are too many, so I will not introduce the installation method here)
First, use brew install leiningen and brew install clojure to install lein and clojure
Lei is like the familiar clojure ...
Posted by suge on Mon, 02 Dec 2019 23:41:56 -0800
brew installation path under mac, with kafka as an example
Huge buildings are always made of one wood and one stone. Why don't we make them? I often do some odd things, that's why.
That's right, but I didn't say that! ——Lu Xun
brew is the installation package tool of mac system. Similar to yum or apt get.
What is the package path of brew installation. The following is an exam ...
Posted by geus on Sun, 01 Dec 2019 22:37:23 -0800
[python crawler] use selenium to get Baidu search results and related keywords marked in red
I. environment construction
1. Install chrome driver
brew cask install chromedriver
2. Install selenium
pip3 install selenium
3. Install beautiful soup4
pip3 install beautifulsoup4
4. Test with the following code
from selenium import webdriver
driver = webdriver.Chrome() # The chrome browser is called here
driver.get ...
Posted by ari_aaron on Wed, 20 Nov 2019 10:14:02 -0800
Setting up proxy for brew/git/pip
1. How to set up HTTP/HTTPS proxy correctly
When brew is set to pass socks5 proxy, it will be found that pip does not support socks5 in fact. It can only pass http/https.
Get port first
Click on the status bar of the small rocket
HTTP Proxy Preference
Get the port number of HTTP (I am 1087)
Add the following to the. bash? Profile /. zshrc (zs ...
Posted by mimilaw123 on Fri, 25 Oct 2019 11:24:27 -0700
Introduction to Spring Boot Cached Application Memcached
This chapter is a tutorial on the use of Mmecached in Spring Boot. Memcached and Redis have their own advantages. This paper mainly studies how to apply integrated Mmecached in Spring Boot.
spring boot 1.5.x/2.x
memcached
jdk 1.8+
Source code download of this project
1 Install memcached
It is convenient to install under window s. Just double- ...
Posted by mystrymaster on Sun, 06 Oct 2019 09:12:03 -0700
MAC Builds Linux Cross Compiling Environment
MAC Builds Linux Cross Compiling Environment
Preparation
Run script
Preparation
Create a new case-sensitive hard disk partition with the disk tool of mac. Follow-up suggestions are made in this partition. Otherwise, there will be errors such as file missing. Running scripts requires gnu-sed, not ...
Posted by mjseaden on Fri, 04 Oct 2019 09:21:07 -0700
Install software and build production environment under linux non-root users
Previous lab servers, for some reason, used users without root privileges. linux non-root users many software can not be installed, very inconvenient. My approach is to use brew instead of the package management tool of the system. Brew is the first package management tool to be used on mac, which can host all packages in user local environment ...
Posted by insight on Tue, 17 Sep 2019 03:51:46 -0700
ELK-MACOS build deployment (including cluster)
brief introduction
Elasticsearch
Elastic search is a real-time distributed search and analysis engine that allows you to explore your data at a speed and scale you've never had before. It is used as a combination of full-text retrieval, structured search, analysis and the three functions. Support cluster configuration.
Logstash/Filebea ...
Posted by poujman on Fri, 23 Aug 2019 22:14:23 -0700