Basic Java syntax - Day2

1. Keywords and reserved words 1.1 definition of keyword Definition: a string (word) with special meaning given by the Java language for special purposes Features: all letters in the keyword are lowercase 1.2 reserved word Java reserved word: the existing Java version has not been used, but the later version may be used as a keyword. A ...

Posted by env-justin on Thu, 10 Feb 2022 08:43:45 +0100

Javaweb---JQuery basics 3

1. Addition, deletion and modification of DOM Internal insertion appendTo(content) a.appendTo(b); Add a to B to the end prependTo(content) a.prependTo(b); Add a to B and add to the front External insertion insertAfter(content) a.insertAfter(b); Insert a after B insertBefore(content) a.insertBefore(b); Insert a in front of B replace replac ...

Posted by JParishy on Thu, 10 Feb 2022 08:39:12 +0100

Charm of design pattern I

Some thoughts on learning design patterns for the first time At present, I am reading the book "Dahua design pattern", which is cheap and easy to understand. The steps are in place That is to find that you can really improve the logic of your code, feel the convenience brought by design patterns, and understand why and what are ...

Posted by JonathanAnon on Thu, 10 Feb 2022 08:28:49 +0100

Load balancing strategy for the most complete Nginx server

Summary of load balancing strategy of Nginx server 1, On load balancing of Nginx In the server cluster, Nginx acts as a proxy server (i.e. reverse proxy). In order to avoid excessive pressure on a single server, it forwards requests from users to different servers.   2, Nginx load balancing strategy Load balancing is used to select a serve ...

Posted by duckula on Thu, 10 Feb 2022 08:24:14 +0100

Course notes: transform

torchvision: torchvision is a computer vision toolkit in pytorch Three main modules: 1) transforms module: provide common image preprocessing methods 2) datasets: datasets that provide commonly used public datasets 3) model: Provides a large number of commonly used pre-training models transforms Pictures are enhanced to improve model generali ...

Posted by CBR on Thu, 10 Feb 2022 08:14:31 +0100

Rocketmq - underlying principle of sequential message

Rocketmq can only guarantee local order, not global order messages Sequential consumption based on queue (partition) is provided in RocketMQ.   Sequencing in RocketMQ mainly refers to the sequential consumption of messages. Each consumption group in RocketMQ has a separate thread pool for concurrent consumption of pulled messages, that is, t ...

Posted by IWS on Thu, 10 Feb 2022 08:03:51 +0100

day05 mobile adaptation: rem, less

1, rem px unit: absolute unit rem unit: relative unit Calculation result of font size relative to HTML tag in rem unit 1rem=1HTML font size (root font size) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewpor ...

Posted by cocpg on Thu, 10 Feb 2022 08:03:20 +0100

CountDownLatch thread synchronization for Java Concurrent Programming learning

preface Scene description Briefly describe this step. Open three threads and call three different methods. Use the countdowncatch counter to wait for the completion of all three methods, and then merge the data Basic concepts introduce CountDownLatch is a synchronization tool class that allows one or more threads to wait until other t ...

Posted by davidjwest on Thu, 10 Feb 2022 08:00:51 +0100

Vue implements in situ editing of table cells

Vue implements in situ editing of table cells Here are the notes of Vue beginners. Please avoid the old bird. If you are a warm-hearted elder, we earnestly look forward to your valuable comments. at first There is a small demand. I hope to read excel files through the browser and modify data on the web page. I checked some JS plug-ins ed ...

Posted by sv4rog on Thu, 10 Feb 2022 07:48:40 +0100

Using MyBatis to realize Association query

Article catalogue 1, Query requirements (1) Associated query for three tables Class scheduleTeacher tableStudent list A class is equipped with one teacher, and a class has multiple students (2) Query class information by class number The inquired class is required to bring teacher information and student information of the class (3) ...

Posted by prometheuzz on Thu, 10 Feb 2022 07:44:25 +0100