System Programming (I/O)

How Ubunt u implements the cp function ps: copy the content of one file to another file, test: text, image, video #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <string.h> int main(int argc, char*argv[]) { if(argc<3) { printf("Missin ...

Posted by dsp77 on Sun, 04 Sep 2022 08:27:48 +0300

C language learning log

int binary_search(int* arr,int num,int k) { int left = 0; int right = k - 1; int mid; while (left <= right) { mid = (left + right) / 2; if (arr[mid] < num) { left = mid + 1; } else if (arr[mid] > num) { right = mid - 1; } else if (arr[mid] == num) { return mid; } } return -1; } int main() { int arr[ ...

Posted by sella2009 on Sat, 03 Sep 2022 21:14:03 +0300

Js Regular Expression Advanced Notes

Regular introductory notes study 3. Advanced Regular Expressions Introduction to understanding - JavaScript match() method Definition and Usage The match() method retrieves a specified value within a string, or finds a match for one or more regular expressions. Note: The match() method will retrieve the string String Object to find one ...

Posted by wolfraider on Sat, 03 Sep 2022 04:13:18 +0300

Configure CUDA, cudnn and TensorRT environments under Ubuntu 22.04

Some time ago, CUDA, cudnn and TensorRT environments were configured under Ubuntu 18. Later, ros2 was installed. The ros2 version corresponding to Ubuntu 18.04 is dashing, and maintenance has been stopped. During use, it was found that many commands of dashing are not supported, so the system was simply upgraded to Ubuntu 20, so the environment ...

Posted by JNettles on Fri, 02 Sep 2022 22:25:22 +0300

Detailed notes on C + + operators

C + + operators 1, Arithmetic operator Unary operators (monocular) have the highest priority, followed by multiplication, division and remainder, and finally addition and subtraction. And it has left associativity, that is, when the priorities are the same, it is calculated from left to right. Monocular: + or - (unary positive / negativ ...

Posted by q1234ask on Fri, 02 Sep 2022 21:39:06 +0300

We can understand the source code - list page common hook packaging

This article is the sixteenth in a series of ahooks source code articles that have been compiled into documents- address . I think it's not bad. Give me one star Support me, thank you.List page common elementsFor some background management systems, a typical list page includes three parts: filtering form items, Table tables, and Paginatio ...

Posted by DeathStar on Fri, 02 Sep 2022 01:40:00 +0300

vlan for network comprehensive training

vlan for network comprehensive training CSDN 1: Introduction to the switch 1) Introduction to collision domain, broadcast domain and mac address Collision domain: Collision domain refers to the set of all nodes connected to the same shared medium. All nodes in the collision domain compete for the same bandwidth. A message sent by a nod ...

Posted by Arsench on Thu, 01 Sep 2022 23:23:45 +0300

Simple use of Dubbo and Realization of Streaming communication based on Triple protocol

For commercial reproduction, please contact the author for authorization. For non-commercial reproduction, please indicate the source.For commercial use, please contact the author for authorization. For non-commercial use, please indicate the source.License: signature - non-commercial use - sharing in the same way 4.0 International (CC BY-NC-SA ...

Posted by avillanu on Thu, 01 Sep 2022 23:07:53 +0300

Component pass value - slot - props - dynamic class

7.11 Summary 1. Virtual DOM Through the js object structure, a data form that simulates the html tag structure, it is not a tag element, but the structure is similar to the tag element structure, virtual DOM only operates on data objects, and has nothing to do with page views, so the efficiency of virtual DOM execution More efficient than rea ...

Posted by ArmanIc on Wed, 31 Aug 2022 22:08:59 +0300

Create image (alpine version)+alpine

podman uses script and dockerfile to compile and install apache image [root@localhost ~]# mkdir httpd [root@localhost ~]# cd httpd/ [root@localhost httpd]# touch Dockerfile [root@localhost httpd]# mkdir files [root@localhost httpd]# ls Dockerfile files [root@localhost httpd]# cd files/ [root@localhost files]# wget https://downloads.apac ...

Posted by deived on Wed, 31 Aug 2022 22:04:06 +0300