modal mode of react router 4. X
From 2.8.x to 4.x, it's a hard journey. There are not many online materials, so many things can only be chewed. Translate the key examples on the official website once, so that you can understand them well and improve your translation level.
Before the program routing, there were frequent hops. On the one hand, the customer ex ...
Posted by rokchik on Fri, 31 Jan 2020 04:24:57 -0800
Learning Android ConstraintLayout
Advantages:
Reduce layout nesting
Better performance
More powerful
Reference blog:
Android ConstraintLayout use details
ConstraintLayout fully parsed. Let's optimize your layout
ConstraintLayout visual operation
Performance advantages of ConstraintLayout
Introduction steps
compile 'com.android.support.constraint:con ...
Posted by new2code on Thu, 30 Jan 2020 23:46:12 -0800
21 days to build a distributed crawler (I) urllib Library
1.1.usage of urlopen function
#encoding:utf-8
from urllib import request
res = request.urlopen("https://www.cnblogs.com/")
print(res.readlines())
#urlopen Parameters
#def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
# *, cafile=None, capath=None, cadefault=False, context=None):
1.2.urlretriev ...
Posted by greywire on Thu, 30 Jan 2020 20:29:55 -0800
UI Interface Design - Android
Android UI Interface Design - with Reference Documents
UI Interface Design
1. Basic Components
1. Text class components
1.1 TextView
Reference Document docs
1.2 EditText (a subclass of the textview component)
2. Button class components
2.1 Button, a common button component (a subclass of the tex ...
Posted by lajollabob on Thu, 30 Jan 2020 18:38:47 -0800
Talk about the priority of artemis message
order
This paper mainly studies the priority of artemis message
priority
activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java
public class CoreMessage extends RefCountMessage implements ICoreMessage {
//......
protected byte priority;
public byte getPriority() {
...
Posted by knowj on Wed, 29 Jan 2020 07:54:31 -0800
Java string constant pool
Character string
Literal amount of string: refers to the string itself, such as "Java", "Hello".
String object: for example, new String("abc") or direct String s="str". The following "str" is also a string object.
String reference: a reference is a variable that points to the corresponding stri ...
Posted by raw100 on Wed, 29 Jan 2020 04:59:03 -0800
Python full stack advanced programming skills 1. Class and object depth
Article directory
1, Duck type and polymorphism
2, Abstract base class (abc module)
1. definition
2. Application scenario
Determine the type of an object
Forcing a subclass to implement certain methods
3, Two pairs of concept discrimination
1.isinstance and type
2. Class and object variables
4, ...
Posted by stiano on Wed, 29 Jan 2020 04:13:51 -0800
RabbitMQ learning experience
The following is an introduction from MQ to RabbitMQ, and a demo of the six working modes of RabbitMQ
MQ:
MQ is called Message Queue. It is translated as Message Queue. MQ is a communication method between applications. Applications communicate by writing and retrieving queued application specific d ...
Posted by websiteguy on Wed, 29 Jan 2020 03:56:06 -0800
Linux file and directory operation commands
1,cd
(change directory) switch to the specified directory
-Return to last directory
.. Return to the upper directory
Enter to return to home directory
/Root directory
2,cp
(copy) copy a file or directory
-r -R Recursively copy the contents of this directory and its subdirectories
-p Copy past with file properties
-f Force copy without aski ...
Posted by 0riole on Wed, 29 Jan 2020 03:46:43 -0800
How to find ContentProvider from Uri in source Teahouse
Introduction
We all know the use of ContentProvider, one of the four components, which provides you with a unified data access format. The caller doesn't need to care where the data comes from (such as DB, XML file, network, etc.), just get the corresponding ContentResolver to add, delete, query and m ...
Posted by sridhar golyandla on Wed, 29 Jan 2020 03:21:11 -0800