Personal blog theme template to add follow special effects tutorial to the mouse

Yesterday, I wrote a small toy with special effects of Web mouse. Of course, the code is not mine. It comes from Robin. The plug-in is also very simple, but considering that not everyone likes to use plug-ins, including myself, I took the time to write a detailed one today course , if you write the code directly in the topic, you don't need to ...

Posted by kryptx on Thu, 10 Feb 2022 10:10:49 +0100

[a little c + + knowledge a day] 015: three methods of creating c++11 threads

1. Create a thread with an initial function    note that when c + + runs an executable program (creates a process), it will automatically create a main thread. This main thread and the process live and die together. When the main thread ends, the process ends. #include "pch.h" #include <iostream> #include<thread> void pr ...

Posted by ikscovski on Thu, 10 Feb 2022 10:07:15 +0100

C + + polymorphic and virtual functions quick start tutorial

C + + polymorphic and virtual functions quick start tutorial As mentioned in the previous chapter, the pointer of the base class can also point to the derived class object. Please see the following example: #include <iostream> using namespace std; //Base class People class People{ public: People(char *name, int age); void displa ...

Posted by cdrees on Thu, 10 Feb 2022 10:05:43 +0100

[easily understand design mode] observer mode

[design mode] observer modeprefaceThe definition of Observer mode: it refers to the one to many dependency between multiple objects. When the state of an object changes, all objects that depend on it are notified and automatically updated. This mode is sometimes called publish subscribe mode and model view mode. It is an object behavior mode.Ob ...

Posted by holowugz on Thu, 10 Feb 2022 09:46:05 +0100

SpringBoot Jpa multi data source dynamic switching

In large applications, it is a common design pattern to configure the master-slave database and use read-write separation. The common implementation method is to use database middleware. This paper introduces how to realize the configuration and dynamic switching of multiple data sources by writing code. The core is to use the abstract class Ab ...

Posted by jediman on Thu, 10 Feb 2022 09:15:57 +0100

Reconstruction technique -- simplifying conditional logic

Most of the functions of the program come from conditional logic, and most of the complexity comes from conditional logic. Sometimes we need to use refactoring to make conditional logic easier to understand. For example: Explode conditional expressions: handle complex conditional expressionsMerge condition expression: clarify logical combinati ...

Posted by islan on Thu, 10 Feb 2022 09:08:31 +0100

The puppeter of nodejs realizes the code scanning login of JD automation function

Recently, I want to realize a function of JD scanning code, logging in, automatic ordering and automatic rush purchase (ps: realize JD automation function), !!! This project is purely for learning and commercial use is prohibited Let me share with you how I can find the corresponding interface and parameters step by step by analyzing JD's web ...

Posted by laide234 on Thu, 10 Feb 2022 09:03:59 +0100

WDS2 Lesson 18 3 device drivers use memory analog disk elevator algorithm to read and write partition formatting

reference resources drivers\block\xd.c and drivers\block\z2ram.c ls /dev/sd* -l view all disk devices. The disk with secondary device number 0 represents the whole disk, and the device numbers 1, 2 and 3 represent the partitions of the disk. Program 1 uses memory to simulate disk to simply process request do_ramblock_request #include & ...

Posted by jonemo on Thu, 10 Feb 2022 09:00:07 +0100

for & range performance comparison

origin Recently used Go brush LeetCodeFirst question, sum of two numbers. When solving the problem, I use traversal to solve. I accidentally find that the beats of for and range are inconsistent. In the spirit of in-depth research (I don't know anything), I want to compare the performance of the two.Article reference Geek rabbit The original o ...

Posted by lip9000 on Thu, 10 Feb 2022 08:56:34 +0100

Network programming learning diary ---- signal driven

1, IO model - signal driven Using the signal mechanism in system programming, first let the program install the SIGIO signal processing function (when the socket has data, the system will automatically send SIGIO signal). We only need to capture this signal in the program to know whether there is data. If there is data, we can read it out.   ...

Posted by everogrin on Thu, 10 Feb 2022 08:49:48 +0100