Questions tagged [uniqueidentifier]

With reference to a given (possibly implicit) set of objects, a unique identifier is any identifier which is guaranteed to be unique among all identifiers used for those objects and for a specific purpose.

Overview

When dealing with a set of objects, a unique identifier is any identifier that is designed to be unique among all identifiers used for those objects within a given range, scope or purpose.

1591 questions
0
votes
4 answers

IDs from State Monad in Haskell

Possible Duplicate: Creating unique labels in Haskell I've got a datatype Person and some input data from which I will create the Persons. I'd like to have each Person have its own ID (let's say integers [0..]). I could do this with recursion,…
Martin Janiczek
  • 2,996
  • 3
  • 24
  • 32
0
votes
1 answer

Separate database for random strings?

When a user creates an order on my website, the order needs a code which should be unique across the app. I don't want to use a GUID because they're long and ungainly - I just want an alpha numeric code of eight characters or something. I think its…
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
0
votes
1 answer

nHibernate different object with the same identifier value

I'm trying to save an one-to-many mapping and nHibernate throws me this error because its assign the same ID for the two entries of the ordPsiPt table. I looked around and using the Session.merge() did not work either. Here is the mapping of the…
gbc921
  • 316
  • 2
  • 6
  • 22
0
votes
2 answers

Android unique UDID

Can someone tell me if the code I have been using is the proper way to get the unique id? I am suspecting i may have dupes out there and this could be causing issues on an administrative level in my company... final TelephonyManager tm =…
Jesse
  • 2,674
  • 6
  • 30
  • 47
0
votes
3 answers

generating a reliable system wide unique identifier

We store documents in our database (sql server), the documents are spread across various tables so there is no one table that contains all of them. I now have a requirement to give all documents a system wide unique id, one that is semi-readable,…
Daniel Powell
  • 8,143
  • 11
  • 61
  • 108
0
votes
1 answer

How to create a new user ID for cloned element

Possible Duplicate: jquery create a unique id I am cloning a form and want to give a unique ID to each cloned element. How can I do this? Here is my script: // Duplicates category select menu $(".add-color").click(function(){ …
Mac10
  • 145
  • 4
  • 15
0
votes
4 answers

How many bytes are unique enough for twitter?

I don't want my database id's to be sequential, so I'm trying to generate uids with this code: $bin = openssl_random_pseudo_bytes(12); $hex = bin2hex($bin); return base_convert($hex, 16, 36); My question is: how many bytes would i need to make the…
Hugo Mota
  • 11,200
  • 9
  • 42
  • 60
0
votes
1 answer

Creating a unique identifier - pure C

I'm writing a toy OS and I need a way to create a unique identifier (like Windows' HANDLE except not). This needs to be pure C/ASM mathematics; I don't want reliance on anything, not even the C standard library, if possible. I currently have a data…
nuju
  • 798
  • 2
  • 9
  • 17
0
votes
2 answers

Which circumstances should I use System.Guid for unique identifiers?

In .NET Framework 4.5, System.Guid represents a globally unique identifier. Should I use alyaws Guid class for a unique identifier in my architecture? Which situation I should use it? Which situation I shouldn't ? Can anyone make detailed…
Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
0
votes
1 answer

How to get UDID for purposes of provisioning?

It sounds like this topic has been beaten to death; but when you set up a provisioning profile for deployment to test devices, an arbitrarily generated UUID will not suffice, you need the actual UDID to include in the provisioning profile. Sure,…
Jay Imerman
  • 4,475
  • 6
  • 40
  • 55
0
votes
2 answers

generating custom uniqueidentifier sql server

im using sql server 2012, is it possible to generate a uniqueidentifier value based on two or three values mostly varchars or decimal, i mean any data type which takes 0-9 and a-z. Usually uniqueidentifier varies from system to system. For my…
Harsha
  • 1,161
  • 4
  • 18
  • 38
0
votes
1 answer

How do I generate unique IDs on the Mac/Linux without any external ruby dependencies (i.e. no gems)?

I'm trying to find a way to generate a unique system ID (HWID) without having to add any other gems first. In other words, I want someone who's running a brand new version of Mac/Linux to be able to generate an ID, without having to install anything…
Justin
  • 93
  • 1
  • 11
0
votes
1 answer

Reliably associate local metadata to a remote file?

WinForms / C# My application allows the user to specify 1) additional information for 2) a given file, both of which are uploaded to the server. There are two isolated uploads: first the file, and (maybe much) later the metadata. Please assume the…
lance
  • 16,092
  • 19
  • 77
  • 136
0
votes
1 answer

Unique identifiers for each data point in Mahout

Suppose I have a dataset I want to run a Mahout clustering job on. I want each data point to have a unique identifier, such as an ID number. I don't want to append the ID to the vector as this way it will be included in the clustering calculations.…
Alison
  • 99
  • 2
  • 7
0
votes
1 answer

Function for GetUniquePCID .NET

I need a function that returns a String, using the hardware serial numbers and mixing them together to obtain a single serial number. I searched try a function like this but I can not find anything similar, this function need to identify a pc with a…
John Nuñez
  • 1,780
  • 13
  • 35
  • 51
1 2 3
99
100