Nginx - minimum configuration

A secure server is one that allows only the required number of servers. Ideally, we will build the server based on the smallest system by enabling other functions separately. Minimal configuration is also helpful for debugging. If the error is not available in the smallest system, add functions separately, and then continue to search for errors ...

Added by CMC on Mon, 14 Feb 2022 06:07:20 +0200

Using SA token to solve WebSocket handshake authentication

preface Compared with the single communication mode of Http, WebSocket can actively push messages from the server to the browser. This feature can help us complete some specific services such as order message push, IM real-time chat and so on. However, WebSocket itself does not provide direct support for "identity authentication", a ...

Added by ShootingBlanks on Mon, 14 Feb 2022 06:03:20 +0200

Java generic explanation, the most complete graphic explanation in history!

Generics play an important role in java, which can be seen in both open source framework and JDK source code. It is no exaggeration to say that generics are essential elements in general design, so it is a required course to truly understand and correctly use generics. 1: Generic essence Java generics is a new feature introduced in JDK ...

Added by cornelalexa on Mon, 14 Feb 2022 06:03:22 +0200

TS type gymnastics: illustrating a complex advanced type

Let's do a difficult gymnastics today. It will comprehensively use patterns matching, construction, recursion and other routines, which is very helpful to improve the level of type programming. The advanced types we want to implement are as follows: Its type parameter is the parameter string query string, which will return the parsed ...

Added by gwydionwaters on Mon, 14 Feb 2022 05:54:35 +0200

Section 11: spring boot integration log4j2 log

SpringBoot uses logback by default, but there is a higher performance logging implementation framework log4j2Why log4j2Compared with other log systems, log4j2 has less data loss; The performance of disruptor technology is more than 10 times higher than that of logback in multi-threaded environment; Using jdk1 5 concurrency, which reduces the oc ...

Added by mwaw on Mon, 14 Feb 2022 05:53:30 +0200

jq Basics

Review jq today jQuery concept: jQuery is a fast and concise JavaScript library, which is an encapsulated specific collection (Methods and functions) Learning the essence of jQuery: learning to call these functions (Methods). Simple understanding: it is a js file that encapsulates our native js code and stores it in it. In this way, we can ...

Added by kampbell411 on Mon, 14 Feb 2022 05:52:21 +0200

Handwritten simple version of React to thoroughly understand the fiber architecture

The biggest difference between before and after React 16 is that 16 introduces fiber and implements hooks based on fiber. I mention fiber all day. What is fiber? What is its relationship with vdom?Instead of looking at various explanations, it's better to write a fiber version of React. When you can realize it, you must fully understand it.vdom ...

Added by Nirvana on Mon, 14 Feb 2022 05:28:35 +0200

Realizing perspective deformation with Opencv

Computer vision is very popular now. People all over the world are engaged in some form of Computer Vision Project Based on deep learning. But before the emergence of deep learning, image processing technology has been used to process and transform images to obtain insights that help us complete our tasks. Today, let's see how to implement a si ...

Added by evil turnip on Mon, 14 Feb 2022 04:55:35 +0200

Semantic segmentation: the simplest code implementation!

Segmentation is very important for image interpretation, so don't lag behind the popular trend. Let's implement it, and we will soon become professionals!What is semantic segmentation?It describes the process of associating each pixel of an image with a category label (such as flowers, people, roads, sky, ocean or car), that is, we need to inpu ...

Added by ducey on Mon, 14 Feb 2022 04:53:37 +0200

findbugs for static code checking

The static check in white box test is generally to check the coding standard, specification and error list. Coding specifications often the team will set some specifications according to their own experience and style. Now many IDE tools will remind whether it conforms to the code style in real time when editing the code. The error list is gene ...

Added by Instigate on Mon, 14 Feb 2022 04:52:36 +0200