System UI native tower replaced by five grid tower
As shown in the figure below: to customize Google's native integrated tower icon into a grid icon, the relevant code flow:
The native signal tower is shown in the figure below:
Schematic diagram of customized five grid signal tower:
The original scheme is drawn by SignalDrawable according to the current signal ...
Posted by ShaolinF on Mon, 18 Nov 2019 09:46:44 -0800
Filter in spring cloud Zuul
1. Import dependency information. Since Zuul depends on feign and hystrix, you need to import the corresponding package
<!--Add to Eureka Client dependency-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> ...
Posted by davidjam on Mon, 18 Nov 2019 09:35:34 -0800
OkHttp3 source code details Request class
Every network request is a request. Request is the encapsulation of URL, method, header and body. It is also the encapsulation of request line, request header and entity content in Http protocol
public final class Request {
private final HttpUrl url;
private final String method;
private final Headers headers;
private final RequestB ...
Posted by gazever on Mon, 18 Nov 2019 01:39:59 -0800
About the record of java.lang.StackOverflowError in Jenkins building Git project
Today, Jenkins was configured to build a Git project. The following problems were encountered, which made it impossible to build
Parsing POMs
Injecting SonarQube environment variables using the configuration: sonarqube-5.5
FATAL: null
java.lang.StackOverflowError
at sun.reflect.GeneratedMethodAccessor7533.invoke(Unknown Source)
at sun. ...
Posted by dennyx on Sat, 16 Nov 2019 12:50:06 -0800
Cas implementation of subsystem login and mutual kick
Implementation ideas
1. A class, which maintains a map of the logged in user, takes out the corresponding session of the last user every time when logging in, and adds an expired attribute ID lasthttpsession.setattribute (be ﹣ "your account is logged in at another location, and you are forced to log off")
2. Write ...
Posted by drorgo on Sat, 16 Nov 2019 09:21:31 -0800
Getting started with Google Assistant SmartHome
demand
Through Google Assistant to control some slave devices (Light, Washer and other devices), a short video on Youtube introduces the process of Google Assistant to control SmartHome. Integrating Smart Home Devices with the Google Assistant
Smart Home development documentation
Google Assistant controls third-party slave d ...
Posted by ieda on Wed, 13 Nov 2019 10:55:37 -0800
[daily] gocron source reading - use go mod to manage and start gocron depending on source code
Starting from Go1.11, golang officially supports the new dependency management tool, go modgo mod download: download the dependent module s to the local cachego mod edit: edit go.modgo mod graph: print module dependency graphgo mod init: initialize go.mod in the current directory (that is, a new go.mod file will be created)Go module tidy: reorg ...
Posted by dineshthakur on Wed, 13 Nov 2019 06:44:41 -0800
Development efficiency optimization of automatic construction system Gradle Part 1
Alibaba P7 mobile Internet architect advanced video (in daily update) for free, please click: https://space.bilibili.com/474380680
This article will introduce the automatic build system Gradle as follows:
The relationship between gradle and android gradle plug-in
Basic use of the Gradle Transform API
I. The relationship between gradle and and ...
Posted by bdurham on Wed, 13 Nov 2019 02:42:54 -0800
Regular expressions in Shell scripts
Bowen catalogDefinition of Regular Expression2. Extended Regular Expression Metacharacters3. Text Processor
Definition of Regular Expression
Regular expressions are also called regular expressions and regular expressions.It is often abbreviated as regex, regexp, or RE in code.Regular expressions are descriptions that use a single string to m ...
Posted by codebuilder on Mon, 11 Nov 2019 11:58:45 -0800
JavaWeb learning Servlet series 19 HttpServletRequest get request header content
In this article, we will learn the related operations of HttpServletRequest on request header. In fact, there are two methods to learn. The first is to get the value of specific attribute in request header. The second method is to get all attributes. The return is an enumeration type.
1. Get the value of name in a request h ...
Posted by chris_s_22 on Sun, 10 Nov 2019 08:46:13 -0800