WebView reload error Error Domain=WebKitErrorDomain Code=102 “Frame load interrupted”

 WKWebView needs to be reloaded on a particular occasion, but goes directly back to the failed proxy method and reports the following error Error Domain=WebKitErrorDomain Code=102 “Frame load interrupted” After looking through the data and testing it, the conclusion is that WebView can reload and succeed when it loads links like “http:\\www.baidu.com”, but loading HTML data is unsuccessful and has not been solved yet.The way to solve the problem remains to be verified.

GPIO input and output modes (push pull, open drain, quasi bidirectional port) detailed explanation

Summary Not many people have a thorough understanding of the internal structure and patterns of GPIO (General Purpose Input and Output) processors. Recently, Baidu has searched for a large amount of information on this part, and there is no consensus on many of these issues.This article lists all the questions that IO involves as far as possible, explains clearly the questions that have definite answers, and puts forward the questions where there are still questions for discussion. Generally speaking, IO’s functional modes can be roughly divided into three categories: input, output and ...

Digital potentiometer

Potentiometers are often used for parameter calibration, such as adjustable power supply, amplifier gain regulation, adjustable filter, LCD backlight regulation, noise-free adjustment of sound, etc. There are mechanical and digital types. Mechanical advantages are: fixed after power on, high voltage and high current resistance, but poor temperature characteristics, greatly affected by mechanical vibration Electronic: digital control can be changed, good stability, good temperature characteristics, the shortcomings are narrow voltage and current range, narrow bandwidth. The output range and cu...

AQS detailed explanation

Transfer: http://www.cnblogs.com/waterystone/p/4920797.html First, an overview   When it comes to concurrency, you have to talk about ReentrantLock; when it comes to ReentrantLock, you have to talk about AbstractQueued Synchronizer (AQS)!   Class is its name.Abstract queue synchronizer,AQSA set of definitions is defined.Multithreaded access to shared resourcesSynchronizer framework,Many synchronous class implementations rely on it.,Such as commonly used ReentrantLock/Semaphore/CountDownLatch…。   What is thread synchronization?:Thread synchronization refers to multi...

How to convert HDF5 files into tflite files

After we train the model with keras, we usually save the model format type as hdf5, that is. H5 file. But if we want to migrate to the mobile end, especially the one supported by tensorflow, we need to convert it to tflite. How to convert? In tensorflow1.9 and above versions, it is convenient to convert by command line. tflite_convert --output_file=/home/yourname/Documents/tensorflow/images/500pics2/model/my_model.tflite --keras_model_file=/home/yourname/Documents/tensorflow/images/500pics2/model/my_model.h5 Other options are available at https://github.com/tensorflow/tensorflow/blob/master...

Configuring the Java environment variable does not work.

My computer has several versions of jdk, JDK1.6 and jdk1.8, but my environment variables are set to jdk1.6. However, opening CMD to see Java version shows 1.8, which makes me puzzled. Later, problems were discovered. Problem: under the path variable, JDK1.8 automatically generates variables for us, covering 1.7 of the original version. Solution: 1. remove the C:\ProgramData\Oracle\Java\javapath in the path variable.                   2.Move the%JAVA_HOME%/bin in the environment variable Path to the front end. At this time, the Java -version again in CMD will display the information o...

Sklearn — data set invocation and Application

After a long time, I finally remembered that I had not finished writing here. Let’s write a simple piece of the sklearn library today, including data set calls, clustering, contour coefficients, and so on. Data set function Chinese translation Task type Data scale load_boston BostonHouse price regression 506*13 fetch_california_housing Housing in California regression 20640*9 load_diabetes Diabetes regression 442*10 load_digits Handwriting classification 1797*64 load_breast_cancer Mammary cancer Classification and clustering (357+212)*30 load_iris Iris Classification and clustering (50*...