The story of the star programmer being killed by Google

First of all, we need to mention a software called Homebrew Homebrew is probably the best package manager on Mac. It is equivalent to Ubuntu apt and command-line app store Homebrew brew Max Howell is the author of Homebrew. When he went to google for an interview, the interviewer gave a question about reversing the bi ...

Posted by pedrokas on Sat, 04 Apr 2020 02:31:07 -0700

Python switch version artifact pyenv

Because some syntax uses of Python 2.x and 3.x are different, you will encounter the need to switch versions when writing and using Python programs. The following describes pyenv, a tool for switching Python versions. Install pyenv Take mac as an example. You need to install brew first. If you don't, you need to install brew and pyenv first. No ...

Posted by DarkJamie on Tue, 24 Mar 2020 00:08:07 -0700

Message Queue NSQ with You to Get Started

I've seen NSQ before and haven't seen it yet.Just when I have time today, I set up a simple try to get the message queue NSQ in this Go Language, which I'll briefly record here. In fact, NSQ is used relatively little in China. I think I know such a thing here. Just look at the source code a little and learn something. Introduction to NSQ NSQ i ...

Posted by CentralOGN on Sun, 22 Mar 2020 10:30:03 -0700

Implementation of middleware with nginx openresty

[TOC] Implementation of middleware with nginx openresty Be careful In the formal ngx.exec(), you must not output anything, such as ngx.say("debug"), otherwise you will be trapped in redirection The log will constantly prompt attempt to call ngx.exec after sending out response headers This should be a common sense problem. We all know ...

Posted by PAFTprod on Sun, 08 Mar 2020 03:02:07 -0700

Template Method

Template Method behavioral class 1 Intent 2 Define the skeleton of an algorithm in a method, and delay some steps to the subclass. The template method allows subclasses to redefine some steps of the algorithm without changing the structure of the algorithm Motivation 3 Ensure that the structure ...

Posted by ginginca on Thu, 05 Mar 2020 04:26:25 -0800

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