python -- detailed explanation of gevent -- practical application of the project
Brief description of three communication models:
(1) Polling: The client sends requests to the server periodically and continuously at high frequency: Client request - server response - disconnect. The number of requests QPS is relatively frequent, and the configuration requirements of client and server are relatively high (2) Long polling: Th ...
Added by xluminex on Thu, 10 Feb 2022 22:37:49 +0200
Sorting algorithm and binary search algorithm
1. Bubble sorting
Bubble sorting principle:
1) Compare two adjacent elements. If the preceding element is larger than the following element, exchange the two numbers. After the first traversal, the maximum number will be placed at the last position of the array, that is, array[length - 1]. 2) The last element is skipped during the second trav ...
Added by blindtoad on Thu, 10 Feb 2022 22:27:00 +0200
[emotion recognition] speech emotion recognition based on Neural Network
1, Introduction
1 Overview BP (Back Propagation) neural network was proposed by the scientific research group headed by Rumelhart and McCelland in 1986. See their paper learning representations by Back Propagation errors published in Nature.
BP neural network is a multilayer feedforward network trained by error back propagation algorithm. It ...
Added by cgm225 on Thu, 10 Feb 2022 22:16:24 +0200
Linux emergency response skills
1, Handling Linux emergency response is divided into four steps:
1. Phenomenon identification 2. Clear virus 3. Closed loop bottom 4. System reinforcement
1. Recognition phenomenon
Through the system operation status and security equipment alarm, find the abnormal phenomena of the host and confirm the suspicious behavior of the virus. Whethe ...
Added by thegreatdanton on Thu, 10 Feb 2022 22:06:42 +0200
Spring MVC execution process
1. Introduction to MVC
MVC is a software design specification, which is the abbreviation of Model, View and Controller MVC is a common architecture pattern. Its purpose is to decouple! Model: the data model provides the data to be displayed on the page, also known as the business logic layer. The model layer is a broad overview. The model l ...
Added by rebelo on Thu, 10 Feb 2022 22:04:42 +0200
How to play micro service agile development at low cost
Agile development of microservices is not simpleThere are thousands of sets of safe environment, and the little brothers of Dabai development are laughingMicroservices bring us the characteristics of agile development. Based on the convenience of agile development, we can develop multiple iterations / features in parallel at the same time. Howe ...
Added by skoobi on Thu, 10 Feb 2022 22:00:44 +0200
MPAndroidChart_ Parallel bar chart, and how to click to hide unwanted items.
Introduction to MPAndroidChart - bit by bit of BarChart's parallel histogram.
MPAndroidChart_ About the line chart
MPAndroidChart_ The pie chart thing
MPAndroidChart_ Dynamic histogram
MPAndroidChart_ About the horizontal bar chart
MPAndroidChart_ Parallel bar chart, and how to click to hide unwanted items.
MPAndroidChart_ Radar chart an ...
Added by keveen on Thu, 10 Feb 2022 21:57:27 +0200
Deep and shallow cloning of Java 8
References:
What is the difference between deep cloning and shallow cloning? How are they realized
catalogue
1, Introduction to deep cloning and shallow cloning
1. Overview
2. Implementation of copy function
2, Implementation of deep cloning
1. Clone all objects
2. Deep cloning is realized by construction method
3. Deep cloning throu ...
Added by TheCase on Thu, 10 Feb 2022 21:52:47 +0200
Filebeat custom index name
1. Load external profile
1.1 Input config
filebeat.config.inputs:
enabled: true
path: inputs.d/*.yml
inputs. Example of configuration file in D Directory:
- type: log
paths:
- /var/log/mysql.log
scan_frequency: 10s
- type: log
paths:
- /var/log/apache.log
scan_frequency: 5s
1.2 Module config
filebeat.config.modu ...
Added by NathanLedet on Thu, 10 Feb 2022 21:49:08 +0200
Singleton mode (hungry singleton, lazy singleton, DCL mode, static internal class implementation, enumeration Implementation) this article is enough!
1. Single case mode elements
Ensure that there is only one instance in a class and provide a global access point
a.Private construction method
b.Private static references point to their own instances
c.Public static method with its own instance as return value
2. Hungry Han style single example
public class Hungry {
//Priv ...
Added by ziesje on Thu, 10 Feb 2022 21:47:14 +0200