The construction of zookeeper single machine and cluster environment
1. Preface
19 years passed pretty fast. As the first one of 20 years, I want to make a simple summary here for the previous year: seriously, 19 years passed pretty miserable. Yes, the conclusion is this sentence. After all, the sense of ceremony must still exist.
Well, let's not talk about it. I hope it's better after 20 years. Save more money ...
Posted by randydg on Tue, 07 Jan 2020 02:51:34 -0800
Custom AlertDialog specify layout size and set full screen
Preface:
Dialog box is often used in daily development process. If there are many dialog boxes, you can encapsulate a tool class of CustomDialog by inheriting dialog. If you use less, you can use the custom AlertDialog to implement the pop-up box.
In the process of using the custom AlertDialog, you may encounter the following ...
Posted by Emir on Mon, 06 Jan 2020 23:06:21 -0800
Snowflake (Delphi version) is a distributed self-increasing ID algorithm that generates 5 million IDs in one second
Summary
In distributed systems, there are scenarios where a globally unique ID is required. In order to prevent ID conflicts, a 36-bit UUID can be used, but it has some drawbacks. First, it is relatively long, and UUIDs are generally out of order.
Sometimes we want to be able to use a simpler ID, and we want IDs to be generated in time order. ...
Posted by ezekiel on Mon, 06 Jan 2020 22:49:46 -0800
Remember the blood case caused by a pass file handle (continued)
Following Remember a blood case caused by passing a file handle once After that, the demo triggered another blood case, which is now recorded below.
This time I'm testing file handle transfer on linux, which does not have a STREAMS system.
The handle is therefore passed using the control message part in sendmsg/recvmsg of the unix domain socke ...
Posted by srikanth03565 on Mon, 06 Jan 2020 08:52:54 -0800
Problems in the application of Axios
1. Set Axios cross domain in Vue
axios has become the officially recommended way for Vue to obtain background data from ajax. However, we need to solve the cross domain problem of axios in use. Here we take the 2.x version of Vue cli as an example to solve the cross domain problem of axios.
In config/index.js We implement the ...
Posted by Gregghawes on Mon, 06 Jan 2020 04:37:26 -0800
Shell Foundation (6): position parameter and case branch
Position parameter
sign
$0: script file absolute Lujin
$1-9: position parameter mark less than 10
${10..}: position parameter marker greater than 10
$×: total number of parameters
$*: expand to a list of location parameters starting at 1. When it's enclosed in double quotes
When it gets up, it expands into a stri ...
Posted by eatadi on Mon, 06 Jan 2020 01:51:07 -0800
mysql/MariaDB learning 2.3 mysql common functions
Environmental Science:
CentOS 7,mysql5.7
Summary description:
This article mainly describes how to use mysql common functions, such as string correlation function, date format function, calculation function, etc
Steps:
1. Mathematical function
Functions for mathematical calculation:
-- ABS(X):Return X Absolute value
sele ...
Posted by AL-Kateb on Mon, 06 Jan 2020 01:03:01 -0800
String to get started with Python
The string to get started with Python
1. The concept and creation of strings
1. The concept of string
*In programs, text content is represented as a string
*Strings are composed of a series of ordered characters, such as:'helloworld'
*Strings and lists, tuples, are of sequence type'
*You can think of strings as lists of characters, and many op ...
Posted by jamey on Sun, 05 Jan 2020 22:54:33 -0800
Structure of JAVA Byte Code File
Development Tools: IEDA, JDK1.8, WinHex
1. Byte code file structure
source code
package com.jalja.java.bytecode;
/**
* @Auther: XL
* @Date: 2020/1/4 12:58
* @Description:
*/
public class BytecodeTest {
private int num=1;
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
...
Posted by Killswitch on Sun, 05 Jan 2020 09:50:38 -0800
pap and chap authentication configuration of ppp
1, Network topology
Two, PAP
2.1 PAP single authentication: R1 is the server, R2 is the client
R1 To configure:
R1>enable
R1#configure terminal
R1(config)#username jsxjs password adminjsxjs
R1(config)#interface s0/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication pap
R2 To configure:
R2>enable
R2#con ...
Posted by B0b on Sun, 05 Jan 2020 06:33:19 -0800