OKHttp3 Part Source Reading

When we want to integrate OKHttp3 into our project, we need to use the OkHttpClient.Builder() method to create an instance of OkHttpClient, which contains the following attributes: final Dispatcher dispatcher; final Proxy proxy; final List<Protocol> protocols; final List<ConnectionSpec> connectionSpecs; fin ...

Posted by sribala on Sat, 11 May 2019 00:48:53 +0200

Initialization of RHEL 7/CentOS 7/Fedora 28 Networking

Experiments show that: To get started with Linux, you will generally encounter the following problems: Where do I get the LInux image? How to install Linux system through mirror file? Install a physical machine or a virtual machine? How to configure the network after installing the system? How is the network configuration of virtual machines d ...

Posted by therainmaker53 on Sat, 11 May 2019 00:23:25 +0200

ifname of network interface and ifndex query of interface index under linux

Relevant function interface information: #include <net/if.h> unsigned if_nametoindex(const char *ifname); char *if_indextoname(unsigned ifindex, char *ifname); struct if_nameindex *if_nameindex(void); void if_freenameindex(struct if_nameindex *ptr); if_nametoindex(): Specifies the network interface name string as a param ...

Posted by amithn12 on Fri, 10 May 2019 23:58:15 +0200

Lesson 12: Running in the Background (based on Android Studio 3.2)

Now that we have some knowledge of UI elements and screens, we need to make them responsive. Response is not just about speed - how much work you can accomplish over time. What's more important is how fast the application is. When people say that the application responds, they usually mean that the application will not prevent ...

Posted by Lukeidiot on Fri, 10 May 2019 23:17:10 +0200

Talk about my understanding of MVP

To be honest, the MVP mode or design idea has come out for a long time, and now the latest use of MVVM design mode, constantly for the beginning, still need to move forward step by step. After all, you can't eat like a fat man. I am a senior, and I am currently working as an intern. In fact, I have been contacting and studying MVP ...

Posted by Control Pad on Fri, 10 May 2019 19:20:12 +0200

Talk about String, StringBuilder, StringBuffer

[TOC] Strings are a sequence of characters, and Java provides three classes, String, StringBuilder, and StringBuffer, to encapsulate strings String The String class is an immutable class. After a String object is created, the character sequence in the object is immutable until the object is destroyed. Why is it immutable jdk1.8 public final cla ...

Posted by YodaOfCamarilla on Fri, 10 May 2019 16:43:16 +0200

Dugu Jiujian and Qiankun Great Move-uikiller Plug-in System

Chapter 1 Quake > This paper introduces the basic usage of uikiller. Some people say that the function of long press can be named as intense attack and heavy blow. I think it's really possible, but I just feel that the name of the trick is not enough. I would like to apologize to you here, as I said in the previous article: ...

Posted by stebbi on Fri, 10 May 2019 16:19:30 +0200

Wechat Public Number Development + node.js Server Deployment

Application for Wechat Public Account; Official website 2. Developing documents; Website III. Application for Interface Test Number and Test Connection url: To be accessed by the external network, the local server can build ngrok. Of course, if you have money, you can buy one; ngrok runs differently every time. Instructi ...

Posted by vmarellano on Fri, 10 May 2019 09:02:02 +0200

Seconds Understanding File Download Implementation of Retrofit2 Zone Progress Bar

Copyright Statement) Notes for non-commercial purposes are free to be reproduced Blog address: https://blog.csdn.net/ShuSheng0007/article/details/82428733 From: shusheng007 Summary Achieving results Implementation Method Specific implementation Step 1: Introduce the Retrofit class library Step 2: Define the ser ...

Posted by ali_mac1 on Thu, 09 May 2019 08:09:09 +0200

CentOS (5.8/6.4) linux production environment optimization (practical section)

Next, I'll give you a brief explanation of some basic optimization operations after the installation of Linux system. Note: This optimization is based on entOS (5.8/6.4). I will mention the cell size of 5.8 and 6.4 when they are optimized. Optimize entries: Modify ip address, gateway, host name, DNS, etc. Close selinux,Empty iptables Added ...

Posted by pepperface on Thu, 09 May 2019 07:18:04 +0200