Gin framework series 02: routing and parameters

review In the previous section, we used the Gin framework to quickly build an interface for GET requests. Today, we will learn how to GET routes and parameters. Request verb Students who are familiar with RESTful should know that RESTful is a design style and development mode of network applications. Each URI represents a resource. The client u ...

Posted by endurox on Wed, 08 Apr 2020 00:54:57 -0700

[learn Java notes from scratch] network programming

You can pay attention to the author's account and the Java notebook from scratch. You can also go to the author's blog Garden to learn from the catalog. This film will be based on the black horse programmer job class video for learning and data sharing, and take notes and their own views. Welcome to study and discuss together. [learn Java note ...

Posted by stevehossy on Tue, 07 Apr 2020 08:40:40 -0700

The construction of deep learning model

Basic steps of building deep learning model Where to give an example: Boston house price forecast Boston house price forecasting is a classic machine learning task, similar to the "Hello World" of the programmer world. As we all know about house price, the house price in Boston area is influenced by many factors. This data set stati ...

Posted by jamfrag on Mon, 06 Apr 2020 21:59:11 -0700

Visualization of pyecharts epidemic visualization data

Because the previously written interface was changed, the following was updated One: Data preparation phase All sources of this data are available from both locations 1. Epidemic Interface of Tencent Provinces and Cities 2. Tencent Epidemic History Daily Data Interface and Foreign Epidemic Data Interface Two: Tools and Environment IDE ...

Posted by nothingatall on Mon, 06 Apr 2020 20:06:01 -0700

1, Login to register mvp framework

1, model layer writes an interface public interface IMyView { //How to login successfully void loginSuccess(); // Method of login failure void loginError(String error); //Get login name String getMobile(); //Get login password String getPassword(); } 2, The main method of model l ...

Posted by monotoko on Sun, 05 Apr 2020 16:28:07 -0700

Download pictures in IntentService with URL and update them to ImageView

The whole process still adopts the previous logic, that is, when an Activity triggers an event, it is handed over to the IntentService for processing, and the processed result is sent to the internal class of the broadcastReceiver in the Activity for processing, so as to update the UI. The process of downloading the pic ...

Posted by evil turnip on Sun, 05 Apr 2020 12:40:03 -0700

Deep understanding of Glide life cycle management

Author: His Aunt and AuntLinks: https://www.jianshu.com/p/317b2d6bde1b This is the first in a Glide Source Parsing series where you can learn: 1. How Glide binds Activity, Fragment life cycles. 2. How Glide monitors memory and network changes. 3. How Glide handles the life cycle of requests. 1.0 Life Cycle Related UML Class Diagram 2.0 Lifec ...

Posted by Karlos2394 on Sun, 05 Apr 2020 12:16:58 -0700

Dry | Comic algorithm: LRU from implementation to application-level analysis (first lecture)

Today we share with you the well-known LRU algorithm. The first lecture consists of four sections. Overview of LRU LRU usage LRU implementation Overview of Redis Near LRU Part I: Overview of LRU LRU is an abbreviation for Least Recently Used, translated as least recently used.Its rationale is that "recently used data will remain in use f ...

Posted by verdrm on Sun, 05 Apr 2020 11:46:20 -0700

Maintain your request queue and handle token exceptions

Preface Network request is the most basic and core requirement in development. It is very important to encapsulate a stable and high availability request. In addition to the input parameters, the encapsulated content is more about exception handling in the request. This article shares my practice in dealing with token exceptions. By maintaining ...

Posted by ron814 on Sun, 05 Apr 2020 10:45:59 -0700

Linux listen() system call

Note: the analysis in this paper is based on kernel version 3.10.0-693.el7, namely CentOS 7.4 1. Function prototype int listen(int sockfd, int backlog); Parameter Description: sockfd: the file descriptor of the socket, that is, the fd returned by the socket() system call backlog: save the queue length of client ...

Posted by KindMan on Sun, 05 Apr 2020 06:20:27 -0700