Hyperf / websocket server / client and server real-time two-way data transmission

WebSocket service WebSocket is a kind of communication protocol, which can carry out full duplex communication on a single TCP connection. WebSocket makes the data exchange between the client and the server easier, allowing the server to actively push data to the client. In WebSocket API, browser and server only need to complete one handshake, ...

Posted by rawky1976 on Tue, 10 Mar 2020 21:06:02 -0700

C + + common component thread pool implementation

C + + common component thread pool implementation Introduction to thread pool model When dealing with a large number of concurrent tasks, if a request is processed by a thread in the traditional way, the creation and destruction of a large number of threads will consume too much system resources, an ...

Posted by fgpsmith on Tue, 10 Mar 2020 20:13:17 -0700

python reduce/map/filter function differences

In python reduce / map / filter  The three functions are easy to confuse. Although using functions to operate on elements in iterators or sequences, the applicable scenarios are different; 1, map function Features of map function: perform the same operation on each element in the iterator or sequence (for example, + 1 for each element, etc.), a ...

Posted by acey99 on Tue, 10 Mar 2020 20:01:22 -0700

Translation Deep Learning and the Game of Go (10) Chapter 7: learning from data: a deep learning AI

This chapter includes Download and process actual go game records Understand the standard format for storing go games Training an in-depth learning model using such data to predict the landing Run your own experiments and evaluate them In the previous chapter, you saw many basic elements of bui ...

Posted by mxl on Tue, 10 Mar 2020 00:35:03 -0700

Hyperledger Fabrica 2.0 MSP & BCCSP

This article is based on fabric v2.0.1 The initialization process of localmsp and bccsp is described with the example of peer node startup. I. BCCSP BCCSP is the abbreviation of Blockchain Cryptographic Service Provider, which is an abstract representation of commonly used block chain cryptography al ...

Posted by smbkgeo1983 on Mon, 09 Mar 2020 21:38:48 -0700

Off line voice snoowboy hot words wake up + Raspberry voice interactive realization switch light

Offline voice snoowboy hot word wake up Speech recognition now has a very wide range of application scenarios, such as the voice assistant of mobile phones, smart audio (Xiaoai, dingdong, tmall And so on. Speech recognition generally consists of three stages: hot word wakeup, speech input, recognition ...

Posted by patrick87 on Sun, 08 Mar 2020 23:53:30 -0700

Detailed analysis of Lifecycle

Lifecycle source code analysis Catalogue introduction 01. What is the role of lifecycle 02. Simple use of lifecycle 03. Usage scenarios of lifecycle 04. How to realize life cycle awareness 05. How annotation methods are called 06.addObserver call analysis 07. Sort out and summarize the knowledge po ...

Posted by wangsc66 on Sun, 08 Mar 2020 19:37:25 -0700

VUE implements Studio management background: drop-down selection list (Select) control, input series of input box

This time Github upload is wrong, and the serial number in the title is wrong. I think this way: "VUE implements Studio management background (11): drop-down selection list control, input box series" has actually been transferred to this way: "VUE implements Studio management background (9): drop-down selection list control, inpu ...

Posted by amelhedi on Sun, 08 Mar 2020 04:50:21 -0700

Build your own intranet penetration

Preface Hello everyone, I am a different technology house. I make a little progress every day and experience a different life. What we bring today is to use frp to build our own intranet penetration, which is convenient for debugging in our daily development. At the same time, frp is open-source and free, only one cloud server is needed to bui ...

Posted by jimdelong on Sun, 08 Mar 2020 04:04:42 -0700

Implementation of middleware with nginx openresty

[TOC] Implementation of middleware with nginx openresty Be careful In the formal ngx.exec(), you must not output anything, such as ngx.say("debug"), otherwise you will be trapped in redirection The log will constantly prompt attempt to call ngx.exec after sending out response headers This should be a common sense problem. We all know ...

Posted by PAFTprod on Sun, 08 Mar 2020 03:02:07 -0700