Purpose: Recently, I have been exploring large model localization deployment + knowledge base to implement industry solutions, record the installation process, and share it with students who need it. It is very important to determine the version of each component before installation to avoid repeated installations. After reviewing a large amount of information, it can […]
Tag: lang
C language – array explanation
The concept of array What is an array? An array is a collection of elements of the same type. We can know from the concept: ? The array stores one or more data, but the number of array elements cannot be 0. ? Multiple data stored in the array have the same type. Arrays are […]
“Data Structure, Algorithm and Application C++ Language Description” – Code to implement key-value ordered linked list jump list
Skip list Definition Searching in a dictionary of n number pairs described by an ordered linked list requires at most n key comparisons. If a pointer is added to the middle node of the linked list, the number of comparisons can be reduced to n/2 + 1. At this time, in order to find a […]
Golang integrates RocketMQ
RocketMQ related knowledge summary What is RocketMQ RocketMQ is an open source MQ framework from Alibaba. It is widely used in different business scenarios and has very good ecosystem support. It supports transaction messages, sequential messages, batch messages, scheduled messages, message traceback and other functions. RocketMQ core concepts Name Service (NameServer): It can be understood […]
Golang standard library: bytes package – byte slice byte array convenient operation
2.2 bytes – byte slice convenient operation This package defines some convenience operations for manipulating byte slices. Because strings can be represented as []byte, the functions and methods defined by the bytes package are very similar to the strings package, so the explanation will be similar to the strings package and can even be referred […]
Golang standard library: sort package – sorting algorithm
3.1 sort – sorting algorithm This package implements four basic sorting algorithms: insertion sort, merge sort, heap sort, and quick sort. But these four sorting methods are not public, they are only used internally by the sort package. Therefore, when sorting a data set, you do not need to consider which sorting method should be […]
C language to implement merge sort (recursive method)
1. Basic information of merge sort 1. Basic principles Merge sort is an effective sorting algorithm based on merge operations. This algorithm is a very typical application of the divide-and-conquer method. Merge the ordered subsequences to obtain a completely ordered sequence; That is, order each subsequence first, and then order the subsequence segments. Decomposition: Split […]
n-gram language model – text generation source code
n-gram language model – text generation source code Basic principles of n-gram model Steps of text generation 1. Preparation and word segmentation 2. Build n-gram model 3. Application of smoothing technology 4. Generate text Source code In the field of natural language processing, the n-gram language model is a basic and powerful tool. It is […]
The principles of Go language coroutines and the relationship between coroutines and threads! (Very important)
The coroutine of Go language is something unique compared to other languages, and it is also very important. Many times we want to understand its underlying principles, but cannot find suitable knowledge points on the Internet. For example, if you ask GPT, he will answer you like this : Coroutines and threads are both technologies […]
[Go language]SSTI from 0 to 1
[Go language]SSTI from 0 to 1 1.Go-web basics and examples 2.Parameter processing 3. Template engine 3.1 text/template 3.2 SSTI 4.[LineCTF2022]gotm 1. Question source code 2.WP 1.Go-web basics and examples package main import ( “fmt” “net/http” ) func sayHello(w http.ResponseWriter, r *http.Request) {<!– –> // Define a fmt.Fprintln(w, “hello world!”) } func main() {<!– –> http.HandleFunc(“/hello”, […]