Django Configure a separate domain name for each App

Environment: Python 3.8.1 + Django 2.2.12 To integrate process specifications, integrated projects including task, doc, sso are deployed. Approximate directory structure: CellMiddle -- Project Root Directory - task - demand system │ ├─migrations │ ├─static │ └─templates - logs - Log directory -doc - Document System │ ├─data │ ├─migrat ...

Posted on Fri, 08 May 2020 10:54:19 -0700 by leegreaves

Using Nginx and Supervisor to deploy Tornado on Linux server

Nginx installation: sudo apt get install nginx After nginx is installed, you can use your browser to enter 127.0.0.1 to see the welcome page of nginx nginx common commands 1. Sudo service nginx start 2. Sudo service nginx stop 3. Sudo service nginx restart 4. Sudo service nginx reload reloads the con ...

Posted on Thu, 30 Apr 2020 14:34:20 -0700 by Soumen

Responsibility chain model, more flexible if-else

Responsibility chain model Responsibility chain, as its name implies, is an execution chain used to handle the responsibilities of related transactions. There are multiple nodes in the execution chain. Each node has the opportunity (condition matching) to process the requested transaction. If a node has finished processing, it can be passed to ...

Posted on Mon, 13 Apr 2020 20:38:44 -0700 by Tryfan

Making a simple anti-theft chain with Express

Recently, a project arranged by a supervisor added a set of front-end templates to a system. This is not difficult in itself. Because the algorithm can not provide data, I copied the online picture links randomly, and found that some pictures can not be displayed normally. Later, I knew that some pictures were added with " ...

Posted on Sat, 04 Apr 2020 08:16:59 -0700 by mmtalon

Multithreaded notes - BIO

BIO BIO is a synchronous blocking mode. As long as there is a client access, the server will have a thread corresponding to it to communicate Before, a common practice was to start a thread on the server to listen. When the supervisor heard that the client was connected, a new thread was set up to communicate with the client specially. If the t ...

Posted on Sun, 01 Mar 2020 00:15:37 -0800 by asukla

In depth understanding of AQS (AbstractQueuedSynchronizer)

In depth understanding of AQS (AbstractQueuedSynchronizer) Abstract queued synchronizer (AQS) is the core of implementing concurrent programming in JDK. ReentrantLock, CountDownLatch and Semaphore, which are often used in our work, are all implemented based on it. A bidirectional linked list (FIFO ...

Posted on Tue, 25 Feb 2020 00:56:19 -0800 by gavin101

"MTCNN" more than 20000 words textbook style explanation

In this paper, MTCNN, one of the most classical neural networks in artificial intelligence deep learning, is explained in detail. More than 20000 words of content, mainly from the theoretical and practical aspects of MTCNN for detailed analysis, comparable to textbooks. If you don't read, start your jou ...

Posted on Tue, 11 Feb 2020 06:26:30 -0800 by Zssz

Redis Actual - Data Structure Set Actual Get Randomized Unique Test Title

Overview: This series of blogs covers relevant content from a hands-on course recorded by debug: Getting Started with Cache Middleware Redis Technology and Application Scenario Actual Warfare (SpringBoot2.x +Redback System Design and Warfare) , interested little buddies can click to learn on their ow ...

Posted on Fri, 07 Feb 2020 18:49:51 -0800 by bongbong

An overview of the use of supervisor

Preface In the past, in order not to be killed, we used to run code with nohup + &. Later, we found that the system thought that all the damn programs had to die, which was very depressing. There are many tools for process daemons on the market, but they are written in different languages (for exa ...

Posted on Sun, 02 Feb 2020 22:09:09 -0800 by Fizzgig

What is supervisor? Bridge

In the source code of OTP, I found a strange behaviour named supervisor_bridge. What's its function? What's the difference between it and ordinary supervisor? So I found the file supervisor · bridge.erl. First, it is a gen server -module(supervisor_bridge). -behaviour(gen_server). -include("logger.hrl"). %% External exports -export([s ...

Posted on Sun, 15 Dec 2019 06:51:58 -0800 by arianhojat