Instance Learning - Crawling Pexels HD Images (Asynchronous Loading)

Recently, when learning to crawl Pexels pictures, we found that the code in the book will throw out ConnectionError. After consulting the data, we know that it may be too frequently forbidden to apply to the web page, and Time.sleep() can be used to slow down the crawling speed. However, considering ...

Posted on Sat, 05 Oct 2019 08:45:05 -0700 by bloo

Logic Regression Fitting Two-Dimensional Data in Basic Papers of Deep Learning

From today on, I will record the footprints of in-depth learning. The purpose is very simple. I have nearly three weeks of correctly labeled validation codes. I want to train a usable model from scratch. Although I know there are many related models and demo s on the Internet, I still hope that I can personally develop a useful one. The main l ...

Posted on Sat, 05 Oct 2019 03:22:49 -0700 by dodginess

Flask Learning-4-server Object (token)

Data Encryption-sha1 import hashlib pwd='a123456' temp=hashlib.sha1(pwd.encode()) print(temp.hexdigest()) hash salt encryption from werkzeug.security import generate_password_hash,check_password_hash def password_hash(str): method = 'pbkdf2:sha1:2000' salt_length = 8 str_encode = g ...

Posted on Sat, 05 Oct 2019 01:30:38 -0700 by alexweber15

Centos7 php-fpm root runs and executes system commands such as kill

Centos7 php-fpm root runs and executes system commands such as kill The current system is installed in the Pagoda environment, PHP environment in the following directory: / www/server/php/72/etc. Modify php-fpm.conf [global] pid = /www/server/php/72/var/run/php-fpm.pid error_log = /www/server/php/72/var/log/php-fpm.log log_level = notice [www] ...

Posted on Fri, 04 Oct 2019 18:18:13 -0700 by Kerblam

Ext.form.Label component dynamically sets html values

Solution: (1) Ext.getCmp(id).setText('XXXX') can dynamically set the text value displayed by label, but there are individual numbers in the text that need to change the color display, need to add style, this method will display the styled label (html) in a text manner, but not be parsed by browsers. (2) Ext.getCmp(id).getEl().update ...

Posted on Fri, 04 Oct 2019 16:20:02 -0700 by Altairzq

Zabbix monitoring system series twelve: SNMP Traps active alarm

SNMPTrap monitoring is mainly used to monitor the active notification of equipment failure, such as storage monitoring of hard disk failure, network monitoring jitter. The overall process description is as follows: 1. The monitored object sends SNMPTrap information to the snmptrapd(Net-SNMP) server. 2. ...

Posted on Fri, 04 Oct 2019 13:55:33 -0700 by rolajaz

Attention Is All You Need (Transformer) -- Tensorflow

This paper is a paper. Attention Is All You Need (Transformer) Of Implementation of Tensorflow . I found a Tensorflow implementation code on github. I ran the data processing part. The model trained my notebook could not run, so I only ran a step to get the translation situation and corresponding lo ...

Posted on Fri, 04 Oct 2019 13:53:34 -0700 by Defibber

Linux Installation nfs Shared Files

Introduction nfs NFS network file system is often used to share static resources such as audio, video, pictures and so on. Shared resources will be placed in the shared directory of NFS and accessed through server mount. Server installation: yum install -y nfs-utils rpcbind perhaps yum install -y nfs-utils yum install -y rpcbind Client installa ...

Posted on Fri, 04 Oct 2019 13:19:26 -0700 by hyp0r

Encapsulating java applications with Docker

This article describes how to encapsulate a java application (cspj) using docker applications. This java application involves data persistence and RMI calls. 1. Introduction to docker docker is a container technology that encapsulates operating systems, file systems, networks, and so on, enabling the processes to run intact. Docker and virtual ...

Posted on Fri, 04 Oct 2019 12:38:01 -0700 by keigowei

Using sklearn to realize logistic binary classification for mnist

1. Contextual framework In this paper, we plan to use logistic regression to achieve two classifications for images with a value of 5 in the mnist data set. sklearn library is used to implement this function. Step 1: Loading data sets Step 2: Divide training set and test set Step 3: Using GridSearchCV g ...

Posted on Fri, 04 Oct 2019 10:31:39 -0700 by brewmiser