Installing Ruby on CentOS 8

Introduction: Ruby is one of the most popular languages today. It has a concise syntax and is the language behind the Ruby on Rails framework. In this article, we will show you three ways to install Ruby on CentOS 8. For image download, domain name resolution and time synchronization, please click Alibaba open source mirror station Ruby is ...

Posted by Strikebf on Sat, 19 Feb 2022 14:47:56 +0100

Using Mastodon to build a personal information platform: Part 1

This article is the first to use Mastodon to build a personal information platform. I will talk about some details of building Mastodon in a container environment.At the same time, this article may be one of the few things you can find about how to build and optimize Mastodon services in a container environment.Write in frontWith more and more ...

Posted by movieflick on Tue, 25 Jan 2022 13:49:29 +0100

pod install installation process

pod install installation process Let's take a look at the install portal first Enter which pod on the command line to find the directory where the pod command is located ➜ [/Users] ✗ open /usr/local/bin/pod ➜ [/Users] ✗ open /usr/local/bin According to the path, we open the script of pod. We can see that this script is used to evoke Coco ...

Posted by rashpal on Mon, 20 Dec 2021 10:29:13 +0100

redis decentralization

1, Redis Cluster Redis Cluster is a distributed solution officially provided by redis. When encountering bottlenecks such as memory, concurrency and traffic, Cluster architecture can be used to achieve the purpose of load balancing. Official documents: https://redis.io/topics/cluster-tutoria 1. Why use redis cluster cluster? 1.first Redis Sing ...

Posted by josemi on Tue, 19 Oct 2021 23:15:21 +0200

codis cluster deployment

Introduction to Codis codis cluster Codis is a distributed Redis solution. For upper tier applications, there is no obvious difference between connecting to the Codis Proxy and connecting to the native Redis Server (unsupported command list). Upper tier applications can be used like stand-alone Redis. The lower tier of Codis will handle r ...

Posted by rulinus on Wed, 22 Sep 2021 15:26:29 +0200

Brief introduction to the construction of redis cluster

Environmental Science Operating system: CentOS 7.3 Redis version: Redis 3.2.8 Two hosts, three nodes on each host Basic steps Download and unzip the installation package # Download and unzip the installation package wget http://download.redis.io/releases/redis-3.2.8.tar.gz tar -zxvf redis-3.2.8.tar.gz Build install # Normal compi ...

Posted by j9sjam3 on Fri, 01 May 2020 15:54:19 +0200

The beginnings of the rule engine Drools drools

1. Origin of the Rule Engine One day the operation wants to develop a credit strategy to calculate the extra credit amount according to the following rules: The original price of the order is less than 100 without additional points. 100-500 plus 100 points; 500-1000 plus 500 points; 1000 plus 1000 ...

Posted by Ausx on Thu, 12 Mar 2020 05:44:06 +0100

Error messages for Rails custom validation

The default error messages of Active Record authentication assistant methods are all in English. In order to improve the user experience, sometimes we are often required to display error messages according to specific text. There are two ways to achieve this. 1. Directly add a copy in: message class User < ActiveRecord::Base validates :ema ...

Posted by pikemsu28 on Fri, 31 Jan 2020 14:53:28 +0100

How do I call controller / view methods from the console in Ruby on Rails?

When I load script/console, sometimes I want to play with the controller's output or view assistant methods. There are ways to: Simulation request? Call the method from the controller instance on the request? Test assistant method by controller instance or other means? #1 building To call the helper, use the helper object ...

Posted by asuamol on Thu, 30 Jan 2020 11:59:15 +0100

[python notes] 5. Dictionary

1. Dictionaries Dictionaries can associate related information aline_0={'color':'green','points':5} print(aline_0['color']) print(aline_0['points']) output green 5 2. Use a dictionary A dictionary is a series of key-value pairs, each of which is associated with a value. You can use keys to access ...

Posted by simflex on Wed, 29 Jan 2020 03:38:14 +0100