Article. Page 88



Using the blocking mechanism of chan to realize the start, blocking and return controller of the cooperation process

I. use scenarios The background is to read oplog from kafka for incremental processing, but when I want to send a command to block the incremental pro...
20:43 3 December 2019

Analysis of 25 × and × operators

Operator operator #Operator to convert macro parameters to strings during preprocessing #The conversion of is completed in the preprocessing period, s...
20:42 3 December 2019

Troubleshooting for abnormal downtime of nodes in Galera Cluster

background Before Group Replication was released, MySQL official replication had asynchronous and semi synchronous. At that time, most companies would...
20:42 3 December 2019

mac[linux] uses lsyncd to synchronize multiple files of two machines in real time

What is Lsyncd? Lsyncd is a lightweight real-time file backup solution, which is very easy to install and use. It can be used to synchronize files bet...
20:39 3 December 2019

Simple React SSR

0. Preface Server-side rendering is not just needed in the project, but sometimes a server-side rendering is also needed. There are many advantages f...
20:33 3 December 2019

Delphi basic (routine, routine return value)

I. routine: a unique name in Delphi. Routine is a form of encapsulating the code of a specific function: 1. Process 2. FunctionThe difference between ...
19:58 3 December 2019

[tree cover] [learning notes]

thought Tree cover tree, like his name, is a tree cover another tree. Use an outer tree to maintain something like intervals. Then each node of the ou...
19:44 3 December 2019

Weather forecast microservice: build spring cloud microservice from 0

As usual Project github link This project realizes the process of transforming a simple weather forecast system into a spring cloud microservice syste...
19:35 3 December 2019

Replacing scheduled tasks with delay queues

§ 1 RabbitMQ delay queue RabbitMQ delay queue is mainly realized by TTL (Time to Live) and dead letter exchange (Dead Letter Exchanges) of messages. I...
19:32 3 December 2019

Add and query data table with object-oriented idea, JDBC code is super detailed

In this paper, the JDBC program is written with the object-oriented idea, and the java program is used to add the student information to the data tabl...
19:19 3 December 2019

Understanding Slice Symbols

I need a good explanation of the Python slice symbol (the reference is a plus sign). For me, this notation requires some attention. It looks very pow...
18:23 3 December 2019

select2 ajax dynamically fetches data and echoes it

There is a requirement: to assign roles to an employee, you must first obtain the roles that the employee already has, and obtain a list of all roles...
18:08 3 December 2019

Why Python 3 chooses to support non ASCII identifiers

The original text is: PEP 3131 -- Supporting Non-ASCII Identifiers. Python 2 does not support non ASCII identifiers. The full name of PEP is Python En...
18:06 3 December 2019

Learn from me the factory mode of design mode

The Factory mode is widely used. It can be seen everywhere in the JDK underlying source code and major mainstream frameworks. Generally, classes named...
18:00 3 December 2019

From the 25th day to the 27th day, the countdown begins to tick

Code Now we need to make a slightly complicated thing, as follows: HTML. There is a pile of Select to Select the date and time. After selection, the d...
17:54 3 December 2019

FFmpeg code to extract audio and video data

Today, we begin to roll up the code. First, we use the FFmpeg API to extract the audio data of an MP4 file. IDE It should be the first time to do C/C...
17:42 3 December 2019

Custom plug-in of vertical waterfall flow based on jquery

The company's new project has made a plate about pictures. It found some waterfall plug-ins on the Internet that are not very suitable for itself...
17:25 3 December 2019

Summary of ssm integration -- the first step is to build a web project with maven

The content of this paper comes from: Mountain Silicon Valley. It integrates task 2, task 3 and task 4. http://www.gulixueyuan.com/my/course/50 1 Desc...
17:23 3 December 2019

Three states of Hibernate object

hibernate has three states: Transient, persistent, detached The following figure shows the state transition of objects in hibernate: Example 1 @Test ...
17:08 3 December 2019

Introduction to Scala basic syntax

1. Definition of variables Note: there is no concept of static in scala. All methods and properties in the class decorated by the keyword object are ...
17:01 3 December 2019

shell training camp Day29

Exercise 86In CentOS 6 system, we can use ntsysv to shut down the services that do not need to be started, of course, we can also use chkconfig tool ...
16:49 3 December 2019

webmagic crawler's handling of static page, dynamic page and js request mode crawling

webmagic crawls web data. For [page crawling content], see the previous blog post https://segmentfault.com/a/1190000020005655The official documents of...
16:43 3 December 2019

tcp Congestion Analysis VI (HSTCP)

This paper analyzes the hstcp congestion algorithm of linux-4.19.12 The hstcp relative reno algorithm changes the window Growth Logic in congestion a...
16:15 3 December 2019

Componentized Architecture Design: gradle Componentized Configuration, Introduction and Use of APT+javapoet

Blog Home Page Reference resources: Gradle Core (5): Gradle Advanced Customization gradle componentized configuration The configuration of Android com...
16:08 3 December 2019

[uvvccamera / novice] Android Studio Compiling & stepping on the pit

In the front Android Studio version: 3.2 Operating system (AS): Windows10 Android version: 5.0.2 Camera: USB camera (640 * 480 spicy chicken) Open so...
15:30 3 December 2019

java multithreading, communication between two threads

Example: two threads execute in turn package com.heima.day25; public class Demo004 { public static void main(String[] args) { Print print = new Print...
15:15 3 December 2019

django+uwsgi+daphne+supervisor production environment deployment

I. Preface In the previous article, websocket is used for real-time communication in the project, but the production environment also uses the deploym...
15:04 3 December 2019

Native js playing ground mouse game

Learning the syntax of native js is actually easy, and the most important thing is to practice logical thinking. For me, who just finished learning j...
15:01 3 December 2019

springboot: shiro injecting dubbo service null pointer

Problem description When the springboot+dubbo+shiro microservice is set up recently, in the custom shiro's realm component: @Component public cla...
14:52 3 December 2019

C + + template practice

An example of the first function template 1 code #include <iostream> using namespace std; template <class T> T GetMax(T a, T b) { T resul...
14:05 3 December 2019