0 basic society simple QQ version chat dialogue function (with complete implementation code)
Today we will use the famous pipe mkfifo to realize a simple version of QQ dialogue function.
Step 1: first create two processes Talka C and talkb c;
Step 2: talk a C and talkb C is responsible for checking whether two pipelines have been created. If not, it is necessary to create pipelines;
Step 3: talk a C open pipe 1 in a write only mann ...
Posted by Hannes2k on Mon, 07 Mar 2022 22:40:26 +0100
Far planner code series
After reading the great God's paper, I ran by myself. I feel very interesting. I want to read the great God's code carefully. Anyway, it's better to treat it as a series of self entertainment~ MichaelFYang/far_planner: Fast, Attemptable Route Planner for Navigation in Known and Unknown Environments (github.com)
graph_decoder series (1)
First, ...
Posted by smokenwhispers on Sun, 06 Mar 2022 10:14:17 +0100
day18: File (construction method, creating and deleting files or folders, judgment, renaming and cutting, availability, filtering), recursion (traversing folder files)
I. review
1.HashMap set
Features:
A. the data structure is also a Hash table structure
B. It is unsafe in multithreading
C. the initialization capacity of the default array is 16
2. Comparison between HashMap and HashSet
The same point: they are stored in hash table structure
Differences:
The bottom layer of A.HashSet is imp ...
Posted by Ryan Sanders on Sat, 05 Mar 2022 02:13:27 +0100
MAE source code understanding part1: debugging understanding method
git official link: GitHub - facebookresearch/mae: PyTorch implementation of MAE https//arxiv.org/abs/2111.06377
I can't understand the MAE code at all. I want to understand this code step by step. I think it's useful to see the great God code. This article is for notes.
1, Running example:
How to say, it must be taking out the code in the ...
Posted by inkfish on Fri, 04 Mar 2022 20:06:41 +0100
Chuanzhi health project ------------ Chapter III check the addition, deletion and modification of the package
I New package
(1). Perfect page
The new package is divided into two parts: the first is the basic information of the package, and the second is the information of the inspection group associated with the package
Among them, the new package is different from that of the previous inspection item inspection group, and the function of uploading ...
Posted by djheru on Thu, 03 Mar 2022 10:28:11 +0100
4-20mA current scheme based on AD5420 output drive
In the development of industrial instruments, the physical quantities measured by the instruments are often converted into current signals for output and transmission. The characteristics of strong anti-interference and long transmission distance of current signals are widely used in industrial instruments.
ADI's AD5420 chip directly converts ...
Posted by biggieuk on Sun, 27 Feb 2022 12:06:22 +0100
[LLVM wet nurse teaching-1] LLVM from installation to handwriting first pass [hello llvm]
Everyone who needs to learn LLVM must know that this is a powerful open source compilation tool chain. In fact, the more you study later, you will find that this thing and the design idea are very awesome. This thing can bring pluggable optimization to the compilation process, which is very convenient. This article does not talk about what LLVM ...
Posted by vanzkee on Sat, 26 Feb 2022 17:53:23 +0100
C/C + + programs read (save) data from text files
In C program:
When dealing with data (files) outside the program code, we use the concept of stream to realize the data exchange between the process's virtual memory and files.
——FILE stream: the C standard library provides FILE (named FILE because linux treats all mechanisms as files). The FILE object is a structure that contain ...
Posted by bqheath on Sat, 26 Feb 2022 16:20:47 +0100
Java EE core [Shell foundation]
1. What is Shell
Shell is a command line interpreter. It is a black window. When we issue some commands to Linux, Shell translates these commands into the actions that kernel can understand, then calls the kernel, operates the hardware, completes the operation, and then translates the signals into adult understandable forms.
Shell is also a p ...
Posted by balkan7 on Sat, 26 Feb 2022 08:48:50 +0100
C# System.Threading.Tasks.Task
Task class
definition
Namespace:
System.Threading.Tasks
Assembly:
mscorlib.dll, netstandard.dll
Represents an asynchronous operation.
inherit
Object
Task
derive
System.Threading.Tasks.Task<TResult>
realization
IAsyncResult
annotation
Task Class represents a single operation that does not return a value and is typically perf ...
Posted by saadlive on Sat, 26 Feb 2022 04:49:07 +0100