Data structure - linear table concept and basic operation
data structure
Basic concept and operation of linear table (I)
Mind map
2.1 definition and basic operation of linear table
2.1.1 definitions
A linear table is a finite sequence of n (n ≥ 0) data elements with the same data type, where n is the table length. When n = 0, the linear table is an empty table. If L is used to name t ...
Posted by Dax on Fri, 19 Nov 2021 14:47:57 -0800
Design mode: observer mode
reference resources Design mode (V) observer mode
Observer mode
Type: behavioral
A one to many dependency is defined, which allows multiple observer objects to listen to a topic object at the same time. When the state of the subject object changes, it will notify all observer objects so that they can update themselves automatically.
UML
...
Posted by Mr_Mako on Fri, 19 Nov 2021 14:31:42 -0800
Learning note 06 of JUC high concurrency programming of Silicon Valley advanced technology -- Callable&Futrue interface
Callable interface
The characteristics of Callable interface are as follows (key points)
In order to implement Runnable, you need to implement the run() method that does not return anything, while for Callable, you need to implement the call() method that returns the result on completion.The call() method can throw exceptions, while r ...
Posted by nmreddy on Fri, 19 Nov 2021 14:24:57 -0800
Practical application of domestic encryption: use SM3 salt to store the password, and use SM2 for login authentication
catalogue
1. Brief
2. Development environment and tools
3. Background password encryption
3.1 encryption code
3.2 SM3 encryption class (Sm3crypto)
3.3 state secret SM3 tools (Sm3Utils)
3.4 dependence package related to state secrets
4. Login authentication
4.1 front end key codes
4.2 key codes of backend login authentication
4.2.1.SM ...
Posted by Liz_SA on Fri, 19 Nov 2021 14:20:10 -0800
Detailed explanation and use of the configparser module of Python
1. Configparser installation
pip3 install configparser
2. Introduction to configparser
The python package used to read the configuration file;Generally, this module is used to encapsulate some constants when doing automated testing. For example, database, email, user name and password, project constant, etc;The usage is determined accor ...
Posted by briansol on Fri, 19 Nov 2021 14:13:52 -0800
Android EditText limits five implementations of input characters, from entry to depth
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
String editable = evPwd.getText().toString();
String regEx = "[^a-zA-Z0-9]"; //Only letters or numbers can be entered
Pattern p = Pattern.co ...
Posted by artweb on Fri, 19 Nov 2021 14:11:25 -0800
Add routing table entry for IPv4
The following IP commands add routing table entries. By default, routes are added in the main routing table:
# ip route add 19.1.0.0/16 via 192.168.9.1
#
# ip route show table main
19.1.0.0/16 via 192.168.9.1 dev ens34
Kernel function inet_rtm_newroute handles the addition of routes. Function rtm_to_fib_config converts netlink data to kern ...
Posted by misfits on Fri, 19 Nov 2021 14:03:54 -0800
Three communication protocols SPI -- register configuration
catalogue
1, Introduction to SPI communication protocol
2, SPI communication timing
1. Master slave communication
2. Mode selection
3, Instance
summary
1, Introduction to SPI communication protocol
SPI is the abbreviation of serial peripheral interface. It is a synchronous serial interface technology launched ...
Posted by murali on Fri, 19 Nov 2021 14:04:20 -0800
Actual combat of grain Mall - background and environmental preparation
Mall infrastructure diagram:
Preparation of necessary components
docker installation, sql,redis
Each image of docker can be regarded as loading an application on a complete and independent Linux system.
instructions
For more detailed instruction learning, refer to: docker Instruction Learning
docker images: view the installed i ...
Posted by elangsru on Fri, 19 Nov 2021 13:48:39 -0800
Follow the old cat to get the GO container
Early reviewThe previous chapter mainly shared with you the definition of functions in GO language and the simple usage of pointers in GO language. In this chapter, old cat will learn about containers in GO language with you.arrayDefinition of arrayWhen it comes to containers, people with programming experience must first think of arrays. Of co ...
Posted by nikefido on Fri, 19 Nov 2021 13:46:23 -0800