Linux – Environment variables – General commands and built-in commands

Recommended book, “In-depth Understanding of the Linux Kernel”. Jiumo Book Search | Internet-wide e-book search engine, a must-have for novelists | Tbox Navigation (tboxn.com) Register You should know that the code is loaded into the memory so that the CPU can perform operations. So, when we write the return value of the function, or how […]

Comparison of reference type variables (objects) in Java

Article directory 1. == and equals() methods Compare non-custom classes Compare custom classes 2. Comparable interface Use of Comparable interface Advantages and Disadvantages of Using Comparable to Compare Custom Classes 3. Comparator interface Use of Comparator interface Advantages of using Comparator to compare custom classes 1. == and equals() methods == compares whether the addresses […]

[Multi-threading] Thread control {thread creation, thread exception, program replacement in multi-threads; thread waiting, parameters and return values of thread entry functions; thread termination, thread ID, thread attribute structure, thread independent stack structure, thread local Variables; thread separation; pthread library functions}

1. Thread creation 1.1 pthread_create function The pthread_create() function is a function used to create threads. It belongs to the pthread thread library (POSIX thread library). The function prototype is as follows: #include <pthread.h> int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg); Parameter Description: thread: Pointer to pthread_t type, used to […]

Shell Programming-“Variables”

The difference between single quotes, double quotes and “ in shell name=”hello” echo name echo “$name” echo ‘$name’ echo $name Guess what the output is, actually it is In the shell, variables under double quotes can be parsed, but variables under single quotes cannot. In addition, the results returned by “ wrapped commands can also […]

[Linux process (6)] Re-understanding of environment variables & initial understanding of program address space

Blogger CSDN homepage:Hangdian Code Farmer-NEO ? ?Column classification:Linux from entry to proficiency? ? Code Warehouse: NEO’s Learning Diary ? Follow meTeach you more operating system knowledge ? Program address space 1 Introduction 2. View all environment variables in bash 3. How to obtain environment variables in the program 4. Analysis of the third parameter of […]

Modern CMake configuration and construction, sample templates, dynamic link libraries, find_package, cache variables, adding pseudo targets to start programs, directory organization, updating CMake

Directory Traditional CMake build installation Modern CMake Sample template dynamic link library find_package Use of cache variables Add pseudo target to launch program Directory organization Update CMake Traditional CMake build and installation review: PUBLIC means that the linked library will not only be applied to the current target, but will also be passed to other […]

Variables and constants, input and output functions, and processing of garbage characters

Variables Concept: A value that may change during the execution of the program. Definition: Storage type Data type (example) Variable name (example) auto (defaults to auto when omitted) int a (auto) int a; Initialization: ① Define first, then initialize: (auto) int a; // definition a = 6; // initialization (assignment) ② Initialize when defining: (auto) […]

python uses execjs and jsdom to execute js code solutions containing documents and set environment variables

Let’s talk about the environment first: win7 64-bit, python3.8.10. When python uses execjs to execute js code containing document, an error will appear: execjs._exceptions.ProgramError: TypeError: ‘document’ is undefined The reason is that pure js code does not contain objects in the browser (such as document, window, etc.). In this case, a library called jsdom is […]

Deno import, environment variables and code debugging

?Table of Contents 1. Import mapping Example – Using deno_std’s fmt module via ?edit Example – absolute import using project root Override import Import mapping is available for apps 2. Environment variables Built-in Deno.env .env file std/flags Special environment variables 3. Debugging code Chrome Devtools VSCode 1. Import mapping In order for Deno to parse […]

2. MySQL control buttons – startup options and system variables

2.MySQL control buttons – startup options and system variables 1. Startup options and configuration files 1.1 Using options on the command line 1.2 Options used in configuration files 1.2.1 Configuration file path 1.2.2 Contents of configuration file 1.2.3 Special option groups for specific MySQL versions 1.2.4 Priority of configuration files 1.2.5 Priority of multiple groups […]