Realize browser positioning through Gaode map API [and improve positioning accuracy and obtain detailed location information]

Directory I. Introduction: 2. Text: 1. Register the developer of Gaode map and create an application 2. Develop with the help of official examples 3. Modify the official development example 4. Obtain detailed location information 5. Detailed code 3. Ending: Xiao Zhou has not been in contact with programming for a long time, and he […]

Two production forms of rootfs

1. Overview of root file system 1.1. Why do we need a root file system? (1) The application of the init process is on the root file system (2) The root directory of the kernel/provided by the root file system (3) The application layer configuration (etc directory) after the kernel is started is on the […]

Python plays .reanim animation (3: performance optimization and other details)

Article directory Fix performance issues resource manager See the code here. Use python -m anp to open a .reanim animation player. Almost all animations can be played after all assets are loaded (which takes a little longer). Play simple animations without loading resources. Fix performance issues In the previous two articles, we have completed a […]

Measuring Node.js and Page Performance with the Event Loop

Event Loop Everyone should understand the Event Loop mechanism. Let me repeat the summary first. The Event Loop of Node.js is different from that of Javascript. Intuitively, there are two more APIs, setImmediate and process.nextTick. Secondly, due to the different runtimes, Html Standrad will consider that different sources such as multiple pages and DOM operations […]

CDH’s HIVE exits abnormally Permission denied: user=hive, access=WRITE, inode=”/tmp”:hdfs:supergroup:drwxr-xr-x

CDH shows abnormal exit Check which server the HiveServer2 instance is on, and check the log /var/log/hive/hadoop-cmf-hive-HIVESERVER2-hadoop105.log.out. The log error is as follows: 2023-05-23 15:18:05,331 ERROR org.apache.hive.service.server.HiveServer2: [main]: Error starting HiveServer2 java.lang.Error: Max start attempts 30 exhausted at org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:609) ~[hive-service-2.1.1-cdh6.3.2.jar:2.1.1-cdh6.3.2] at org.apache.hive.service.server.HiveServer2.access$700(HiveServer2.java:94) ~[hive-service-2.1.1-cdh6.3.2.jar:2.1.1-cdh6.3.2] at org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:827) [hive-service-2.1.1-cdh6.3.2.jar:2.1.1-cdh6.3.2] at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:696) [hive-service-2.1.1-cdh6.3.2.jar:2.1.1-cdh6.3.2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) […]

The PWM output mode of GD32F4xx controls the transformation of the lamp

Introduction to PWM principle PWM basics 1. Introduction to PWM PWM (Pulse Width Modulation) is a very effective technology that uses the digital output of a microprocessor to control an analog circuit. PWM is a method of digitally encoding the level of an analog signal. Through the use of high-resolution counters, the square wave duty […]

springboot integrates Redis to save commodity and commodity inventory information

1. Add dependencies and configuration <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> Add the following configuration in application.yaml: spring: redis: # address host: localhost # port, default is 6379 port: 6379 # password password: # Connection timeout timeout: 10s lettuce: pool: # The minimum idle connection in the connection pool min-idle: 0 # The maximum idle connection in […]

Element table secondary packaging is super detailed with code (attached form slot, header slot, single choice and multiple choice, automatic selection according to data)

Recently, I have been working in the background management system, and the search and form are used a lot. Based on the secondary packaging of the element table, it is as follows first picture parent component <div class=”content_main”> <div class=”search_card”> <wpform style=”margin-top:20px” :objForm=”objForm” :formData=”formData” @searchSubmit=”searchSubmit(val)” ></wpform> </div> <div class=”tableContent”> <wp_table ref=”mytable” :tableData=”pendingReviewdata” @rowClick=”rowClick” :headerColumns=”pendingReviewHeader” :sendHeight=”sendHeight”> […]

Convert XML and JSON formats to txt

The XML is as follows: convert code import os import xml.etree.ElementTree as ET # xml file storage directory (change to your own file name) input_dir = r’C:\121\Annotations’ # Output txt file directory (folder created by yourself) out_dir = r’C:\121\txt’ class_list = [] # Get all xml files in the directory def file_name(input_dir): F = [] […]