• Implementation of Java UUID serialization by golang


    At present, only the fixed UUID generated by Java is implemented: 85bb94b8-fd4b-4e1c-8f49-3cedd49d8f28 package main import ( “encoding/binary” “encoding/json” “fmt” “log” “os” “strings” “time” “github.com/Shopify/sarama” “github.com/google/uuid” ) const ( DATE_TIME_PATTERN = “” STREAM_MAGIC = 0xaced STREAM_VERSION = 5 TC_STRING = 0x74 TC_OBJECT = 0x73 TC_CLASSDESC = 0x72 SC_SERIALIZABLE = 0x02 TC_ENDBLOCKDATA = 0x78 TC_NULL = 0x70 […]

  • How to get the unique identifier UUID in Linux


    UUID (universal unique identifiers), the unique identifier in the world. It is a string identifying the storage devices in the system, making it identify all the storage devices in the system. Why use UUID? Because the device names automatically assigned by the system are not always the same, they depend on the order in which […]

  • How to generate standard UUID (GUID) in PHP


    UUID refers to the number generated on one machine, which ensures that it is unique to all machines in the same space-time. Usually, the platform provides the API for generating UUID. UUID is calculated according to the standard set by the Open Software Foundation (OSF), using Ethernet card address, nanosecond time, chip ID code and […]

  • JS implementation Click to generate UUID method complete example [based on jQuery]


    The example of this paper describes the method of generating UUID by clicking in JS. To share with you for your reference, as follows: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> < title > www.jb51.net method instance of generating UUID with JS < / Title > <script src=”http://libs.baidu.com/jquery/2.0.0/jquery.min.js”></script> <script> var id = getUuid(); $(document).ready(function() { […]

  • Common tools in development – get unique identification, UDID, UUID, keychain of equipment, save UUID, judge network


    UDID Full name: unique device identifier Description: UDID is the unique device identifier, which is the unique number of each IOS device except the serial number.UDID is only device related, which is used to distinguish each unique IOS device (including iPhone, iPad, etc.), is composed of 40 characters of letters and numbers. Function: it can […]

  • How does Mac query UUID information? Hard disk interface type query method


    In Mac, it is important to query UUID information, such as hardware or whether it is genuine or not. Sometimes I forget my ID, which I need to query. Let’s take a look at the detailed tutorial. 1、Query apple ID:Click on the preferences on dock and clickApp StoreOptions. 2. After entering, as long as the […]