Configuration of IPV4 in Linux

The nmcli connection show command enables you to view the identified network card name. [root@localhost ~]# nmcli connection show //Name UUID type device ens33 f45a714b-7ccc-4e58-9f52-e8a6c3027a15 802-3-ethernet ens33 virbr0 32b28b6a-4b00-4e7c-9a41-2217b2c25449 bridge virbr0   The network card configura ...

Posted by Pandolfo on Mon, 06 Jan 2020 14:40:34 -0800

Record the filling process of a multi-process print log using the Python logging library

Background: Project uses Python's own logging library to print logs The project is deployed on a Centos7 machine Project uses gunicorn multi-process deployment Process: 1. LOG Log Code Encapsulation: Use the logging library and set when='MIDNIGHT', split the log in days, the log of the previous day will be automatically added with the date of ...

Posted by bmcconkie on Mon, 06 Jan 2020 13:00:56 -0800

linux File System Management Trilogy Two: Creating a File System

The meaning of creating a file system is to format a hard disk partition and create different file systems in different formats. Format: Low-level formatting: Performs before partitioning, mainly partitioning tracks of hard disks, etc. Advanced formatting: partitioned and executed to create a file system What you do when you create a file s ...

Posted by alcibar on Mon, 06 Jan 2020 09:26:44 -0800

Python opencv: reading, modifying and displaying pictures

opencv+Python is used to learn the basic operation of image processing. Now it is sorted out as follows, as learning notes and forgetting records. 1. Picture loading You can read the picture from the local path and get its size: import cv2 img = cv2.imread('Tree.jpg') shape = img.shape The results are as follows: 2. Pic ...

Posted by spider0176 on Mon, 06 Jan 2020 00:49:18 -0800

Analysis of Three Parameters of Navigation Hook

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Global guard router.beforeEach((to,from,next)=>{ //Jump from From to // To: Routing object to the destination to be reached ...

Posted by Rowno on Sun, 05 Jan 2020 21:31:22 -0800

Crawler - crawling web page data into form

Recently, due to personal needs, self-study crawlers from related books and online materials. The target website is http://mzj.beijing.gov.cn. The content is sorted and screened and stored in excel format. First, the content of the table is set. The encoding format is defined as utf-8. Add a sheet table, where the head is the ...

Posted by rrhody on Sun, 05 Jan 2020 16:38:22 -0800

python3 crawler grabs job information code of Zhilian

On the code, if you have any questions, please leave a message. # -*- coding: utf-8 -*- """ Created on Tue Aug 7 20:41:09 2018 @author: brave-man blog: http://www.cnblogs.com/zrmw/ """ import requests from bs4 import BeautifulSoup import json def getDetails(url): headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Geck ...

Posted by sonny on Sun, 05 Jan 2020 10:45:34 -0800

Implementation of non interactive sftp upload and download with Python

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/u010950854/article/details/62233538 Implementation of non interactive sftp upload and download with Python Install Paramiko Python's Library Paramiko implements the ssh and s ...

Posted by j0hn_ on Sun, 05 Jan 2020 10:39:26 -0800

Spring Conditional annotation @ Conditional

Spring 4 provides a more general way to create condition based beans, using @ Conditional annotations. The following example will take different operating systems as conditions, and we will construct judgment conditions by implementing the Condition interface and overriding its matches method. For example, run the program under Windows to outp ...

Posted by aesthetics1 on Sun, 05 Jan 2020 06:28:13 -0800

Using phantomjs to screen the web page

PhantomJS is a server-side JavaScript API based on WebKit. It fully supports the web without browser support. It supports various Web standards in a fast and native way: DOM processing, CSS selectors, JSON, Canvas, and SVG. PhantomJS can be used for page automation, network monitoring, page screenshots, and interface free testi ...

Posted by ElectricRain on Sat, 04 Jan 2020 17:22:07 -0800