Fully understand DNS and HTTPDNS!

In the mobile scenario, DNS resolution overhead is a non negligible part of the whole network request. In the weak network environment, based on UDP The local DNS resolution of is very prone to the problem of resolution timeout, and even if the resolution is successful, it will consume hundreds of milliseconds or even more, which is very unfavo ...

Posted on Mon, 20 Sep 2021 17:31:37 -0400 by samirk

Retrofit+Rxjava Complete Network Request

A recent project is using this networking, it is very convenient to use, and code management is very convenient. I used studio to add it to grade first compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-gson:2.3.0' compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' compile ...

Posted on Fri, 17 Jul 2020 12:11:06 -0400 by kaos057

Android Dropdown Refresh Dropdown Load More, PullToRefresh Third Party

Don't say anything but the picture above I'm using a third party that relies on PullToRefresh to do this This is just a listening method. First inject dependencies: //Refresh pullToRefresh compile 'com.jwenfeng.pulltorefresh:library:1.0.3' Then layout: <com.jwenfeng.library.pulltorefresh.PullToRefreshLayout android:i ...

Posted on Tue, 14 Jul 2020 11:12:12 -0400 by PHPMan

BZOJ2400:[Spoj 839]Optimal Marks (Minimum secant)

Portal Topic: Given an undirected graph, the point values of some points have already been given, and the point values of some points can be freely chosen.Defines an edge with a weight of two points XOR.These points are required to be assigned a value so that the weights of the last edge are the smallest, and the point values at this time ar ...

Posted on Sat, 11 Jul 2020 11:13:28 -0400 by laide234

Installation and configuration of Ubuntu firewall

Ubuntu Install UFW firewall sudo apt-get install ufw For general users, only the following settings are required: sudo apt-get install ufw sudo ufw enable sudo ufw default deny The above three commands are safe enough. If you need to open some services, you can use sudo ufw allow. Enable sudo ufw enable sudo ufw default deny #Aft ...

Posted on Fri, 10 Jul 2020 12:13:14 -0400 by mckinney3

Android implements request HTTP authentication

These days, the development of external SDK, can achieve landing, payment.Similar to developing a set of QQ, WeChat third party login.The authorization protocol used is OAuth 2.0.Among them, Http Authentication is used, and you can consult the online materials. There are all kinds of answers, some don't know if they have been verified, and some ...

Posted on Fri, 10 Jul 2020 10:57:16 -0400 by the apprentice webmaster

Installation and Startup of Elasticsearch under UBUNTU

1. Installation 1. Add ppa source sudo add-apt-repository ppa:openjdk-r/ppa 2. Upgrade system apt-get source sudo apt-get update 3. Install jdk8 Elasticsearch was developed in practical java, so JVM is required to run, so we need to install jdk sudo apt-get install oracle-java8-installer 4. Check jdk Execute the follow ...

Posted on Thu, 09 Jul 2020 11:04:38 -0400 by scnjl

LOJ6002 [Network Flow Question 24-3] Drop Small Path Coverage Bipartite Drop Large Matching

Everyone is strong enough to share their support. Topic: _Given a directed graph G=(V,E).Set P to be a set of G's simple paths with disjoint vertices.If each vertex in V happens to be on a path of P, P is said to be a path coverage of G.A path in P can start from any vertex of V and have an arbitrary length, especially 0.The minimum path cov ...

Posted on Tue, 07 Jul 2020 11:20:46 -0400 by leeroy1

Update DownloadManager usage with android system

The results are as follows: added in API level 9. Package path:java.lang.Object    ↳ android.app.DownloadManager Download Manager is a system service that handles long-running HTTP downloads. Applications requested to download through this API should be ACTION_NOTIFICATION_CLICKED registers a broadcast receiver so t ...

Posted on Sat, 04 Jul 2020 11:06:01 -0400 by Citizen

Update DownloadManager usage with android system

The results are as follows: added in API level 9. Package path:java.lang.Object    ↳ android.app.DownloadManager Download Manager is a system service that handles long-running HTTP downloads. Applications requested to download through this API should be ACTION_NOTIFICATION_CLICKED registers a broadcast receiver so t ...

Posted on Sat, 04 Jul 2020 11:05:39 -0400 by micknic