System: MacPython version: 2.7\3.5\3.6Reason for demand:python2.7 (default) installed on your computer, execute python command to open Work needs to be installed python3.5, execution Python3 can command to open Later installed Anaconda, Python3 start changed to 3.6 version, want to use python3.5 will have to execute python3.5 *.py, python3 by default is 3.6 Version, some headaches Workaround:Open ' ~/.bash_profile ', add "Alias" in front of the version that needs to be opened by default,sa
to modify the number of "Recently used items" in the Mac system:
This is the original picture, in the upper left corner of the small Apple after you can see what recently used, at a glance, at the bottom of the menu to clear the function, but we should not be able to remember every time to press.
To change the friend, first enter the system preferences. Again into the "General".
At the bott
MAC address of the NIC
Select macaddress from win32_networkadapter where (macaddress is not null) and (manufacturer
Result: 08: 00: 46: 63: FF: 8C
Serial number of the CPU
Select processorid from win32_processor
Result: 3febf9ff00000f24
Motherboard serial number
Select serialnumber from win32_bios
Result: 28362630-3700521
Obtain the hard disk IDString H
You can use the dis device manuinfo command to view the MAC address, serial number, and production date of the H3C MSR series router on the local machine. The execution result is as follows:
Slot 0DEVICE_NAME: 20-20DEVICE_SERIAL_NUMBER: 210235a28mb09c000110MAC_ADDRESS: 0023-89a2-2a21MANUFACTURING_DATE: 2009-12-16VENDOR_NAME: H3CThe following figure shows the execution result on the 5040 vro.Dis device manui
Using system. Management;
/// /// Obtain the MAC address/// /// Public String getnetcardmacaddress (){Managementclass MC;Managementobjectcollection MOC;MC = new managementclass ("win32_networkadapterconfiguration ");MoC = mc. getinstances ();String STR = "";Foreach (managementobject Mo in MoC){If (bool) Mo ["ipenabled"] = true)STR = Mo ["macaddress"]. tostring ();
}Return STR;}
/// /// Serial number of d
Looked at many times, just to sort out my understanding of the whole communication process, the following, will continue to learn to supplement the correction:When communicating using the TCP/IP protocol family, there are three key identifying information: MAC address, IP address, and port number.
The MAC address is wrapped in the Ethernet header at the
Use Mac's homebre to install NPM to develop PHP. After installation, the landing page info.php display version is the PHP5, but the terminal php-v is php7.0. Php-fpm-v is PHP5. Behind me according to your sudo rm-r/usr/bin/php, delete your own PHP, or soMap as followsAfter installing the PHP70, the landing page info.php display version is the own php5The version number is as followsFinally I looked at FPM with PHP-FPM, and it turned out this
Then I us
Turn from: http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=124threadID=28320messageID=171767
Java obtains the CPU serial number and the network card MAC address
/*
Using the commands of the runtime call operating system, the specific commands depend on the different operating systems, and do not invoke the Runtime.getruntime (). EXEC (String) interface to use Runtime.getruntime (). EXEC ( String[]) This i
This period of time MySQL on the development process crashes 2 times, has not found the reason, because the use of the MacBook is fully equipped with memory, top view also no exception. SAR is also normal. The MySQL log also has no valuable information. This article explains the workaround: Modify the default number of MySQL 5.0 connections under Mac OS x.
This time the server crashes 2 times, has not foun
: disklocal time is: Wed Nov 8 16:10:00 2017 Cstsmart support was: Unavailable-device lacks smart capability.=== START of READ Smart DATA Section ===error Counte R Logging not Supporteddevice does not support self Test logging#加-C parameter[Email protected] ~]# smartctl-x/dev/sdasmartctl 6.2 2017-02-27 r4394 [x86_64-linux-3.10.0-514.26.2.el7.x86_64] ( Local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org=== START of information section = =
1. Download the blank Board Serializer compression package in the attachment and unzip it to get blank Board serializer.dmg2. Burn the blank Board serializer.dmg into a USB flash drive or DVD. (Too troublesome or will not burn the classmate can directly decompression blank Board SERIALIZER.DMG, unzip all the files dragged to an empty U disk on the line)3. Then use a burned USB flash drive or DVD to boot (press and hold option on the boot to select)4. write the serial
Showmatch "Sets the matching pattern, similar to when an opening parenthesis is entered, matches the appropriate closing parenthesisSet guioptions-=t "Removal of vim in GUI version toolbarSet VB t_vb= "When Vim is being edited, an alert is issued if the command is wrong, and the setting removes the alarmSet ruler "Displays the status line of the cursor position in the lower-right corner during the editing processSet Nohls "By default, look for a match is a high brightness display, this setting
Hard disk
private void GetInfo (){String cpuInfo = "";//cpu serial numberManagementClass cimobject = new ManagementClass ("Win32_Processor");Managementobjectcollection MOC = Cimobject. GetInstances ();foreach (ManagementObject mo in MOC){CpuInfo = mo. properties["Processorid"]. Value.tostring ();Response.Write ("CPU serial Number:" +cpuinfo.tostring ());}
Get the hard drive IDString Hdid;ManagementClass Cimobject1 = new ManagementClass ("win32_diskdri
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.