Questions tagged [guid]
A GUID (Globally Unique IDentifier) is a unique reference number used as an identifier in computer software.
2,010
questions
0
votes
0
answers
30
views
How to make UWP can auto collect UUID or GUID?
I create a new UWP project, and then I want it can pair and connect bluetooth device, but every time I try to test my appliaction, it always need me copy and paste UUID or GUID from bluetooth device, ...
0
votes
1
answer
74
views
Query guids with different binary subTypes in the same collection
There is a way I can query two different formats of _id?
UUID('4e519e66-751c-4ef3-9a06-3de70b95b755')
and
BinData(3, 'Zp5RThx1806aBj3nC5W3VQ==')
I have both formats in my collection.
0
votes
0
answers
35
views
Guid value doesn't get inserted properly into the cassandra table
I have following static class that I used in several unit tests in one of my project. I have the cassandra database in a docker container. I want to specifically use the Testrunid1 in the TestBase ...
0
votes
0
answers
55
views
Razor modal component with GUID as ID
Can someone explain why there is a bug here in certain situations?
I created modal as a razor component with GUID ID like you can see below. When I am trying to open the modal component by clicking a ...
0
votes
0
answers
51
views
Header preprocessor unique IDs generation C++
Some code I stumbled upon today:
#ifndef EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
Under normal circumstances, you'd write #...
0
votes
1
answer
86
views
Transparent Browser for our own web-app and PWA [Using static HTML,CSS and JavaScript][like user can see desktop wallpaper through our web-app/PWA]
I am an beginner frontend developer and designer, I'm currently working on an webapplication (chat) using socket.
Languages I'm and my friend using :
Scala,HTML,CSS,JavaScript.
I'm working on the HTML ...
-1
votes
1
answer
49
views
Need a user friendly UniqueId string for DB records [closed]
I need a user friendly UniqueId for each appointment item in my application. This UniqueId is a "folder" name for BLOBs attached to the item. So a Guid is not good.
One solution I came up ...
2
votes
3
answers
113
views
What about IFC64 GUID?
I'm writing a C# application, where objects are to be identified by their Guid. According to the customer, there should be two types:
Standard GUID (128-bit, 36 characters)
IFC64 GUID (132-bit, 22 ...
0
votes
1
answer
119
views
Find an object by GUID using MongoDB Driver with a registered class map
How do I find a mongo document by GUID? The c# POCO has an Id property that is stored in the mongo database.
The class map for the POCO is registered and called before a client is configured:
...
-1
votes
1
answer
78
views
Why linker can not find this local definition in c++
I have this code:
// Include guiddef.h
#include <guiddef.h>
// Define GUID
DEFINE_GUID(MyGuid,
0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0);
int main() {
...
0
votes
0
answers
8
views
How to find device using GUID in C++? What changes are needed to get this to build under MinGW?
GetSystemMetrics(SM_MOUSEPRESENT); is returning true always whether mouse present or not.
What changes are needed in code below for MinGW:
https://stackoverflow.com/users/608884/**noobsarepeople2**
[...
2
votes
1
answer
142
views
Why set UUID("00000000-0000-0000-0000-000000000000") on field that has attribute: [BsonId(IdGenerator = typeof(GuidGenerator))]
I have document class:
[BsonIgnoreExtraElements]
public class Document
{
[BsonId(IdGenerator = typeof(GuidGenerator))]
public Guid ID { get; set; }
[BsonDateTimeOptions(Kind = ...
0
votes
1
answer
168
views
How to get all sharepoint site feature's names and id
I have been trying to use $features = Get-PnPFeature and $features = Get-PnPFeature -Scope Site But I only get the enabled features and it doesn't include all the features. I need a complete list of ...
0
votes
1
answer
207
views
Advanced Installer's requirement to change the Product Code and Upgrade Code GUIDs when repackaging a new product version
I need a sanity check and some help here. I'm not extremely technical (such as a programming degree) but I'm in charge of the installers for my company. We've been using InnoSetup for over 10 years, ...
0
votes
1
answer
247
views
Byte array for GUID must be exactly 16 bytes long - Devart - Oracle
I'm having a problem when I insert a Guid value in an Oracle database (raw(16) field). I'm using the Devart library in my C# application to record records. The error occurs randomly because I use Guid....
0
votes
0
answers
9
views
How to get the GUID for BrandingThemeID
We need the BrandingThemeID GUID so we can pass it using the API, but how do you see what the GUID is please?
Thanks in advance
enter image description here
We opened the Branding Themes but cannot ...
0
votes
3
answers
96
views
System.currentTimeMillis() Race Condition
Can using System.currentTimeMillis() as a unique identifier in a Java Spring Boot project lead to a race condition, where someone can hit the API at the same milisecond? What are the chances of this.
...
1
vote
2
answers
106
views
Unique, incremental ID generation constrained within an entity
We're building a ticketing system for our customers (enterprise clients) and we're trying to come up with a way to have a sequential, unique ticket ID generation system that is also user-friendly.
...
2
votes
0
answers
52
views
Why does Guid.ToByteArray in C# "rechange" the byte position? [duplicate]
Guid.ToByteArray() change the position of the first bytes. Why does this method do this?
I want to parse a Base64 string to a byte array in the same form.
Look at this example1:
Guid guid = Guid....
0
votes
0
answers
75
views
Why doesn't this type for GUID in TypeScript behave as expected?
I am trying to make a type for GUID in TypeScript and while this looks like it should enforce hex strings divided with "-", it does not.
type GUID = `${HexString<8>}-${HexString<4&...
0
votes
0
answers
65
views
Registry GUID for Adobe PDF Reader in IE11
Now that IE11 has retired, everyone has to use Edge. We have some apps that still rely on IE11 and were working in Edge under Windows 10 with IE11 compatibility mode enabled. However, since moving ...
-2
votes
1
answer
182
views
Powershell guid is not unique when I run it in multiple threads - How can I make it unique?
I am running a script in powershell in multiple threads (multiple shells), and I'm finding that its possible for the NewGuid powershell function to generate values in powershell 7 that are not ...
0
votes
2
answers
368
views
How to resolve error regarding null value passed in Guid property?
I am trying to post JSON as which is supposed to work as a request body for a filter/search , so null value is allowed:
{
"Guid":"",
"FirstName":"",
...
-3
votes
1
answer
261
views
The project has static values but don't work FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) [closed]
I have a core project that stores static data, I use it in the data preoctc and I get this error
System.TypeInitializationException: 'The type initializer for 'ERP.Core.Constants.CoreDefaultValues' ...
0
votes
1
answer
27
views
OLECHAR used as pointer - will it dangling pointer if not nullptr? Function CoTaskMemFree()
I generate a GUID and then save it in OLECHAR* with StringFromCLSID(). If I create a function which returns an OLECHAR and not nullptr the OLECHAR after using CoTaskMemFree() - will it cause dangling ...
0
votes
0
answers
48
views
What is the performance difference between GUID V4 vs V1 generation?
.NET defaults to V4 GUID, to get V1 I would need to use Win32 UUIDCreateSequential which is based on TimeStamp (100ns accuracy).
However, with C# 11, DateTime now has accuracy at 1ns. So I'm ...
0
votes
1
answer
265
views
Mongo DB C# API, Converts GUID to LUUID instead of UUID
I have a C# MongoDB driver 2.15.0, which inserts data to MongoDB using Modals. But in my Test Environment the data inserted in MongoDB is UUID. But in Production its inserted as LUUID, I need it as ...
0
votes
0
answers
50
views
Creating calendar appointments (ics) - GUID or database primary key as UID
I am working on an application in which you can sign up for workshops, among other things.
When you do that, you receive an invitation by mail in the form of an ICS file.
I want that when you sign out ...
0
votes
1
answer
317
views
Is it possible to create a table with table name as GUID
is is possible to do
DECLARE @guid uniqueidentifier = NEWID();
select @guid
CREATE TABLE @guid
(
[UserId] uniqueidentifier NOT NULL DEFAULT NewID(),
[FirstName] nvarchar(30),
[LastName] ...
0
votes
2
answers
325
views
Can't connect to sharepoint list
I setup new Sharepoint list, customized the form using Power App and able to view it and add new data. Now trying to setup a connection to this list to extract items that were added and unable to see ...
0
votes
1
answer
120
views
Generate UUID/GUID in Postgres 12.8
I have the following postgres version, its an AWS Aurora Postgres -
"PostgreSQL 12.8 on x86_64-pc-linux-gnu, compiled by x86_64-pc-linux-gnu-gcc (GCC) 7.4.0, 64-bit"
Is it possible to ...
0
votes
1
answer
229
views
Grab just the GUID from powercfg /list
Working on a Caffinate Alternative for Windows and was wondering if there was a way I could grab just the GUID of the current used powerplan without the rest of the output heres a example of what I ...
-1
votes
1
answer
361
views
Save guid without dashes into SQL Server using EF Core
I'm trying to save a guid in SQL Server, but it is adding dashes and the Guid that comes from the web does not contain
Json receive web, id not contains dash:
{
"id": "...
0
votes
0
answers
280
views
Guid should contain 32 digits with 4 dashes in SignalR-Client-Swift
I am new to iOS. I am working on Swift SignalR using SignalR-Client-Swift. Initially it was working fine but now it is returning below error while subscribing channels.
Connection opens successfully
...
1
vote
1
answer
478
views
GUID is 00000000-0000-0000-0000-000000000000 when posting to .net core endpoint from axios, react and typescript
I have a .net endpoint here:
public class ListContactRequest
{
public Guid userId { get; set; }
}
[Authorize]
[HttPost]
[Route("listContacts")]
public async Task<...
0
votes
0
answers
11
views
GetCurrentHwProfile not working in my "CLR Empty Project (.NET Framework)" [duplicate]
I would like to make a Windows Desktop application that is checking the hardware ID of currently used PC.
I'm using VS2019 and created a "CLR Empty Project (.NET Framework)". I created a new ...
5
votes
2
answers
3k
views
XUnit tests Could not find project with GUID
I have a problem with my unit tests. In my project I created an additional xUnit project.
If I check tests by Right Click > Run, there is no problem, but using Run All Tests in View button (whole ...
0
votes
1
answer
728
views
Find() in mongoDB C# driver with uuids doesn't work
I'm trying to find a document in mongoDB by a uuid/guid, but even when converting the C# uuids to the standard uuids, it doesn't work. Using find() on other properties works fine.
A bit more detail ...
2
votes
1
answer
73
views
Moving two objects in the same class on a JFrame in Java
I have a project I am working on in that I have to create two objects, I would like the big rectangle(BLUE) to move around the frame every time I press the arrow keys on my keyboard while the small ...
1
vote
1
answer
206
views
Parse GUID from windows environment variable with .NET core 3.1 .AddEnvironmentVariables()
I use to set some environment variable in order to overwrite appsettings values that are specific to my dev machine (ie connection strings, local endpoints etc). I set them in User variables for my ...
0
votes
0
answers
36
views
randomly select an item from IEnumerable by guid
Given the following lookup data, how can one randomly select one of these items based on guid? Most of the questions out there are based on some number.
IEnumerable<Widgets> _widgetSources = new ...
1
vote
0
answers
34
views
Will guid generation logic ever generate 00000000-0000-0000-0000-000000000000?
I have run into a scenario where a customer may have a nullable guid for me to compare to in my database. I could go ahead and rewrite my call stack to make the object nullable, but I also don't want ...
-1
votes
1
answer
259
views
How to convert number to GUID at JS
Tell me how to convert a number to GUID?
We use GUID on the backend, I know that it is an encoded number, because the guys from the back showed me this code (below)
In some logic, I have to give them ...
1
vote
1
answer
264
views
Why do these commands give different values for a Domain Controller GUID?
Evening Folks,
edited for clarity
I have to get the Domain Controller GUID for a Certificate Request. I have a script that is provided by our CA that will generate the request and pull the GUID. what ...
0
votes
2
answers
144
views
Strip all dashes in string for GUIDs only
I don't want to replace ALL dashes in a string, but rather replace only those dashes that are part of a GUID/UUID.
Before the replace:
Mary-Anne Smith is a physics professor at the University of ...
0
votes
1
answer
286
views
PowerShell: Cannot insert GUID
I am trying to insert data from a csv file into a table in SQL Server where one of the columns in the table is of the data type of uniqueidentifier
The data in the csv file is a guid, I can copy and ...
1
vote
0
answers
225
views
Creating a Power Mode Script in Windows 10
Background:
I'm interning at a firm this fall in an IT support position, one of the ongoing projects I'm fielding is the development of useful powershell scripts for our machines. Recently we've been ...
0
votes
1
answer
40
views
ACCDB database, update GUID column
I have an Access database that need to be upgraded to using GUIDs. I added a number column with replication ID size one of the base table and now I need to add the GUIDs for each of the rows.
I'm ...
0
votes
1
answer
367
views
How to convert string to uniqueidentifier in Django?
I'm trying to insert a pre-generated GUID to SQL Server database from another SQL Server database via Django ORM, but keep getting Conversion failed when converting from a character string to ...
3
votes
2
answers
330
views
Notepad++ Search for and replace Underscore Characters in "GUIDs"
A colleague has written some C# code that outputs GUIDs to a CSV file. The code has been running for a while but it has been discovered that the GUIDs contain underscore characters, instead of hyphens ...