Performance tuning of Flask

Article directory Summary Tools used test Test code Flash runs directly Other ways Gunicorn uWSGI usWSGI and ngnix Reference resources Summary At present, the performance of the platform is found to be relatively low in the process of using, so we need to find a way to optimize the performance ...

Posted by kylebragger on Mon, 24 Feb 2020 04:21:08 -0800

Neat javascript code

variable 1. Use intuitive and meaningful variable names Bad: const yyyymmdstr = moment().format("YYYY/MM/DD"); Good: const currentDate = moment().format("YYYY/MM/DD"); 2. Use the same words for variables of the same type Bad: getUserInfo(); getClientData(); getCustomerRecord(); Good: getUser(); ...

Posted by faifas on Thu, 13 Feb 2020 14:24:58 -0800

OCR recognition based on Tesseract

Catalog Demand background Tesseract introduction and environment construction Font training Tesseract for iOS summary Demand background Due to the limitation of the client core, most of the ID card identification in the market will be put in the server verification. The client is generally only ...

Posted by tomdelonge on Wed, 05 Feb 2020 04:01:10 -0800

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