Introduction to Codis
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
Operating system: CentOS 7.3
Redis version: Redis 3.2.8
Two hosts, three nodes on each host
Download and unzip the installation package
# Download and unzip the installation package
tar -zxvf redis-3.2.8.tar.gz
# Normal compi ...
Posted by j9sjam3 on Fri, 01 May 2020 15:54:19 +0200
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 ...
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
When I load script/console, sometimes I want to play with the controller's output or view assistant methods.
There are ways to:
Call the method from the controller instance on the request?
Test assistant method by controller instance or other means?
To call the helper, use the helper object ...
Posted by asuamol on Thu, 30 Jan 2020 11:59:15 +0100
Dictionaries can associate related information
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
This is a record of cracking JS encrypted data on a website at:
To get the investment event information on this page, you can first confirm that the data is transmitted through AJax, not written directly in the source code of the web page.
1. Grab a bag
Open the develop ...
Posted by k4pil on Thu, 16 Jan 2020 03:39:27 +0100
Node sass generates source map / listening file
0. Irrelevant (can be skipped)
Problems encountered - > >
I don't know how to use node sass to generate the source map file. It can be generated directly in my local ruby environment
But now the project is to change all the saas files compiled in ruby to node sass. The ...
Posted by Invincible on Fri, 03 Jan 2020 20:25:54 +0100
How to use them together effectively Git and Dropbox ？
I ran into a similar problem and created a small script for it. The idea is to use Dropbox with Git as simply as possible. At present, I have realized it quickly Ruby Code, and I'll add more code soon.
The script is available at https://github.com/nuttylabs/box-git.
Posted by Hitoshi on Wed, 11 Dec 2019 19:35:10 +0100