java learning notes - network programming

1, Introduction to network programming Network programming: under the network communication protocol, data can be exchanged between programs running on different computers to realize network interconnection 1.1 three elements of network programming IP address: to enable computers in the network to communicate with each other, you must sp ...

Posted by austrainer on Thu, 24 Feb 2022 14:07:00 +0100

day9 sets and strings

day9 sets and strings 1, Assemble 1. Recognition set Collection is a container data type, with {} as the flag of the container Multiple data are separated by commas: {data 1, data 2,...} Variable (support addition, deletion and modification); Unordered (subscript operation is not supported) Requirements for elements: 1) Must be immutable ...

Posted by fimbria on Thu, 24 Feb 2022 14:02:55 +0100

[ART-PI] RT thread start UART6 docking GPS module

introduction Some GPS modules use serial port. Connect the GPS module and adjust the serial portIf the GPS chip is used, the interface may be I2C, SPI, UART, etc., so it needs to be connectedI register a GPS device here separately, which is used to connect GPS chips of various interfaces. For the upper layer, GPS is just a character device GP ...

Posted by gckmac on Thu, 24 Feb 2022 13:54:39 +0100

"In depth communication" series: implementation of Okhttp interceptor

Okhttp interceptor details Okhttp interceptor introduction Concept: interceptor is a powerful mechanism provided in Okhttp. It can realize network monitoring, request and response rewriting, request failure retry and other functions. Let's first understand the system interceptor in Okhttp: RetryAndFollowUpInterceptor: it is responsible for i ...

Posted by phillips321 on Thu, 24 Feb 2022 13:32:13 +0100

RabbitMQ. Basic use

catalogue I Message queue 1. Definition of message queue 2. Problem thinking ​3. Existing problems 4. Optimization scheme 5. Example: ①. Benefits ②. Message queue characteristics 6.Email case: 7.AMQP 8. Technical selection  9.RabbitMq II Docker installation and deployment RabbitMQ III springboot connection configuration 1. Config ...

Posted by praveenhotha on Thu, 24 Feb 2022 13:11:03 +0100

Survival analysis with lifelines [Python version]

Opening remarks Survival analysis accounts for a large proportion in medical research, and when conducting survival analysis, R language, SPSS and other tools are often used for survival analysis, while Python is rarely used for survival analysis. Because we found a python version of survival analysis tool - lifelines, this library has provi ...

Posted by jmgrhm on Thu, 24 Feb 2022 13:06:29 +0100

Leetcode notes -- Introduction to greedy algorithm

Catalogue of series articles I Array type problem solving method 1: dichotomy II Array type problem solving method 2: Double finger needle method III Array type problem solving method 3: sliding window IV Array type problem solving method 4: simulation V The basic operation and classic topics of the linked list Vi Classic title of hash tab ...

Posted by hopelessX on Thu, 24 Feb 2022 13:02:34 +0100

Python note 17 - object oriented - inheritance

Python notes Object oriented - inheritance I Introduction to inheritance Inheritance Encyclopedia Python object-oriented inheritance refers to the ownership relationship between multiple classes, that is, the subclass inherits all the properties and methods of the parent class by default. In Python, all classes inherit the ...

Posted by webhamster on Thu, 24 Feb 2022 12:34:57 +0100

How to use code blocks?

Basic introduction A coded block, also known as an initialization block, is a member of a class [that is, a part of a class], which is similar to a method. It encapsulates logical statements in the method body and is surrounded by {}. But unlike methods, there is no method name, no return, no parameters, only method body, and it is not explici ...

Posted by SapAuthor on Thu, 24 Feb 2022 12:24:53 +0100

Network operation

Network operation Network support in Java: InetAddress: used to represent hardware resources on the network, i.e. IP address;URL: uniform resource locator;Sockets: use TCP protocol to realize network communication;Datagram: use UDP protocol to realize network communication. InetAddress There is no public constructor. You can only create inst ...

Posted by richrock on Thu, 24 Feb 2022 12:22:34 +0100