uuid

PK for web, autoincrement vs UUID style, wich is better and why?

What is the real diference between each one? I think auto inc is easy to hack vs uuid Uuid is slow than autoincrement in a query with to many records, but is there a huge difference in it? ...

How do I insert a row with a TimeUUIDType column in Cassandra?

In Cassandra, I have the following Column Family: <ColumnFamily CompareWith="TimeUUIDType" Name="Posts"/> I'm trying to insert a record into it as follows using a C++ generated function generated by Thrift: ColumnPath new_col; new_col.__isset.column = true; /* this is required! */ new_col.column_family.assign("Posts"); new_col.super_...

Reading Java UUID (from DB) in C#

I'm trying to map a table, where one of the column is a binary array (which is a Java UUID), to a C# class. I would like to read the byte array and return a string representation of the UUID. Just wondering what's a good place to start. ...

Python - Why use anything other than uuid4() for unique strings?

I see quit a few implementations of unique string generation for things like uploaded image names, session IDs, et al, and many of them employ the usage of hashes like SHA1, or others. I'm not questioning the legitimacy of using custom methods like this, but rather just the reason. If I want a unique string, I just say this: >>> import...

How to generate boost uuid from string at compile time

Hi, is there a way to generate a boost uuid from a string like 988A00C4-79F3-46f9-98CD-D5AD4AA2A0FE at compile time? ...

16 bytes binary form of canonical uuid representation in php

Hi guys, how can I get 16 bytes binary form of the uuid from its string/canonical representation: ex:1968ec4a-2a73-11df-9aca-00012e27a270 cheers, /Marcin ...

how to use timeuuid names in cassandra

Hi guys, I have a problem, I would like to build logging system which will be using timeuuid type as a column name which will allow me ask for it later. Since for range queries order by time I need to use timeuuid type I would like to ask you how can I specify range queries for timeuuid column names if timeuuid is every time unique and...

How to identify unique user?

Question How can you determine if a user is unique or not? I understand there are many ways to do this using cookies, but what about methods that don't use cookies? For example, go to Urban Dictionary and click one of the up/down vote buttons. Even if you delete your cookies and come back to the page, you will not be allowed to cast a...

how good is java's UUID.randomUUID?

I know randomized UUID have very very very low probability for collision in theory, but I am wondering, in practice, how good is java 5's randonUUID in terms of not having collision? Does anybody have any experience to share? ...

how to generate unique numbers less than 8 characters long.

hi I want to generate unique id's everytime i call methode generateCustumerId(). The generated id must be 8 characters long or less than 8 characters. This requirement is necessary because I need to store it in a data file and schema is determined to be 8 characters long for this id. Option 1 works fine. Instead of option 1, I want t...

Does anyone have a Notepad++ plugin that will generate UUIDs and insert them.

I Often need UUIDs inserted into files that I'm editing in Notepad++. Does anyone have a macro or add in that does this. Or an autohotkey script? ...

UUID library for C?

I'm looking for a UUID library for programming in C, that has a reasonable probability of being installed (or at least installable by package manager) on most modern Linux desktops, and works with pkg-config. The following two possibilities seem most obvious: OSSP UUID Libuuid from e2fsprogs Does anybody have experience with these t...

mysql on delete cascade do not work

I'm trying to use ON CASCADE DELETE in mysql db but I can't make it work. Here is my code: CREATE TABLE sometable ( testId CHAR(43), blocked BOOL, PRIMARY KEY(testId) ); CREATE TABLE p ( testId CHAR(43), phrase text, source text, FOREIGN KEY (testId) REFERENCES sometable (testId) on delete cascade ); CREATE TRIGGER sometable_insert ...

Pre-generating GUIDs for use in python?

I have a python program that needs to generate several guids and hand them back with some other data to a client over the network. It may be hit with a lot of requests in a short time period and I would like the latency to be as low as reasonably possible. Ideally, rather than generating new guids on the fly as the client waits for a re...

How to Create Deterministic Guids

In our application we are creating Xml files with an attribute that has a Guid value. This value needed to be consistent between file upgrades. So even if everything else in the file changes, the guid value for the attribute should remain the same. One obvious solution was to create a static dictionary with the filename and the Guids ...

How to use CFUUID, can CFUUID be traced back to a unique individual. security/privacy

Hi, i an new to iphone Dev and the concept of CFUUID, so thought i should ask, before i start implementing it. so the string returned by CFUUID is it really unique or can it be traced back to a unique individual. meaning lets say, i generate a CFUUID object and convert it to string(using the methods provided) , and then this info is used...

Unique user ID in a Pylons web application

What is the best way to create a unique user ID in Python, using UUID? ...

using UUID as primary key in rails and polymorph relationships

I'm creating a rails 3 application that will be decentralized and I need to use UUID as primary key for my tables, what would be the best gem, plugin for the Job. I also would like to know if it is possible to make in ActiveRecord polymorphic relationships without using the polymorphicable_type column for it, given the case that I'm usin...

How do I store and retrieve TimeUUIDType types with Net::Cassandra::Easy?

Doing the following: my $c = Net::Cassandra::Easy->new(server => 'localhost', port => '9160', keyspace => 'Keyspace1'); $c->connect(); my $uuid_bin = Data::UUID->new()->create_bin(); eval { $result = $c->mutate([$key], family => 'StandardByUUID1', insertions => { $uuid_bin => '123...

Android: Bluetooth connection, socket and thread

Hi, I’m currently working on a Android project and is very newbie to the Android platform. It’s an exercise I got from an article where I have to create a twitterlike application so that one Android platform can write to another and it automatically is updating. I’m using a Bluetooth emulator for Android to test. But before I start wi...