Week practice in the fifth week of the second semester of the 21st year (review topic of dynamic planning)

A - keep passing the ball: In PE class, Xiaoman's teacher often plays games with his classmates. This time, the teacher took the students to play a passing game. The rules of the game are as follows: n students stand in a circle, and one of them holds a ball. When the teacher blows the whistle, he starts to pass the ball. Each student can pa ...

Added by tomms on Thu, 03 Mar 2022 13:24:00 +0200

Hand in hand to teach you the introduction series -- stack (big talk data structure)

Stack is a linear table that is restricted to delete and insert operations only at the end of the table. How to understand the data structure of "stack"? Here is a more appropriate chestnut. The pistol is a typical "stack". When heroes in TV programs use pistols, they usually fill the bullets first, and then shoot the bull ...

Added by thyscorpion on Thu, 03 Mar 2022 13:17:46 +0200

Recently learned about Http connection pool (personal learning)

Recently learned about Http connection pool – copy personal learning One rpc Interface at 0~2 Point users' performance at the peak of orders rt High (more than 1) s,In fact, targeted optimized interfaces rt Exceeding this value is also problematic, usually rpc Even if the logic in the interface is complex, 300 ms It should be done), ...

Added by Brandon Jaeger on Thu, 03 Mar 2022 13:14:10 +0200

Multithreading tutorial ThreadPoolExecutor

Multithreading tutorial (32) ThreadPoolExecutor 1. Thread pool status ThreadPoolExecutor uses the upper 3 bits of int to indicate the thread pool status and the lower 29 bits to indicate the number of threads Status nameHigh 3 bitsReceive new tasksProcessing blocking queue tasksexplainRUNNING111YYSHUTDOWN000NYNew tasks are not received, bu ...

Added by sheffrem on Thu, 03 Mar 2022 12:48:27 +0200

Shang Silicon Valley VUE project - front end project problem summary 01

1 create project vue create app If the vue cli version is below 3, it needs to be upgraded. create is the usage of 3 npm uninstall -g vue-cli npm install -g @vue/cli npm install -g @vue/cli@4.5.13 Note: to use Vue cli v4 five point one three Vue cli v4 5.13 I installed Vue cli V5 0.1, there is a problem when configur ...

Added by Goat on Thu, 03 Mar 2022 12:48:16 +0200

Goodbye, single dog! There are six ways to create objects in Java, and one is always suitable for you..

Click on the official account, Java dry cargo in time.backgroundIt's the annual Valentine's day again. I wish all programmers have lovers and get married!Today, the official account was advertised and temporarily pigeon. This Valentine's Day is a little hurt. Fortunately, there is no pigeon..What should I write on Valentine's day?!You must have ...

Added by dgudema on Thu, 03 Mar 2022 12:42:33 +0200

Compatibility competition of shared file system on cloud

"Everything is a document" is the basic design philosophy of UNIX. Files are organized into tree directories according to hierarchical relationships, which constitute the basic form of the file system. When using the file system to save data, users do not need to care about the underlying storage mode of data, and can access it accord ...

Added by waseembari1985 on Thu, 03 Mar 2022 12:19:16 +0200

RxJS is to asynchrony what JQuery is to dom

I remember when I first learned JavaScript, I learned from the native dom api. I used the native dom api to complete some functions of addition, deletion and modification, and then I will learn JQuery.When I first came into contact with JQuery, I felt it was great. For example, this logic:Create a p tag containing a text node and insert it into ...

Added by stevietee on Thu, 03 Mar 2022 12:00:53 +0200

How to gracefully add exception handling to all methods of an object

The code will not run as expected, and there may be unexpected situations. In order to ensure the robustness of the program, exception handling is required.For example, all methods of an object should be subject to exception handling, but it is too troublesome to add try catch to each method:const obj = { aaa() { try { / ...

Added by theoph on Thu, 03 Mar 2022 11:59:13 +0200

How many of the five Observer browsers have you used?

In web development, we often deal with user interaction. We will use addEventListener to add event listeners to listen to various user operations, such as click, mousedown, mousemove, input, etc., which are directly triggered by users.What about some events that are not triggered directly by the user? For example, how to listen to such events a ...

Added by rupturedtoad on Thu, 03 Mar 2022 11:54:06 +0200