Go language -- detailed explanation of slice
Go language -- detailed explanation of slice
Blog description
The information involved in this article comes from Internet collation and personal summary, which means personal learning and experience summary. If there is any infringement, please contact me to delete, thank you!
Explain
Go language slicing is an abstraction of arrays.
The leng ...
Posted by adamjones on Wed, 29 Apr 2020 09:14:34 -0700
Binary installation of mysql installation
Download the tar of mysql binary installation file, and place the GZ package in / usr/local /
Run script file
#!/bin/bash
function Cuser
{
groupadd -g 27 -o -r mysql
useradd -M -N -g mysql -o -r -d /usr/local/mysql/data -s /bin/false -c "MySQL Server" -u 27 mysql
}
function file-tar
{
cd /usr/local/ ...
Posted by Jay87 on Wed, 29 Apr 2020 08:59:44 -0700
Deployment of Kubernetes cluster ETCD
kubernetes cluster deployment
Three official deployment methods1.minikubeminikube is a tool that can run a single point of kubernetes quickly locally, only for testing K8S or daily developmentDeployment address: https://kubernetes.io/docs/setup/minkube/2.kubeadmKubeadm is also a tool that provides kubeadm init and kubeadm join for rapid deploy ...
Posted by project18726 on Wed, 29 Apr 2020 08:36:10 -0700
11 of shell programming: application practice of for loop statement
11, Application practice of for loop statement
(1) , for loop syntax
1) General grammar
for variable name in variable value list
do
Command...
done
2) c-type for loop syntax
for(( exp1;exp2;exp3))
do
Command...
done
(2) Example 1
Use for to print 1, 2, 3, 4 and 5 numbers vertically.
[root@centos6-kvm3 scripts]# cat 11-01.sh
#!/bin/bash ...
Posted by zorgon on Wed, 29 Apr 2020 07:05:43 -0700
Implementation principle of synchronized
What's the difference between having synchronized or not?
What does synchronized lock as a pessimistic lock?
How to use synchronized code block
In the previous three articles, we talked about two uses of synchronized: synchronization method and synchronization code block, as well as two lock mechanisms: Lock instance object and lock Class obj ...
Posted by Jonah Bron on Tue, 28 Apr 2020 18:58:00 -0700
Shell script VI: Conditional testing and comparison of shell scripts
6. Conditional testing and comparison of shell scripts
(1) Common syntax for conditional expressions
1. Six ways to write conditional expressions (if, while)
Syntax 1:test<test expression>
Syntax 2: [<Test Expression>] #Both ends of brackets must have spaces
Syntax 3: [[[<Test Expression>] #Spaces are required at both ends
Syn ...
Posted by garek007 on Tue, 28 Apr 2020 10:36:25 -0700
OkHttp implements automatic refresh of globally expired token s
#Problem encountered:
App currently being developed has a problem:
When an interface is requested, it will fail because the token is no longer valid.However, the product manager expects the app to refresh the token immediately and then repeat the request for the interface, which is insensitive to the user.>This means silent automatic login a ...
Posted by timandkitty on Tue, 28 Apr 2020 09:59:38 -0700
Wechat applet learning - global configuration
Global configuration
1.app.js
Define global data and global functions
Definition explanation:
onLanuch when the initialization of the applet is completed, onLaunch will be triggered (only once in the global)
onShow when the applet starts or enters the foreground display from the background, onShow will be triggered
onHide when an appl ...
Posted by hypuk on Mon, 27 Apr 2020 22:56:35 -0700
How to use synchronized code block
What's the difference between having synchronized or not?
What does synchronized lock as a pessimistic lock?
In the previous two articles, we have known how to use synchronized and the content of lock (instance object and Class object), which has covered the basic content of this keyword. Today, I want to introduce another writing method, whi ...
Posted by Full-Demon on Mon, 27 Apr 2020 18:55:23 -0700
Qt open source works 2-video streaming vlc core
1, Foreword
The last work is made by the ffmpeg kernel. Because ffmpeg is too powerful, many beginners will see the state of confusion. There are also many users who only need a simple video stream to play, which does not need to involve the decoding and transcoding. So vlc came on the stage. It directly encapsulates ffmpeg in depth and provid ...
Posted by opencombatclan on Mon, 27 Apr 2020 03:00:32 -0700