Warning: mysqli_query(): MySQL server has gone away in /home/wwwroot/syntaxbug.com/wp-includes/wp-db.php on line 1924

Warning: mysqli_query(): Error reading result set's header in /home/wwwroot/syntaxbug.com/wp-includes/wp-db.php on line 1924
war – SyntaxBug

Improvements to HttpLoggingMiddleware in ASP.NET 8

Table of Contents Intro New Config HttpLoggingInterceptor More References Intro .NET 6 began to introduce an http logging middleware. We can use the http logging middleware to record request and response information, but the scalability is not very strong. In the .NET 8 version, some optimizations were made and some New configuration and HttpLoggingInterceptor make […]

Open source software FFmpeg generates models using image data sets

This article talks about the open source software ffmpeg, which has helped countless video software companies, countless online video websites, and countless CDN cloud service vendors. Share how to use it to convert various video or movie files into tens of thousands of image data sets and wallpaper collections, so that the model program in […]

FreeRTOS_Software timer (Timer)

Directory title 1. Software timer characteristics 2. Guarding tasks 3. Software timer API 3.1. Create software timer 3.2. Callback function 3.3. Delete timer 3.4. Start/stop timer 3.5. Modify the timer period 3.6. Reset timer (Reset) 3.7. Timer ID 1. Software timer features Using a timer requires configuring timer period, callback function, and type (one-time, automatic […]

HttpClient-forward proxy and signature verification

Article directory Introduction practice HttpClientBuilder Customized chain of responsibility test Introduction HttpClientBuilder is an http client construction class of Apache. By inheriting the construction class, signature verification can be added, so that signature verification can be carried when sending requests uniformly. Customized MyHttpClientBuilder adds a new link to the chain of responsibility Practice HttpClientBuilder HttpClientBuilder […]

Monitoring tool: Prometheus monitoring middleware (Nginx, Redis, MySql, etc.)

Our products currently use middleware such as Nginx, Redis, RabbitMQ, MySql, etc. This article introduces how to use Promtheus to monitor these middleware. There is a picture in “Monitoring Tool: Introduction and Installation of Prometheus” that shows the data trend of Prometheus, as follows: As can be seen from the figure, the first step in […]

Embedded Linux development—UART serial communication driver hardware programming

0. Basic preparation of serial port In embedded systems, many devices can be controlled through serial ports, such as WiFi, Bluetooth, RFID, etc., so using serial ports in embedded devices is particularly important. First, a few concepts are briefly clarified. RS232, RS485 and TTL refer to electrical level standards. Generally speaking, TTL uses 0V to […]

SpringBoot–middleware technology-3: Integrate mongodb, integrate ElasticSearch, attached case with code (simple and easy to understand)

SpringBoot integrates mongodb Implementation steps: pom file import coordinates <!–mongo–> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> Yaml configuration file configures mongodb: spring: data: mongodb: uri: mongodb://localhost/spring Just create a pojo @Data @NoArgsConstructor @AllArgsConstructor public class Book {<!– –> private int id; private String name; […]

Hive data warehouse environment construction and data warehouse modeling

Summary of the problem: After I completed the data warehouse modeling, one day I opened my dbeaver again and all the data was gone. I found many solutions but could not solve my problem. In a fit of anger, I deleted hive and all tables. Start over 1. Hive data warehouse environment construction Hive installation […]