Precautions for fork to create multiple subprocesses at the same time in process control linux

                /****************************************************************************************************************** Reference resources: http://blog.sina.com.cn/s/blog_605f5b4f0100x444.html Note: precautions for fork to create multiple subprocesses at the same time in linux. ************************************* ...

Posted by delayedinsanity on Mon, 18 Nov 2019 08:46:33 -0800

OkHttp3 source code details okhttp connection pool reuse mechanism

1. Overview To improve network performance optimization, it is very important to reduce latency and improve response speed. Usually, when we make a request in the browser, the header part is like this Keep alive is to keep a long connection between the browser and the server, which can be reused. It is enabled by default in HTTP 1.1. Why does ...

Posted by tempa on Mon, 18 Nov 2019 02:01:01 -0800

OkHttp3 source code details Request class

Every network request is a request. Request is the encapsulation of URL, method, header and body. It is also the encapsulation of request line, request header and entity content in Http protocol public final class Request { private final HttpUrl url; private final String method; private final Headers headers; private final RequestB ...

Posted by gazever on Mon, 18 Nov 2019 01:39:59 -0800

Picture Loading Frame Picture Loading Frame Selection Mid-story

Ali P7 Mobile Internet Architect Advanced Video (Updated Daily) Free Learning Click: https://space.bilibili.com/474380680This article will use Glide to illustrate the Picture Loading Frame selection: First, add dependencies implementation 'com.github.bumptech.glide:glide:4.5.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0' The ...

Posted by Fearsoldier on Sun, 17 Nov 2019 18:40:31 -0800

TensorFlow learning Optimizer optimizer

Optimizer tf.train.GradientDescentOptimizer tf.train.AdadeltaOptimizer tf.train. AdagradOptimizer tf.train.AdagradDAOptimizer tf.train.MomentumOptimizer tf.train.AdamOptimizer tf.train.FtrlOptimizer tf.train.ProximalGradientDescentOptimizer tf.train.ProximalAdagradOptimizer tf.train.RMSPropOptimizer Gradient descent ...

Posted by HowdeeDoodee on Sun, 17 Nov 2019 10:55:39 -0800

Ubuntu Compile Install HAprox+Keepalived+MySQL Load High Availability Architecture (combined with Docker container configuration)

System environment: Ubuntu 16.04 (Docker container) Architecture environment: Keepalived/HAproxy MASTER: 172.17.0.4 Keepalived/HAproxy BACKUP: 172.17.0.6 MySQL MASTER: 172.17.0.2 MySQL SLAVE: 172.17.0.3 HAproxy version: haproxy-2.0.8.tar.gz Keepalived version: keepalived-2.0.19.tar.gz   1. Install HAproxy (both MASTER/BACKUP) 1. Go to the offic ...

Posted by kujtim on Sun, 17 Nov 2019 05:41:06 -0800

WebSocket Heart Rate Detection and Reconnection Mechanism

Why heart rate detection Simply to prove that the client and server are still alive.When a websocket is in use, if it encounters network problems, etc., the server does not trigger the onclose event at this time, which will result in redundant connections, and the server will continue to send messages to the client, causing data loss.Therefore, ...

Posted by Jay on Sat, 16 Nov 2019 03:51:32 -0800

Front End Performance and Exception Monitoring

More articles Preface These days, there has been a lot of excitement to learn about front-end monitoring, but after looking at a lot of data, I found that there are no detailed articles about front-end monitoring, they are all about general, on the contrary, there are many existing front-end monitoring tools. In order to learn more about the te ...

Posted by talltorp on Fri, 15 Nov 2019 21:07:58 -0800

Delphi parses and modifies the Json file based on superobject.pas (ISuperObject)

After a series of twists and turns, it is still convenient for delphi to read and modify json files; Find a delphi tripartite library ISuperObject on the network, add it to the project and reference it directly; Download address Several commonly used functions in ISuperObject: Function SO(const s: SOString = '{}'): ISuperObject; overload; ...

Posted by SmokyBarnable on Fri, 15 Nov 2019 09:09:41 -0800

Source code analysis of Core CLR Host

When CLR instantiates PEAssembly, it calls peassemblyholder pfile (pdomain - > bindassemblyspec (this, ftrowonfilenotfound, fraiseprebindevents, pcallerstackmark)); There are actually three steps: 1. get bindResult through pSpec->Bind (), then call PEAssembly::Open new, a PEAssembly instance, the parameter is bindReuslt ...

Posted by GoRide! on Fri, 15 Nov 2019 06:39:11 -0800