Review the past and learn the new: Explore the Android UI drawing and refreshing process

1. Description: Based on previous understanding, we know that the drawing of ui will eventually go to scheduleTraversals in Android’s ViewRootImpl to send and receive vsync signals for drawing, in ViewRootImpl The main thread will also be detected, which is what we call an exception when the sub-thread updates the UI. Like our commonly used […]

python socket programming 1 – socket creation parameter description and reference specifications

Write a custom directory title here 1. Creation of socket 1. Usage examples 2. Source code 2. Parameter description 1. The value of python 3.8 family 2. The value of python 3.8 type 3. The value of python 3.8 proto, this value is called `Assigned Internet Protocol Numbers` 3. Reference materials 1. Creation of socket […]

BGP path selection–Preferred Value

BGP attributes Routing attributes are specific descriptions of routes. All BGP routing attributes can be divided into the following four categories. Common BGP attribute types are shown in Table 1: Well-known mandatory: All BGP devices can recognize this type of attribute and must exist in Update messages. If such attributes are missing, the routing information […]

Refined solution to the bracket matching problem and ultimate stack design: uncovering the mysteries of the largest stack and the smallest stack

Directory Bracket matching problem Minimum stack Maximum stack Max stack and min stack are two important variants of extreme stack. The max stack is used to store the maximum value of the current match, and the min stack is used to store the minimum value of the current match. Bracket matching problem Let’s take a […]

Scheduling yard algorithm (infix expression->prefix/suffix expression)

There are many and detailed reference materials on the dispatch field algorithm on the Internet; and there are other methods to deal with the problem of converting infix expressions into prefix/suffix expressions processed by the dispatch field algorithm. Those who are interested can learn about it on their own. References: Algorithm – Shunting Yard Algorithm […]

SLAM Lecture 14 ch7 compilation error undefined reference to `fmt::v10::detail::throw_format_error(char const*)

[ 66%] Linking CXX executable pose_estimation_3d3d /usr/bin/ld: CMakeFiles/pose_estimation_3d3d.dir/pose_estimation_3d3d.cpp.o: in function `unsigned long long fmt::v10::detail::width_checker<fmt::v10::detail::error_handler>::operator ()<float, 0>(float) [clone .isra.0]’: pose_estimation_3d3d.cpp:(.text + 0xe): undefined reference to `fmt::v10::detail::throw_format_error(char const*)’ /usr/bin/ld: CMakeFiles/pose_estimation_3d3d.dir/pose_estimation_3d3d.cpp.o: in function `unsigned long long fmt::v10::detail::precision_checker<fmt::v10::detail::error_handler>::operator ()<float, 0>(float) [clone .isra.0]’: pose_estimation_3d3d.cpp:(.text + 0x2e): undefined reference to `fmt::v10::detail::throw_format_error(char const*)’ /usr/bin/ld: CMakeFiles/pose_estimation_3d3d.dir/pose_estimation_3d3d.cpp.o: in function `VertexPose::oplusImpl(double const*)’: pose_estimation_3d3d.cpp:(.text._ZN10VertexPose9oplusImplEPKd[_ZN10VertexPose9oplusImplEPKd] + 0xa9b): […]

Java–》4 kinds of references: strong and weak

Recommended links: Summary–》[Java] Summary–》[Mysql] Summary–》【Redis】 Summary–》[Kafka] Summary–》[Spring] Summary–》[SpringBoot] Summary–》[MyBatis, MyBatis-Plus] Summary–》[Linux] Summary–》[MongoDB] Summary–》[Elasticsearch] Java–》4 kinds of references: strong and weak 1. NormalReference = Strong = Normal = Default 2. SoftReference = soft 3. WeakReference = weak 4. PhantomReference = virtual 5. The difference between the four types of citations 1. Writing method 2. Recycling mechanism […]

Application of C++ prefix sum algorithm: Maximizing the minimum number of power supply stations in the city

Basic knowledge points involved in this article C++ algorithm: principles, source code and test cases of prefix sum, prefix product, prefix XOR including course videos dichotomy Title Give you an integer array stations with subscripts starting from 0 and length n, where stations[i] represents the number of power supply stations in the i-th city. Each […]

Android-SharedPreferences detailed usage

Directory SharedPreferences 1. Introduction 2. Understand 1 data storage 2 Data reading 3 common methods 3.1 getSharedPreferences() 3.2 edit() 3.4 remove() remove data 3.5 clear() clears data 3.6 commit() submits and saves data 3. Basic use 1 an example 4. Monitoring 5. Performance analysis 6. Points of attention during use 1 Get the SharedPreferences object […]