Connection pool of Okhttp ConnectionPool

Catalog 1.get() method 2.put() Use and analysis of Okhttp3: https://mp.csdn.net/postedit/83339916 okhttp system Interceptor: https://mp.csdn.net/postedit/83536609 Connection pool of Okhttp: ConnectionPool: https://mp.csdn.net/postedit/83650740   Okhttp abstracts the communication links between the client and the server ...

Posted on Wed, 11 Dec 2019 10:48:04 -0500 by php_2004

vue puzzle slot

What is the slot? Can I eat it In vue, slot means the increase of content. Back to the use scenario of vue, slot is the additional content added when the parent component calls the child component. Whether the slot is displayed or not is controlled by the parent component, and where the slot is displayed is determined by the child component H ...

Posted on Wed, 11 Dec 2019 10:34:44 -0500 by mtombs

Nodejs log websocket real-time output

There is a requirement to view the output of some log files through websocket (new files, or newly added content, can be output by line), and it needs to be real-time, which can be done by using the system's tail and combined with the spawn command. Usage method package.json { "name": "logs", "version": "1.0.0", "main" ...

Posted on Wed, 11 Dec 2019 10:14:28 -0500 by Wright

STL map missing 01

I haven't written c + + for more than a year. Today, I jumped into a hole. Phenomenon: map.insert (pair < int, boo > (x, true); the final result is always map[x] is false Error code: #include <map> #include <iostream> using namespace std; int main(int argc, char* argv[]) { int arr[] = { 2, 4, 8, 4, 5, 3, ...

Posted on Wed, 11 Dec 2019 10:04:30 -0500 by geny

Binder for IPC inter process communication

Binder, the medium of interprocess communication Binder implements the IBinder interface, which is a way of cross process communication in android. It is the medium of communication between server and client. Binder creation: 1. Create a custom class Book.java to implement the Parcelable interface to realize serialization and ...

Posted on Wed, 11 Dec 2019 09:58:59 -0500 by Vibralux

How to use ReadWriteLock?

ReadWriteLock, read-write lock. ReentrantReadWriteLock is an implementation of ReadWriteLock.   Characteristic: Contains a ReadLock and a WriteLock object Read lock and read lock are not mutually exclusive; read lock and write lock, write lock and write lock are mutually exclusive It is suitable for scenarios with read and write operati ...

Posted on Wed, 11 Dec 2019 09:49:04 -0500 by friedemann_bach

Python script for converting ppt file to mp4 video

ppt2mp4 (Python2.7) Convert the ppt file to mp4 video. GitHub premise 1. Windows system is required and windows multimedia player is enabled. You need to install a previous version of Office 2010. Because PowerPoint needs to rely on Windows multimedia player to convert ppt to video. If it is not enabled, it needs to enable desktop experience fr ...

Posted on Wed, 11 Dec 2019 09:37:33 -0500 by varecha

Spring Boot integrates Quartz

To configure pom Spring Boot uses 2.1.6.RELEASE <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-quartz</artifactId> </dependency> application.properties #Using database to solidify scheduling information spring.quartz.job-store ...

Posted on Wed, 11 Dec 2019 09:23:07 -0500 by e1seix

Detailed explanation of Java Dom and Sax parsing XML

In JAVA, there are three ways to parse: Dom parsing (supports modification, deletion and memory consumption) Sax parsing (does not support modification and deletion, does not consume memory) Pull parsing (a recommended way to parse XML in Android, learn in the next chapter)   1. Development package supporting Dom and Sax parsing There are tw ...

Posted on Wed, 11 Dec 2019 08:40:38 -0500 by mars_rahul

Roller events and optimization

Roller event Due to the compatibility of browsers, the wheel events of different browsers are also different. The following describes the compatibility scheme of the lower wheel events. Roller event Mousewill - for Chrome and IE browsers Dommouseschroll - for Firefox browsers, and only use addEventListener to listen Event object (get scroll d ...

Posted on Wed, 11 Dec 2019 08:39:00 -0500 by RP