STL–vector container (construction, traversal, insertion and deletion, capacity size, data access, dynamic expansion, etc.)

vector Foreword In the past few days, I have used STL a lot when writing code, and I have also felt the power of STL, so I reviewed the content of STL again, and summarized and extracted some basic things and important content. This is a vector article . C++’s STL provides us with many […]

Depth-first search of directed graphs and dynamic selection algorithm of adjacency matrix

Introduction In graph theory, a directed graph is a graph structure with directional relationships between nodes. In practical applications, we often need to represent and operate directed graphs. In order to improve efficiency, we can dynamically select appropriate data structures for representation based on the size of the graph and the frequency of operations. Adjacency […]

Spring-dynamic proxy

Dynamic Proxy Proxy pattern: Provide a proxy for other objects to control access to this object, enhance a method in a class, and extend the program. Dynamic proxies can add additional logic to methods in a class without modifying the class source code Creation of proxy objects through cglib: Based on Parent and Child Classes, […]

Solve the problem that the Onlyoffice file version changes and the problem that multiple people cannot edit collaboratively after using dynamic keys

1.Cause analysis Onlyoffice’s file saving mechanism relies on the callback interface to save files. Once the file is saved successfully. When the editor is opened again with the last key and the latest document URL address as parameters, the editor service goes to redis to find the cache based on the key and verifies whether […]

C# dynamically intercepts and overwrites functions of third-party processes to implement function tampering (plug-ins)

Today I was reading a pdf document that I had collected before (introducing the relevant knowledge of C# plug-ins), and combined with the things on the Internet and personal understanding, I came up with this article. Reference article: [Selected] An article with an explanation of C# dynamic interception covering functions in third-party processes (essential for […]

Use reflection to dynamically construct wrapper conditions (use reflection to obtain annotation values and entity class values)

Use reflection to dynamically construct wrapper conditions Entity class /** * api list query entity class * *@authorwys */ @Data public class SysApiQuery { private Long id; /** * api name */ @Query(type = QueryTypeEnum.EQUAL) private String apiName; /** * api path */ @Query(type = QueryTypeEnum.EQUAL) private String apiUrl; /** Starting time */ @JsonIgnore private […]

Java uses FTP cross-server dynamic monitoring to read file data in the specified directory

Background: 1. The file data is on server A (windows) (generated in the specified directory from time to time), and the project application is deployed on server B (Linux); 2. The project is applied on server B, monitors the directory specified by server A, and if there are newly generated files, reads the file information […]

The front-end Vue combines with the xlxs library to parse excel files and dynamically assemble table headers!

Directory 1 Introduction 2.Data definition 3. Page layout 4. Upload previous events 5. Parse the excel file and assemble the corresponding relationship between the system header and the excel header 6. Drop-down box change event 1. Preface Recently, there is a demand that users can import a custom excel file at will, so that users […]

Dynamic compilation technology based on .NET6 in C#

A few days ago, I had to solve a dynamic calculation problem and tried different methods. The problem is that given a string containing calculations, the calculation results are obtained while the program is running. At that time, dynamic compilation was considered and I checked some information on the Internet to complete this function. However, […]