uuid

Ruby on Rails - generating bit.ly style uuids

Hello, I'm trying to generate UUIDs with the same style as bit.ly urls like: http://bit.ly/aUekJP or cloudapp ones: http://cl.ly/1hVU which are even smaller how can I do it? I'm now using UUID gem for ruby but I'm not sure if it's possible to limitate the length and get something like this. I am currently using this: UUID.generat...

Weird behavior of UuidCreateSequential

Hi, I have a software that runs over 2 000 computers on my company, without any issues. This software, at some time, generate a GUID (or UUID) using UuidCreateSequential() (MSDN link). The call usually returns RPC_S_OK on every computer. But on one of them, it always returns RPC_S_UUID_LOCAL_ONLY. The documentation states that: T...

UUID support in Blackberrys

I am looking at UUID generation in Blackberrys. I need to be able to generate 128 bit UUIDs from last generation Blackberrys. I have just looked through the API and it looks like the javax.bluetooth.UUID class is the way to go. Can I assume that this API will be available for all Blackberrys? Is there another, more standard/better, way...

JSON Containing Binary Data

Hi Everyone! I've been on working on this for ages. I am receiving a JSON from a request to an API and unfortunately the key's of each entry is a time uuid which is in binary format. I'm trying to use json_decode() to decode the json into a PHP array. However, when I echo the string I have about 80 entries but after the decode into the...

Read IPhone or iPad UUID using web application.

Do you know if is possibile to get the uuid, the result of [[UIDevice currentDevice] uniqueIdentifier], using a web app ? I need to access from iphone/ipad a web page using safari (and not UIwebview under application control) and I should identify the device using its UUID. For example I would like to send an email Message to a user con...

TimeUUID with Cassandra and Lazyboy

Hello, I try to insert column with UUID1 keys to be able to sort them by date. I always get the error "cassandra.ttypes.InvalidRequestException: InvalidRequestException(why='UUIDs must be exactly 16 bytes')", and I don't know why. Here is the code generating this error : from lazyboy import * from lazyboy.key import Key import uuid c...

Convert boost::uuid to char*

I am looking to convert a boost::uuid to a const char*. What is the correct syntax for the conversion? ...

Why does Cassandra act strange with byte keys (with Lazyboy) ?

Hello, I wrote a test program for testing Cassandra, and I had problems reading data. Seems like Cassandra sometimes takes one key for another. Here is my test program : from lazyboy import * from lazyboy.key import Key import uuid import random class TestItemKey(Key): def __init__(self, key=None): Key.__init__(self, "TestMX...

Generating Order Numbers - Keep unique across multiple machines - Unique string seed

I'm attempting to create an order number for customers to use. I will have multiple machines that do not have access to the same database (so can't use primary keys and generate a unique ID). I will have a unique string that I could use for a seed for some algorithm that will generate a unique looking alphanumeric ID # for the order ...

How to generate a UUID of type long (to be consumed by a java program) in Python?

How do you generate UUID of type long (64 bits - to be consumed by a java program) using Python? I read about the UUID module. So I played with it a bit: >>> import uuid >>> uuid.uuid1().int 315596929882403038588122750660996915734L Why is there an "L" at the end of the integer generated by uuid.uuid1().int? If it's an integer should...

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 64 bits unique integers within Python? Thanks. ...

new svn server, same ip

Hello, Here is my problem: My server crashed last night! So i had to go out and buy some new stuff and i now have a new server. I have everything set back up and i am trying to set my svn server back up. I have it set back up. I have my files on another pc that i want to commit to the svn server to start my repository back up. How do i...

Why do GUIDs and UUIDs have hyphens in them?

A colleague of mine was wondering why he couldn't just strip the hyphens from the uuid/guid before storing it. We couldn't work out what the hyphens were for... What is the reasoning behind them? Surely they'd make it less random? ...

Converting a SecureRandom and UUID into an int (java)?

Hello, I am having problems taking in a string (a persons name), and getting back a unique integer, it keeps going through the catch function, and I dont know why, other than the way I wrote SecureRandom is not working, but it is very confusing. I am very new to programming so please be kind! public static int uinqueID(String name){...

Is using a CreateUUID() function as salt a good idea?

I'm using coldfusion and I would like to generate a random salt field for my passwords. I was wondering if a CreateUUID() function is useful here. I found many examples which use a seperate function to create the salt string; but why do this when you could use rand() or CreateUUID() functions instead? I'm not sure. Is it an overkill or ...

Hibernate session.get() Problem with UUID string ID

I am having a problem with Hibernate. The primary key of ID in mysql table is UUID style String. e.g.08fe2a75-5d40-4645-896d-aab2a3ac96b8 But I can not use session.get() to fetch out the data for some reason. Software software=(Software)session.get(Software.class, id); It seems ok with integer IDs. Please advise ...

uuid_generate_random (libuuid) on solaris

I have a simple C++ function that calls "uuid_generate_random". It seems the generated UUID is not standard compliant (UUID Version 4). Any Ideas? The code I am using is (uuid_generate_random & uuid_unparse functions are available in libuuid): char uuidBuff[36]; uuid_t uuidGenerated; uuid_generate_random(uuidGenerated); uuid_unparse(uu...

Generate UUID with GWT

Is there any way to generate UUID with GWT? ...

Is there a way to retroactively create time/node based UUID in PHP?

Most time-based (type 1) UUIDs are created using the current time. I'm migrating a MySQL database to cassandra and would like to create timebased UUIDs for archived items. Can someone provide an example of how type-1 UUIDs are created using past time periods? ...

Extract the time from a UUID v1 in python

I have some UUIDs that are being generated in my program at random, but I want to be able to extract the timestamp of the generated UUID for testing purposes. I noticed that using the fields accessor I can get the various parts of the timestamp but I have no idea on how to combine them. ...