Python monitoring server edge -- psutil

In addition to installing some commonly used monitoring software, the monitoring of the server sometimes needs to run some shell or Python scripts; under the shell, you can use the system's own shell commands such as ps/free/top/df, and python can call subprocess and other modules to run shell commands, but it is more troublesome to do so. Here ...

Posted by cwetherbee on Fri, 29 Nov 2019 05:48:58 -0800

Four ways to lazy load react components

Lazy load: why? Solve page fake dead state Single page vue and react, only one HTML, slow loading of the first screen, fast switching in the later stage, which is not conducive to search engine optimization (SU), and the front-end rendering is not conducive to 500kb for the first screen is good for user experience, and the maxim ...

Posted by feidakila on Thu, 28 Nov 2019 14:18:13 -0800

Solve the asynchronous communication between vue and axios

In a project, it is often necessary to get data content from the back end. Especially when the front end and the back end are separated, the front end is deployed in an engineering way, and cross domain request becomes a necessary skill point of the front end. Fortunately, there are many solutions. In vue, currently, axios is widely used for cr ...

Posted by decodv on Wed, 27 Nov 2019 07:09:09 -0800

RxJava2 usage and source reading

What is RxJava?According to RxJava's description on GitHub:RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java It roughly means:RxJava - A java library that runs on a JVM and implements asynchronous operations based on observer mode. The role of RxJava: ...

Posted by Smackie on Tue, 26 Nov 2019 20:15:07 -0800

Android Thermal Repair Principle and Implementation Scheme Learning

This article is mainly about QQ Spatial Team Introduction of Android App Hot Patch Dynamic Repair Technology Principle and implementation learning. Be based on Introduction of Android App Hot Patch Dynamic Repair Technology There are many hot-fix frameworks that are open source on github, roughly: https://github.com/dodola/HotFixhttps://github. ...

Posted by RagingEagle on Tue, 26 Nov 2019 20:06:11 -0800

How to set up the experiment environment of Varnish reverse agent

Construction of Varnish experimental environment 1. Download the 6.5 image and configure the network yum source on the host yum install httpd -y systemctl start httpd systemctl enable httpd mkdir /var/www/html/rhel6.5/ mount /iso/rhel-server-6.5-x86_64-dvd.iso /var/www/html/rhel6.5/ 2. Create a master disk: (1) open Virtual ...

Posted by psionicwrath on Tue, 26 Nov 2019 10:39:56 -0800

Java learning notes 16 netty buffer ByteBuf details

Netty's own ByteBuf ByteBuffer is designed to solve the problems of ByteBuffer and meet the daily needs of network application developers. Disadvantages of JDK ByteBuffer: Unable to expand dynamically: the length is fixed and cannot be expanded and contracted dynamically. When the data is larger than the ByteBuffer capacity, an index out of bo ...

Posted by kmutz22 on Tue, 26 Nov 2019 08:58:04 -0800

Java learning note 14 netty thread model and source code analysis

Netty introduction Netty is a high performance. The highly scalable asynchronous event driven network application framework greatly simplifies network programming such as TCP and UDP client and server development. Netty's four key elements: Reactor thread model: a high performance multithreaded programming idea Self defined Channel concept in ...

Posted by itguysam on Mon, 25 Nov 2019 22:02:59 -0800

Don't understand the principle of thermal repair? After reading this, I'll show you the handwritten code

Analysis of Android hot fix principle The purpose of this article is to let you know what is thermal repair. Please contact me for specific implementation details. After we understand the principle, we can carry the handwritten code smoothly. Please remember one sentence:The paper must be light at last, and we must do it.The code that we need ...

Posted by wilburforce on Mon, 25 Nov 2019 21:21:02 -0800

Qt Write Gas Security Management System 18-Database Settings

1. Preface As a management system, the database is absolutely indispensable. Qt's built-in sqlite database is enough, and I can test the amount of data personally to support hundreds of millions of levels, rather than tens of millions of levels as many people on the Internet say. I have simulated more than 100 million data, and still can query ...

Posted by GB_001 on Mon, 25 Nov 2019 18:12:34 -0800