Jiangcheng Cheerful Pea: Personal homepage Personal column :《VUE》《javaScript》 Personal website : “Jiangcheng Cheerful Pea” The ideal of life is for an ideal life! Table of Contents ? Column introduction Article introduction 1. What are reflow and redraw? 2. How to trigger Reflow trigger timing Redraw trigger timing Browser optimization mechanism 3. How to reduce ?Write […]
Tag: zero
Implementation of garbage classification smart trash can project based on OrangePi Zero 2 (2) C language calling Python code–installation and testing of dev dependent libraries of libpython3
Environment Construction and Testing If you want to call python code in C language, you need to install the dev dependency library of libpython3 Installation: dev dependency library of libpython3 Use the following command to check whether dependent packages already exist: dpkg -l | grep libpython3 It can be seen that there is no library […]
The impact of signal zero padding on the signal spectrum
Article directory Preface 1. What is zero padding? 2. Case 3. Simulation and analysis before zero padding 1. MATLAB source code before zero padding 2. Simulation and result analysis ①、 x n x_n xn? time domain diagram ②、 x n x_n xn? spectrogram 4. Simulation and analysis after zero padding 1. Add 6000 zeros and […]
From zero to one: setting up the server environment and using Docker to deploy the project online
1. Server purchase 1. Purchase a server Go to Alibaba Cloud official website to purchase a server Go to Alibaba Cloud or Tencent Cloud to buy a server. There are flash sales or newbie discounts. Generally, you can buy one for about 80 yuan for about a year.Select CentOS7.6 as the image. I purchased Alibaba […]
go-zero project rapid construction process
go-zero’s quick build process 1. Installation of goctl 1.1 Overview 1.2 golang direct installation 1.2.1 If the go version is before 1.16, use the following command to install it: 1.2.2 If the go version is after 1.16, use the following command to install it 1.2.3 Verify installation 1.3 Manual installation 1.3.1 Download Windows 64-bit 1.3.2 […]
Implementation of garbage classification smart trash can project based on OrangePi Zero 2 (4) USB camera access test
1. USB camera test OrangePi Zero 2 official user manual download link (3.13.6. USB camera test): https://pan.baidu.com/s/1beIF5FMjWi2jw6nD83GYGg?pwd=himu 1) First insert the USB camera into the USB interface of the Orange Pi development board 2) Then through the lsmod command you can see that the kernel automatically loads the following modules orangepi@orangepi:~$ lsmod 3) Through the […]
From Zero to Hero, master Python in one article
The first question, what is Python? According to Guido van Rossum, the father of Python, Python is: A high-level programming language whose core design philosophy is code readability and syntax, allowing programmers to express their ideas with very little code. For me, the number one reason to learn Python is that Python is a language […]
[Zero to One Series] Microservice Hystrix fuse integration
Previous review: [Zero to One Series] springcloud microservices integrate nacos to form a distributed system 1. hystrix dependency package First, introduce hystrix-related dependency packages. The version should correspond to the one in the project. I use the default version directly here. <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency> Then, the microservices demonstrated are still taking the two sub-modules […]
Zero-copy mmap of libpcap
1. User space After creating fd through socket(AF_PACKET,…), establish the receiving queue //pcap-linux.c static int pcap_activate_linux(pcap_t *handle) {<!– –> … ret = setup_mmapped(handle, & amp;status); … } 1.1 Set the default ring bufer size static int setup_mmapped(pcap_t *handle, int *status) {<!– –> … \t//1. if (handle->opt.buffer_size == 0) {<!– –> /* by default request 2M […]
Using Vue.js to develop Chrome browser plug-ins: from zero to one
Using Vue.js to develop Chrome browser plug-ins: from zero to one Chrome browser extensions are powerful tools that provide users with a richer browsing experience. In this blog, we will explore how to use the Vue.js framework to build a Chrome browser plug-in. Step 1: Preparation First, make sure you have Node.js and Vue CLI […]