Notes for Android Beginners (2): the simplest code for mobile phone vibration

Beginners are most likely to be confused by the code when they first touch the code, so they should give the minimum generation of core code for beginners, first make clear the core code, and then expand the knowledge, so that the learning effect will be better. There are a lot of codes on the Internet, which make begi ...

Added by my800stuff on Sat, 02 May 2020 06:25:55 +0300

Several implementation methods of Android text vertical scrolling and vertical horse riding lamp

Method 1: use the system control ViewFlipper mode: Layout file: <ViewFlipper android:id="@+id/view_flipper" android:layout_width="300dp" android:layout_height="35dp" android:layout_centerInParent="true" android:autoStart="true" android:background="@drawable/warning_bg" android: ...

Added by DarkSuperHero on Fri, 01 May 2020 19:56:52 +0300

Scrape crawls data using phantom JS

Environment: python2.7 + scratch + selenium + phantomjs Content: test summary + phantomjs Crawling content: involving js to load more pages Principle: open middleware in configuration file + modify process ﹣ request function (add phantom JS operation in it) Step 1: settings.py DOWNLOADER_MIDDLEWARES = { 'dbdm.middlewares.DbdmSpiderMiddlew ...

Added by skylert on Fri, 01 May 2020 14:58:08 +0300

Java Web Learning Notes - mybatis-07-dao development and use (mapper agent development)

Need to write mapper interface (equivalent to dao interface) mapper.xml mapping file needs to be written mybatis can automatically generate proxy objects of mapper interface implementation classes Development specification 1. namespace in mapper.xml is equal to the address of mapper interface 2. The method name in the mapper.java interfac ...

Added by Zomie on Fri, 01 May 2020 01:27:37 +0300

Java String Source Analysis

String Source Analysis Class structure public final class String implements java.io.Serializable, Comparable<String>, CharSequence String class implements that Serializable can be serialized String class implements Comparable for comparison The String class implements that CharSequence can operate on Subscripts String classes are d ...

Added by jarv on Mon, 27 Apr 2020 20:35:10 +0300

Hand-on instructions for using Python to grab QQ music data (4th bounce)

[1. Project objectives] By using Python to grab QQ music data (the first shot), we achieve the song name, album name, playback link of a song with a specified number of pages in the QQ music singer's single line. By using Python to grab QQ music data (second round) by hand, we have achieved lyrics and top reviews for specified QQ music songs. B ...

Added by Stoned Gecko on Sun, 26 Apr 2020 20:29:49 +0300

Embarrassed by the ugly signature? Python crawler art signature software!

Preface Whether you are a college student, a white-collar person who has entered the society, or a famous boss in the business world, you will always ask for signature from time to time. Are you still embarrassed by your ugly signature? No need from now on, because with this article, there is an artist's autograph specially designed for you, wh ...

Added by benrussell on Thu, 23 Apr 2020 16:15:31 +0300

Use fonts in Android O XML

Use fonts in Android O XML 2017/9/25 20:14:35 Android 8.0 introduced a new feature, fonts in XML, that allows you to use fonts as resources.This means that you no longer need to bundle fonts as assets.Fonts are compiled in R files and, as a resource, are automatically used on the system.You can then access these fonts using a new resour ...

Added by bios on Sun, 19 Apr 2020 19:35:47 +0300

python crawls to top 250

Catalog 1. Analyze web pages 2. Request server 2.1 import package 2.2 setting up browser proxy 2.3 request server format 2.4 request server code summary 3.xpath extraction information 3.1 method of getting xpath node 3.2xpath extract content 3.2.1 extract text 3.2.2 extract links 3.2.3 extract label elements 4. Regular expression 4.1 e ...

Added by Tucker1337 on Wed, 15 Apr 2020 17:31:06 +0300

[tiktok] catch the tiktok star by Python, which star is the most popular voice.

Recently, tiktok tiktok tiktok has seen all kinds of billboard data visualized video. As a technician, it is considered a very interesting way to present data. So searching the Internet for information, we found that there is a list of sound suitable for data visualization. Who is it? objective Tiktok pop star list Data visualization shows ...

Added by examiz on Wed, 15 Apr 2020 10:59:07 +0300