Questions tagged [unique-id]

Anything related to the generation and management of unique identifiers, i.e. pieces of information (such as strings, numbers, etc.) that (must/can) have no duplicate in some context (e.g. process IDs in a running PC, primary keys in a database table, user names in a networked system, etc.).

184 questions
1
vote
1 answer

Are _ids in a sub document array assured to be unique within that array

MongoDB I know that if you have an array of subdocuments, and you index some field on those subdocuments, that field is only assured to be unique within the whole collection, but not within that single array. Does the same apply to the _id property…
Thiago P
  • 275
  • 5
  • 14
1
vote
1 answer

VBA - create unique ID of String / Hash

First of all I want so say sorry for not showing any code but right now I need some guidelines on how to take out a unique ID of a string. So I have some problems of how to organize data. Lets say that the data is organized so that each dataID has…
Fredrik
  • 477
  • 4
  • 22
1
vote
0 answers

Is it acceptable to use an allocated memory block's pointer as a unique internal hash or ID on a runtime-basis?

I am reviewing the code for a garbage collection system on my project and I was wondering -- is it acceptable to use a pointer as a unique internal hash or ID given that it holds the value of an address to a block of memory allocated by new or…
CinchBlue
  • 6,046
  • 1
  • 27
  • 58
1
vote
2 answers

Generating unique ID in a Java class

I am less acquainted with front end and am just a beginner in back end. I am creating a webpage using servlets that reads data of a person from the database and displays it on the page in a form of a list. Each row of the list, consists of a button…
meowth
  • 43
  • 1
  • 2
  • 10
1
vote
5 answers

generate unique id for array value groups

I have an asosiative array which contains data about teams and players. Example: $arr = array( array('teamID'=> '','teamName' => 'USA', 'playerName'='John'), array('teamID'=> '','teamName' => 'USA', 'playerName'='Peter'), array('teamID'=>…
Giedrius
  • 603
  • 1
  • 6
  • 26
1
vote
1 answer

Consistent device id

Is there any way of getting a unique device id, that are consistent with nodejs/express/some npm module? I've tried with fingerprintjs2 on the clientside, but that isn't consistent, meaning I can get two different id's based on where I'm at. It also…
1
vote
1 answer

Reuse UniqueId in project 2010

I have a program in project 2010 with few tasks. Each task has its own unique-id (i.e. it is being populated automatically into UniqueID column by the project). For some reason, some of the tasks got deleted. I want to use again UniqueID of those…
Nir
  • 601
  • 7
  • 21
1
vote
2 answers

Id Collision in the Sqlite Database?

id in the Sqlite is not generating unique id when inserted in the sqlite database. There are college list,university list and school list for which i have to bookmark.When i bookmark the 1st items of the school the the ist item of college and…
seon
  • 1,050
  • 2
  • 13
  • 27
1
vote
0 answers

Create a unique random ID

Since couple of days, i have a problem with my function who generate a random id. Here is the function : public static function generatePin($max) { $key = ""; $possibilities = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $possibilities .=…
Shark34
  • 69
  • 1
  • 7
1
vote
1 answer

How to select, update and insert rows from a table to itself?

I have an exam table with the following columns CLASS_EXAM_ID CLASS_ID EXAM_NAME TermNo WEIGHT FROM_DATE TO_DATE EXAM_DATE where CLASS_EXAM_ID is a unique id. I want to copy term 1 and just make term 2. I have this query: INSERT INTO Exam (ExamId,…
A Bhandari
  • 13
  • 3
1
vote
1 answer

How easily will uniqid() with more entropy create a duplicate?

This might be an off topic question but i hope someone can answer this question. Per how many nanoseconds, mili seconds or seconds does uniqid() with more entropy run the risk of creating a duplicate? With reference to link below, uniqid will…
Nitin
  • 898
  • 1
  • 9
  • 25
1
vote
0 answers

PHP Mysql - Generate encoded unique integer from two integers and decode it

I need to generate encoded unique id from userId, subjectId and decode it. Encoded number should not get duplicate and length must be <=12 and it should be non negative integers only. userId and subjectId are from database and its value, length…
Reshma D
  • 11
  • 2
1
vote
3 answers

How can I assign Id attribute to all the children of a contenteditable div on keyup?

I tried the following: HTML:
JS: $('#editable').keyup(function() { addID(); }); function addID() { $('#editable *').each(function() { var t = GenerateID(); …
Devang Mistry
  • 402
  • 2
  • 5
  • 21
1
vote
2 answers

Not able to generate a unique user-number

I have a problem when I'm trying to generate a unique customer-id in my application. I want the numbers to start from 1 and go up. I have a register-class using tree-map that generates the next customer-number using this code: public String…
ssandoy
  • 79
  • 1
  • 7
1
vote
2 answers

Diskpart UniqueID - C# how to get that id

I'm familiar with VolumeSerialNumber, i need the Disk ID same as shown in diskpart: WD My Passport 0740 USB Device Disk ID: 08B29B51 Type : USB Status : Online Path : 0 Target : 0 LUN ID : 0 Location Path : UNAVAILABLE Current Read-only State :…
Shaul
  • 211
  • 1
  • 4
  • 18