Golang net/rpc package learning
golang provides an out of the box RPC service, which is simple but not simple.
RPC introduction
Remote Procedure Call (RPC) is a kind of computer communication protocol. It allows programs running on another computer to call subroutines in another address space (generally a computer in an open network), while programmers are just like calling l ...
Posted on Sat, 27 Jun 2020 23:01:36 -0400 by lasith
Encapsulating rapid JSON for database and network data transmission
background
I want to complete json as the data medium to operate the database and network transmission. Looking up the data, we found that rapid json is a popular json library, and it is fast. But in my way of use, it's very cumbersome to use, and my purpose is data exchange. Rapid json is very common. It seems that it should be a value transfe ...
Posted on Sat, 27 Jun 2020 21:28:01 -0400 by rajeevbharti
Centos7 installs clamAV antivirus software
Abstract: the record mainly comes from a record of colleagues. At present, the original blogger has been deleted and re recorded by himself.
It's better to link to clamAV's official website address. Although I can't understand it, I can't find the corresponding installation document https://www.clama ...
Posted on Sat, 27 Jun 2020 21:15:53 -0400 by sleightofhand
A course of neural network based on DGL library Diagram -- basic drawing operation
Recently contacted with graph neural network, I feel that this device can provide multi granularity perspective. After abstracting the research object, we can classify the nodes, the edges and the whole graph. Graph neural network provides the ability to describe specific objects with multi granularity. ...
Posted on Sat, 27 Jun 2020 20:46:38 -0400 by bigphpn00b
Configuration of static Ip under centOS7.
Configuration of NAT static network card under centOS7
Recently, large data was built under cenOS7 and the need for centOS7 to configure static IPS was found.This post is about how to configure centOS7's static ip in a VM virtual machine.If there are any deficiencies, we also hope that like-minded people can correct and communicate, and make p ...
Posted on Sat, 27 Jun 2020 19:53:04 -0400 by mikeduke
Why does intent inherit the parseable or serialized interface when passing data, and does not implement any methods
1) Permanently save the object and save the byte sequence of the object to the local file;
2) Passing objects in the network by serializing them;
3) Passing objects between processes by serialization
There are two options to implement serialization in Android: one is to implement the Serializab ...
Posted on Sat, 27 Jun 2020 03:51:13 -0400 by noon
Take you to build an APM monitoring system
APM is the abbreviation of Application Performance Monitoring, which monitors and manages the performance and availability of software applications.Application performance management is critical to the continuous and stable operation of an application.So this article talks about how to accurately monitor and report data from an iOS App perform ...
Posted on Fri, 26 Jun 2020 21:14:44 -0400 by veveu
Okhttp source code reading
First look at the usage:
val client = OkHttpClient.Builder().build()
val request = Request.Builder()
.url("https://www.baidu.com")
.build()
val call = client.newCall(request)
call.enqueue(object : okhttp3.Callback {
override fun onFailure(call: okhttp3.Call, e: IOException) {
}
override ...
Posted on Fri, 26 Jun 2020 03:10:57 -0400 by saish
Multithreading - thread pool
Application of pooling Technology: thread pool, database connection pool, http connection pool, etc.
The idea of pooling technology is mainly to reduce the consumption of resources obtained each time and improve the utilization rate of resources.
Benefits of using thread pools:
Reduce resource co ...
Posted on Fri, 26 Jun 2020 01:59:12 -0400 by Loriq
socket programming of python
socket programming
socket
socket introduction
Use of socket
udp sending data
udp receiving data
udp chat
socket
socket introduction
Socket is also called "socket". Applications usually send requests to the network or answer network requests through "socket", so that the ho ...
Posted on Fri, 26 Jun 2020 01:49:55 -0400 by mclordgt