Docker Builds Redis Master-Slave Mode (Sentinel Monitoring) & SpringBoot 2.0 Integrated Redis Service (Lettuce Connection Pool)

1. Docker sets up Redis Master+Sentinel Monitoring Set up environment: Ubuntu 18.04.3 Docker 18.09.7 Download Mirrordocker pull redis (default redis:latest) Get the configuration file and modify it wget http://download.redis.io/redis-stable/redis.conf wget http://download.redis.io/redis-stable/sentinel.conf # Primary four slave port ...

Added by virtualdevl on Thu, 09 Apr 2020 08:54:36 +0300

go language series -TCP programming

TCP programming One of the main design goals of Go is to face the large-scale back-end service program. Network communication is the server, and the program is an indispensable and vital part Basic introduction of network programming There are two kinds of network programming Tcp socket programming is the mainstream of network programming. It i ...

Added by kat89 on Wed, 08 Apr 2020 08:05:01 +0300

go language system - from file operation to unit test

Catalog File operation Input and output streams Open and close files Functions and methods used Case demonstration Read file operation application case Write file operation application case Judge whether the file exists Application example of file programming Copy file Count the number of English, numbers, spaces and other characters ...

Added by ctjansen on Wed, 08 Apr 2020 08:00:29 +0300

The core implementation of kubernetes command execution

Command execution in K8s is jointly completed by apiserver, kubelet, cri, docker and other components. The most complex is protocol switching and various stream copying. Let's take a look at the key implementation. Although there are many codes, they should be able to understand without development. Good luck 1. Basic concepts There are many pr ...

Added by akelavlk on Wed, 08 Apr 2020 07:58:24 +0300

Python visual decision tree [Matplotlib/Graphviz]

Decision tree is a popular supervised learning method. The advantage of decision tree is that it can be used not only for regression, but also for classification. It does not need feature scaling, and it has better interpretability and is easy to visualize decision tree. Visual decision tree is not only a good way to understand your model, but ...

Added by marvelade on Mon, 06 Apr 2020 09:53:49 +0300

http network request sent by qt

4. Send http request 4.1 copy mynetworkobject.cpp and mynetworkobject.h to your project (ps: these two documents were found on the Internet, and I have modified them) 4.2 add "mynetworkobject.h" to the header file // I added it in mainwindow.h (no special explanation below, take this demo as an example) #inc ...

Added by Strings on Mon, 06 Apr 2020 04:08:50 +0300

[pytorch SSD target detection] train the data set created by yourself

Make target detection data set similar to pascal voc format: https://www.cnblogs.com/xiximayou/p/12546061.html Source: https://github.com/amdegroot/ssd.pytorch The copied code has many holes to step on... I uploaded it to Google collab. The current directory structure is as follows: It should be noted that although we only have two ...

Added by ticallian on Mon, 06 Apr 2020 02:05:15 +0300

Complete permission control with SpreadJS in offline filing scenarios

SpreadJS As a pure front-end spreadsheet control based on HTML5, it is compatible with more than 450 Excel formulas. It can bring users a friendly experience of using Excel, and can meet business scenarios such as Web Excel component development, data filling, Excel class report design, table and document collaborative editing in enterprise IT ...

Added by wha??? on Sun, 05 Apr 2020 06:26:27 +0300

LeetCode 36. Valid Sudoku

My LeetCode: https://leetcode-cn.com/u/ituring/ My LeetCode brush Title source [GitHub]: https://github.com/izhoujie/Algorithmcii LeetCode 36. Valid Sudoku subject Determine if a 9x9 Sudoku is valid.Just u according to the following rule u, verify that the number that has been filled in is valid. Numbers 1-9 can only appear once per line. Nu ...

Added by Thundarfoot on Sat, 04 Apr 2020 20:44:55 +0300

Python Multi-Node Block Chain Simulation Implementation and Source Code

Python is not the mainstream development language in the area of block chains or digital currency.But if your goal is to study the principles of block chain technology, or if you need to simulate a block chain network on your own notebook and do some research experiments, such as completing your own graduation design project or scientific resea ...

Added by matthew_ellis24 on Sat, 04 Apr 2020 20:08:15 +0300