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

How do you specify the row or document ID Riak or any Key Value Data Strore?

I just attended the Webinar on Intro To Riak. It did not say much about schema design, just the one page. That is what I focus on. So let me ask a question. Say we have a bucket called Customer with Customer No : “123”. This customer has attributes…
TomFH
  • 55
  • 3
0
votes
1 answer

How to get UniqueID from document.getElementById()?

I want to use __doPostBack javascript function. __doPostBack(obj.UniqueID,''); But I only know ClientID of my object - ctl00_cpholder_myObjId document.getElementById("ctl00_cpholder_myObjId").id //This will get ctl00_cpholder_myObjId,but UniqueID…
nnnn
  • 1,041
  • 3
  • 18
  • 35
0
votes
3 answers

mt_rand max value

On the php documentation,i found this note: On both 32 and 64-bit systems (OS X and Linux), mt_getrandmax() returns 2147483647 I have confirmed this using the simple function provided function gethighest() { return mt_getrandmax(); } $hello =…
Gandalf
  • 1
  • 29
  • 94
  • 165
0
votes
3 answers

PHP returns floats instead of strings from a database?

I use this to create a unique code for each product in my store, echo base_convert(uniqid(),16,10); For instance, 1403802682572650 My query is simple like this, $sql = " SELECT * FROM page AS p LEFT…
Run
  • 54,938
  • 169
  • 450
  • 748
-1
votes
1 answer

Using python to generate unique IDs

How should I assign a unique ID (UID) to a group of rows and a different UID where there is a sudden jump in ID values. For example; assign "1" to ID values ranging from 122 to 125 and a UID of "2" where ID values range from 507 to 511 in the table…
-1
votes
2 answers

How can I create unique id based on the value in the other column

I wanted to assign the unique id based on the value from the column. For ex. i have a table like this: df = pd.DataFrame({'A': [0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,1]} Eventually I would like to have my output table looks like…
Ali
  • 113
  • 4
-1
votes
1 answer

What parameter to use as a unique computer ID to secure my app

I am looking for a personal Computer ID that I can use to secure my app so that only one Computer can use it. I can't use the MAC address because a user can have multiple Network adapters so I was thinking about a Motherboard ID if it exists! I am…
-1
votes
2 answers

How do I update an existing table with a few hundred records with a unique ID

I am having trouble updating an existing table (with a few hundred records) with a unique ID The table is called BHIVE.ProjectDataGroupDetail and has a few hundred records. The Field I'd like to update is called ProjectDataGroupDetailID. I am also…
-1
votes
1 answer

How can I change the length of a hex number?

I have a function who generates a Hex number: function generateUid(){ $uuid = Uuid::uuid4(); $uuid = $uuid->getHex(); $uuid = substr($uuid,8); return $uuid; } The hex has the length of 25 but I want to cut it to only 8 digits.
peace_love
  • 6,229
  • 11
  • 69
  • 157
-1
votes
3 answers

adding a unique id to an url

I have some difficulty in understanding how to add an id to an url for sending a request to a server. In fact, my main problem is the position of quotation mark after the equal sign in the third open method. Why it is not used just after…
mech10
  • 43
  • 7
-1
votes
1 answer

user defined function not working in php

I have a problem in calling my rand_id() function. here is code as 'root', 'DB_PASSWORD'=>''); $conn=new PDO('mysql:host=localhost;dbname=scc',$config['DB_USERNAME'],$config['DB_PASSWORD']);…
-2
votes
1 answer

How to solve a problem of "Cannot set properties of null (setting 'innerHTML')"

How can I solve a problem of "Cannot set properties of null (setting 'innerHTML')"? I have an Angular project in which I want to have a unique id for every elements, so I use this code: Enter image description here Enter image description here
Dorra
  • 11
-2
votes
1 answer

How to use PHP to get unique ID?

I'm making a data base and I would like to get two unique ids from each player like clash royale game . 1.id unique only number (It knows only the user) 2.id unique number and letters (all the players can see it). I was thinking of using the time to…
Jake
  • 1
  • 4
-2
votes
1 answer

PHP check if unique

I have this code to enter product in my stoc administration script. I need some help. I want when i enter new product to check if row cod (codint in mysql ) is unique and if is not unique alert me. Like opencat model field ..
Velicu Cristian
  • 27
  • 1
  • 10
-2
votes
1 answer

How to create Unique ID based on a pattern

I am working on a student database project where i have to generate a unique 13-digit ID (within the database, not a universal unique ID) that is based on a pattern. The Pattern The pattern is like this: first four digits are a state code, next two…
irshukhan
  • 169
  • 2
  • 2
  • 12
1 2 3
12
13