How to create a GUID/UUID in Python

How do I create a GUID in Python that is platform independent? I hear there is a method using ActivePython on Windows but it's Windows only because it uses COM. Is there a method using plain Python?

How to generate a random, unique, alphanumeric string?

How would it be possible to generate a random, unique string using numbers and letters for use in a verify link? Like when you create an account on a website, and it sends you an email with a...

How to Generate Unique ID in Java (Integer)?

How to generate unique ID that is integer in java that not guess next number?

Is there a unique Android device ID?

Do Android devices have a unique ID, and if so, what is a simple way to access it using Java?

How to generate unique 64 bits integers from Python?

I need to generate unique 64 bits integers from Python. I've checked out the UUID module. But the UUID it generates are 128 bits integers. So that wouldn't work. Do you know of any way to generate...

I want Hours,Min, second difference from two datetime

I am developing Time management system for employees. I want the duration how much duration employee come late , or he went early. i have following structure. **Attendace** AutoId...

Unique ID with time()

If I use: $t = time(); echo $t; This will output something like: 1319390934 I have two questions: This value can be used as unique id ? how to generate from it a date? I can't use uniqid(),...

.NET Short Unique Identifier

I need a unique identifier in .NET (cannot use GUID as it is too long for this case). Do people think that the algorithm used here is a good candidate or do you have any other suggestions?

SSDT "Smart Defaults" Values By Type

Part of the SSDT functionality is the ability to fill in non-nullable columns with dummy values via a temporary, default constraint (termed "smart defaults"). Per trial and error, I have...

Delete the dynamically created <li> list item on clicking icon at the end of the list

I've a <li> list that's dynamically created using jquery. The list has an input field and a minus icon to remove the list item. Here's the sample code that inserts a new item to the list: $list =...

Avoiding Deadlocks in SQL with concurrent inserts

I have a process (Process A) which keeps adding records to a SQL table (Table A) (Direct inserts using stored procedure). It is a continuous process which reads the requests and writes to a table....

object identityhashcode in java

I've got this question. I've been working in my project (I'm also using EMF Compare). I need to keep an unique ID for each object that I'm using, that's why I decided to use the IdentityHashCode,...

How to generate unique keys for a hashtable, and recycle deleted keys?

For example, I need 10 objects stored in the hashmap. So it creates keys 1,2,3,4,5 Then when I'm finished with '3', it deletes the whole entry and key for '3'. Making that key able to re-used for...

Conversion failed when converting from a character string to uniqueidentifier - Two GUIDs

I don't understand why I can't insert this. I can't spot the problem. The error message is Conversion failed when converting from a character string to uniqueidentifier. The GUIDs are the ones...

SQL Server: stored procedure become very slow, raw SQL query is still very fast

We are struggling with a strange problem: a stored procedure become extremely slow when raw SQL is executed fairly fast. We have SQL Server 2008 R2 Express Edition SP1 10.50.2500.0 with several...

How to generate short unique names for uploaded files in nodejs

I need to name uploaded files by short unique identifier like nYrnfYEv a4vhAoFG hwX6aOr7. How could I ensure uniqueness of files?

Store and retrieve unique identifier from Core Data

iOS newb building an app to work with a website. Ultimately, I want to keep the app and backend on the website in sync. Photos are saved on the website using the ID of the item. For the app, I...

SQL Server Auto Incrementing Identity Per Customer(Tenant) With No Gaps

We have a multi-tenant database which holds multiple customers with each customer having a collection of users like so (Simplified example omitting foreign key specification from users to...

Too many elements for Tuple: 27, allowed: 22

I am new to Slick and using Slick 3.1.1. My table looks like import java.sql.{Blob, Timestamp} import slick.collection.heterogeneous.HNil import slick.driver.MySQLDriver.api._ case class...

Error: the entity type requires a primary key

I would like to expand the question asked on this thread Binding listbox to observablecollection by giving it an ability to persistent the data. The structure is mostly the same except I installed...

find unique file ID through powershell

After modifying an existing file I would like to find out if the software used to modify the file created and saved the new file (discarding the old one) or changed the original file. Currently...

How do I solve SqlNullValueException?

I'm trying to find an entity but I get a SqlNullValueException when entity framework is trying to get the value of a field that's Null. I checked in the database and all the not nullable fields...

DB2 Generate GUID/UUID

Is it possible to generate to GUID/UUID string in DB2 whose contents need to be absolutely unique in the universe? similar to uniqueidentifier data type in SQL server. In DB2 we got...

Generate new unique ID numbers while excluding previously generated ID numbers in R

I would like to generate unique IDs for rows in my database. I will be adding entries to this database on an ongoing basis so I'll need to generate new IDs in tandem. While my database is...

Is there a unique identifier for and Android and iOS available in React Native which does not change even after resetting or upgrading OS

I want to know if there is a unique ID for an Android and iOS Device, available in React Native. Also, the ID shouldn't change over app installs and OS install and upgrades. However, if it isn't,...

Stored procedure with OUTPUT - Must declare the scalar variable

I'm writing a stored procedure that will be executed from C# to get data from database. Therefore I have to pass a GUID to this stored procedure and it should find data in table Contact or in the...

Entity Framework Core 5.0 How to convert LINQ for many-to-many join to use Intersection table for ASP.NET Membership

Question: How do I convert a LINQ query the performs a LEFT OUTER JOIN on a sub-select that INNER JOINS two tables and has a predicate? Context: I am upgrading from Entity Framework 6 (EF6) to...

Android MediaDrm unique id

I am creating an app where only one person can create one account in one device, He can not create or use another account on that device. I was tracking devices through ANDROID_ID but it changes...

Bulk insert operation into Parent and Child table in SQL

For our current project(.Net Core), we require a migration of old data where the data is in an excel sheet in plain format. We need to import the data and then create those data into our database....

GetIfTable results change after Windows updates on certain computers?

I'm using the following Delphi code to get a list of MAC addresses on the computer. The hash of the MACs are used to generate an identifier unique to the computer. My problem is that on some...