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

ASP.NET MVC5 - Sequential ID routing issue: 404 error when ID over 1 character long?

I'm having a little problem I assume is with my routing configuration. Below is my situation: Situation I have a page that list employees that are attached to an entity. From the entity page they can add new employees. Once an employee has been…
1
vote
0 answers

Unique id generator based on text corpus

I want to build a shakespeare unique id generator that can generate up to 32 character long unique ids based on a shakespeare text corpus. I did some research but I couldn't find any algorithm that can generate unique ids based on a text corpus. So…
martin s
  • 1,121
  • 1
  • 12
  • 29
1
vote
1 answer

Finding Nano Time in Windows using PHP

I would like to create a unique id in php.I used uniqid() but microtime is not helping because the function is inside a loop and a set of consecutive results are exactly the same!! So i am wondering if i can use nano time.In linux it possible…
Nidhin David
  • 2,426
  • 3
  • 31
  • 45
1
vote
5 answers

Generate 9 million unique random numeric only string

Queustion 1: Can we generate 8 digit unique 9-10 million numeric only strings? Queustion 2: How do I generate 9 to 10 million unique 'numeric only' string in one program run? These keys will be uploaded to db to be used for next 6 months. I…
vvra
  • 2,832
  • 5
  • 38
  • 82
1
vote
0 answers

avoid auto generation of name in ASP.NET

the code below protects the server from generating unique but new name is always generated for the name attribute, but i want to deny new name generation, please help me
Demsie Kefelegn
  • 71
  • 1
  • 12
1
vote
1 answer

Dynamic Gridview Template and Unique Control (ie textbox, label) IDs?

When creating a Gridview at design time you can create a template column like this: And in the HTML it…
Dan
  • 25
  • 1
  • 9
1
vote
2 answers

Unique Numerical ID for a Templated Class using Function Address

So, this question has been asked before, but I wanted a question with some of those key words in the title. The issue is simple: How can I have a templated class, such that for each instance of the template - but not each instance of the class -…
Narfanator
  • 5,595
  • 3
  • 39
  • 71
1
vote
3 answers

What do you say of chopping type-4 UUID in this manner

Check this, List list = new ArrayList(); for (int i = 0; i < 10000; i++) { String value = (""+UUID.randomUUID().getLeastSignificantBits()).substring(3, 20); assertFalse(list.contains(value)); …
Adeel Ansari
  • 39,541
  • 12
  • 93
  • 133
1
vote
1 answer

Create a Unique ID for a Visio Shape use the Shape Sheet

I'm not new to Visio nor to programming but I am new to developing in Visio. I'm using 2007 and am creating my own custom shapes with Shape Data. I want to create a UniqueID for all my shapes in the context of the drawing. I have created a Shape…
Scott M
  • 7
  • 1
  • 3
1
vote
0 answers

uniques ID ordered by event time

I need to insert a lot of events into DB in ordered way by event time (each event has a time in millisec) to prevent sorting when retrieving data. Events comes in unordered order. i mean event with time 10000 can come before event with time 900 and…
Michal K
  • 226
  • 1
  • 3
1
vote
1 answer

How can I performantly assign unique Ids to objects in C#

I am working on a C# library that will create tons of small objects as part of normal operation (think AST nodes in a compiler). I'd like to assign each instance a unique identifier (unique within the program, not globally unique) in a way that…
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
1
vote
2 answers

how can i get unique transaction id in PHP?

I'm testing my log module written PHP. web-server occur too many transaction. every transaction writing on same file. (log.txt) how can i logging this transactions at same file with multiple lines? below log example. Dec 05 01:50:02 [info]…
TaeL
  • 1,026
  • 9
  • 17
1
vote
2 answers

Getting Unique Id from all java phones especially from S40 devices

I have requirement of getting an unique identification number programmatically from all j2me supported phones. As we already know getting IMEI / IMSI in S40 devices is almost not possible, bluetooth MAC address / obex push profile UUID may help. But…
AndosBerry
  • 145
  • 1
  • 12
1
vote
1 answer

How to get Unique ID of Windows Phone?

I want to get the IMEI number of my Windows Phone in my application. How can I programatically access it? If IMEI won't get in my application, then how to access MAC address of my phone. In my application, the administrator can block some devices…
Nelson T Joseph
  • 2,683
  • 8
  • 39
  • 56
1
vote
1 answer

MySQL - can I use the gonna-be insert_id in the actual insert query itself?

I've just got a situation where i need to duplicate the unique (auto-incremented) id of each new row in another column. So I was wondering, instead of doing it the old fashioned way: Insert row Get insert_id Update row with the insert_id Can I…
3Nex
  • 517
  • 6
  • 14