WebView disconnection prompt

For reprint, please indicate the source. For rights protection: https://www.cnblogs.com/tangZH/p/9913968.html    Rewrite the methods in WebViewClient, and then WebView.setWebViewClient(mWebViewClient); WebViewClient mWebViewClient = new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, Strin ...

Posted by nonso on Mon, 09 Dec 2019 18:19:02 -0800

Firewalld sharing Internet and building local yum warehouse

1.firewalld sharing Internet 1. Server operation (server with external network) 1. Turn on the firewall and join the startup [root@zeq ~]# systemctl start firewalld [root@zeq ~]# systemctl enable firewalld 2. Remove the rule that the default owner can access ssh [root@zeq ~]# firewall-cmd --remove-service=ssh --permanent 3. Add only allow 10.0. ...

Posted by Jaehoon on Mon, 09 Dec 2019 14:22:34 -0800

GlusterFS for Kubernetes persistent storage

GlusterFS is an open-source distributed file with strong horizontal expansion ability. It can support several petabytes of storage capacity and thousands of clients. It is interconnected into a parallel network file system through the network. It has the characteristics of expansibility, high performance and high availability. Premise: you mu ...

Posted by raje on Mon, 09 Dec 2019 11:17:00 -0800

Building a load balancing cluster based on direct routing mode (DR)

For the working principle and overview of LVS load balancing, please visit: LVS load balancing cluster of Centos 7 For detailed configuration of load balancing cluster in address translation (NAT) mode, please visit: Building load balancing cluster based on address translation (LVS-NAT) mode I. start to configure DR mode LVS preparation:Four C ...

Posted by thomasgrant on Mon, 09 Dec 2019 10:17:07 -0800

002. NFS architecture of kickstart deployment

One preparation 1.1 complete architecture: Kickstart+DHCP+NFS+TFTP+PXE 1.2 component application Kickstart server IP: 172.24.8.12 DHCP: provide client IP, gateway, image path, etc; TFTP: sharing pxelinux.0, initrd.img, vmlinux, isolinux.cfg, boot.msg, vesemanu.c32, splash.png files NFS: share ks.cfg and all CD files Note: this ks.cfg file and a ...

Posted by jackson4me90 on Mon, 09 Dec 2019 06:58:04 -0800

Use Python to crawl the information about girls'underwear and explore their preferences

Continue to analyze the crawler data analysis articles today, let's take a look at the acquisition and analysis of NetEase's critical commodity reviews. ​ NetEase Comments Crawling Analyzing Web Pages ​ Comment Analysis Enter the official website of NetEase Strict Selection, search for "bra", and then order a commodity at will. ​ On t ...

Posted by johncox on Mon, 09 Dec 2019 04:08:19 -0800

SSH and SFTP usage of Paramiko

Catalog 1. overview 2. Basic use of paramiko 2.1 introduction to key parameters of sshclient 2.2 common sshclient examples 2.2.1 log in by user name and password: 2.2.2 log in by user name and password (transport mode) 2.2.3 log in by user name and key 2.3 introduction to ke ...

Posted by gilbertwang on Sun, 08 Dec 2019 23:14:10 -0800

input(type='file ') upload multiple photos and display them to the background

The following content is the result of network excerpt and practice modification. If it is the same, please understand!!!!   1. First, the front-end page code: Where, < input type = "file" id = "file_input" name = "filepath" multiple = "multiple" / >, the multiple attribute needs to be set <styl ...

Posted by noise on Sun, 08 Dec 2019 21:25:56 -0800

Retrofit2.0 set connection timeout

Retrofit2.0, a network request framework, has been in use for a long time. Recently, there was an episode. There is an interface that returns a large amount of data due to business reasons. When the network is not good, the request fails That is to say, the onfailure() method is called back. After testing, the method will be called back in abou ...

Posted by exally on Sun, 08 Dec 2019 18:47:34 -0800

The use of Java singleton pattern

Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. https://blog.csdn.net/u010046908/article/details/50750731 1. Definition of singleton mode Ensure that there is only one ...

Posted by anto91 on Sun, 08 Dec 2019 07:07:58 -0800