Install Redis Cluster from scratch (Linux CenOS7)

Install CentOS7 Virtual Machine using ISO Configure static IP (Reference Mac VMware Fusion CentOS7 Configuration Static IP) Install vim [root@localhost java]# rpm -qa|grep vim vim-minimal-7.4.629-6.el7.x86_64 [root@localhost java]# yum -y install vim* ... Install jdk Upload jdk to / home/software on Linux using FileZilla [root@localho ...

Posted by msnhockey on Mon, 06 Jan 2020 07:37:05 +0100

Performance comparison of thread safe ArrayList -- Collections.synchronizedList and CopyOnWriteArrayList

ArrayList is thread unsafe, so in concurrent programming, collections.synchronized list and CopyOnWriteArrayList are often used to replace ArrayList. Next, we compare the performance of the two lists. Collection.synchronizedlis uses a synchronization lock in the update operation, while CopyOnWriteArrayList not only uses a reent ...

Posted by V34 on Sun, 05 Jan 2020 19:39:16 +0100

Android layout manager - use FrameLayout to display stacked squares and foreground photos

scene Android layout manager - use LinearLayout to realize simple login window layout: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103838995 Frame layout manager FrameLayout     Realization effect       Note: Blog: https://blog.csdn.net/badao_liumang_qizhi Pay attention to the public address Domineering procedural ape Get progr ...

Posted by WDPEjoe on Sun, 05 Jan 2020 18:48:37 +0100

Python and C + + implement single chain table

Algorithm and data structure are the basis of programming. Recently, I started to learn Python. When learning a new language, I reviewed the data structure I learned a long time ago. The nature of data structure implementation is not related to language. Implementation point of single chain table: 1. When initializing the lin ...

Posted by Gugel on Sun, 05 Jan 2020 18:40:08 +0100

[Spring Boot Unit Test] 1. Write unit tests

Writing unit tests can help developers write high-quality code, improve code quality, reduce bugs, and facilitate refactoring.Spring Boot provides utilities and annotations to help us test applications. Opening unit tests in Spring Boot requires only the introduction of spring-boot-starter-test, which includes some of the mainstream test librar ...

Posted by suzuki on Sat, 04 Jan 2020 18:59:07 +0100

idea2019 Activate Tutorial, Permanently Activate, One Time!(must see)

This tutorial is only for personal learning, not for commercial gain, at your own risk!!! This tutorial already supports the latest version of 2019.2 Permanent Activation Method 1. Download the jar package Click on the link Disk link: pan.baidu.com/..... [Extraction Code: gpmb] (If the link fails or is enclosed, WeChat can scan the lower QR ...

Posted by cloudbase on Sat, 04 Jan 2020 15:48:26 +0100

Read and modify the content case of the element in select

Function Description: >; Programming idea: separation of data and interface presentation (separation of data and structure) 1. Process the data on the left and store it in the predefined array unsel; 2. Define a method for data (array unsel, sel) processing and a method for interface display Specific code native dom im ...

Posted by robert_a89 on Sat, 04 Jan 2020 10:17:36 +0100

Rxjava2 introduction and detailed examples

Preface Now we can see that more and more developers are using RX related technologies to develop apps, Java backend and other fields. In open source communities and Internet companies, Rx, responsive programming, and functional are popular. Therefore, the author will write a series of articles on Rxjava2 in combination with his own learning an ...

Posted by bearqst on Sat, 04 Jan 2020 08:10:41 +0100

Three ways to use the @Import comment of the spring comment

Catalog 1. @Import Notes 2. @Import in three ways 3. @Import Annotation Summary of Three Ways of Use @ 1. @Import Notes 1. @Import can only be used on classes, @Import implements adding instances to spring's IOC container by means of fast import   2. There are many ways to add IOC containers, @Impo ...

Posted by m4x3vo on Sat, 04 Jan 2020 04:35:48 +0100

JD 2017 school recruitment programming question - Security Scheme (number of mountain pairs)

JD 2017 school recruitment programming question - Security Scheme (number of mountain pairs) Title Link subject In short: For a circular mountain range, which two mountains can see each other's beacon fire, the conditions are as follows: (1) Adjacent mountains; (2) There is no mountain (can be equal) larger ...

Posted by kiranoleti on Thu, 02 Jan 2020 09:43:39 +0100