Re: How to UUID in .Net

2010-01-13 Thread Nguyễn Minh Kha
Thank Jonathan, I will try to port to C Sharp. On Sat, Jan 9, 2010 at 7:47 AM, Jonathan Ellis jbel...@gmail.com wrote: I didn't see any C# libraries that generate type 1 UUIDs. You might have to port this one from java: http://johannburkard.de/software/uuid/ 2010/1/8 Nguyễn Minh Kha

Re: How to UUID in .Net

2010-01-13 Thread Tatu Saloranta
2010/1/13 Nguyễn Minh Kha nminh...@gmail.com: Thank Jonathan, I will try to port to C Sharp. If you need to port something, could have a look at better uuid packages. JUG (Java Uuid Generator) is simple, jakarta-commons has one, and there was a third one as well that claimed mostly be slightly

Re: How to UUID in .Net

2010-01-13 Thread Jonathan Ellis
I'm pretty sure that when I tested JUG it generated broken type 1 UUIDs. On Wed, Jan 13, 2010 at 3:14 PM, Tatu Saloranta tsalora...@gmail.com wrote: 2010/1/13 Nguyễn Minh Kha nminh...@gmail.com: Thank Jonathan, I will try to port to C Sharp. If you need to port something, could have a look at

Re: How to UUID in .Net

2010-01-13 Thread Jonathan Ellis
Actually (hitting Send jogs my memory :) it was that it does lexical compares which is invalid on type 1. So be careful. :) On Wed, Jan 13, 2010 at 3:36 PM, Jonathan Ellis jbel...@gmail.com wrote: I'm pretty sure that when I tested JUG it generated broken type 1 UUIDs. On Wed, Jan 13, 2010 at

Re: How to UUID in .Net

2010-01-13 Thread Tatu Saloranta
On Wed, Jan 13, 2010 at 1:37 PM, Jonathan Ellis jbel...@gmail.com wrote: Actually (hitting Send jogs my memory :) it was that it does lexical compares which is invalid on type 1.  So be careful. :) Ah. I would be VERY surprised if it produced invalid ones (I wrote the thing years ago :) ).

Re: How to UUID in .Net

2010-01-13 Thread Jonathan Ellis
Checked the source, yes, it does do timestamp first. Sorry for the misinformation, I must be thinking of something else entirely. It's been a while. :) -Jonathan On Wed, Jan 13, 2010 at 5:09 PM, Tatu Saloranta tsalora...@gmail.com wrote: On Wed, Jan 13, 2010 at 1:37 PM, Jonathan Ellis

Re: How to UUID in .Net

2010-01-13 Thread Tatu Saloranta
On Wed, Jan 13, 2010 at 3:13 PM, Jonathan Ellis jbel...@gmail.com wrote: Checked the source, yes, it does do timestamp first.  Sorry for the misinformation, I must be thinking of something else entirely.  It's been a while. :) Not at all, thanks for checking it. I might have mis-recalled it as

How to UUID in .Net

2010-01-08 Thread Nguyễn Minh Kha
Hi, I'm writing Cassandra in .Net (C Sharp) but I have a problem on gen a UUID for my project. I used Guid to gen UUID Version 1 but when I add to Cassandra thow an exception TimeUUID only makes sense with version 1 UUIDs I used uuidgen.exe (Windows SDK) to gen this Guid. Pls help me resolve

Re: How to UUID in .Net

2010-01-08 Thread JKnight JKnight
Cassandra server use UUID version 1. Maybe the uuidgen.exe does not generator correct UUID version. 2010/1/9 Nguyễn Minh Kha nminh...@gmail.com Hi, I'm writing Cassandra in .Net (C Sharp) but I have a problem on gen a UUID for my project. I used Guid to gen UUID Version 1 but when I add to

Re: How to UUID in .Net

2010-01-08 Thread Tatu Saloranta
2010/1/8 Nguyễn Minh Kha nminh...@gmail.com: Hi, I'm writing Cassandra in .Net (C Sharp) but I have a problem on gen a UUID for my project. I used Guid to gen UUID Version 1 but when I add to Cassandra thow an exception TimeUUID only makes sense with version 1 UUIDs I used uuidgen.exe