3,325 questions
Advice
0
votes
1
replies
74
views
Create an X word combination linked to a specific set of data
To start, here is an example:
When a messenger app wants you to share your contact information, they assign you a random 4-6 word combination (e.g. TIGER-TRUCK-FIRES-GHOST-TILES) that acts as a human ...
3
votes
1
answer
160
views
Why does the `java.util.UUID` class seem to repeat its validation when parsing an input string?
The UUID specifications, RFC 9562 & RFC 4122, both define a canonical textual representation of 128 bits as groups of hexadecimal digits delimited by HYPHEN-PLUS character, 8-4-4-4-12, like this:
...
1
vote
1
answer
147
views
I can't query by UUID
I'm having trouble querying UUID values stored as BLOB(16) in SQLite3 using Go (with goqu). I insert a UUID using uuid.New().MarshalBinary() and this works correctly. However, when I try to select the ...
-4
votes
2
answers
172
views
malformed uuid format sql server on mac
I get this error:
"message": "Malformed UTF-8 characters, possibly incorrectly encoded",
This is my real id with UUID in the database:
944CC79D-5980-4587-8A52-000A2F11D7D1
...
2
votes
1
answer
94
views
Azure Storage blob upload filename collision with UUID
During performance test we got some error from Azure Storage saying that
com.azure.storage.blob.models.BlobStorageException: Status code 409, "<?xml version="1.0" encoding="utf-...
4
votes
3
answers
2k
views
How to use uuid with Node.js (v20) when require() throws ERR_REQUIRE_ESM?
I'm building a URL shortener app in Node.js (v20.16.0) using Express.
In my controller/user.js, I try to import uuid like this:
const { v4: uuidv4 } = require('uuid');
But when I run npm start, I get ...
0
votes
1
answer
73
views
How do you handle assigning unique IDs to front end Vue elements for testing?
We want to assign UUIDs to our front end Vue user-interactable elements (inputs, buttons, links, dropdowns, etc) for our automated testing. We want to structure this in a way that allows common ...
1
vote
2
answers
91
views
regex to match uuid4 not working with f-string [duplicate]
Working:
#!/usr/bin/python3
import re
path = "/a/b/c/e72cc82c-e83a-431c-9f63-c8d80eec9307"
if re.match(r"/a/b/c/[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$&...
0
votes
1
answer
44
views
How To Access Specific Notification Data In Laravel Test
I want to test MarkAsRead function via routing, my route was Route::post('notifications/{id}', [NotificationController::class, 'markAsRead']); and it was in API routing of auth:sanctum
api route
Route:...
-1
votes
1
answer
93
views
Golang patch uuid works only in debug
I need to patch the uuid.New() function in my tests but I faced the following problem: the patching works only in debug mode.
Here is some example of code which I wrote trying to fix the problem:
...
0
votes
0
answers
86
views
GraphQL UUID Handling Issue with Hasura CRUD Operations Using go-graphql-client
I have created a user table in Hasura with the following schema:
id: UUID generated by gen_random_uuid().
name: String.
email: String.
I am building a Go application using the go-graphql-client ...
2
votes
0
answers
154
views
How to set a seed for gen_random_uuid()?
For testing purposes on a table like this:
CREATE TABLE my_table (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
.
.
...I would like to get the same id's on each test run to better ...
21
votes
2
answers
3k
views
Does the UUID comparison in Java violate the UUID standard?
According to the UUID standard RFC 4122, UUIDs should be treated as unsigned int 128 and comparison should be done that way:
Rules for Lexical Equivalence:
Consider each field of the UUID to be ...
0
votes
1
answer
88
views
Django Rest API : ValueError: badly formed hexadecimal UUID string
I'm getting the following error while attempting to create a superuser on Django 5.0.4 Rest API
ValueError: badly formed hexadecimal UUID string
Here is the stack trace :
Here is the stack trace :
...
0
votes
1
answer
101
views
How to best handle different possible locations of uuid.h?
I'm building a library which uses a header named uuid.h. Unfortunately, on some GNU/Linux distributions, this header is located at /usr/include/uuid/uuid.h and on others it's located at /usr/include/...