The Application of Android N Multi-window: Painting in Painting

Android N preview version supports Picture in Picture mode for video playback. Picture-in-picture is a special type of multi-window mode, which is mainly used to play video in the background. Android TV devices already support Picture-in-Picture mode. In multi-window mode, users can still see applications in pause state, and applications in pau ...

Posted by mospeed on Sat, 13 Jul 2019 14:51:32 -0700

Python Learning Requests Library

The Requests Library in python is an encapsulated python utility that requests http and returns the corresponding results Initial Requests Library Official Documents http://cn.python-requests.org/zh_CN/latest/ Code Address https://github.com/kennethreitz/requests Requests Environment Preparation Install pip https://pypi.python.org/pypi ...

Posted by anthill on Sat, 13 Jul 2019 11:07:38 -0700

Scrapy Tutorial--A List of Top 3000 Articles in Blog Garden

I. Top 3000 Personnel List Pages 1) Go to the home page and find the blog Park score list. Here's the picture: Then we found the blog addresses of the top 3,000 gods. Through the analysis of word cloud, many Dashen's blogs have migrated to personal blogs. 2) Analyse the page structure: every td is a person. The first small is ranked The s ...

Posted by Notoriouswow on Sat, 22 Jun 2019 15:50:40 -0700

Using python to crawl articles on prose websites

image.png Configure python 2.7 bs4 requests Install sudo pip install bs4 with pip sudo pip install requests Brief description of the use of bs4 because it is crawling the web page, so we introduce find and find_all The difference between find_all and find_all is that different find returns the first tag and the content in the tag ...

Posted by massimoGornatti on Sat, 22 Jun 2019 11:32:39 -0700

Flask Series (8) - Flask-Migrate

Flask-Migrate In the actual development environment, database modification often occurs. Generally, we do not modify the database manually, but to modify the corresponding ORM model, and then map the model to the database. At this point, it would be very useful to have a tool dedicated to this kind of thing, and flask-migrate does it. Flask-m ...

Posted by coffeehead on Sat, 15 Jun 2019 18:04:43 -0700

Fast rollback using binlog2sql after Mysql misoperation

1. Overall explanation: DML(data manipulation language): They are SELECT, UPDATE, INSERT, DELETE and, like their names, are the languages used to manipulate data in a databaseDDL(data definition language): There are more DDLs than DML s. The main commands are CREATE, ALTER, DROP, etc. DDL is mainly used to define or change the structure of tabl ...

Posted by pdkv2 on Fri, 14 Jun 2019 10:38:07 -0700

Selecte search program understanding

1. Background Take on the previous blog post, because the selective search (ss) algorithm is needed in fast RCNN, so the SS paper and program are understood. In SS paper, we propose to use multiple color spaces to extract the same features in each color space. First, we get the initial region according to the previous algorithm, and then merg ...

Posted by pastijalan on Tue, 11 Jun 2019 12:10:38 -0700

Using haystack to realize the function of django full-text search engine

Preface django is a powerful web framework of python language. With some plug-ins, it is easy to add search functions to web sites. The search engine uses whoosh, which is a full-text search engine implemented by pure python. It is compact and simple. Chinese search requires Chinese word segmentation, using jieba. Direct use of whoosh in django ...

Posted by kataras on Thu, 30 May 2019 12:02:25 -0700

Implementation of Registration Mailbox Verification and Login Verification Code

Django Sends Mail Modules need to be used from django.core.mail import send_mail,send_mass_mail SMTP is a mail server, each kind of mailbox SMTP server address is different, Baidu itself For example, mailbox 163 is smtp.163.com 1. Adding configuration to settings TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.Django ...

Posted by TheRealPenguin on Sat, 25 May 2019 13:13:15 -0700

Python 3 crawls Douban Film and saves it to MySQL database

48 lines of code for Python 3 to crawl the Douban Film RankingsThe code is based on Python 3 and the class libraries used are: Caption text requests: Get page content and reference documents by forging request headers or setting up proxies, etc.Beautiful Soup: parsing pages, extracting data, referencing documentsPyMySQL: The version of Python 3 ...

Posted by gobbles on Sun, 19 May 2019 10:29:38 -0700