Use and understanding of surface view
Drawing interface stuck has always been the pain of Android developers. Today, let's look at surface view, known as sub thread drawing, double buffering mechanism, no stuck.
SurfaceView has the following features:
1 have independent drawing surface;
2. We need to dig a hole in the host window t ...
Added by bob_dole on Thu, 31 Oct 2019 07:01:14 +0200
Learning product purchase summary [x] (search solution Solr II)
Highlight
The key words entered by the user are displayed in red font in the title, which is the highlight commonly used in search.
Back end code:
private Map searchList(Map searchMap){//Created condition, used for query.
Map map=new HashMap();//Create a Map object to return highlighted data
Highlig ...
Added by Zilvermeeuw on Wed, 30 Oct 2019 20:11:42 +0200
Error in Request method 'POST' not supported
It's a mistake to make a simple change today.
If the transmission mode is not correct, there is usually a problem with the transmission parameters, and there is a mapper writing error. But the author is using the auto generation tool, so did not look carefully, resulting in mapper error.
This is the cor ...
Added by Manat on Tue, 29 Oct 2019 19:57:29 +0200
[R language string processing] stringr package
Main content of stringr package: insert code piece here
1. String splitting
2. STR replace all
3. String extraction tool
4. String interceptor - str_sub
The four most common methods in string processing are "disassemble, replace, extract and fetch". The stringr package is highly recommended. I ...
Added by ud2008 on Sat, 26 Oct 2019 18:05:13 +0300
[source code analysis] usage and rules of AsyncTask
Introduction
AsyncTask, I believe you are familiar with it. It encapsulates Thread and Handler internally, which allows us to put some time-consuming operations into AsyncTask and update the results to the UI in time. AsyncTask is mainly used for short-term and time-consuming operations. It is not rec ...
Added by [/Darthus] on Fri, 25 Oct 2019 09:03:57 +0300
[Android JetPack series] LiveData
I. Preface
1. What is LiveData
LiveData is a data holding class. It has the following characteristics:
Data can be subscribed by observers;
Be able to sense the life cycle of components (Fragment, Activity, Service);
Only when the component is active will the observer be notified of the data update;
2. What LiveData can do for us
It can ens ...
Added by mcdsoftware on Thu, 24 Oct 2019 10:22:33 +0300
spring implements injection for static attributes of classes
We know that under normal circumstances, a bean of spring depends on other resources, such as properties or other beans. You can use @ Value or @ Autowired directly. These two annotations are equivalent to the property nodes when the spring application context xml file defines beans. Equivalent to calling the set method of each property.
...
Added by pnoeric on Thu, 24 Oct 2019 01:03:52 +0300
Python -- Network Programming 3
Socket socket (module): responsible for receiving data from the transport layer, processing it, and handing it to the operating system from the bottom layer.
Effect
To avoid the use of interfaces and protocols in each layer of computer learning, socket has encapsulated all interfaces, which is convenient to use and improves development effi ...
Added by incubi on Wed, 23 Oct 2019 20:54:31 +0300
idea SMS verification
idea SMS verification (SMS interface: Alibaba cloud; message middleware: activeMQ)
It is mainly divided into two steps: 1. Create sending message 2. Create receiving message
1. Create a message
1.1 create maven project
1.2 pom.xml file import dependency
Note: sometimes the package of aliyun will not be automatically downloaded by idea, so ...
Added by romzer on Wed, 23 Oct 2019 18:39:23 +0300
Named access control list configuration experiment
Experimental configuration and requirements
1. Configuration address of four hosts
PC1:
PC1> ip 192.168.100.100 192.168.100.1
Checking for duplicate address...
PC1 : 192.168.100.100 255.255.255.0 gateway 192.168.100.1
PC2:
PC2> ip 192.168.10.10 192.168.10.1
Checking for duplicate address...
PC1 : 192.168.10.10 255.255.255.0 gateway 1 ...
Added by curtm on Thu, 17 Oct 2019 17:47:52 +0300