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
2
votes
1 answer

Creating unique id with jquery to use in bxslider

I guess this is pretty simple but I have no experience with jquery whatsoever. I'm using bxslider in every post I post in my wordpress theme and need the jquery to point to numerous unique id's, not only to work1, but work2, work3 and so on. The…
hm_wiig
  • 21
  • 1
2
votes
4 answers

Row bind dataframes and keep unique IDs incrementing

I have 2 datasets that I am about to stack together. Please note that record_ids for the first dataset also start at 1 record_id any_column 591 a 591 b 591 c 592 d 592 …
2
votes
0 answers

The best way get unique identification number from virtual machines, which will be the same on the main machine

I try to find a unique ID, which will be the same as the virtual machine and the main machine. I tried using a monitor ID, bios number, but they can repeat for different end users. using (ManagementObjectSearcher monitorSearcher = new…
adam
  • 179
  • 2
  • 12
2
votes
2 answers

MailKit Set MessageFlag Seen after Append

I send a MailKit.Message Async with the MailKit.Net.Smtp.SmtpClient. Then i put the Mail in the send Folder, but the Message Flag is Unseen. I can't set the messageflag in Message build, only after Append, but i found no way to convert the…
Wolfgang Schorge
  • 157
  • 1
  • 10
2
votes
2 answers

JavaScript setAttribute ID to row is Undefined

I am attempting to give each row that is dynamically added a unique ID. Basically by adding to the number each time the user clicks the add button. It is adding an ID, but not correctly, it is showing up as "undefined" in the dev tools. var…
hannacreed
  • 639
  • 3
  • 15
  • 34
2
votes
2 answers

bash: meaningful unique id generation

I am using following command to generate an unique id for my shell script. I want to capture the output in a variable without using any intermediate file on hard disk. echo `dmidecode –t 4 -s system-uuid`-$$-$BASH_SUBSHELL-$BASHPID-`date…
the sudhakar
  • 49
  • 3
  • 9
2
votes
2 answers

how to create unique ID for each device in Peer-Peer Ad hoc network

I am developing an application for peer-peer conversation in ad-hoc network. when a peer wants to communicate with other peer, it uses its ip address to connect. Once devices connected with each other in an Ad-hoc network, a IP address is assigned…
Nirmal_stack
  • 211
  • 4
  • 15
2
votes
2 answers

How to generate continuing indices for multiple objects in nested arrays that are in an array

Given [{ "objects": [{ "key": "value" },{ "key": "value" }] }, { "objects": [{ "key": "value" }, { "key": "value" }] }] How do I generate [{ "objects": [{ "id": 0, "key": "value" },{ "id": 1, "key":…
hgl
  • 2,034
  • 4
  • 21
  • 30
2
votes
1 answer

Generate Unique ID following a specific pattern like "digitStringDigit" in C#

I have earlier generated unique ids by making use of Math.Rando, method or sometimes by using GUID.NewGUID method. This time I am trying to generate a unique numbers which are based on a specific pattern. for instance 123ABC123 - the length of the…
Sandhurst
  • 227
  • 2
  • 6
  • 10
2
votes
1 answer

Windows Phone 8.1: DeviceExtendedProperties or DeviceStatus for Device Unique ID

I want to get the Device ID in Windows Phone 8.1. The DeviceExtendedProperties or DeviceStatus are not available in WP8.1 (there is no Microsoft.Phone.Info namespace). I've just found the EasClientDeviceInformation class that I can't get the Id from…
Vahid
  • 3,384
  • 2
  • 35
  • 69
2
votes
1 answer

how to generate human readable unique id in java

We are developing e-Commerce application,in which we want to implement Human Readable Order ID (OD40627056751) for order conformation from our side.we are using java 1.6 and Strus 2.x and mysql 5.5, Please help me out from this issue, Thanks in…
zameer
  • 471
  • 1
  • 5
  • 15
2
votes
1 answer

C++ compile time unique ID generator always returns same value

I was trying to create a compile time hasher that takes a string literal and creates an integer. I'm using Code::Blocks's GCC 4.7.1 compiler (which broke on me earlier). This is how it works: typedef unsigned long long ull; //less typing constexpr…
Bob
  • 53
  • 2
2
votes
3 answers

PHP OOP: Unique ID property among all instances of class

My question is simple, but I can't seem to find any answer for it online. I will probably jump straight into the code: class NewClas { public $id; public function __construct($id) { $this->id = $id; $this->checkVars(); …
Petr Cibulka
  • 2,452
  • 4
  • 28
  • 45
2
votes
3 answers

t-sql string unique ID (Northwind database)

I've been trying to get this right for some time now with no use. I have a table in mssql database and I want to insert new row using stored procedure CREATE TABLE "Customers" ( "CustomerID" NCHAR(5) NOT NULL, "CompanyName" NVARCHAR(40) NOT…
martodox
  • 43
  • 4
2
votes
3 answers

generate a unique id for every hit at one time

Suppose many users uploading their pics at one time. So how could i generate a unique id for every pic which could never match with other generated id. $uniqId = time().'_'.rand(); or should is use. uniqid();
Naresh
  • 2,761
  • 10
  • 45
  • 78
1 2
3
12 13