javascript websocket [heartbeat + service pushing information forward]

1. [Role]To maintain the sustainability and stability of the connection, the websocket heartbeat is the solution.2. [Analysis]1. If the device network is disconnected, the native websocket will not immediately trigger any events on the websocket, and the front end will not know if the current connection has been disconnected.2. When we use the ...

Posted by mator on Tue, 31 Mar 2020 03:17:16 +0200

Wechat app learning notes music player (next, previous, auto next)

Wechat applet learning notes (IX) music player (next, previous, automatic next) In order to realize the function of automatic next song, next song and previous song, and realize the circular play of the list, it must be clear that the current play is the first song in the list. Therefore, set a data record in the program that the currently pla ...

Posted by monk.e.boy on Mon, 30 Mar 2020 15:54:19 +0200

Random line effect

I still remember that last year, when checking the information, I accidentally entered a blog named Ma Kaidong, who was attracted by his blog special effects. At that time, I was looking for a template, so I wanted to use this special effect on the registration and landing page. First, I checked the source code of the web page and clicked all t ...

Posted by fatnjazzy on Sun, 29 Mar 2020 19:50:49 +0200

Linux Namespace Starter Series: Namespace API

Linux Namespace is a kernel-level environment isolation method provided by Linux.Officially, Linux Namespace encapsulates global system resources in an abstraction so that processes within the namespace consider themselves to have separate resource instances.This technology did not make much waves, but the rise of container technology brought i ...

Posted by jonabomer on Sun, 29 Mar 2020 05:51:03 +0200

5000+Picture Find Your Favorite TA, Python Crawler+Face Score

  Preface Text and pictures of the text come from the network for learning and communication purposes only. They do not have any commercial use. Copyright is owned by the original author. If you have any questions, please contact us in time for processing. Author: Luo Luopan PS: If you need Python learning materials for your child, click on t ...

Posted by miob on Sat, 28 Mar 2020 10:02:46 +0100

Restful API Interface Security Design

1.API Interface Design Specification https://github.com/mishe/blog/issues/129 2. Security Design a. Whitelist restrictions Accept only the request response from a specific system, the caller's IP address needs to be reported in the system, otherwise it cannot be invoked b. Validation of legitimate identity Basic Authentication: This ...

Posted by OM2 on Sat, 28 Mar 2020 09:05:09 +0100

Cold and hot state migration of kvm

KVM Migration Static Migration (Cold Migration)For static migration, you can save a snapshot of the completed client image on the host, shut down or pause the client in the host, copy the client's image file to another host, and start the copied image using the command when the client is started in the source host. Dynamic Migration (Thermal M ...

Posted by bobdabuilder on Tue, 24 Mar 2020 23:35:50 +0100

Addition and deletion of k8s node nodes and setting of cluster roles

1. Add node node [root@k8s-4 ~]# kubeadm join 192.168.191.30:6443 --token 6zs63l.4qmypshahrd3rt3x \     --discovery-token-ca-cert-hash sha256:851c0bf733fe1e9bff54af08b84e93635d5b9c6e047a68c694c613391e024185   W0323 15:58:36.010687    1427 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane ...

Posted by shezz on Mon, 23 Mar 2020 15:35:01 +0100

KubeSphere troubleshooting practice

Overview: Kubesphere, which is using qincloud recently, has excellent user experience, privatization deployment, no infrastructure dependence, no Kubernetes dependence. It supports cross physical machine, virtual machine and cloud platform deployment, and can manage Kubernetes clusters of different versions and manufacturers. In the k8s layer ...

Posted by christofurr on Sat, 21 Mar 2020 15:45:49 +0100

Talk about the JVM receiver plugin of skywalking

order This paper focuses on the JVM receiver plugin of skywalking JVMModuleProvider skywalking-6.6.0/oap-server/server-receiver-plugin/skywalking-jvm-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/jvm/provider/JVMModuleProvider.java public class JVMModuleProvider extends ModuleProvider { @Override public String nam ...

Posted by altergothen on Sat, 21 Mar 2020 15:34:56 +0100