centos nginx https configuration

1. What if you want to configure a domain name to a specified directory server { listen 80; server_name Change your domain name here,for example baidu.com; set $root_path '/home/wwwroot/tapai_html/'; root $root_path; index index.html index.php index.htm; ...

Posted on Wed, 06 Nov 2019 13:51:20 -0500 by AVATAr

P1016 budget simulation greed of travelers

Title Description Mo Mo has purchased a set of N color brushes (some of them may be the same color), which are arranged in a row. You need to answer Mo Mo's questions. Mo Mo will issue the following instructions to you: 1. The Q L R representative asks you how many different colors there are from the L brush to the R brush. 2. R P Col replac ...

Posted on Mon, 04 Nov 2019 13:13:52 -0500 by aa-true-vicious

P1251 napkin plan (network flow)

The restaurant will need to use a new Ri napkin every day, and it will also produce an old Ri napkin. The unit price of new napkin purchased every day is p yuan, and the old napkin produced every day can be sent to the quick cleaning department. Each napkin costs c1 yuan and can be used in i + v1 days. It can also cost c2 yuan to send each pi ...

Posted on Thu, 31 Oct 2019 22:20:31 -0400 by madhukar_garg

Flink learn from 0 to 1: build Flink 1.6.0 environment on Mac and get started with running simple programs

Preparation Install and check the version number of Java. Java 8 is recommended. Install Flink 1. It is very convenient to install Flink on Mac OS X. It is recommended to install through homebrew. brew install apache-flink 2. Check and install: flink --version Result: Version: 1.6.0, Commit ID: ff472b4 3. Start flink zhisheng@zhishen ...

Posted on Mon, 28 Oct 2019 11:48:27 -0400 by kbascombe

Rough functions and sets in python

function Function: realize a function, understand the function as a tool, and use the tool in case of problems Advantages: functions are more convenient, reusable, and can be used in multiple scenarios 1. Functions with parameters name='lzs-nice' nane.split('-') ##Split with - 2. Function with return value def add_sum(num): ##Define ...

Posted on Mon, 21 Oct 2019 16:05:54 -0400 by Sneo

Python crawler, crawling for comics

The result graph of the last crawl The final result is that each cartoon is saved by chapter.   Operating environment IDE VS2019 Python3.7 Chrome,ChromeDriver Chrome and Chrome Driver versions need to correspond to each other First up, the code is very short, with only 50 blank lines, thanks to python's powerful library import os ...

Posted on Thu, 03 Oct 2019 04:54:19 -0400 by scavok

Configuring Perfect ACMer Environment with Xcode

Preface As\(ACMer\\\\\\\\\\\\ \ (vscode) is powerful, but its shortcomings are obvious when compared with integration (IDE), which is that there is no perfect (Debug\) function. And(Xcode\) just has this function, but it seems a little clumsy in other aspects. After exploring the Internet, it gradually realizes the functions of\(Xcode+vim+mult ...

Posted on Thu, 26 Sep 2019 11:43:03 -0400 by banjax

Python 3 Web Crawler Actual Warfare - 25, requests: Advanced Usage

In the previous section, we learned about the basic usage of Requests, such as GET, POST request and Response object. In this section, we will look at some advanced usage of Requests, such as file upload, proxy settings, Cookies settings, and so on. 1. File upload We know that Reqeuests can simulate the submission of some data. If some website ...

Posted on Sat, 03 Aug 2019 11:43:46 -0400 by chingwaah

Change Software Source

1. Reasons Linux systems install and update most software through the package manager, which downloads packages from the server (software source).Most software sources on Linux systems are foreign addresses and access speed is slow. Changing the software source to domestic source can greatly improve the speed of software download and update. 2. ...

Posted on Fri, 12 Jul 2019 12:50:29 -0400 by Basdub

Use python to find the "tagged" photos

Environmental preparation The following two third-party modules can be installed directly through pip, where py36 is used as the running environment. python3.6 requests exifread thinking List Folder Contents Pull data set Traversing the set to get exif Existence information collation, and get the entity address Copy files to the results s ...

Posted on Sun, 07 Jul 2019 19:53:47 -0400 by sarijit