Halo open source project learning: event monitoring mechanism

Basic introductionIn Halo project, when users or bloggers perform certain operations, the server will publish corresponding events, such as the "log record" event when bloggers log in to the administrator background, and the "access article" event when users browse articles. After the event is released, the Bean responsible ...

Posted by Angerslave on Thu, 21 Apr 2022 17:03:18 +0300

Basis of Golang: use and basic implementation of underlying concurrency primitive Mutex RWMutex Cond WaitGroup Once

Last Common usage scenarios of native concurrent goroutine channel and select The concurrency mode based on CSP model is introduced. In addition to CSP, Go also provides some lower level synchronization API s through the sync package and atomic package, which are generally used in scenarios with high performance requirements. sync. The ...

Posted by fonecave on Wed, 20 Apr 2022 19:26:09 +0300

Baidu applet streaming download and installation optimization

Guide: the text introduces an optimization method of Baidu small package download link - streaming download and installation. This paper first introduces the optimization points of the original scheme, then discusses how the optimization scheme makes more full use of network IO, local IO and CPU computing resources, and finally introduces the i ...

Posted by ajcalvert on Wed, 20 Apr 2022 06:09:20 +0300

High availability redis cluster deployed on k8s -- three masters and three slaves

K8S builds a three master and three slave high availability redis cluster 1, Create storage volume2, Create PV3, Create configmap4, Create headless service5, Create redis cluster node6, Initialize redis cluster7, Create a service for accessing8, redis master-slave handover test This scheme adopts StatefulSet for redis Deployment. In order to ...

Posted by Wabin on Wed, 20 Apr 2022 03:53:14 +0300

[Java] full version of JavaSE practice project (including code)

Conduct requirement analysis and model design before starting. Demand analysis: Let's first look at the system function structure we need: In short, this project needs to complete the addition, deletion, modification and query of users, developers, development teams and development projects. After completing the corresponding functions, it ...

Posted by thessoro on Tue, 19 Apr 2022 12:52:33 +0300

Python simply implements json to perform fuzzy search on values

I often use json for storage configuration, so I often encounter such a problem: if I want to fuzzy search the value in an array and output the value in the same position of other related arrays, how can I achieve it? thinking Let's think about my solution by substituting actual cases data { "name": [ "Electric rice cooker versi ...

Posted by genie on Mon, 18 Apr 2022 18:14:39 +0300

Python basic learning

catalogue numpy array (I) Array creation array creation Random number creation Random number between [0,1] Random integer Standard normal distribution (expected 0, variance 1) General normal distribution (expectation and variance can be specified) ndarray object numpy array (I) Array creation array creation The array function o ...

Posted by aclees86 on Mon, 18 Apr 2022 17:20:21 +0300

Community property management system based on springboot+vue

Project background With the rapid development of science and technology, all walks of life are trying to integrate with modern advanced technology and improve their own advantages through scientific and technological means; Of course, the community property management system cannot be excluded. With the continuous maturity of network technolog ...

Posted by ErnesTo on Mon, 18 Apr 2022 08:20:12 +0300

[JAVA Road to God] operators and expressions

catalogue 1, Foreword 2, Logical operator 1. And 2. Or 3. Non 3, Ternary operator 4, Elementary bit operation 1. And 2. Or 3. Non 4. Same or 5. XOR 5, Shift operation 1. Move left 2. Move right 6, Priority 1, Foreword Learning objective 1: be familiar with basic logical operators, ternary operators and calculationLearni ...

Posted by rajavel on Mon, 18 Apr 2022 04:44:58 +0300

Java abstract class interface internal class (detailed knowledge point)

👨‍💻 Hello everyone, I'm a small train ~ ~, a sophomore in school🛳️ Personal homepage: Dudu's little train blog📗 Series column: This article is written in java from 0 to 1 special column✉️ If there are mistakes in the knowledge points of the article, please correct them! Study with you and make progress together 🎈🔥 If you think the blogger's ...

Posted by jarosciak on Mon, 18 Apr 2022 03:18:25 +0300