commons-lang3 tool class learning (2)

From http://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/ Official documents to organize and remember for yourself 3. BooleanUtils Boolean Tool Class and(boolean...array) logic and BooleanUtils.and(true, true) = true BooleanUtils.and(false, false) = false ...

Posted by Aliz on Fri, 17 Jul 2020 08:53:21 -0700

Android Custom WheelView

function Wheeled Select View, similar to TimePicker or DataPicker, allows you to set whether or not there is a boundary (the beginning and end meet) Design sketch Explain Inherited from View to assist with scrolling with OverScroller, using a minimum API version of 9.If necessary, you can use Scroller instead, w ...

Posted by bobicles2 on Mon, 13 Jul 2020 08:46:00 -0700

Android Custom WheelView

function Wheeled Select View, similar to TimePicker or DataPicker, allows you to set whether or not there is a boundary (the beginning and end meet) Design sketch Explain Inherited from View to assist with scrolling with OverScroller, using a minimum API version of 9.If necessary, you can use Scroller instead, w ...

Posted by Kane250 on Mon, 13 Jul 2020 08:47:24 -0700

Merge sort algorithm implemented in Java

The following is a merge sort algorithm implemented in Java, referencing Algorithms Unlocked by Thomas H. Cormen I read some blogs from other CSDN bloggers, and I think some details can be optimized, such as avoiding overflow due to too long array length, and using mid = low + (high - low) / 2 for mid For example, instead of creating a (high ...

Posted by Loran on Fri, 10 Jul 2020 08:37:44 -0700

offer rotation array

Moving the first elements of an array to the end of an array is called array rotation. Input a rotation of a non decreasing sort array and output the smallest element of the rotated array. For example, if the array {3,4,5,1,2} is a rotation of {1,2,3,4,5}, the minimum value of the array is 1. NOTE: all elements given are greater than 0. If th ...

Posted by Zoofu on Thu, 09 Jul 2020 09:01:58 -0700

js image lazy loading

js image lazy loading Created by Marydon on 2018-04-14 08:15 1. Usage scenarios When a large number of images need to be loaded on the web page, if all the images are loaded at one time, the loading time of the web page will be too long; The web page itself has been very slow. If you need to quote ...

Posted by 182x on Tue, 30 Jun 2020 01:45:14 -0700

VBScript script language foundation

VBScript script language foundation 2.1 introduction of vbs script language 2.2 the first vbs scripting language - hello world Open Notepad program, fill in the edit window, save the file extension as. vbs dialog box: Input box inputbox("please input the length of the first edge", &quo ...

Posted by DJTim666 on Mon, 29 Jun 2020 19:26:57 -0700

Exception capture and regular expression usage in python

Exception capture 1. What is exception capture """ The program can continue to run if there is an exception in the process of program execution. Note: you don't need to use exception capture all the time. You should use it when you know that there may be an exception in a certain place and you don' ...

Posted by rsmarsha on Mon, 29 Jun 2020 18:35:21 -0700

Understanding of parallel pipeline

Ideas sharing Now there are two variables i,j. to calculate the result value of (i+j)*i/2, we can first find that each step of the calculation depends on the result of the previous step. For example, we have to add, then multiply, and then divide. It seems that we can't split it into parallel. This is ...

Posted by d00dle on Sun, 28 Jun 2020 21:46:56 -0700

python multi process explanation

python multitasking process 1, First demo 2, Queue 3, Process Pool 4, Case: file copying 5, Summary 1, First demo Process: after a program runs, the resource used by code + is called process, which is the basic unit of non allocated resources of the operating system. Multitasking completed by t ...

Posted by 2paulm on Sun, 28 Jun 2020 20:35:19 -0700