psutil learning notes
psutil introduction psutil is a cross platform library( http://code.google.com/p/psutil/ )It can easily obtain the process and system utilization (including CPU, memory, disk, network, etc.) information of the system. It is mainly used in system monitoring, analysis and limitation of system resources and process management. It implements the ...
Posted by interrupt on Wed, 04 Dec 2019 11:32:29 -0800
How to collect common front-end performance information
Front end performance indicators, mostly including TTFB, first screen, first interactive time, etc
There are a lot of related articles, so we won't talk about the details here. Please refer to the end of the article
In general, we need to know that the browser (New) provides us with the Performance API. With this property, we can get a ser ...
Posted by dleone on Wed, 04 Dec 2019 07:24:41 -0800
Basic crawler, who can learn? Use requests and regular expressions to crawl the top 250 movie data of Douban!
Crawls to take the Douban top 250 movie score, the poster, the movie review and so on data!
this project is the most basic and simple example among reptiles;
Later, there will be more advanced and automated crawlers using the crawler framework.
the process of this project is to use requests request library to get html, and then us ...
Posted by V-Man on Wed, 04 Dec 2019 02:47:50 -0800
Network group related experiments
Network group is a new technology on centos7. Its function is similar to binding. It is a method of aggregating multiple network cards to achieve redundancy and improve throughput. Different from the binding technology in the old version, network group provides better performance and scalability. It is implemented by kernel drive and team D d ...
Posted by mrjameer on Tue, 03 Dec 2019 21:17:30 -0800
Data Compression and Archiving-zlib:GNU zlib Compression-Compression of Network Data
8.1.5 Compressed network data
The server in the next code list responds to a file name request with a stream compressor that writes a compressed version of the file to a socket that communicates with the client.
import zlib
import logging
import socketserver
import binascii
BLOCK_SIZE = 64
class ZlibRequestHandler(socketserver ...
Posted by coder9 on Tue, 03 Dec 2019 12:02:54 -0800
Java non blocking NIO case (realize multi person chat function)
I. three cores of using Java NIO to complete network communication
1. Channel: responsible for connection
java.nio.channels.Channel interface: |--SelectableChannel |--SocketChannel |--ServerSocketChannel |--DatagramChannel |--Pipe.SinkChannel |-- ...
Posted by gergy008 on Tue, 03 Dec 2019 06:06:53 -0800
k8s using Kube router to build highly available and extensible ingress
brief introduction
Use Kube router to realize the function of inress of k8s cluster, which is highly available and easy to expand
Environmental description
This experiment is based on the k8s cluster which has been installed and configured. For k8s installation, please refer to other blog articles. lab4, as a router, forwards lab5's request
Exp ...
Posted by eirikol on Tue, 03 Dec 2019 05:27:35 -0800
Handle network request dependencies gracefully
When dealing with the network, we often encounter the situation that the network requests depend on each other. For example, the parameter of B request depends on the callback result of A request. If B is requested directly in the callback of A request, it will lead to the nesting of callbacks, which leads to the tight coupling bet ...
Posted by cyberdesi on Tue, 03 Dec 2019 04:50:05 -0800
Simulate HTTP request to call controller
Please refer to my brief book: Simulate HTTP request to call controller
Written in front
MockMvc realizes the simulation of Http request, and can directly use the form of network to convert to Controller call, which makes the test faster and does not depend on the network environment. It also provides a set of verification tools.
The single tes ...
Posted by Stoned Gecko on Tue, 03 Dec 2019 01:17:34 -0800
Qt write gas safety management system 22 alarm linkage
I. Preface
The alarm linkage function is not a conventional function, but a customized function for customers. For example, when the data collected by the detector is alarmed, it is not only necessary to play the alarm sound locally, store the alarm record, send the alarm message and e-mail, but also to trigger the alarm panel light to alarm. T ...
Posted by corrupshun on Mon, 02 Dec 2019 13:33:51 -0800