The latest source code in 2022 explains the underlying relationship between Window, View and Activity

I've always wanted to write an article that deeply analyzes the relationship between window, View and Activity from the perspective of source code to help those junior and intermediate Android developers deepen their understanding of the three, but I haven't been able to calm down and write some good articles in recent years. At present, the pl ...

Added by Foregone96 on Mon, 21 Feb 2022 12:15:16 +0200

keepMoving binary tree sequence traversal deformation and minimum dictionary ordered substring with length k

Let's start with sequence traversal. This is a common problem. Print it according to each layer, as follows: For Recommendation in Deep learning QQ Group 277356808 For deep learning QQ Second Group 629530787 I'm here waiting for you 1 - sequence traversal and deformation Sequence traversal is the most intuitive and simplest sequence, that ...

Added by kelvin on Mon, 21 Feb 2022 11:44:53 +0200

Multithreaded concurrency tool -- J.U.C concurrent contracting -- AQS and ReentrantLock principle

Most of the tools in the JUC package are based on AQS, so let's learn the principle of AQS first 1.AQS principle 1.1 overview: The full name is AbstractQueuedSynchronizer, which is the framework of blocking lock and related synchronizer tools 1.2 features: The state attribute is used to represent the state of resources (exclusive mode and ...

Added by mikerh9 on Mon, 21 Feb 2022 11:26:05 +0200

Spring cloud configuration center

Foreword: if you want to put the project into the server and run, you can use the configuration center SpringCloud Config here; 1, SpringCloud Config Microservices It means that the business in a single application should be divided into one sub service. The granularity of each service is relatively small, so there will be a large number of s ...

Added by croix on Mon, 21 Feb 2022 11:18:03 +0200

It's hard to hear C language? Why don't you take a look at my UNIX system call

1. Write in front Previously, we have introduced some common knowledge of C language and standard input and output. In this blog, we will introduce the call of UNIX system interface. UNIX operating system provides services through a series of system calls. These system calls are actually functions in the operating system, which can be called b ...

Added by ekalath on Mon, 21 Feb 2022 11:14:49 +0200

Easy to understand JDBC tutorial - absolutely suitable for zero Foundation

The database realizes data persistence, but we finally have to process data in the program. How can we access the database and read and write data in java code?This requires a set of database standards set by sun company, which is JDBC (Java Database Connectivity). But it is only a specification, not a specific implementation. Therefore, the da ...

Added by mark s on Mon, 21 Feb 2022 11:04:55 +0200

springboot+mybatis+mysql transaction rollback

1. Introduction reference resources: mysql essentially uses database rollback, and the table engine needs InnoDB The versions used are as follows <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.or ...

Added by cdickson on Mon, 21 Feb 2022 11:01:31 +0200

java backend to achieve addition, subtraction, multiplication, division and proportion calculation

java backend to achieve addition, subtraction, multiplication, division and proportion calculation In Java The math package provides the API class BigDecimal, which is used to accurately calculate the number of more than 16 significant bits. BigDecimal creates objects, so you cannot directly perform mathematical operations on its objects using ...

Added by hashim on Mon, 21 Feb 2022 10:58:19 +0200

Linux environment intrusion emergency and troubleshooting

1, Account security 1. User information file / etc/passwd # Format: account:password:UID:GID:GECOS:directory:shell # User name: Password: user ID: group ID: user description: Home Directory: shell after login root:x:0:0:root:/root:/bin/bash # View logged in users: cat /etc/passwd | grep /bin/bash # View users with UID=0 awk -F: '$3==0{print ...

Added by pkallberg21 on Mon, 21 Feb 2022 10:52:15 +0200

Spring source code analysis (16): refresh preparebeanfactory source code analysis

1, Foreword In this blog, we mainly introduce the prepareBeanFactory method, the initialization preparation of the bean factory, setting some attribute values of the bean factory, which interfaces to ignore, which beans to register, and which bean post processors to set, etc. Next, let's look at the specific source code analysis, and here we a ...

Added by Tom_LR on Mon, 21 Feb 2022 10:48:32 +0200