Vite3+vue3 project packaging optimization 3 – CDN acceleration, file compression

1. CDN online acceleration Content Delivery Network (CDN for short) is a distributed content distribution network built on a data network, which allows users to request resources from the nearest server to improve the response speed of network requests. Usually, we request dependent modules to use CDN, while requesting project code still uses its own […]

Python lightweight serialization and deserialization package marshmallow detailed usage guide 3

Marshmallow Official documentation: https://marshmallow.readthedocs.io/en/latest/ Marshmallow, Chinese translation: cotton candy. It is a lightweight data format conversion module, also called serialization and deserialization module, which is often used to convert between complex orm model objects and python native data types. Marshmallow provides rich API functions. as follows: Serializing Serialization [can convert data objects into storable or […]

Element table secondary packaging is super detailed with code (attached form slot, header slot, single choice and multiple choice, automatic selection according to data)

Recently, I have been working in the background management system, and the search and form are used a lot. Based on the secondary packaging of the element table, it is as follows first picture parent component <div class=”content_main”> <div class=”search_card”> <wpform style=”margin-top:20px” :objForm=”objForm” :formData=”formData” @searchSubmit=”searchSubmit(val)” ></wpform> </div> <div class=”tableContent”> <wp_table ref=”mytable” :tableData=”pendingReviewdata” @rowClick=”rowClick” :headerColumns=”pendingReviewHeader” :sendHeight=”sendHeight”> […]

Red-black tree package set and map (insert part)

Article directory foreword 1. General idea of design 2. Transform and package red-black tree 1. Insert a node 2. Implementation of iterators 3. Encapsulation of map and set 1. Code implementation 2. Simple test Foreword We have implemented the insertion part of the red-black tree before. This article mainly introduces the packaging of the previously […]

Explain the webpack configuration and css processing of webpack in simple terms

Entrance The entry is to specify which module (js file) webpack uses as the start of building its internal dependency graph. After entering the entry, webpack will find out which modules and libraries are directly or indirectly dependent on the entry file Create webpack.config.js module.exports = {<!– –> //entry file entry: ‘./src.main.js’ } Export The […]

The difference between apt remove purge deletes the configuration file while deleting the package

1. The difference between apt remove purge View man apt apt remove: remove the package without removing the configuration file. The purpose of this is that when the package is installed again in the future, the original configuration file will be automatically loaded for use. It can also avoid deleting the package by mistake. If […]

Python logger package

1. Background Everyone should have encountered this scenario, you found a bug but cannot reproduce it. The development said, I will add a log, and then observe it during the test, and tell me in time if there is a problem. The log is very important for debugging, but the more the better. Key codes […]

R language practice – rWCVP: R package of the world list of vascular plants

rWCVP: An R package for the World Catalog of Vascular Plants introduce 1. Refer to github installation and simple examples 1.1 Install rWCVP 1.2 Install rWCVPdata 1.3 github example 2. Read the original literature of rWCVP 2.1 Preface (Background) 2.2 Function overview 2.2.1 Name matching (wcvp_match_names(), wcvp_match_exact(), wcvp_match_fuzzy()) 2.2.2 Name resolution after matching 2.2.3 Spatial […]

Use of npm package management, cnpm, yarn, cyarn

Summary Package management tools 1. Package management tools There are four types: npm, cnpm, yarn, cyarn npm Two, npm 2.1 If it is for the use of a certain local project, the first thing must be: npm init / npm init -y(yes) Precautions: It is best not to call the directory name of the initialization […]