On prometheus client golang

On prometheus client golang Including type elaboration + interface example + source code excerpt Original link Prometheus: What is prometheus? There are many articles on the Internet. For the deployment and startup of prometheus, please refer to This link . prometheus provides an http interface f ...

Posted by r00tk1LL on Sun, 19 Jan 2020 04:17:50 -0800

Git branch version management

Git branch version management                    the mainstream code management tool is basically GIT. Although svn is also used by some people, it is not so much. Git is still accepted by most people. The c ...

Posted by cwetherbee on Sun, 19 Jan 2020 02:48:59 -0800

The way of Flutter state management

Pick up another article. The way of Flutter state management (4) This article mainly introduces the shuttle ﹣ mobx Fish Redux Version: 0.2.7 Library address: https://github.com/alibaba/fish-redux/ Evolution process concept object Explain Subordinate Library Action Represents an intent that ...

Posted by LuAn on Sun, 19 Jan 2020 01:37:59 -0800

Teaching you the python 26 KNN approach algorithm

KNN overview K-nearest neighbor algorithm is a basic classification and regression method. We only discuss k-nearest neighbor algorithm in classification. A word summary: near Zhu is red, near Mo is black! Working principle: there is a sample data set, also known as a training sample set, and eac ...

Posted by sri2002 on Sat, 18 Jan 2020 23:04:52 -0800

Understand reactive programming and analyze LiveData deeply

/Start/   This article mainly analyzes the source code of LiveData. This article uses the source code analysis of Android SDK 29.   /Definition/   LiveData is a kind of observable data storage class, which has life cycle awareness and follows the life cycle of application components (e.g. Activ ...

Posted by rowantrimmer on Sat, 18 Jan 2020 21:15:03 -0800

Hand rolling an annotation frame

Runtime annotation is mainly implemented by reflection, while compile time annotation helps us to generate code during compilation, so compile time annotation is efficient, but it is a little more complex to implement. Runtime annotation is inefficient, but it is simple to implement. Let's first look at ...

Posted by dleone on Fri, 17 Jan 2020 21:03:12 -0800

[LeetCode 45 55 1306]Jump Game I,II,III[JAVA]

Jump game, three questions in total. 55. Jump Game 1. topic 2. way of thinking This problem is to consider whether we can reach the last position. When we reach each subscript, we can maintain a maximum subscript value to determine whether we can reach the last subscript of the array. 3. code ...

Posted by OttoBufonto on Fri, 17 Jan 2020 20:21:54 -0800

How to use raft algorithm in etcd

Raft protocol is a consistency algorithm that solves the problem of data consistency among multiple machines.Raft claims to be concise and can replace the very complex PAXOS algorithm.However, after reviewing raft's paper, you will find that it is cumbersome to fully implement raft even if you claim to ...

Posted by doozerdc on Fri, 17 Jan 2020 18:07:54 -0800

What are generics?

I. Concepts of Generics Generics are a new feature in Java SE5. Generics are essentially type parameterized or parameterized types. Without creating new types, the types specified by generics can be used to control the specific restrictions on parameters. 2. Meaning of Generics General classes and methods can only use specific types: either bas ...

Posted by fatepower on Fri, 17 Jan 2020 17:15:16 -0800

Jquery Generates Barcodes to Web Pages and Prints Barcodes

background The latest project involves generating barcodes and printing them out. Individuals often write java, but using the back end can be cumbersome.It is convenient to use js, here is a brief introduction. There's a lot of stuff on the web about generating barcodes. JsBarcode works best with github addresses: https://git ...

Posted by hwttdz on Fri, 17 Jan 2020 08:41:04 -0800