Python 3 reptile (15) agent
Infi-chu:
http://www.cnblogs.com/Infi-chu/
1, Set up proxy
1.urllib
#HTTP proxy type
from urllib.error import URLError
from urllib.requests import ProxyHandler,build_opener
proxy='127.0.0.1:9743'
# proxy='username:password@127.0.0.1:9743 'username and password are placed at the beginning
proxy_handler=ProxyHandler({
'http':'http://'+proxy,
...
Posted by minus4 on Fri, 20 Mar 2020 08:45:12 -0700
[CV] license plate recognition and installation and a method of license plate correction
1. License plate recognition project installation
2. Method of license plate correction
1. License plate recognition project installation
https://blog.csdn.net/lilai619/article/details/796951091.git clone's latest documents
cd /opt/deploy
git clone https://github.com/sergiomsilva/alpr-uncons ...
Posted by evilMind on Fri, 20 Mar 2020 07:38:18 -0700
iOS componentization - Cocopods creates a private library
1, Create a folder
mkdir Module
2, Download Engineering Scaffold
pod lib create AaronSwift
Aaron Swift is the name of the component project you want to create. During the installation process, you will be prompted to enter the configuration of the project to be downloaded (as follows:), and then enter iOS, Swift, Yes, Quick and Yes. In the seco ...
Posted by BrandonKahre on Fri, 20 Mar 2020 04:48:48 -0700
How to use Thanos to implement Prometheus multi-cluster monitoring
Prometheus is the default monitoring scheme in Kubernetes, which focuses on alerting and collecting and storing recent monitoring indicators.However, Prometheus also exposes some problems at a certain cluster size.For example, how can PB-level historical data be stored in an economical and reliable way without sacrificing query time?How do I ac ...
Posted by KoshNaranek on Fri, 20 Mar 2020 01:16:48 -0700
How to detect DIV size change?
I have the following example html, which has a DIV with a width of 100%.It contains some elements.Internal elements may be repositioned and div sizes may change when executing window resizing.I asked if it was possible to hook up div size change events?And how do you do that?I currently bind the callback function to the jQuery resize event on ...
Posted by Thumper on Fri, 20 Mar 2020 01:11:22 -0700
Using mysql module of python
PyMySQL installation
Before using PyMySQL, we need to make sure PyMySQL is installed.
PyMySQL download address: https://github.com/PyMySQL/PyMySQL.
If it is not already installed, we can use the following command to install the latest version of PyMySQL: $ pip install PyMySQL
If your system does not support the pip command ...
Posted by ganlal on Thu, 19 Mar 2020 09:10:11 -0700
Create operator in RxJS
The creation operators in RxJs are the starting point of creating data flow. These operators can create a flow out of nothing or according to other data forms. The Observable constructor can directly create a data flow, such as:
const $source=new Observable(observer=>{
observer.next(1);
observer.next(2);
observer.next(3);
})
H ...
Posted by brij_theinvader on Thu, 19 Mar 2020 04:46:31 -0700
Prometheusf installation and use
Reference resources https://blog.51cto.com/14157628/2473866?source=dra
Before deploying Prometheus, due to the low configuration of the experimental environment, the original dashboard and Scope were deleted!
Before you actually deploy Prometheus, you should understand the relationships and functions among the components of Prometheus: 1) ...
Posted by [JayZ] on Wed, 18 Mar 2020 08:22:06 -0700
Docker compose deploy jumpserver fortress machine
1, Environment deployment
1. Build docker environment
yum -y install docker
2. Install docker compose
curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose
3. Create project directory
mkdir -p /data/jms
cd /data/jms
4. Download the doc ...
Posted by efron on Tue, 17 Mar 2020 11:02:24 -0700
Spring Learning Road 1
Spring Framework
brief introduction
The Spring framework was created due to the complexity of software development
Purpose: To solve the complexity of enterprise application development
Functionality: Replace EJB with basic JavaBean and provide more enterprise application functionality
Scope: Any Java application
Advantage:
Open Source Free F ...
Posted by mitch.craig on Tue, 17 Mar 2020 09:45:17 -0700