Detailed explanation of common Redis commands and C/C + + calling Redis interface
1, Redis common commands
Redis is generally installed on linux, which is divided into server and client.
Start Redis server
Enter the following command on the terminal to start the Redis server:
$redis-server
Start Redis client
Enter the following command on the terminal to start Redis client:
#If the password is set, use the follow ...
Posted by NikLP on Fri, 03 Dec 2021 00:12:24 -0800
Let's take a brief look at vector in C + +
1, What is a vector?
A Vector is a Sequence container that encapsulates a dynamic size array. Like any other type of container, it can hold various types of objects. It can be simply considered that a Vector is a dynamic array that can store any type.
2, Container characteristics
1. Sequence
The elements in the order container are sorted ...
Posted by daimoore on Fri, 03 Dec 2021 00:00:38 -0800
Use cmake to teach the use of install
Here we mainly introduce the operations of install ing using cmake:
The content that can be installed through cmake can include target binary, dynamic library, static library, files, directories, scripts, etc., which are briefly described below:
For details, please refer to the official website. Here is a brief description
1. Installation of ...
Posted by buckit on Thu, 02 Dec 2021 18:40:13 -0800
Operating system: Experiment 1. Process scheduling experiment
[purpose]
Write and debug a process scheduler in high-level language to deepen the understanding of process concept and process scheduling algorithm
[experimental equipment and software]
Experimental running environment: C language programming environment Preparations before boarding include ...
Posted by egturnkey on Thu, 02 Dec 2021 12:55:44 -0800
Advanced pointer of C language
preface
1. Pointer is a variable used to store address. The address uniquely identifies a piece of memory space. 2. The size of the pointer is fixed 4 / 8 bytes (32-bit operating system / 64 bit operating system). 3. Pointers are typed. The type of pointer determines the step size of ± integer and the permission of operation memor ...
Posted by steved on Thu, 02 Dec 2021 12:25:37 -0800
c++ opencv digital image processing: frequency domain filtering -- homomorphic filtering
preface
Digital image processing c++ opencv (VS2019 opencv4.53) is continuously updated
1, Homomorphic filtering principle
1. Treatment principle
(1) It is considered that the image f(x,y) consists of two parts: illumination component i(x,y), reflection component r(x,y):
f
...
Posted by jemrys on Wed, 01 Dec 2021 17:43:29 -0800
c++11 multithreading programming (3) -- competition and mutual exclusion
Competitive conditions
One of the most common errors in concurrent code is race condition. The most common is data race. On the whole, the problem of sharing data between all threads is caused by modifying data. If all shared data are read-only, there will be no problem. But this is impossible. Most of the shared data needs to be modified.
Th ...
Posted by francoisp on Wed, 01 Dec 2021 13:32:32 -0800
Leetcode|greedy algorithm [allocation + interval] (135|435|455...)
Greedy Algorithm
The simple understanding is to ensure the local optimization, the local results are irrelevant, and the results are the simple summation of the local optimal results to achieve the global optimization.
assignment problem
455. Distribute cookies [Assign Cookies (Easy)]
Title Description Suppose you are a great par ...
Posted by keyur.delhi on Wed, 01 Dec 2021 06:45:03 -0800
[C + + from getting started to kicking the door] Chapter 1: getting to know C++
1. The origin of C + +
For complex problems, large-scale programs that require a high degree of abstraction and modeling, C language is not appropriate. In order to solve the software crisis, in the 1980s, the computer community put forward the idea of OOP (object-oriented programming), and the object-oriented programming language cam ...
Posted by maxic0 on Wed, 01 Dec 2021 05:33:31 -0800
OpenCV learning notes 16_ Common edge detection algorithms
edge detection
1, Understanding of edge detection
Edge generally refers to the region where the intensity of an image changes sharply in a certain part. There are generally two situations of strength change: Step change: The image value changes from low to high, and the image changes from dark to bright
Peak change: From dark to light ...
Posted by ady01 on Wed, 01 Dec 2021 02:53:50 -0800