Two ways of Android calling system api recording (MediaRecorder, AudioRecord)

Crap Authority, authority, authority, must first obtain the recording authority, and other things will be delayed. In addition, the new version of Android 10 system will adjust the recording and introduce the concept of recording focus. That is to say, the microphone can only be used by one APP before it can be used only when it is disconnect ...

Posted by kulin on Tue, 26 Nov 2019 13:24:12 -0800

Android Development Notes: Splash realizes the quick opening function of the homepage

When we are developing Android, there are two ways to open the homepage. One is to use the handler to delay an activity. When the time arrives, the software will jump to the second activity. The other is a more commonly used method, which uses splash to realize the quick opening of the homepage. This way of opening the screen is faster than the ...

Posted by Simsonite on Sun, 24 Nov 2019 13:47:36 -0800

Java google's open source development tool for java development - guava introductory manual

1. Introduction There are many difficult examples of Java class libraries, Collection must be one of them.Google first proposed the Guava library as an extension of the Java Collection to improve development efficiency.Over time, it has covered all aspects of Java development, and in Java 8, you can see that many API s are still learning from G ...

Posted by penguinmasta on Sun, 24 Nov 2019 00:13:06 -0800

Python docx operation word file (*. Docx)

Catalog Basic operation Object relationship Add styles Chinese font Microsoft YaHei, Western Font Times New Roman text-indent Style title separately Set hyperlink Reference document Basic operation from docx import Document from docx.shared import Inches # ...

Posted by GarroteYou on Fri, 22 Nov 2019 11:23:17 -0800

Htmalabilitypack + C as IP agent crawler

I. search for data and access as many IP proxy data as possible, and store the IP proxy pool 2. Filter the data from the agent pool and add the valid data to another table, and update it in time III. update IP proxy pool regularly Because the IP address of the website needs to be updated in real time, and the program needs to fi ...

Posted by paradigmapc on Thu, 21 Nov 2019 12:23:12 -0800

[python crawler] use selenium to get Baidu search results and related keywords marked in red

I. environment construction 1. Install chrome driver brew cask install chromedriver 2. Install selenium pip3 install selenium 3. Install beautiful soup4 pip3 install beautifulsoup4 4. Test with the following code from selenium import webdriver  driver = webdriver.Chrome() # The chrome browser is called here driver.get ...

Posted by ari_aaron on Wed, 20 Nov 2019 10:14:02 -0800

HTML and CSS

HTML fill in blanks with placeholder text <h1>Hello World</h1> <h1>Hello World</h1> <h2>CatPhotoApp</h2> <h1>Hello World</h1> <h2>Hello html</h2> <p>Hello Paragraph</p> HTML change color of text < H2 style = "color: Red" > HTML program ...

Posted by doozerdc on Wed, 20 Nov 2019 09:19:49 -0800

Node.js Asynchronous Programming Evolution Theory

This article uses the "Signature 4.0 International (CC BY 4.0)" license agreement, and welcomes reprinting, or re-modifying the use, provided the source is indicated. Signature 4.0 International (CC BY 4.0) Node.js asynchronous programming callback We know that there are two ways to handle events in Node.js, callback and EventEmitter. ...

Posted by isedeasy on Tue, 19 Nov 2019 20:15:42 -0800

Use of java8 compleblefuture 1

background With the rapid development of hardware, multi-core CPU and distributed software architecture are common; Functional API s mostly link the content of basic services in a mixed way, which is convenient for users' life. Two questions were raised: How to develop multi-core capability; Divide large tasks and let each sub task run in ...

Posted by wpt394 on Tue, 19 Nov 2019 04:58:20 -0800

A task segmentation scheme based on zookeeper / cursor

If there is a table now, it records some delay messages, that is, messages that need to be sent out at a certain time in the future. The number of records in the table is uncertain. If there are many, then multiple machines are needed to execute. If there are few, then one or two will be enough. At this time, a leader election / task segmentati ...

Posted by FireyIce01 on Mon, 18 Nov 2019 09:53:51 -0800