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

Reading NDEF Uri Data Developed by Android NFC

First add the following configuration to the AndroidManifest.xml file <!-- SDK Version at least 14 --> <uses-sdk android:minSdkVersion="14"/> <!-- Add to NFC Jurisdiction --> <uses-permission android:name="android.permission.NFC" /> <!-- Require that the current equipment ...

Posted on Sat, 05 Oct 2019 03:33:36 -0700 by carrotcake1029

Android Development-Kotlin Develops APP Use Notes

I've been using java to develop Android projects. I've learned a new kotlin language. I'll try it out and talk about some of the enhancements Kotlin has made to Android. Create project I use Android Studio 3.0+, so kotlin is supported by default. When creating a project, remember to check kotlin support Finding Instances and Setting Up Listene ...

Posted on Fri, 04 Oct 2019 12:43:23 -0700 by lmninfo

Chapter 1 spring Context Loader Listener

Preface Environment building github Download Version 4.10.3 jdk 1.8 maven ContextLoaderListener Constructing method of org. spring framework. web. context. ContextLoaderListener public ContextLoaderListener(WebApplicationContext context) { super(context); } org.springframework.web.context.WebApplica ...

Posted on Fri, 04 Oct 2019 10:55:12 -0700 by damienwc

The difference between uid gid pid and others

1.uid uid in android is used to identify an application. uid is allocated during application installation and will not change when application is on the phone. An application can only have one uid, and multiple users can share the same uid using sharedUserId, provided that the signatures of these app ...

Posted on Fri, 04 Oct 2019 03:45:24 -0700 by abhi_10_20

Mybatis XML mapping file

mybatis is built to focus on SQL, the top-level elements commonly used in SQL mapping files, such as resultMap, the most complex and powerful element, describes how to load objects from the database result set.   Insert, mapping insert statement update, mapping update statement Delete, mapping delete statement select, mapping query s ...

Posted on Thu, 03 Oct 2019 22:07:26 -0700 by simonsays

Selenium + Headless Chrome crawls Bing image search results

Bing image search results are loaded dynamically. If we use requests directly to access the page to crawl data, we can only get very few images. So we use Selenium + Headless Chrome to crawl search results. Before we start, we need to introduce xpath. XPath XPath is XML Path Language (XML Path Language) is a language used to locate a part of ...

Posted on Thu, 03 Oct 2019 19:39:41 -0700 by enchance

Android uses controls to display HTML styles

Android uses controls to display HTML styles There are many ways android can display HTML styles. Here are two very simple ways: TextView and WebView. Method 1. Direct display using TextView or GiftTextView The advantage of this method is simple and can be set directly, but the disadvantage is that ...

Posted on Thu, 03 Oct 2019 17:36:05 -0700 by GBS

Spring MVC View Parser: Configuring Priorities for Multiple View Parsers

Links to the original text: https://www.iteye.com/blog/panyongzheng-2258935 http://www.cnblogs.com/rollenholt/archive/2012/12/27/2836035.html problem In Spring MVC applications, we often need to apply some view parser strategies to parse ...

Posted on Thu, 03 Oct 2019 04:25:54 -0700 by The Phoenix

Android Multichannel Packaging--Gradle Packaging

Android Multichannel Packaging--Gradle Packaging Preface Since App is generally available in multiple application markets, in order to analyze the specific data of App in each different channel, different Apps are usually packaged in different channels. There are many ways of multi-channel packaging. Here we only introduce the use of Gradle for ...

Posted on Thu, 03 Oct 2019 01:46:13 -0700 by EricC