Application of dynamic library loading function dlsym in C/C + + Programming

The function of dlsym function is to obtain the address of symbols (global variables and function symbols) from the shared library (dynamic library). It is usually used to obtain the address of function symbols, which can be used to wrap the functions in the shared library; The following is the function prototype and the header file to be inclu ...

Added by guru2k9 on Thu, 10 Mar 2022 09:04:22 +0200

Kafka message system

1. Kafka concept Kafka is a distributed message system with high throughput. It is similar to HDFS, which is used to store data. However, HDFS is persistent and file data will be retained all the time. Kafka only stores data for a period of time and will be automatically deleted if it is not consumed for a long time. At the same time, the stor ...

Added by __greg on Thu, 10 Mar 2022 08:55:17 +0200

Redis: basic, data type and version differences (continuous update)

Redis: Basic Recommended java3y: https://mp.weixin.qq.com/s/SdE6MR9g-v93ZtJPme9e8Q 1: What is Redis? Redis is a memory cache database. The full name of redis is: remote dictionary server (remote data service), which is written in C language. Redis is a key value storage system (key value storage system), which supports rich data types, su ...

Added by micbox on Thu, 10 Mar 2022 08:55:07 +0200

Understanding template engine Thymeleaf

What is a template engine? [function] the template engine is created to separate the user interface from the business data (content). It can separate the Servlet Java code and Html web page code (this is the advantage of the template engine compared with the Servlet directly returning to the dynamic page) Principle / process Thymeleaf ...

Added by prakash911 on Thu, 10 Mar 2022 08:53:45 +0200

Converter design pattern in Java

In this article, we will discuss the most commonly used Converter Design Pattern in Java / J2EE projects. Because the Java 8 function not only provides a general two-way conversion between corresponding types, but also provides a common method to convert a collection of objects of the same type, so as to reduce the template code to an absolute ...

Added by ivory_kitten on Thu, 10 Mar 2022 08:49:18 +0200

How to avoid deadlocks and livelocks?

Deadlocks can only occur in concurrent (multithreaded) programs, where synchronous (using locks) threads access one or more shared resources (variables and objects) or instruction sets (critical areas).When we try to avoid deadlocks during livelocks, asynchronous locking will be used. Multiple threads compete for write operations on the same se ...

Added by Clerma on Thu, 10 Mar 2022 08:41:29 +0200

Introduction to network data acquisition in Python

Network data collection refers to the automatic collection of data on the Internet through programs. The program used to collect data is also called Web crawler. This paper mainly records some common modules of online data collection and their simple related operations. ⚪ urllib module and its request sub module It is an indispensable ...

Added by Helios on Thu, 10 Mar 2022 08:30:16 +0200

JSON-RPC & postMessage on the encapsulation skills of browser message communication

WedgepostMessage It is commonly used in embedded iframe or Web Workers for cross page (thread) message communication. Similar shadows can be seen in some other development environments, such as Chrome plug-in environment, Electron environment, sigma plug-in, etc.In recent work, we often deal with iframe and Web Workers, deal with pages and embe ...

Added by Ting on Thu, 10 Mar 2022 08:26:20 +0200

Still using RedisTemplate? Try Redis's official ORM framework. It's elegant enough to use

Previously, in the SpringBoot project, I have been using RedisTemplate to operate the data in Redis, which is also the way officially supported by Spring. Compared with Spring Data's support for MongoDB and ES, this way of using Template is really not elegant! Recently, RedisOM, Redis's exclusive ORM framework, has been officially launched by R ...

Added by JustFoo on Thu, 10 Mar 2022 07:49:55 +0200

jenkins deployment of continuous integration tools (Part 2)

1, ForewordThe first part mainly introduces the basic environment configuration during jenkins deployment. This part introduces how to use jenkins to publish the project to the remote server2, Project deployment release1. New taskEnter the task name, select build maven project, and click OK2. Parametric build process (optional)Note: the paramet ...

Added by kulikedat on Thu, 10 Mar 2022 07:47:13 +0200