Network programming 06-server programming non-blocking IO, multiplexing

Table of contents 1. Four high-performance IO models in server programming 1. Block IO 2. Non-blocking IO 3. Multiplexing 4. Signal drive 2. Blocking IO 3. Non-blocking IO 1. The difference between blocking IO and non-blocking IO 2. How to set the non-blocking attribute to the file descriptor----fcntl() ----- man 2 fcntl 4. Multiple ...

Posted by vornn on Wed, 09 Nov 2022 03:11:14 +0300

Vue3 must know skills - custom Hooks

Vue3 custom Hooks definition: Personal understanding: some reusable methods hang like hooks and can be introduced and called at any time to achieve the goal of high cohesion and low coupling, and they should all be considered hooks; Why does Vue3 use custom Hook? : Conclusion: It is to make the Composition Api more useful and fuller, and to m ...

Posted by NiXXeD on Mon, 07 Nov 2022 10:37:48 +0300

7 major design principles of software (with case code)

Table of contents1. The principle of opening and closing2. Single Responsibility Principle3. Liskov substitution principle3.1 Before use3.1. After use4. Dependency Inversion Principle4.1. Before use4.2 After use5. Interface isolation principle5.1. Before use5.2. After use6. Law of Demeter7. Principles of synthesis and reuse8. Code written in th ...

Posted by $username on Mon, 07 Nov 2022 08:47:07 +0300

[Mybatis source code] 1. The creation process and function of SqlSession

Structure diagram The relationship between the core components of mybatis can be represented by the following diagram: Among them, add "I" before the class name to indicate the interface SqlSessionFactoryBuilder As can be seen from the figure, in addition to Configuration, the class name of each class contains a "SqlSession ...

Posted by egmax on Mon, 07 Nov 2022 05:38:32 +0300

Process thread Ctrip

process A process is a movement activity of a program in a computer on a certain data set. It is the basic unit of resource allocation and scheduling in the system, and the basis of the operating system structure. // Open the specified program Process p = Process.Start(@"C:\Program Files\Google\Chrome\Application\chrome.exe"); // kill ctrip p.K ...

Posted by mdomel on Sun, 06 Nov 2022 14:17:27 +0300

Hikvison connects to NVR to realize WEB plug-in-free development kit to realize front-end video preview (html, vue, nginx proxy)

Scenes Preview the video of multiple channels (cameras) in HIKVSION's NVR (Network Disk Video Recorder) in Vue: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/124155295 The WEB control development kit is used for the NVR video preview above, which requires the computer to install the plug-in, and the browser needs to be in the P ...

Posted by YoussefSiblini on Sun, 06 Nov 2022 12:02:27 +0300

Qt Learning - QCheckBox Checkbox

Zero. Introduction QCheckBox is a check box, which is often used for non-mutually exclusive selection of forms, and is used in the scenario of "multiple selection and multiple". Checkboxes are used in both office word and PhotoShop, as follows: 1. Create a QCheckBox QCheckBox has two constructors, both of which specify the ...

Posted by magic-eyes on Sun, 06 Nov 2022 04:12:17 +0300

Docker packaging front-end and back-end project image deployment documents

illustrate This time, 6 ports are used to do a front-end and back-end docker image deployment 8080,8081 are the ports of the two backend services 8082,8083 are the ports for the two front ends The project uses nginx as a proxy to solve the cross-domain problem caused by different front-end and back-end ports, because I use both the front-end ...

Posted by knight on Sat, 05 Nov 2022 03:38:32 +0300

Chapter 36 Tag-Based Development with CSP - Use as few #server and #call calls as possible

Chapter 36 Tag-Based Development with CSP - Use as few #server and #call calls as possible #server and #call work by having the browser make an HTTP request to the page containing a special encrypted token that tells Caché the name of the method to run. Caché runs this method, any output it sends back is executed as JavaScript on ...

Posted by sirfartalot on Fri, 04 Nov 2022 04:22:05 +0300

Install and configure Apache under Linux

lab environment: Linux 5.19.13-arch1-1 konsole 22.08.2 apache 2.4.54-2 I. Overview Apache HTTP Server (Apache for short) is an open source Web server of the Apache Software Foundation and the world's number one Web server software. It can run on almost all widely used computer platforms and is one of the most popular Web server-side sof ...

Posted by X74SY on Fri, 04 Nov 2022 02:52:58 +0300