• Fluent learning diary (4) — interaction between fluent and native


    Fluent and the principle of native interaction The communication between flutter and native adopts a dual channel event delivery mechanism, and transmits data through methodchannel. The communication principle is shown in the following figure (picture on the official website) It’s on the official websiteDocument addressIt is convenient for you to check. There are many examples […]

  • Promise and future: Secrets of Gemini


    Yongshun Daniel wrote a series of tutorials “no secret under the source code – do the best netty source code analysis tutorial” is the best netty source analysis article I have read so far. But I don’t know why. When I write the third chapter, the author stops the shift. Therefore, I would like to […]

  • Simple course of recurrent neural network


    By ReNu Khandelwal Let’s start with the following questions Cyclic neural network can solve the problems of artificial neural network and convolution neural network. Where can I use RNN? What is RNN and how does it work? Anti gradient loss and gradient explosion challenging RNN How can LSTM and Gru address these challenges Suppose we’re […]

  • Computer network — basic knowledge (1)


    1. Why does socket provide an interface between the application layer and the transport layer and not between other layers? From the analogy operating system and the details of their respective concerns 2. TCP handshake and wave and data transmission process? 3. Why does the active shutdown party stay in time when TCP waves its […]

  • Memento code examples of PHP design patterns (25)


    objective It provides recovery to the previous state (using rollback) or getting the internal state of the object without breaking the encapsulation (the object does not need to have a function that returns the current state). The memo pattern is implemented using three classes: originator, caretaker, and memento. Memento — responsible for storing the unique […]

  • The interviewer asked you to build a series of airplanes. How to design the micro service interface?


    This article is the second in a series of back-end microservice architectures. In microservice architecture, there are two common ways of communication between servicesRPCand REST。 The article is updated every week. Your “three companies” are my greatest affirmation. WeChat can search the public for the first time to read the official account of “backend Technology […]

  • Redux design ideas and usage scenarios


    Welcome to my official account.Rui talk, get my latest article: 1、 Preface As an important member of react family bucket, Redux has been widely used under the support of many big bulls, and the star on GitHub has also reached 42K! However, when it comes to the most fundamental question, why Redux should be used, […]

  • ES6 series promise


    Video Explanation What is the promise of ES6? It’s a promise. In order to solve JS callback hell. Promise gives me the experience is: at first, it is in a fog, and then the more you use it, the better you can use it. What does commitment mean today? For example, I promise to buy […]

  • On base theory


    Base: they are basically available, soft state, and eventually consistent.Base theory, the result of consistency and usability measurement in cap theorem. The core idea is that even if strong consistency cannot be achieved, the final consistency should be achieved through appropriate methods. Basically available: allows the loss of partial availability when a distributed system fails. […]

  • The detailed process of realizing promise (implementing the most complete promise constructor)


    1、 Create promise constructor infrastructure Get status Status =’pending ‘initialization ‘resolved ‘obtained Failed to get ‘rejected’ Initial data data = undefined Container function definition failed onResolved = undefined onRejected = undefined Define success / failure function resolve / reject A kind of this.status Change status to obtained / get failed A kind of this.data Save […]

  • K8s basic configuration


    Installing kubectl Using Tsinghua source Red hat system $ cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=“` https://mirrors.tuna.tsinghua.edu.cn/kubernetes/yum/repos/kubernetes-el7-$basearch enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg EOF $ yum install -y kubectl Debian system $ sudo apt-get update && sudo apt-get install -y apt-transport-https $ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add – $ echo “deb https://mirrors.tuna.tsinghua.edu.cn/kubernetes/apt kubernetes-xenial main” […]

  • A simple login using node


    HTML section <input type=”text” id=”user”><br> <input type=”password” id=”pass”><br> < button onclick = “login()” > login JS part (just started to contact node, using the nativeXMLHttpRequestWithout using encapsulated Ajax directly) function login() { Let XmR = new xmlhttprequest(); // create an XMLHttpRequest object xmr.open (“get”, ” http://localhost :8808?user=” + user.value + “&pass=” + pass.value , true); […]