uuid

How to get a unique computer identifier in Java (like disk id or motherboard id)

Hi, I'd like to get an id unique to a computer with Java, on Windows, MacOS and if possible, linux. It could be a disk UUID, motherboard s/n... Runtime.getRuntime().exec can be used (it is not an applet). Ideas ? ...

Hibernate UserType and a defined length

I have a hibernate Usertype something like this: public class UUIDHibernateType implements UserType { private static final int[] SQL_TYPES = new int[] { Types.CHAR }; public int[] sqlTypes () { return SQL_TYPES; } // ... } The problem I have is, that hibernate generates a sql script with the types CHAR(1)...

PHP function to generate v4 UUID

So I've been doing some digging around and I've been trying to piece together a function that generates a valid v4 UUID in PHP. This is the closest I've been able to come. My knowledge in hex, decimal, binary, PHP's bitwise operators and the like is nearly non existant. This function generates a valid v4 UUID up until one area. A v4 UUID...

Generating a uuid for a copied VMWare virtual machine

As per http://www.vmware.com/support/esx15/doc/esx15_runvm5.html, how would one go about generating the UUID format that is specified in the docs? I'd like this to be a command line utility so I can re-use this in an automation script. ...

db4o, Linq, and UUID's

Apparently the db4o website was recently redone, and now old urls are giving 404 errors. Everytime I think I've found the answer, I get a 404 error. I have a simple db4o database I've setup to store people. public class Person { public string Firstname { get; set;} public string Lastname {get;set;} } I've been able to run L...

[C++][Linux]Generating UUIDs in Linux

I am stuck in a strange predicament. I need to generate UUIDs in my Linux program (which I distribute using RPMs). I do not want to add another dependency to my application by requiring the user to install libuuid (seems like libuuid isn't included in most Linux distros, like CentOS). Isn't there a standard Linux system call which gener...

JSP Page Variable Caching

I've encountered a problem with JSP pages server-side caching. Suppose I have an internal error page which is a custom JSP that will display a unique ID each time it's visited/requested. This unique ID is also logged in the server log for debugging. However, I noticed that if I implement the error ID using: <%!private String <b>abc</b>...

Python UUID represented as special characters

When creating a UUID in Python, likeso: >>> uuid.uuid1() UUID('a8098c1a-f86e-11da-bd1a-00112444be1e') How could one map that UUID into a string made up of the capitalized alphabet A-Z minus the characters D, F, I, O, Q, and U, plus the numerical digits, plus the characters "+" and "=". i.e. the from an integer or string onto the set o...

How do I generate a GUID in Erlang?

I tried: os:cmd("uuidgen -t") : but this is platform dependant and returns a tuple. I just want a binary value which I can use. I want something based on MAC address, 128bit, and where I can just include a module and use module:uuid() to get a string hex UUID, or module:binary_uuid, something simple like that. So far it doesn't seem t...

Whats the difference between a GUID and a UUID?

Possible Duplicate: Is there any difference between a GUID and a UUID? Whats the difference between a GUID and a UUID, and which should I use for true uniqueness? Update: What things do I need for uniqueness too in the algorithm I choose? 1) MAC address of network card 2) 128 bits (isn't 64 bits enough?) 3) What if I have ...

Is there a way to create an auto-incrementing Guid Primary Key in an Oracle database?

I mostly work with sql-server (when I do work with databases) and I am trying to learn pl-sql. Is there any equivalent to sql-server's auto-generated Guid as primary keys in Oracle? ...

Delphi UUID generator

I need some code to generate UUIDs for Delphi. Any recommendations? ...

How to get the Device UUID on the Simulator?

Calling [[UIDevice currentDevice] uniqueIdentifier] returns nil and "unable to determine UUID for host. Error: 35" message in the console. Where is the UUID stored on the simulator? ...

What are the project GUIDs in a Visual Studio solution file used for?

I have multiple projects in a single Visual Studio (2008) solution. I just discovered that each of these projects uses a same GUID, so in the solution file it looks like this: Project("{FAE04EC0-F103-D311-BF4B-00C04FCBFE97}") = "Pro1", "Pro1\Pro1.csproj", "{...}" Project("{FAE04EC0-F103-D311-BF4B-00C04FCBFE97}") = "Pro2", "Pro2\Pro2.csp...

Jailbroken iPhone: Application Delegate Methods not Found on Device

Hi all, In the simulator, I don't have this problem but when I run the app on my device applicationDidBecomeActive and applicationWillTerminate aren't called. Is it because I'm jailbroken and running backgrounder etc? Here's the gdb log from Xcode: [Session started at 2010-02-28 15:37:00 +0900.] GNU gdb 6.3.50-20050815 (Apple vers...

Creating message id in java.

Hi, I need to uniquely identify messages in my app. Thus each message should contain its id. I have a couple of questions though.. Should message generate its id privately and only provide getter for id? What is the best way to create ids? Any alternatives to UUID class in java? Thanks. ...

Question about bluetooth on Android

Hi I just read your post http://stackoverflow.com/questions/1953888/bluetooth-connect-to-a-rs232-adapter-in-android and I think you probably can help me figure out my little problem. I have this BT module connected to a MCU via serial port UART. Im trying to connect to the bluetooth via my android phone. I managed to use my app and scan...

Java UUID string representation natural ordering.

Say I have two UUID instances: uuid1 = UUID.randomUUID(); uuid2 = UUID.randomUUID(); If those two compare such that uuid1 is less than uuid2 i.e., uuid1.compareTo(uuid2) // -1 is it always true that their string representations will compare to give the same result, i.e., uuid1.toString().compareTo(uuid2.toString()) // -1 ???? ...

UUID performance in MySQL?

We're considering using UUID values as primary keys for our MySQL database. The data being inserted is generated from dozens, hundreds, or even thousands of remote computers and being inserted at a rate of 100-40,000 inserts per second, and we'll never do any updates. The database itself will typically get to around 50M records before w...

How create an unique 20 single byte token/key/ID on php?

I need to create a token/key to use it as a number order, so this should be unique, the tokens must be something like "6X990742MG185953R" so we can use it like a barcode, e. http://barcodes4.me/barcode/c128b/6X990742MG185953R.png We can't use UUID or GUID because is to long, the much closer we are is this: function uuid64() { $uuid ...