day8 - string and collection jobs
Use three sets to represent the names of students who choose courses in three disciplines (a student can choose multiple courses at the same time)
biology = {'stu1', 'stu3', 'stu5', 'stu6', 'stu8', 'stu10', 'stu11'}
chemistry = {'stu1', 'stu2', 'stu4', 'stu5', 'stu6', 'stu7', 'stu9'}
physics = {'stu3', 'stu4', 'stu5', 'stu7', 'stu10', 'stu11', ...
Posted on Wed, 20 Oct 2021 22:52:24 -0400 by madonnazz
Python - multithreading Parallel / Multiprocessing Demo
1, Introduction
Multithreading and thread pool are commonly used in Java development to improve program running efficiency and machine utilization. Python multithreading uses Parallel class and Multiprocessing class. In addition, there are _ Thread, threading and many other thread related classes can cooperate with os, sys, subprocess an ...
Posted on Wed, 20 Oct 2021 22:43:00 -0400 by peanutbutter
Using the new feature of HTML5 to drag and drop to exchange table cell elements
Using the new feature of HTML5 to drag and drop to exchange table cell elements
What's new in HTML5: drag and drop
Drag and drop
Drag and Drop is a very common feature. It means you grab something and drag it into different positions.
Drag and drop is part of the HTML5 standard: any element can be dragged and dropped.
Browser support
The ...
Posted on Wed, 20 Oct 2021 21:17:14 -0400 by jamiefoxx
Data structure and algorithm -- Application of stack
Definition of stack
Stack is a linear structure with limited operation (first in and last out). It is only allowed to enter and exit from one end. This is the characteristic of the stack. Generally, the end of data in and out is called the top of the stack, and the other end is the bottom of the stack. The basic operations of the stack include ...
Posted on Wed, 20 Oct 2021 20:08:40 -0400 by TowerOfPower
CRUSH and PG distribution
reference material: Ceph's RADOS design principle and Implementation https://docs.ceph.com/en/latest/rados/operations/crush-map/ http://strugglesquirrel.com/2019/02/02/ceph%E8%BF%90%E7%BB%B4%E5%A4%A7%E5%AE%9D%E5%89%91%E4%B9%8B%E9%9B%86%E7%BE%A4osd%E4%B8%BAfull/ https://docs.ceph.com/en/latest/rados/operations/balancer/#modes
CRUSH
Crush alg ...
Posted on Wed, 20 Oct 2021 20:03:33 -0400 by seidel
How does JavaScript determine whether an element is in the visual area?
1, Use
The visible area is the area visible to the naked eye of our web browsing device, as shown in the figure below
In daily development, we often need to judge whether the target element is within the window or the distance from the window is less than a value (e.g. 100 px), so as to realize some common functions, such as:
Lazy loadi ...
Posted on Wed, 20 Oct 2021 20:00:18 -0400 by KendersPlace
[great small project] Java SE consolidation project --- team scheduling software (inheritance, polymorphism, comprehensive application of a variety of basic knowledge, learn macro thinking)!!
Java SE project closure
Java development program
java se project - development team scheduling software [based on text interface]
Look at the effect Company member status after adding
Before development
As for why this project is written or implemented, it is because the previous socket chat room project is complex, but to be ho ...
Posted on Wed, 20 Oct 2021 19:43:48 -0400 by bsprogs
14000 word notes in Chapter 3 of learning JavaScript data structures and algorithms
preface
This paper includes array operation method, new array function in ES6, JS matrix, typed array, etc;
Is the catalogue clear? It's convenient to check something? I've tried my best to improve the catalogue for future reference
The front is the basic part. If you're not Xiaobai, I think
1, Create & & initialize array
C ...
Posted on Wed, 20 Oct 2021 17:55:11 -0400 by x2fusion
20 killer JavaScript single line code
👋
This paper sorts out some practical JavaScript single line code, which is very easy to use~~
Gets the value of the browser Cookie
Find the cookie value through document.cookie
const cookie = name => `; ${document.cookie}`.split(`; ${name}=`).pop().split(';').shift();
cookie('_ga');
// Result: "GA1.2.1929736587.1601974046"
...
Posted on Wed, 20 Oct 2021 16:54:42 -0400 by barrowvian
Java advanced - multithreading
The difference between synchronous and asynchronous Synchronization: in the synchronization process of multiple threads, only one thread is working and other threads are waiting. This process is single threaded (serial) Asynchronous: multiple threads are running at the same time, each doing its own thing (parallel)
8.1. Concept of program, pro ...
Posted on Wed, 20 Oct 2021 16:49:57 -0400 by madmindz