Golang uses object-oriented thinking to program 2

Remember the best code I've ever written for this vegetable chicken. The purpose is to write a configuration file saving module to save some configurations that need to be saved in the project. Because the data to be saved is scattered in many modules. I have thought about building a large structure, and then put all the data to be saved into ...

Posted by teebo on Tue, 16 Nov 2021 08:08:20 -0800

Monitoring of K8S cluster

1. Prometheus installation 1.1 main components Prometheus server: the main service, which accepts external http requests, collects, stores and queries data, etcPrometheus targets: statically collected target service dataService discovery: dynamic discovery of servicesPrometheus alerting: alarm notificationPush gateway: data collection proxy s ...

Posted by validangina on Tue, 16 Nov 2021 07:49:08 -0800

Learning notes of C language programming: P4 cycle

1, Circulation 1.1 cycle Now I have a problem: the program reads in a positive integer with less than 4 bits (including 4 bits), and then outputs the number of bits of this integer. If input 352, output 3. People's way: you can see it with your eyes. We can see that 352 is a three digit number at a glance. The way of computer: what the ...

Posted by pgrevents on Tue, 16 Nov 2021 07:46:14 -0800

Rocket MQ Series II - producer principle

Producer principle Producer overview         The party sending the message is called the producer. His role in the entire RocketMQ production and consumption system is shown in the figure:         Producer group: a logical concept. When using producer instances, you need to specify a group name. A ...

Posted by jayskates on Tue, 16 Nov 2021 07:31:23 -0800

Python functions, variable scopes, parameters

brief introduction In programming, we often need to perform the same or similar operations. These operations are completed by a piece of code, and the emergence of functions can help us avoid writing this piece of code repeatedly. The function is to abstract a relatively independent function and make it an independent entity. One reason why Py ...

Posted by ghostdog74 on Tue, 16 Nov 2021 07:14:45 -0800

C + + Learning -- templates and template classes

catalogue 1: Template function one point one   General template function 1.2 specialized template function   2: Template class 2.1 formwork 2.2 member template function 2.3 formwork specialization 2.3.1 template member function specialization 2.3.2 template specialization 3: Template class AutoPtr   1: Template ...

Posted by kaeserea on Tue, 16 Nov 2021 07:12:03 -0800

spring cache Basics

Spring has defined org.springframework.cache.Cache and   org.springframework.cache.CacheManager interface to unify different caching technologies; And support the use of   JSR-107   Annotations simplify our development; Provides implementations that support multiple caches. There are two main interfaces: org.springframework. ...

Posted by goodluck4287 on Tue, 16 Nov 2021 07:10:06 -0800

[freeRTOS Development Notes] Why is the xTaskCreate interface stuck and does not return

1 Preface Recently, bloggers are doing some projects to adapt freeRTOS. In short, they are migrating from other RTOS platforms to freeRTOS platform. Since the previous codes are available, based on experience, we think that we only need to re encapsulate the interface of OSAL, and the upper logic should not be a problem in theory; But wh ...

Posted by dk44 on Tue, 16 Nov 2021 07:06:46 -0800

How to use MSE and R square to evaluate the linear regression model?

How to check the mean square error to judge whether the prediction result is correct? (case: linear regression, random forest California house price data set) Why use the mean square error? Can't the previous accuracy? Because the results of regression model are continuous variables, it is impossible to judge directly by right or wrong. Howev ...

Posted by voitek on Tue, 16 Nov 2021 06:41:09 -0800

Basic use of EF Core in ASP.NET Core (CodeFrist) 1

1, Construction project In our daily projects, we usually have a multi-layer architecture. The domain layer (entity) is generally not placed together with the application layer (business: such as api and mvc). We only do this when doing exercises. Then I will directly share the most practical and layer according to the most basic project objec ...

Posted by ssj4gogita4 on Tue, 16 Nov 2021 06:39:30 -0800