OkHttp3 source code (I) ---- OkHttpClient
The internal implementation process of OkHttp3 was not considered when it was used before. Today, I will sort out and record it.
Next, I will add the common methods, internal classes and fields in the OkHttpClient class with my own understanding of comments, and understand the main purpose of OkHttpClient by looking at the com ...
Added by nnpdn on Sat, 04 Apr 2020 18:24:50 +0300
Using workbox to implement PWA in webpack
Using workbox to implement PWA in webpack
Explain
Important document version
"workbox-webpack-plugin": "^3.0.0"
"webpack": "^3.11.0"
Webpack provides workbox plug-in workbox webpack plugin
Used in webpack
Use in production version configuration
1. Import in the entry html template
<!DOCTYPE html& ...
Added by Telemachus on Sat, 04 Apr 2020 11:07:19 +0300
[android] project application global unique Handler (interface callback Implementation)
Recently, the handler has been playing. I suddenly want to have a global handler. I meditate for 3 hours and finally get it done!
First, create the Handler and the interface for callback in the Application, and print the address value of this interface (for later testing)
//Application.class
private static Handler m ...
Added by Drumminxx on Sat, 04 Apr 2020 04:04:22 +0300
Using CNN and LSTM to build caption generator
Thank you for your reference- http://bjbsair.com/2020-04-01/tech-info/18508.html
When you see an image, your brain can easily distinguish the meaning of the image, but can the computer distinguish the meaning of the image? Computer vision researchers have done a lot of work for this, they think it is impossible until now! With the development ...
Added by morphius on Sat, 04 Apr 2020 00:05:12 +0300
Example demo: How to simplify the OD security strategy in production?
Pod security policy is critical to enhance K8S cluster security.This article will continue with the previous article on Pod security.
First, it briefly describes how to associate a Pod with a Pod security policy and uses RBAC to show the steps.It then describes how to enable the default PSP in Rancher and create a custom PSP.Finally, a tool wi ...
Added by JeDi58 on Thu, 02 Apr 2020 12:38:22 +0300
Python web crawler notes (5): Download and analyze JD P20 sales data
(I) analysis page
Download the sales data for this link below
https://item.jd.com/6733026.html#comment
1. When turning the page, the Network tab of Google F12 can see the following request.
It can be seen from the Preview tab that this request is to obtain comment information
2. Compare the first page, the second page, the third page Differ ...
Added by brianjw on Thu, 02 Apr 2020 12:19:09 +0300
Using AsyncHttp to access the network, get data, explain and examples
What is AsyncHttp
It is a plug-in on github, which is used to obtain network data. Its function is similar to that of HttpUrlConnection
This article is to translate and supplement the information in github documents.
github document link
Make a Static Http Client: create a static method (which can realize c ...
Added by Pha on Thu, 02 Apr 2020 01:51:21 +0300
In depth and simple C-structure: an example of the structure of encapsulating Ethernet heartbeat packet
Catalog
1. Application background
2. Structure analysis
2.1. The structure exists in the stack
2.2. The structure does not need to be released manually
3. Package heartbeat package structure
4. Structure static help class
5. Does the new structure exist in the heap or stack?
5.1. Structure without formal parameters
5.2. Structure with par ...
Added by MnM333 on Wed, 01 Apr 2020 23:41:55 +0300
Deployment steps of FISCO-BCOS blockchain open source platform (2)
Chapter II deployment of Genesis node
2.1 initialize node environment
The path used in this article is / mydata/nodedata-1/
#Create directory
mkdir -p /mydata/nodedata-1/data/ #Store various files of the node
mkdir -p /mydata/nodedata-1/log/ #Storage log
mkdir -p /mydata/nodedata-1/keystore/ #Deposit account key
#Copy node configuration
cd / ...
Added by fris on Wed, 01 Apr 2020 23:35:32 +0300
Node.js tries to solve the reasoning questions of the Criminal Investigation Department of Jiangsu internet police
A month ago, Jiangsu network police A set of "2018 criminal investigation subject reasoning test questions" was released on Weibo, which is hard to defeat many heroes, and the comment area is full of leather voice.
@Bidirectional foil icon Before the college entrance examination, the head teacher taught us all the questions th ...
Added by covert215 on Wed, 01 Apr 2020 10:46:44 +0300