Algorithm - maximum common substring
Title Description
This topic is code completion. Please complete the source code given in the topic and copy it to the code box on the right. Select the corresponding compilation language (C/Java) and submit it. If the source code language given in the title is not unique, you only need to select one to complete and submit. After copying, dele ...
Posted by Huuggee on Sun, 06 Mar 2022 08:17:07 +0100
Zookeeper learning notes
1.Zookeeper learning notes
1.1 overview
Zookeeper is an open source distributed Apache project that provides coordination services for distributed frameworks.
Zookeeper's working mechanism:
From the perspective of design pattern: it is a distributed service management framework designed based on observer pattern. It is responsible for stori ...
Posted by gat on Sun, 06 Mar 2022 08:15:41 +0100
Java Web Session Cookie learning notes
0 @WebServlet annotation usage
0.1 configuration xml document header
Note: if the annotation is "0-version", please note that the configuration is "version-3"
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc ...
Posted by Atari on Sun, 06 Mar 2022 08:01:25 +0100
Interpretation of mysql source code -- transaction management
1, Transaction
What is a transaction? According to the book, it is a set of operations of the system. In order to maintain the integrity of data, it must comply with the characteristics of ACID, namely atomicity, consistency, isolation and Durability. Atomic ity is easy to understand. Operations are either fully executed or not fully executed. ...
Posted by robinas on Sun, 06 Mar 2022 07:59:06 +0100
Using vscode to develop C + + programs on linux platform (including cmake and gdb)
The main purpose of writing this blog is to record the following knowledge points, and then introduce its concept and usage one by one. 1. Recognize and use vscode 2. Use g + + to compile and run a multi file C + + project 3. Compile a multi file C + + project with cmake 4. Compile, run / debug a multi file C + + project on cscode 5. Use gdb to ...
Posted by .-INSANE-. on Sun, 06 Mar 2022 07:44:29 +0100
Verilog code question - basic circuit
Basic circuit
1-bit full adder
module full_adder(
input a,
input b,
input cin,
output sum,
output cout
);
assign {cout,sum}=a+b+cin;
endmoudle
abcinsumcout0000000110010100110110010101011100111111
module full_adder(
input a,
input b,
input cin,
output sum,
output cout
);
assign sum=a^b^cin;
assign cout=(a&b)
|(c ...
Posted by Floydian on Sun, 06 Mar 2022 07:39:45 +0100
Java learning notes - Methods
1, Method overview
Not to mention what the method is, let's look at the code and analyze where the program has shortcomings and how to improve it.
Do not use method
int x = 10;
int y = 20;
System.out.println(x+"+"+y+"="+(x+y));
System.out.println(x+"+"+y+"="+(x-y));
int x1 = 100;
int y1 = ...
Posted by Ludo Lambrechts on Sun, 06 Mar 2022 07:26:59 +0100
Qt -- basic class
Foundation type
Because Qt is a C + + framework, all syntax and data types in C + + are supported in Qt, but Qt also defines some of its own data types (mostly aliases of C + + data types). Let's introduce these basic data types
QT basic data types are defined in #include < qtglobal >
Type namenotesremarksqint8signed charSigned 8-bit d ...
Posted by Infinitus 8 on Sun, 06 Mar 2022 07:16:41 +0100
Create Debian system image on RISC-V starlight board
preparation:
patienceA cup of coffeeA board and a serial port debugging line, at least 16G SD card of any brand A Linux distribution that can operate skillfully (Archlinux or Ubuntu is recommended)Learn about how to use qemu and binfmt to create RISC-V simulation running environment Recommended readingGet a general idea of how to create a blo ...
Posted by Hades on Sun, 06 Mar 2022 07:11:47 +0100
Notes: audio format conversion ByPython
In the above, we have roughly understood the usage of pydub library. Today's goal is to write a crawler to crawl song information.
For web crawlers, there are corresponding packages in Python's standard library, which can be opened directly: https://docs.python.org/zh-cn/ Go to see the official Chinese documents of the corresponding version of ...
Posted by jahred on Sun, 06 Mar 2022 07:06:09 +0100