Android mobile terminal development code specification and formatting tool

principle There are several principles that can help you write code that meets the specifications without looking at the documents: If it is to modify the existing code, it should be consistent with the surrounding style If the system SDK is used for development, unless otherwise specified, the style shall be consistent with the system SDK New ...

Posted by cbassett03 on Wed, 05 Jan 2022 05:36:39 +0100

The interviewer asks you JVM, do you know where the bonus item is?

introduction In the process of interviewing others, the JVM memory model almost needs to be asked, although some people say that these are the interview to build an aircraft carrier and screw up the work. If you want to be a CRUD coder, you can choose not to know this. In the question and answer of JVM memory model, some people can say that o ...

Posted by msk_1980 on Tue, 04 Jan 2022 20:49:13 +0100

Day03-1 character type, string type

Character type Character constant: a single character char enclosed in single quotesThe bottom layer of the computer can only recognize binary data. If some character information is represented, the character will be converted to the corresponding decimal integer first, and then the decimal integer will be converted to binary integer recogniti ...

Posted by sillysillysilly on Tue, 04 Jan 2022 16:56:40 +0100

The use of volatile in singleton mode

Singleton mode The common writing methods of single case mode include lazy mode, hungry mode, double check mode, etc. Lazy mode is to create objects when you use them.Hungry man mode is a static object that has been loaded in advance.Double check mode is to check twice before and after locking to prevent multiple threads from creating multipl ...

Posted by Alk3m1st on Tue, 04 Jan 2022 07:08:01 +0100

C++_Primer_ Study notes_ Chapter 19 (special tools and technologies)

Chapter 19 (special tools and technologies) /1. Control memory allocation 1). Standard memory management mechanisms cannot be applied directly. Some applications need to customize the details of memory allocation, such as using the keyword new to place objects in a specific memory space.In order to achieve this goal, we need to overload the ...

Posted by wayz1229 on Tue, 04 Jan 2022 06:46:57 +0100

JAVA - multithreading three {multithreading state} JAVA starts from the foundation -- 3

Thread state new 1) Thread t= new Thread once the thread object is created, it enters the new state 2) When the start() method is called, the thread immediately enters the ready state, but it does not mean that the execution is scheduled immediatelyReady state (CPU scheduling operation)Blocking state (when sleep,wait or synchronous lo ...

Posted by TouranMan on Mon, 03 Jan 2022 14:12:45 +0100

From automatic differentiation to microprogrammable design

abstract Automatic Differentiation Automatic differentiation (AD) is a technology for efficient and accurate derivation of computer programs. It has been widely used in computational fluid dynamics, atmospheric science, industrial design simulation optimization and other fields. In recent years, the rise of machine learning technology also dri ...

Posted by hawnted on Mon, 03 Jan 2022 12:34:59 +0100

Introduction to OpenCV -- source code analysis of small face detection projects that can be used

0x00 overview of ideas The overall logic of the program is to recognize your face and save count (counter) pictures of your face, then exit, or press q while running. There are two important cycles 1. Call camera loop continuously ----- while true 2. Process the function of each face recognized by the recognition function ----- for xywh i ...

Posted by Hyperjase on Mon, 03 Jan 2022 12:19:58 +0100

06 adapter mode Quarkus implementation

Abstract: in this paper, an example scenario is used to describe the adapter (transformer) pattern in Gof 23 design pattern, which is implemented with Quarkus framework code, and the UML model of the implementation code is also given. Keywords: Gof 23 design pattern adapter pattern Quarkus 1 basic knowledge 1.1 standard definition Adapter patt ...

Posted by ljschrenk on Mon, 03 Jan 2022 08:46:32 +0100

C language: function

1. What is the function Wikipedia is defined as: subroutine 2. Library function The header file must be referenced when using library functions C + + library function interpretation link Here, the library function string assignment function strcpy is parsed //String assignment function strcpy #define _CRT_SECURE_NO_WARNINGS #include&lt ...

Posted by Rowno on Mon, 03 Jan 2022 03:01:39 +0100