At present, many browsers have strengthened the security of HTML and require the configuration of HTTPS.
The following example is the Apache configuration HTTPS process on CentOS7.
First, generate certificates.
Using OpenSSL to generate key and certificates:
mkdir /etc/ssl/private
chmod 700 /etc/ssl/private
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
Two. Install and configure SSL module.
yumInstallation module
yum install mod_ssl
vim /etc/h...
One, CO range
A collaboration is a computer program component that generates subroutines for non-preemptive multitasking, allowing different entry points to pause or start executing programs at different locations
It can be seen as a function that can be pause and a generator.
Two, common package
asyncio,tornado,gevent
Three, the realization of the association.
yieldReturn
sendcall
Four, the four states of the association.
inspect.getgeneratorstate(…)Function confirms that this function returns one of the following characters:
GEN_CREATER:Wait for execution
GEN_RUNNING:The interpret...
1.To identify the login validation code, you need to install Tesseract-OCR at http://jaist.dl.sourceforge.net/project/tesseract-ocr-alt/tesserAct-ocr-setup-3.02.02.exe, the next step is after installation.
2.Precondition:
A==PIL has been installed (3.6 version is Pillow).
B==The computer has been installed Tesseract-OCR.
C==If the tool is Pycharm, the pytesseract package must be introduced in Pycharm setting.
3.The code is as follows:
from selenium import webdriver
import time
import unittest
from PIL import Image
from PIL import ImageEnhance
import pytesseract
driver = webdriver.Ie()
drive...
To control average click price and save costs, we need to start with the following aspects:
1、Improve the quality if you can do that.
2、Control ranking, ranked third to five, click the price is certainly much lower.
3、PC terminal plan and mobile terminal plan are set up respectively.
4、Each city plans to make an accurate bid. The drawback is that it will be very troublesome to operate.
5、Relax the matching mode, bid according to the matching, the average click price will certainly be ...
Today’s program is a Hamlet word frequency statistics, that is, statistics of the frequency of each word in Hamlet. For the first time, I tried to use the top-down design method and the top-down execution method. A lot of errors have been recorded during this period, so as to avoid future recidivism.
Before programming, intercept one part of Hamlet online.It should be noted that when the txt type is saved, the encoding mode selects’utf-8′. Figure:
Next, analyze the whole programming topic and list the steps:
The first step is to open the file and read it and separate every ...
du -ah –max-depth=1 This is the result I want a to show all the files and folders in the directory (excluding subdirectories), h to be human-readable, and MAX-depth to be directory depth.
duThe command is used to see the size of disk space occupied by a directory or file. Common options are: Du -sh
Functions of du: `du` reports the amount of disk space used by the specified files and for each subdirectory(of directory arguments). with no arguments, `du` reports the disk space for the current directory.
Obviously, unlike DF, it is used to see the size of disk s...
When someone tells you that you can live forever, he must be lying to you. Baidu Bidding Package Year is so, let’s talk about what is Bidding Package Year, and Bidding Package Year fraud.
Believe that many enterprises have received similar calls, that is, the so-called “Bao Nian Bidding”, the other side of the idiom is what Baidu Bidding by click, burning money and so on, and for Bao Nian Bidding, you only need to pay a fixed amount of money every year, no matter how visitors click, you will not spend additional money. cutRemember, thi...
First, we introduce two key word price adjustment methods, and then introduce some basic principles of price adjustment.
First, single word price adjustment, using the “promotion live” tool in the bidding account.