CentOS7 IP address configuration and log server establishment

Title IP configuration Gateway configuration vmnet8 ens32 Check all [root@localhost gp]# ip ad 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state […]

Use three methods to access images, pointers, iterators, and dynamic address calculations

Use three methods to access images, pointers, iterators, and dynamic address calculation Pointer access Method 1 #include <opencv2/opencv.hpp> #include <iostream> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> using namespace std; using namespace cv; #include <iostream> #include <fstream> using namespace cv; //Contains the cv namespace #include <opencv2/core/core.hpp> #include <opencv2/opencv.hpp> //———————[Global function declaration part]—————– ——- // Description: Global function declaration […]

Suggestions on adding primary keys and indexes to KingbaseES database partition tables

1. Initialize the test environment # Database version information KingbaseES V008R006C007B0012 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46), 64-bit 1. Create partition table: create table tb(id bigint,stat date,no bigint,pdate date,info varchar2(50)) partition by range(pdate) INTERVAL (‘1 MONTH’::INTERVAL) ( PARTITION tb_p0 VALUES LESS THAN (‘2019-01-01’), PARTITION tb_p1 VALUES LESS THAN (‘2019-02-01’), PARTITION […]

The story behind GCC & address allocation of C program constant variables

Article directory 1. Use gcc to generate static libraries and dynamic libraries 1. Edit and generate example programs hello.h, hello.c, main.c 2. Compile hello.c into .o file 3. Create a static library from an .o file 4. Create dynamic library from .o file 2. Generation and use of static library .a and .so library files […]

verilog implements IEEE754 half-precision floating point number addition and subtraction operations

1. IEEE754 protocol half-precision floating point number format and conversion Format: The binary half-precision floating point number has a total of 16 bits, and the index is 0-15. The 15th bit is the sign bit, 0 represents positive and 1 represents negative, 14-10 bits are the exponent code, and 9-0 bits are the mantissa bit. […]

The story behind GCC & address allocation of C program constant variables

1. Use gcc to generate static libraries and dynamic libraries Function libraries are divided into static libraries and dynamic libraries Static library When the program is compiled, it will be connected to the target code, and the existence of the static library is not required for the program to run. Dynamic library It will not […]

The story of GCC and C program address allocation

1. Gcc generated library.a.so and its use 1. Library generation and use -Prepare hello.c hello.h main.c file Compile with gcc and get the .o file gcc -c hello.c Create static library ar -crv libmyhello.a hello.o Use static libraries gcc -o hello main.c -L. -lmyhello Create dynamic library gcc -shared -fPIC -o libmyhello.so hello.o Execute dynamic […]

Allocation addresses of heap, stack, global, local and other variables in C programs under Ubuntu and stm32

1. Introduction to variables 1. Global constants: Constants defined in the program that cannot be changed in the global scope. Their values remain unchanged throughout the execution of the program. 2. Global variables: Variables that are changeable in the global scope defined in the program. They can be accessed and modified anywhere in the program. […]

Address allocation of heap, stack, global, local and other variables in C programs under Ubuntu and stm32

1. Global variables & local variables Global Variables Variables defined outside all functions are called global variables, and their scope is the entire program by default, that is, all source files. Local variables A variable defined inside a function is called a local variable. Its scope is limited to the inside of the function. It […]