redis self increment & timed failure in distributed environment
Requirements & business scenarios
without requirements or business scenarios, talking about technology is a castle in the air~
Preconditions
● distributed deployment ● multiple instances
Business requirements
● for different businesses, there is a self incremented document number with the business ID. ● business ID of order No. ...
Posted by phence on Sun, 24 Oct 2021 08:30:21 -0700
Sorting algorithm clock in
Quick row
Based on the idea of divide and conquer
Template questions:
Give you a sequence of integers of length n.
Please use quick sort to sort this sequence from small to large.
And output the ordered sequence in order.
Input format
The input consists of two lines. The first line contains the integer n.
The second row contains n integ ...
Posted by corsc on Sun, 24 Oct 2021 08:26:45 -0700
STM32F103 register mode turns on the LED water flow lamp
Experimental requirements: build the circuit with STM32 minimum system core board (STM32F103C8T6) + panel board + 3 red, green and blue LEDs, use GPIOB, GPIOC and GPIOD to control the LED lights, flash in turn, and the interval is 1 second. 1) Write the program design idea, including the register address and detailed parameters of GPIOx port; 2 ...
Posted by Stegs on Sun, 24 Oct 2021 07:53:58 -0700
[OpenAirInterface practice-14]: OAI nFAPI VNF/PNV continuous integration test xml configuration details
Author home page( Silicon based workshop of slow fire rock sugar): Slow fire rock sugar (Wang Wenbing) blog silicon based workshop of slow fire rock sugar _csdnblog
Website of this article: https://blog.csdn.net/HiWangWenBing/article/details/120850348
catalogue
1. nFAPI continuous integration test documents
1.1 description of continuous in ...
Posted by JamieWAstin on Sun, 24 Oct 2021 07:42:12 -0700
Second job of mobile development
1, Realize function
The layout of Experiment 2 is partially improved to make the effect picture look better. On the basis of Experiment 2, click and jump the page with recycleView. For example, if a tab page is a news list, click a line to jump to the news details page;
2, Concrete implementation
Intent is a messaging object that can be ...
Posted by navarre on Sun, 24 Oct 2021 07:31:05 -0700
Click the avatar to jump to the home page
1, Interface design
Jump from the activity where the avatar is located to the activity on the home page The page design after jump is as follows: Home page layer: ScrollView is used to realize scrolling text box Song layer: it hasn't been done yet. It is planned to adopt recyclerview
<ImageView
android:id="@+id/imageView6"
...
Posted by Tom_LR on Sun, 24 Oct 2021 07:10:46 -0700
Population analysis cases
demand
Source data acquisition – password: 6qpt
Import the file and view the original dataCombine population data with state abbreviation dataDelete the duplicate abstraction column in the merged dataView columns with missing dataFind out which states / regions make the value of state NaN and perform the de duplication ope ...
Posted by razz on Sun, 24 Oct 2021 07:02:25 -0700
Sequential table of linear table (data structure)
Sequence table
*** * this paper mainly talks about one kind of linear table, that is, sequential table. Sequential table is to use sequential storage to store data. The so-called sequential storage means that the address of data in memory is also stored continuously, and there is no space (interval) in the middle. The advantage of sequential t ...
Posted by Sakesaru on Sun, 24 Oct 2021 06:51:26 -0700
Dict container for Python
5. Dict container for Python
5.1 what is dict
If the list of students' names corresponds to the list of students' grades one by one, we can also find the grades of each student through subscript.
names = ['Alice', 'Bob', 'Candy', 'David', 'Ellena']
scores = [45, 60, 75, 86, 49]
index = 0
for name in names:
score = scores[index]
print ...
Posted by Poofman on Sun, 24 Oct 2021 06:39:34 -0700
First line of code Kotlin learning notes
Programming languages are divided into compiled languages and interpreted languages. Compiled languages are characterized by compiling source code into binary files at one time and then executing directly; Interpretative languages have an interpreter that interprets the source code into binary data at run time and then executes it. Therefor ...
Posted by songwind on Sun, 24 Oct 2021 06:34:03 -0700