[Redis Foundation] Startup Process
1. Initialize server state structure
The initial server variable is completed by the redis.c/initServerConfig function with the following source code
void initServerConfig() {
int j;
// Server status
// Setting the running ID of the server
getRandomHexChars(server.runid,REDIS_RUN_ID_SIZE);
// Setting default profile pat ...
Posted by Ang3l0fDeath on Mon, 10 Jun 2019 11:47:33 -0700
Socket server for Python 3 network programming
This section is mainly about the socket server of Python 3 network programming. In the last section, we talked about socket. Because socket can not support multi-user and multi-concurrency, there is socket server.
The main function of socket server is to implement concurrent processing.
There are two kinds of socket servers:
server class: Prov ...
Posted by almightyegg on Sat, 08 Jun 2019 14:28:37 -0700
Integrated use of MongoDB in Spring project
The maven project is used here, so dependencies on jar packages are all pom.xml configuration types.
pom.xml introduces dependencies
<properties>
<spring.version>4.3.5.RELEASE</spring.version>
</properties>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spr ...
Posted by cubik on Thu, 06 Jun 2019 11:26:33 -0700
Why? Can browsers do face detection?
The Shape Detection API has been released for some time, and its main capability is to give the front-end directly available feature detection interface (including barcode, face, text detection). In this paper, we will briefly introduce it and explain the universality of the front-end face detection. (In this paper, we will not talk about arith ...
Posted by BZorch on Wed, 05 Jun 2019 12:21:52 -0700
Combing EOF Writing in linux
Reprinted from http://www.cnblogs.com/kevingrace/p/6257490.html
In the ordinary operation and maintenance work, we often encounter such a scenario:
When executing a script, you need to input N lines into a file automatically. If it's a few lines, you can also use echo additions, but if it's a lot of lines, it's foolish to use echo additions ...
Posted by lynxus on Tue, 04 Jun 2019 16:03:22 -0700
Master-slave replication based on Docker MySQL
Docker MySQL implements master-slave replication (1 Master + 2 Slave)
1. Requirements: The three versions of mysql are identical Initialize the table and start mysql in the background Modify the root password Modify the configuration file: Start a docker mysql container and enter it, copy its configuration file / etc/mysql/my.cnf to loc ...
Posted by asanvicente on Tue, 04 Jun 2019 11:29:54 -0700
Netty Notes - Summary of Technical Points
Catalog
· Linux Network IO Model
· File descriptor
· Blocking IO Model
· Non-blocking IO Model
· IO Multiplexing Model
· Signal Driven IO Model
· Asynchronous IO Model
· BIO programming
· Pseudo-asynchronous IO programming
· NIO programming
· Buffer and Channel
· Deep into Buffer
· Selector
· AIO programming
...
Posted by r00tk1LL on Sat, 01 Jun 2019 14:47:31 -0700
[Source analysis] tinyhttpd-C language implements the simplest HTTP server
tinyhttpd is an ultra-lightweight Http Server with less than 500 lines. It's good for learning and can help us really understand the nature of server programs.
After looking at all the source code, I really feel that there are great gains, whether it is unix programming, or GET/POST Web processing process, are clear a lot. Don't talk nonsense, ...
Posted by jcavard on Fri, 31 May 2019 14:48:08 -0700
NIO Concise Tutorial for Java Concurrent Programming
Source of problem
In the traditional architecture, for each request of the client, the server will create a new thread or reuse the thread pool to process a user's request, and then return it to the user's result. In the case of high concurrency, there will be a very serious performance problem: for each request of the user, it needs some memor ...
Posted by mATOK on Fri, 31 May 2019 12:31:02 -0700
Communication Problems in NAO Robot Relay Race
I. Preface
NAO robots have been in contact for more than a year, during which many programs have been developed.
First, NAO robot face recognition and path planning in complex indoor environment are done.
Later, he participated in the NAO Robot Golf Tournament and developed a complete framework for the NAO Robot Golf Tournament, and provide ...
Posted by geny on Fri, 31 May 2019 12:15:58 -0700