Day8 string related operations

Day8 string related operations character string What is a string String is a container data type (sequence), with 'or' 'or' 'or' 'as the container flag Each independent symbol is an element of the string String is immutable; String is ordered (subscript operation is supported) Element of string: every symbol in quotation marks is ...

Posted by mattonline on Thu, 17 Feb 2022 10:28:48 +0100

Overview and deployment of Redis cluster mode (master-slave replication, sentinel mode and cluster)

Redis cluster mode redis Cluster has three modes: master-slave synchronization / replication, sentinel mode and Cluster In Redis, high availability technologies mainly include persistence, master-slave replication, sentinel and cluster Persistence Persistence is the simplest high availability method (sometimes even classified as high ava ...

Posted by iceomnia on Thu, 17 Feb 2022 10:28:26 +0100

Sort | quick sort

thought For each division, make the left side smaller than the benchmark and the right side larger than the benchmark, but in disorder, and then divide the left and right sides once again. In this way, the division will continue until the size of the decomposed array is 1 and the division stops. At this time, it is in order Partition function ...

Posted by varecha on Thu, 17 Feb 2022 10:19:44 +0100

Experience in using PureMVC

I learned PureMVC a long time ago. This is used by my colleagues in the projects of their former company and current company Revised PureMVC framework Here are some notes on using it Initialization order The more basic the module is, the better it will be initialized before The initialization order in StartUpCommand is very important for in ...

Posted by jlive on Thu, 17 Feb 2022 10:11:08 +0100

A project case explains the BGP routing notification principle in detail (with topology configuration)

prefaceI wrote an article earlier 32 figures explain BGP routing protocol in detail: basic concept of BGP, BGP peer, BGP message type, BGP state machine, etc. Today, I will tell you in detail about the four principles of BGP notification routing;BGP only publishes optimal and effective routes;Routes obtained from EBGP will be published to all p ...

Posted by bdee1 on Thu, 17 Feb 2022 10:00:46 +0100

Kubernetes full set of notes

Kubernetes learning materials K8S overview and related features summary K8s is a container cluster management system released by Google in 2014Container application deployment using k8sUse k8s to facilitate application expansionk8s target implementation makes deploying container applications more concise and efficient characteristic Automa ...

Posted by blt2589 on Thu, 17 Feb 2022 09:59:12 +0100

RxJava stack exception information is not fully displayed. What's wrong

Original text: Xu GongphenomenonHello, everyone. Today we bring you a murder case of RxJava, which is caused by a line of code return null.A while ago, colleagues in the group reported that RxJava crash ed in the debug package, and the exception information captured was incomplete. (that is, the stack we captured does not contain our own code, ...

Posted by keyurshah on Thu, 17 Feb 2022 09:55:13 +0100

[Python 3] credit card fraud detection based on logistic regression

preface The actual combat series of this project is mainly based on the tutorials on the network. It mainly refers to the ideas and specific implementation codes in learning machine learning with Digo. However, the version used in the book should be python2. Some codes also have problems, some key steps are omitted, and some are syntax problem ...

Posted by journeyman73 on Thu, 17 Feb 2022 09:37:14 +0100

Establishment of redis master-slave mode and sentinel mode

Install redis https://redis.io/download cd /opt wget http://download.redis.io/releases/redis-6.2.3.tar.gz yum install gcc-c++ tar xzf redis-6.2.3.tar.gz mv /opt/redis-6.2.3 /usr/local/redis cd /usr/local/redis make make PREFIX=/usr/local/redis install Setup of master-slave redis mode cd /opt mkdir redis-sentinel cd redis-sentinel m ...

Posted by plutarck on Thu, 17 Feb 2022 09:36:49 +0100

Wait for notification mode with lock

Using lock to realize waiting and notification mode Keyword synchronized, class ReentrantLock to realize waiting and notification mode ReentrantLock class In Java multithreading, the synchronized keyword can be used to realize the synchronization and mutual exclusion between threads, but in jdk1 The newly added ReentrantLock class in 5 can a ...

Posted by Ruski on Thu, 17 Feb 2022 09:20:26 +0100