brew for Mac installation (an effective way to test after stepping on numerous pits in 2020)

A new computer It took only one year for MacBook air to retire due to insufficient memory and hard disk. It updated the customized version of MacBook pro, and I would feel uneasy when I was happy because I had to reinstall the software to prepare for it. Sure enough, when installing brew, there was no ...

Posted by PDP11 on Sat, 20 Jun 2020 01:55:25 -0700

Homebrew installation failed

Homebrew It is a package management tool under Mac OS platform, with many practical functions such as installation, uninstallation, update, view, search, etc. A simple instruction can realize package management, which is very convenient and fast without you caring about all kinds of dependencies and file paths. Installation method /bin/bash - ...

Posted by Arya on Sat, 30 May 2020 08:01:42 -0700

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