Basic Python learning
Use method to change the case of a string
Change the initial of a string to uppercase
>>> name = "ada lovelace"
Make all strings uppercase
Make all strings lowercase
Posted on Sat, 16 May 2020 23:07:20 -0700 by Harry57
python from introduction to practice Chapter 6 exercises (Advanced Programming Technology week3-2)
This lesson is mainly about the use of dictionary data structure in python.
Basic use of dictionary
"first_name" : "Walker",
"last_name" : "Mike",
"age" : "18",
"city" : "New York",
Posted on Tue, 31 Mar 2020 06:43:19 -0700 by scratchwax2003
In Ruby, how do you call class methods from instances in this class? Say I have
# Class method.
# Instance method.
Truck.default_make # gets the default via the class's method.
# But: I wish to avoid mentioning Truck. Seems I'm repeating myself.
Posted on Wed, 18 Mar 2020 07:18:05 -0700 by wih
1. What is Dubbo SPI
First, look at the description of the dubbo website:
The SPI is called Service Provider Interface and is a service discovery mechanism.The essence of SPI is to configure the fully qualified name of the interface implementation class in a file and load the implementation class by r ...
Posted on Sat, 11 Jan 2020 16:41:54 -0800 by sfmnetsys
When doing the redis cluster, you need to use Ruby tools to operate. It is found that the version of ruby installed online is too low, and the version supported by redis is at least 2.2.2
Install ruby Online
Install ruby online using yum with version 2.0.0.
yum install ruby
Add ruby repository
Posted on Tue, 31 Dec 2019 09:43:53 -0800 by mark_kccs
Optimistic Locks and Transactions
Use watch to monitor a key;
Open transaction for operation;
Submit the transaction after the operation is completed;
If the watch key changes before committing, the committed transaction will not work;
* Test transactions and optimistic locks
Posted on Mon, 23 Dec 2019 10:21:11 -0800 by dvdflashbacks
1. Introduction to Redis
Redis is currently a large-scale cache middleware, which is widely used because of its powerful, efficient and convenient functions.
Redis released 3.0.0 in 2015, officially supporting redis clusters.The redis cluster was designed with decentralization and Middleware in mind.That is, each node in the cluster has an equ ...
Posted on Sat, 21 Dec 2019 13:14:06 -0800 by Rabioza123
redis cluster, experimental environment: two servers, six nodes, three network cards for each server
Six nodes, three masters, three replicas
Install redis on the primary server
[root@localhost ~]# yum install gcc gcc-c++ make -y #Install environment package
[root@localhost ~]# mkdir /abc
[root@localhost ~]# Mount.cifs / / 192.168.100.25/redi ...
Posted on Tue, 17 Dec 2019 14:54:45 -0800 by nvidia
Two Centos 7 virtual machines are added with three network cards to simulate the real situation of six servers
Master node M1
Master node M2
Master node M3
Slave node S1
Slave node S2
Slave node S3
Posted on Wed, 11 Dec 2019 13:10:58 -0800 by hwttdz
Server A: 192.168.3.188 centos7Server B: 192.168.3.189 centos7Turn off firewalld firewall and selinux;Redis version 4.0.1, at least 6 sets of redis cluster
yum -y install wget vim tcl gcc make
mkdir –p /usr/local/redis
tar –xvf redis-4.0.1.tar.gz
make test-No mistake. Go on
Posted on Mon, 09 Dec 2019 14:40:48 -0800 by Ruud Hermans