Python test framework pytest (21) plug-in - unit test coverage and random execution cases
1. Pytest cov (unit test coverage)
When doing unit testing, we usually refer to code coverage to measure the quality of code.
The pytest cov plug-in can be used to count the unit test coverage.
1.1 installation
Run the following command from the command line to install:
pip install pytest-cov
Or (using the domestic Douban source, the data wil ...
Posted by Froy on Fri, 29 Oct 2021 00:51:17 -0700
Interaction between WebGL and web pages published by Unity2021
(1) First, let's talk about how Unity calls page methods.
First, create a Plugins folder in the Asset directory of the project, and then create a. txt file in the folder. The name doesn't matter. After creation, change the extension to. jslib. The file shall contain the following contents:
mergeInto(LibraryManager.library, {
Hello: functio ...
Posted by Stargate on Fri, 29 Oct 2021 00:24:21 -0700
A diagram to thoroughly understand the Spring circular dependency
1 what is circular dependency?
As shown in the figure below:
BeanA class depends on BeanB class, and BeanB class depends on BeanA class. This dependency forms a closed loop, which we call circular dependency. Similarly, see the following figure:
In the above figure, BeanA class depends on BeanB class, BeanB class depends on BeanC class, and B ...
Posted by Johntron on Fri, 29 Oct 2021 00:07:41 -0700
Build records of problems encountered in native hadoop and cdh
hadoop startup error ERROR: Cannot set priority of datanode process
The cluster was not formatted
./bin/hdfs namenode -format
Modify yarn default port After that, it needs to be restarted because it is not hot
database Error reporting 1045
[root@test ~]# systemctl stop mariadb ##Close mysql
[root@test ~]# mysqld_safe --skip-grant-tables ...
Posted by dcooper on Thu, 28 Oct 2021 23:28:19 -0700
Coding method of data characteristics
Exploratory analysis of data
Exploration of data characteristics
Data exploratory analysis needs to be seen from two aspects:
Field vs label
Field vs field
Data distribution analysis
It may be because the distribution of training set and verification set is different, such as the opposite trend of local and online score transformation.
A class ...
Posted by Shaudh on Thu, 28 Oct 2021 23:22:33 -0700
Image building without Dockerfile: BuildPack vs Dockerfile
In the past work, we have built a technical platform using microservices, containerization and service choreography. In order to improve the R & D efficiency of the development team, we also provide a CICD platform to quickly deploy the code to the Openshift (enterprise class Kubernetes) cluster.
The first step of deployment is the contain ...
Posted by webbwbb on Thu, 28 Oct 2021 23:19:49 -0700
Some understanding of compiled code
Some understanding of compiled code
ARM Cortex-M underlying technology -- principle and application of compiling kernel Reference website: https://www.cnblogs.com/39950436-myqq/p/11545140.html
1. Definition of compilation link
No matter how simple the code we write, we must go through the process of "compiling -- > linking" to g ...
Posted by Smifffy on Thu, 28 Oct 2021 22:56:19 -0700
Maven installation and configuration
install
Download: http://maven.apache.org/download.cgi
Generally, zip: After downloading, select a path to unzip (unzip to a non Chinese file directory)
Enter environment variable I don't know how to enter. Refer to my Java installation blog Add maven path to path cmd validation, enter mvn -version Configure local and private warehouses ...
Posted by mellis95 on Thu, 28 Oct 2021 22:50:27 -0700
Micro front end development
1, Overview of micro front end
one What is a micro front end?
In order to solve the limitations of change and expansion caused by a large piece of back-end services, micro service architecture has emerged.
However, the more and more important front-end engineering is also facing the same problem. It is natural to think of applying ...
Posted by Basdub on Thu, 28 Oct 2021 22:41:34 -0700
Installing mysql 5.7 database in linux
Refer to this big brother's blog, https://blog.csdn.net/qq_37598011/article/details/93489404
Here are my notes according to the blog
3.2 installing and configuring mysql 5.7 for Linux
3.2.1. Download
Download:
https://dev.mysql.com/downloads/mysql/5.7.html#downloads
3.2.2. Upload to Linux server
Put it under the / myapp directory ...
Posted by meltingpoint on Thu, 28 Oct 2021 22:30:13 -0700