There is zero burden on reflow and redrawing, and the web page loads as fast as lightning.

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 […]

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 […]

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 […]

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 […]