Questions tagged [uuid]

A UUID (Universally Unique IDentifier) is an identifier that is created with the intent of being, as the name suggests, universally unique.

A UUID (Universally Unique IDentifier) is an identifier that is created with the intent of being, as the name suggests, universally unique.

A UUID is a 16-octet (128-bit) number. In its canonical form, a UUID is represented by 32 hexadecimal digits, displayed in five groups separated by hyphens e.g.

5a0e8422-e29b-41d4-a716-416155440000

UUID is standardised by the Open Software Foundation (OSF) as part of the Distributed Computing Environment (DCE).

Wikipedia page for Universally Unique Identifier

See also:

3237 questions
1
vote
1 answer

Liquibase: I have a table with 4 columns. I want to add another column called UUID. How to generate values that match Java UUID for existing objects?

I have a table with 4 columns. I want to add another column called UUID. How to generate values that match java UUID for existing objects? For example, Present database status ID NAME AGE GENDER 1 Arnold 12 MALE 2 Keith 14 MALE When I add…
chlebq
  • 11
  • 1
1
vote
1 answer

Get UUID from mac address on iOS

I'm a new developer developing a BLE service on iOS and Android. Currently there is a problem that I am facing, that the device address on iOS is the UUID mapped from the mac address, and on Android it is the mac address of the device. So now is…
Zeno
  • 11
  • 2
1
vote
0 answers

UUID and auto increment INT as primay key for diffrent tables in one db

I have a database with about 100 tables, I want to add REST API requests connected with some tables. I don't want to expose id from the database directly to the request so I want to change PK (primary key) from auto-increment int to UUID for…
David
  • 67
  • 9
1
vote
2 answers

NHibernate: How to insert C# [Guid] into MySQL [BINARY(16) DEFAULT (uuid_to_bin(uuid(),1))] column?

Environment: MySQL Server 8.0, .NET Core 3.1, MySql.Data 8.0.28, NHibernate 5.3.11 I have following table: CREATE TABLE `Master` ( `Row_Id` char(36) NOT NULL DEFAULT (uuid()), `Path` varchar(1000) NOT NULL, PRIMARY KEY (`Row_Id`) )…
1
vote
0 answers

Is there a way to quickly generate UUID5 in bash?

I need to generate large numbers of deterministic UUIDs which works great for small numbers of values using the pattern uuidgen --sha1 -n ${namespace} -N ${name} However, this is too slow for generating hundreds of thousands of them at a time. I…
Kyle Banerjee
  • 2,554
  • 4
  • 22
  • 30
1
vote
1 answer

Python equivalent library/module for node-machine-id?

I'm looking for python equivalent library/module for node-machine-id I want to uniquely identify each desktop/device & get that UUID & send to DB. I'm able to achieve this particular thing in javascript with below code import pkg from…
1
vote
1 answer

Generate the same computer hardware id. (CHID) like computerhardwareids.exe from Windows SDK

INTRODUCTION This thread should be the ending chapter for this first thread from 2014 and this second one from 2017. To cut the story short, you simply need to know that the Microsoft Windows SDK includes a program called computerhardwareids.exe,…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
1
vote
0 answers

UUID as primary key throws an overflow error despite trying to use taggit

I am trying to use UUID as a primary key on a model and it throws an Overflow error when using redirect. I looked online for similar problems as I assume it should be quite frequent that people want to do that. I came…
soso23
  • 83
  • 1
  • 8
1
vote
1 answer

How to connect 50 thumbnails with the corresponding full size wallpapers in a LazyVGrid? (Xcode 13, iOS15)

Using the full, 2960x1440 wallpapers with LazyVGrid is not an option, as it leads to unsatisfactory performance, even on an iPhone 12 Pro. All assets are stored in the asset catalog. These are the Models: struct Thumbnail: Identifiable { var id…
Neurythmic
  • 25
  • 5
1
vote
1 answer

Check for pattern match with UUIDv4 in JavaScript

I am looking for a pattern match with certain string before and after the uuid. e.g.user/a24a6ea4-ce75-4665-a070-57453082c256/photo/a24a6ea4-ce75-4665-a070-57453082c256 const regexExp = new…
Digvijay
  • 7,836
  • 3
  • 32
  • 53
1
vote
1 answer

Fastest approach for iteration over iterable with elements of 16 bytes in cython

I have a list of bytes in python and I would like to iterate over the list and find the first occurrence of a particular byte sequence q. I wanted to use a numpy array but element types in a numpy array or native python array seem to be capped to 64…
David Buchaca
  • 206
  • 1
  • 5
1
vote
0 answers

Symfony - Could not convert database value to uuid

In my Symfony project I am using \Ramsey\Uuid\Uuid library for persisting user object with unique uuid. $user->setUUid(Uuid::uuid4()); No I want to search for an user object by that uuid like: $uuid = $this->userRepo->findOneBy(['uuid' =>…
selabol
  • 11
  • 3
1
vote
1 answer

Custom Entity UUID w/ embedded info

I follow clean arch / solid principles on my entire stack. I'm coming across a situation where I want to embed an UUID in some of my entity id fields in the domain logic, for example: Create OrganizationEntity id=abc123 Create a ItemEntity and…
Cory Robinson
  • 4,616
  • 4
  • 36
  • 53
1
vote
0 answers

Retrieve UUID from mongoshell and convert to hex string

I have a UUID field called id in my MongoDB. When I retrieve it as a part of the aggregation query in mongo shell ( version: 4.0.8), it responds in Binary format! e.g : db.collection.aggregate([{"$project" : {"id" : 1, "name" : 1 ...}}]) I get…
sap
  • 234
  • 5
  • 16
1
vote
1 answer

Uniqueness of UUID substring

We track an internal entity with java.util generated UUID. New requirement is to pass this object to a third party who requires a unique identifier with a max character limit of 11. In lieu of generating, tracking and mapping an entirely new unique…
Jimmy3Sticks
  • 172
  • 1
  • 9