Redis Sentinel Deployment Process

Edition CentOS 8.1.1911(VMWare) redis 5.0.8 Essential information Server IP: 192.168.31.68 Redis port: 7000 (primary) 7001,7002 (slave) Sentinel port: 27000 27001 27002 The key code or command represents this Configure Redis master7000.conf bind 0.0.0.0 port 7000 daemonize yes dir /home/misty/redis-data/sentinel01 pidfile /var/run/redis_ ...

Posted by DJP1986 on Sun, 19 Apr 2020 03:20:08 -0700

springboot parameter check

SpringBoot has a built-in Hibernate Validator as the checking framework, so as long as we have integrated SpringBoot, we can use Hibernate Validator to complete parameter checking. Common Notes @Null: The commented property must be null; @NotNull: The commented property cannot be null; @AssertTrue: The commented property must be true; @AssertF ...

Posted by soldbychris on Sat, 18 Apr 2020 21:09:36 -0700

Ideas and codes for exponential smoothing of one, two and three times

The commonly used exponential smoothing methods are first exponential smoothing, second exponential smoothing and third exponential smoothing. Higher exponential smoothing is rarely seen. Therefore, this paper focuses on the characteristics and differences of first, second and third exponential smoothing. One-time exponential smoothing is gene ...

Posted by the_manic_mouse on Sat, 18 Apr 2020 19:27:39 -0700

VUE course -- 3. VUE template syntax

I. conclusion One sentence summary: To parse data in vue templates, you can use brace expressions, such as {{msg}}, or instructions, such as v-html (insert text by HTML tags), v-text (insert text by text), etc <div id="app"> <p>{{msg}}</p> <p>{{msg.toUpperCase()}}</p> <p v-text="msg"></ ...

Posted by cybernet on Sat, 18 Apr 2020 10:14:29 -0700

[open source]. NETCORE. Netframework xamarin uses ORM FreeSql to access Sqlite

1. Create project We use the console type project to test the insertion, deletion, update, query and other functions, create a console project, and use the command: dotnet new console dotnet add package FreeSql.Provider.Sqlite dotnet add package FreeSql.Repository 2. Create a solid model using System; using FreeSql.DataAnnotations; pub ...

Posted by ubaldc36 on Sat, 18 Apr 2020 09:02:50 -0700

High frequency vocabulary extraction of Lucene news

Objective: give a news article and count the most frequent words. Grab a piece of news on the Internet Analysis: for text vocabulary extraction, Lucene index is used here to extract Top10 of term Frequency. The essence of indexing process is a process of generating inverted index from entry, which will remove punctuation and stop words from th ...

Posted by MishaPappa on Fri, 17 Apr 2020 08:56:33 -0700

Note: Spring nested ApplicationContext

Bean injection and injection are in the same ApplicationContext, so they are the same BeanFactory. However, Spring supports the ApplicationContext hierarchy, so one context and the associated BeanFactory are considered the parent of another. By nesting ApplicationContext, the configuration can be divided into different files, which is a godsend ...

Posted by Iceman18 on Fri, 17 Apr 2020 08:51:47 -0700

Python high order function practice [user defined high order function, map, reduce, filter, sorted]

I. overview scala is similar to higher-order function, which is a function that can receive another function as a parameter. 2, Import base package import random from functools import reduce 3, Custom higher order function #Define common functions and generate lists automatically def getList(): hList = list(range(5)) return ...

Posted by rledieu on Fri, 17 Apr 2020 07:59:20 -0700

Some thoughts on the location of complex elements in python+selenium

When the location of some elements is not convenient, you can use find elementsto locate them 1. When a group of elements have the same attributes, find﹣elements is used to obtain a group of elements. By looping the group of elements, locate the elements by corresponding text or element attribute values. For example: (keystrtext: attributenam ...

Posted by Roger Ramjet on Fri, 17 Apr 2020 07:53:33 -0700

Elegant implementation of Go json time format

At the beginning, the requirement is very simple. You only need to deserialize the time string in json according to the specified format https://www.jianshu.com/p/c02af04165e2 , the code is as follows: package main import ( "encoding/json" "fmt" "time" ) // set time format const ( timeFormat = "2006-01-02 15:04:05" ) // Custo ...

Posted by colossus_09 on Fri, 17 Apr 2020 07:38:58 -0700