[learn Java notes from scratch] multithreading

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 arion279 on Tue, 07 Apr 2020 08:55:08 -0700

The key implementation of HPA lateral expansion of kubernetes controller

HPA is the implementation of horizontal scaling in k8s. There are many ideas that can be used for reference, such as delay queue, time series window, change event mechanism, stability consideration and other key mechanisms. Let's learn the key implementation of the big guys together 1. Basic concepts As the implementation of general horizontal ...

Posted by insrtsnhere13 on Mon, 06 Apr 2020 01:18:40 -0700

Front-end page shows the amount of special needs, js quick and simple solution

demand The demand is like this: for example, background statistics show a relatively large total amount, such as 90,000,000, or more than 900 million. Need to show on the page again: xxxxbillion xxx10,000 XXX yuan, Amount value for statistics: If it's a billion then it's xxx10,000 XXX yuan, If it's 0 yuan, it's XXXX billion xxx million If it i ...

Posted by jcavard on Sun, 05 Apr 2020 19:44:44 -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

Implementation of Sogou AI API in Python 3

1, background a. Sogou has also released its own AI API, including identity card ocr, business card ocr, text translation and other APIs, with average accuracy in the initial test. b. Based on Python 3. c. It also has its own signature to generate this piece. With the foundation of goose factory, it is relatively simple to write. d. However ...

Posted by udendra on Sat, 04 Apr 2020 21:45:08 -0700

JavaScript array sort notes

Several kinds of sorting methods are often used in the work, and they are sorted out and shared for everyone in case of emergency. 1. array sort function Use the sort method of Array. var arr = [2, 8, 5, 0, 5, 2, 6, 7, 2] arr.sort((a,b) => { return a - b }) console.log(arr) // Results: [0, 2, 2, 2, 5, 5, 6, 7, 8] 2. Bubble sorting Compa ...

Posted by aspbyte on Sat, 04 Apr 2020 21:06:27 -0700

Python Chapter 11 - common core module 01 collections module

python calls itself "Batteries included" because it provides many built-in modules that can be used without installation and configuration This chapter mainly introduces some common built-in core modules of python Common core modules of Python 1, collections module This is a useful container module, which provides many useful collecti ...

Posted by DataSpy on Sat, 04 Apr 2020 13:47:50 -0700

C ා basic knowledge series-7 Linq details

Preface In the previous article, I briefly introduced Linq's entry-level usage. This article tries to explain some more in-depth usage methods. Unlike the previous article, I will first introduce the support methods in Linq, and then write them in the form of method chain and SQL like, guided by the actual requirements. Introduction to pre conc ...

Posted by rjs34 on Sat, 04 Apr 2020 02:58:21 -0700

Deconstruction assignment in ES6

Deconstruction assignment in ES6 According to the deconstruction of the original value, a part of the original value is quickly obtained (quickly assigned to a variable) Deconstruction and assignment of arrays Deconstruction assignment itself is the syntax specification of ES6. It doesn't matter what keywords ...

Posted by BenInBlack on Thu, 02 Apr 2020 07:55:56 -0700

[Tjoi2016&Heoi2016] sort bisection + line tree

Description In this paper, we give a whole permutation of 1 to n. now we sort the whole permutation sequence m times locally. The sorting can be divided into two types: 1:(0,l,r) is to sort the numbers in the interval [l,r] in ascending order; 2:(1,l,r) is to sort the numbers in the interval [l,r] in descending order, and fina ...

Posted by yonta on Wed, 01 Apr 2020 00:56:30 -0700