Record of Retrofit+MVP framework encapsulation

The most popular combination of network requests, retrofit2+okhttp+rxjava+mvp This is the sealed record First, it is divided into modules, such as login First, the use of encapsulation package com.fragmentapp.login.presenter; import android.util.Log; import com.fragmentapp.base.BasePresenter; import com.fragmentapp.http.BaseObserver; impor ...

Posted by jredwilli on Sat, 02 May 2020 08:14:47 +0200

Installation and basic configuration of Ubuntu Server in virtual machine

Installation and basic configuration of Ubuntu Server in virtual machine Install Ubuntu Server 16 The virtual machine uses VMware workstation. Create a new virtual machine. Next, install ubuntu. There is an error. The language was changed to English, no error was reported, and the installation was successful. configure network In order to faci ...

Posted by xgab on Sat, 02 May 2020 01:00:12 +0200

Two of three phases of Linux: backup service (rsync)

2, Backup service (rsync) (1) rsync service introduction Rsync is an open source, fast, multi-functional, full and incremental local or remote data synchronization backup tool. And it can realize the backup and migration of data without changing the attribute information of the original data. Rsync software is suitable for unix/linux/windows an ...

Posted by bloodl on Fri, 01 May 2020 18:49:54 +0200

java web bulk download

java batch download, package multiple files into zip format to download What we need now: Download the pic package under the product family and product type according to the product family and product type; pic package is a zip file; Table: These packages exist in another table as blob s: T? Imagefile table: Now what we need to do is ...

Posted by wemustdesign on Thu, 30 Apr 2020 16:08:10 +0200

Python module - making the world map of new crown epidemic situation

Catalog pyecharts module brief introduction Installing pyecharts Test the pyecharts module pyecharts Combat: novel coronavirus pneumonia map requirement analysis Request data Extract data Processing data Making visual maps Set up visualization map Full code Achieve ...

Posted by spoco on Wed, 29 Apr 2020 02:48:45 +0200

centos7 local yum configuration and use

1. Mount system CD 2. Mount the CD to make the rpm package in the CD available Create CD mount point directory [root@localhost ~]# mkdir /mount Mount CD [root@localhost ~]# mount /dev/cdrom /mount mount: /dev/sr0 is write-protected, mounting read-only After mounting, you can see the Packages directory of the rpm package in th ...

Posted by Terrum on Sun, 26 Apr 2020 16:23:32 +0200

Python adb test of repeated network disconnection in selfie 62

Case story: during Android App or system testing, it involves abnormal test of network disconnection (in case of no network, whether the App or system prompts normal operation), Networking test (in case of network recovery, whether the App or system prompts to be normal and operates normally). At present, the equipment basically has two kinds ...

Posted by ViperSBT on Sat, 25 Apr 2020 15:42:12 +0200

Java explains the basic implementation of RPC

Java explains the basic implementation of RPC RPC remote procedure call can be said to be the basis of distributed system. In this paper, we will demonstrate what happens to a normal RPC call through Java. I have seen people ask on the Internet why RPC is called remote procedure call instead of RMC remote method call. In my opinion, RPC is a re ...

Posted by Smicks on Sat, 25 Apr 2020 11:37:21 +0200

CentOS7 Configuration Firewall

I. The concept of firewalls Firewall technology is a technology that combines all kinds of software and hardware devices for security management and screening to help computer networks build a relatively isolated protection barrier between their internal and external networks to protect user data and information security. Professional firewall ...

Posted by Gondwana on Thu, 23 Apr 2020 02:21:08 +0200

NLog log framework use inquiry-2

Table of contents Preface Custom parameters Log output mode file network transmission data base Scientific use Reference documents   Preface A year ago, I wrote an introduction to NLog NLog log framework use inquiry-1 , this article briefly introduces the basic use of NLog and ho ...

Posted by jdnet on Wed, 22 Apr 2020 03:55:52 +0200