50 lines of code for you! Hand to hand teaching you how to make the video barrage into the desired shape

    Preface Station B as a barrage video website, has the so-called barrage culture, so let's see next, what is the most barrage in a video? Knowledge points: 1. Basic process of reptile 2. Regular 3. requests 4. jieba 5. csv 6. wordcloud Development environment: Python 3.6 Pycharm Python section Step: import reimport requestsimport csv 1. Det ...

Posted by hmmm on Tue, 05 May 2020 07:32:56 -0700

Intent -- open another Activity -- bidirectional value transfer

In Android applications, we use the intent mechanism to jump between activities. This example simply introduces how to use intent to make the program jump from MainActivity to another OtherActivity to realize a single parameter value. When returning MainActivity, use Bundle for batch return. 1, Design interface 1. MainActivity la ...

Posted by jeny on Tue, 05 May 2020 04:46:03 -0700

Java ip address query, according to the ip interface to obtain the province, city, zip code, operator, etc

In the morning, the project manager said that it is necessary to add a user ip home location query function, and then search the Internet for half a day, and work out a relatively simple method to return address json data through the interface Baidu interface, Sina interface, Taobao ip interface is used here Get IP location through Taobao IP ad ...

Posted by aaadispatch on Tue, 05 May 2020 04:19:22 -0700

Android Project Actual Series - based on my module in Savvy Valley

Please be patient to read this module because of its large content and length. My module is divided into four parts [ ] My interface [ ] Set up interface [x] Modify password interface [x] Set Secret Security and Retrieve Password 1. Modify Password 1. Create a password modification interface In the com.boxuegu.activity package, creat ...

Posted by congos on Tue, 05 May 2020 01:30:21 -0700

Array operation in js

Array API API: Application Programming Interface; The methods provided by objects in js are called API s; instanceof Detect whether an object is an array; (used against complex data types;) //Simple data type of; A instanceof B / / is a made by B; Example: var arr = [1,2,3]; console.log(arr instanceof Array); //arr is not of type ...

Posted by stitchmedia on Mon, 04 May 2020 22:35:56 -0700

The usage of Litepal and the solution of dbname is empty

The steps to use Litepal are as follows: 1. Introduce JAR package and change configuration Use Android Studio to add: dependencies { compile 'org.litepal.android:core:1.6.1' } 1.6.1 is the version number, which can be changed according to the requirements. Then configure the litepal.xml file. Generally, create ...

Posted by MSK7 on Mon, 04 May 2020 22:10:01 -0700

TabLayout+ViewPager to realize the dynamic sliding effect of tabs

1. Prerequisite preparation Today, I reviewed the joint use of TabLayout and ViewPager, and wrote a demo to deepen my understanding. First, make sure that TabLayout is under design, not under the original widget of the system. So first, add the following reference to the dependencies closure of build.gradle under app: ...

Posted by hakmir on Mon, 04 May 2020 13:30:46 -0700

Several ways for spring boot to modify the default port number

Modify application.properties In the first way, we just need to add a sentence like this in application.properties: server.port=8004. Why can I modify the default port of spring boot in this way? Because there is such a class in SpringBoot: ServerProperties. Let's take a look at this class in general: @ConfigurationProperties(prefix = "serv ...

Posted by paperthinT on Mon, 04 May 2020 13:25:32 -0700

Summary of OkHttp source code interpretation (VIII) -- > BridgeInterceptor

Summary of OkHttp source code interpretation (VIII) - > bridgeinterceptor Tags (space separated): learning notes of OkHttp source code Preface The following summary of relevant knowledge is based on the relevant learning and opinions of mooc.com. If you need to check the relevant teaching of mooc.com, you can st ...

Posted by bobthebuilder on Mon, 04 May 2020 08:25:20 -0700

Java multithreading overview

Thread overview Almost all operating systems support running multiple tasks at the same time. A task is usually a program, and each running program is a process. When a program is running, it may contain multiple sequential execution flows, each of which is a thread. Threads and processes         Almost all operating sys ...

Posted by jackliu97 on Mon, 04 May 2020 04:23:08 -0700