uuid Questions
9
Solved
9
Solved
I write websocket chat.
How to generate unique id for user?
now i use this code:
id = new DateTime.now().millisecondsSinceEpoch;
is there any more neat solution?
Noman asked 21/3, 2013 at 13:15
4
Solved
I'm very new to JS, I want to generate an UUID. Here's what I tried, step by step:
mkdir test
cd test
touch file1.js
Inside file1.js:
let crypto;
try {
crypto = require('crypto');
} catch (e...
Rubbico asked 2/8, 2022 at 9:27
10
Solved
I'm generating UUIDs using PHP, per the function found here.
Now I want to store that in a MySQL database. What is the best/most efficient MySQL data type for storing UUID v4?
I currently have varc...
Inotropic asked 27/3, 2017 at 20:47
19
Solved
How to check if variable contains valid UUID/GUID identifier?
I'm currently interested only in validating types 1 and 4, but it should not be a limitation to your answers.
Romish asked 26/10, 2011 at 16:40
4
Solved
I'm trying to generate a UUID with all zeros:
java.util.UUID fromString "00000000-00000000-00000000-00000000"
The error is
java.lang.IllegalArgumentException: Invalid UUID string: 00000000-000...
5
Solved
MySQL's UUID function returns a UUIDv1 GUID. I'm looking for an easy way to generate random GUIDs (i.e. UUIDv4) in SQL.
3
Solved
I'm working with a C project that's using DirectX and I've run into a problem. Certain DX calls require a IID object, typically generated with __uuidof. One thing this is required for is creating a...
Vigilantism asked 15/1, 2012 at 9:40
2
Solved
Is there a easy way to convert UUIDs from this format
5967ca5e6162317eb4a825dcdcde0aea
to this format?
5967ca5e-6162-317e-b4a8-25dcdcde0aea
with an MySQL Query? i need to convert over 100...
1
Solved
Given a table like this:
CREATE TABLE the_table (
the_uuid UUID NOT NULL UNIQUE DEFAULT gen_random_uuid()
-- more columns
);
If we insert a row without a value for the the_uuid column, and the D...
Medrano asked 17/3, 2023 at 12:48
11
Solved
How can I get a device's unique ID in Swift?
I need an ID to use in the database and as the API-key for my web service in my social app. Something to keep track of this devices daily use and limit ...
Garcon asked 19/9, 2014 at 2:30
13
Solved
4
Solved
I'm wanting to use UUIDs in an app I'm building and am running into a bit of a problem. Due to UUIDs (v4) not being sortable because they're randomly generated, I'm trying to override ActiveRecord:...
Rheum asked 14/6, 2015 at 3:8
3
I am trying to fetch rows from the table by checking if uuids matches any of the values in the array that is passed to the select statement.
The code looks like this:
val existingCustomers = fetchR...
Howlyn asked 6/12, 2021 at 13:2
4
I would like to define a polymorphic table. My problem being that one table's primary_key is of type uuid(string) and the other id(integer).
I thought maybe having a model_able_id and a model_able_...
Kilo asked 23/1, 2018 at 17:27
19
Solved
So I've been doing some digging around and I've been trying to piece together a function that generates a valid v4 UUID in PHP. This is the closest I've been able to come. My knowledge in hex, deci...
12
Solved
My question is rather simple. I'm aware of the concept of a UUID and I want to generate one to refer to each 'item' from a 'store' in my DB with. Seems reasonable right?
The problem is the followin...
Graehme asked 20/9, 2012 at 1:53
3
I’m writing an app in React-Native and need some help concerning identifying the device after reinstalling the application.
What I need:
Get a unique device ID for every device for both Android ...
Capsulate asked 20/9, 2017 at 9:9
5
Solved
What I am trying to achieve is generate a UUID which is automatically assigned during a DB Insert. Similar to the primary key column named "id" generating an id value.
The model values looks some...
Ceraceous asked 13/7, 2017 at 17:0
3
Solved
I'm having some issues here. I am using the following code to generate the UUID in my application.
- (NSString *)GetUUID {
CFUUIDRef theUUID = CFUUIDCreate(NULL);
CFStringRef string = CFUUIDCreat...
Conciliatory asked 21/9, 2011 at 4:18
7
Solved
I am receiving this Error when trying to use UUID Module in AWS Lambda JavaScript code.
Error: Cannot find module 'uuid/v4'
I am not using AWSCLI or NPM, i am instead using the AWS Lambda dashbo...
Indochina asked 10/3, 2020 at 1:39
2
Solved
I have an array of string UUIDs that I want to change to UUID. Example of the data:
["69359037-9599-48e7-b8f2-48393c019135" "1d8a7307-b5f8-4686-b9dc-b752430abbd8"]
How can I ch...
8
Solved
I get this error when i try to pass the UUID attribute to url parameter.
urlpatterns = [
url(r'^historia-clinica/(?P<uuid>[W\d\-]+)/$', ClinicHistoryDetail.as_view(), name='...'),
]
views...
4
We are using UUID as primary key for out oracle DB, and trying to determine an appropriate max character length for the VARCHAR. Apparently this is 36 characters but we have noticed UUID'S generate...
Iridescent asked 15/11, 2012 at 11:54
4
I'm using the below function to generate UUID
UUID.randomUUID().toString()
In production we have 50+ servers (application server - each is a JVM on its own) and for requests that land in these s...
Quadrisect asked 15/1, 2015 at 19:29
© 2022 - 2025 — McMap. All rights reserved.