How to find out the hard disk corresponding to the disk device in VMware virtual machine (Linux)

In VMware virtual machine (Linux), our Linux server may have multiple disks (or virtual disks), as shown below. The disks of this server include hard disk 1, hard disk 2 The hard disk 10 has a total of 10 hard disks.     In Linux system, the corresponding devices in the disk are as follows   [root@mylnx01 ~]# ls -lrt /dev/sd* brw-r----- 1 roo ...

Posted by jonybhi on Mon, 04 May 2020 22:34:19 +0200

golang validates the data format of struct field

Suppose we have the following structure: type User struct { Id int Name string Bio string Email string } We need to verify the validity of the fields in the structure: · the value of Id is in a range. · the length of Name is in the range of none. · Email format is correct. We might writ ...

Posted by brent123456 on Mon, 04 May 2020 08:10:43 +0200

Angular2 configuration Electron project (desktop cross platform)

Electron A desktop cross platform framework. In order to be able to use TypeScript for development, so the integration of configuration Configuration process To create an Angular2 project ng new ang-electron2 *cd enters the project file after creation npm install electron --save-dev --save-exact In the project, we need to Electro ...

Posted by Redlightpacket on Thu, 30 Apr 2020 17:55:55 +0200

H5 CSS style summary

How to query related documents Recommended website: http://devdocs.io/ First line of code div { width: 500px; height: 500px; background-color: red; } <!-- A cube background color of 500 in length and height is defined, red --> <div>I am div</div> Inherit ...

Posted by ksp on Thu, 02 Apr 2020 07:17:33 +0200

Huawei Network - firewall dual machine hot standby experiment (VGMP, HRP protocol)

Article directory Preface: 1, Huawei firewall dual hot standby overview 1.1 hot standby concept of firewall 1.2 hot standby features of firewall 1.2.1 priority of vgmp 1.3 Huawei firewall dual machine hot standby mode 1.4 state transition and working process of vgmp 1.5 working principle of vgmp (in ...

Posted by kausee on Wed, 26 Feb 2020 13:20:45 +0100

Use nmcli to configure link aggregation (team port binding) in active and standby mode

Now let's configure the network card binding in CentOS 7 and run the ip link command to view the available network cards [root@localhost ~]# ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:0 ...

Posted by Bomas on Mon, 17 Feb 2020 06:52:07 +0100

2020 latest version of idea activation tutorial

windows cracking tutorial First, download the jar package: (the cloud disk link can't be sent, you pay attention to gzh "grey wolf learn java" and reply to idea to get it) put it in the appropriate folder (the same level directory of idea is preferred) for management; Enter Disk C - > User - > user name - > intellijidea2019. ...

Posted by Jude on Thu, 13 Feb 2020 15:08:40 +0100

Using rime input method in Emacs

When using external input method in email, the biggest problem is that when switching the email mode, there will be a delay for input, because you need to manually switch the input method to the corresponding English mode to use the shortcut keys normally. But if you use Emacs' own input function, you don't need to do these synchronizations. Yo ...

Posted by Merve on Thu, 16 Jan 2020 12:41:19 +0100

Common methods of JavaScript project practice

On the front road, accumulate slowly 1. Get the parameter value passed by the URL through the parameter name Method 1 GetQueryString:function(name){//Get the parameter value passed by the URL through the parameter name var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search ...

Posted by dotBz on Sun, 12 Jan 2020 17:45:09 +0100

android Bluetooth printing

Bluetooth connection of mobile phone uses Jiabo printer (ZH380) Bluetooth privileges <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.BLUETOOTH" /> android 6.0 and above also need to add location permission <uses-permission android:nam ...

Posted by ankurcse on Mon, 06 Jan 2020 13:16:58 +0100