Pytest framework and Application
2.9.1 PO design mode
Before talking about Pytest, let's take a look at what is the PO (Page Object) design pattern. Why reference PO design patterns? PO provides a mode of separating business process from page element operation, which makes the test code clearer. PO (Page Object) Page Object model is a design pattern used to manage and maintai ...
Posted by mverrier on Sun, 28 Nov 2021 07:14:29 -0800
Codeworks round 757 (Div. 2) problem solving Report
Portal
\(\rm Codeforces ~ Round ~ 757 ~ (Div. 2)\)
A Divan and a Store
There are \ (n \) items, and the price of the \ (I \) item is \ (a_i \).
Here are \ (L \) and \ (r \), which means that the merchant will only choose items with a price within \ ([l,r] \).
The merchant has \ (k \) yuan. Ask you how many goods the merchant can buy at most.
Th ...
Posted by KevinMG on Sun, 28 Nov 2021 07:12:58 -0800
Dubbo remote call - invoke
example
In the example, the DemoService instance is obtained through the Spring context. In the previous article Dubbo Consumer reference service We have learned about the process of referencing services, creating invoker s and creating proxy objects. The DemoService instance here is the created proxy object, and then the sa ...
Posted by markts on Sun, 28 Nov 2021 07:09:08 -0800
Explain multithreading and multiprocessing in detail. After reading it, you will understand
What are Python's support modules for concurrent programming?
Module nameeffectthreadingRealize multithreading, and make use of the principle that the computer CPU and IO can execute at the same time, so that the CPU can access another task during the computer IO operation.multprocessingmultprocessingasyncioRealize asynchronous IO, and realize ...
Posted by gillypogi on Sun, 28 Nov 2021 07:02:26 -0800
Netty implements HTTP file server
1, DemandThe file server uses HTTP protocol to provide external services. When accessing the file server through the browser, the user first checks the URL. If it fails, an error 403 is returned; If the current directory is opened by link through verification, each directory or file is displayed in the form of hyperlink, which can be accessed r ...
Posted by mkohan on Sun, 28 Nov 2021 07:00:25 -0800
Agent model of structural model (static agent, dynamic agent [principle], CGLIB agent)
5. Structural mode
Structural pattern describes how to form a larger structure of columns or objects according to a certain layout. It is divided into class structure pattern and object structure pattern. The former uses inheritance mechanism to organize interfaces and classes, and the latter uses composition or aggregation to combine objects. ...
Posted by udendra on Sun, 28 Nov 2021 06:52:07 -0800
[concept analysis] on the principle and use of Java keyword synchronized
Introduction to preface
When it comes to synchronized in Java, many people's first reaction is lock, which is inaccurate. In Chinese, it means synchronization. Lock is a concept, an abstract noun, and synchronization is an action and an operation result.
Inaccurate translation leads to deviation in understanding. For example, the translation of ...
Posted by loweauto on Sun, 28 Nov 2021 06:50:17 -0800
Anomaly detection -- from classical algorithms to deep learning 14. RRCF based anomaly detection for stream data
Anomaly detection: from classical algorithms to deep learning
0 IntroductionAnomaly detection algorithm based on isolated forest 2 anomaly detection algorithm based on LOF3 anomaly detection algorithm based on one class SVM4 anomaly detection algorithm based on Gaussian probability density5 Opprentice -- the final chapter of classical algorith ...
Posted by mrblom on Sun, 28 Nov 2021 06:46:26 -0800
Prototype design of fastband smart wearable smart Watch
Project introduction
In this project, MAX32660 of Meixin is the main control chip, equipped with two kinds of sensors, which communicate with MCU through I2C, and display the sensor information and the perpetual calendar information calculated by RTC in MCU on the OLED screen, which can be used as the prototype of smart watch.
Use device ...
Posted by jj33 on Sun, 28 Nov 2021 06:45:40 -0800
Experiment 3 transfer instruction jump principle and its simple application programming
1. Experimental task 1
task1.asm source code:
assume cs:code, ds:data
data segment
x db 1, 9, 3
len1 equ $ - x
y dw 1, 9, 3
len2 equ $ - y
data ends
code segment
start:
mov ax, data
mov ds, ax
mov si, offset x
mov cx, len1
mov ah, 2
s1:mov dl, [si]
or dl, 30h
int 21h
mov dl, ' '
int 21h ...
Posted by chatmaster on Sun, 28 Nov 2021 06:44:35 -0800