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 ?
...
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)...
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...
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.
...
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...
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...
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>...
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...
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...
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 ...
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?
...
I need some code to generate UUIDs for Delphi. Any recommendations?
...
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?
...
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...
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...
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.
...
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...
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 ????
...
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...
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 ...