Re: [Pharo-users] UUIDGenerator

2017-06-20 Thread Stephane Ducasse
May be you should have a look at the Pharo mooc. Because we spent 8 months producing videos. This is free and in two days you can cherry pick what you want. Students like it a lot. Stef On Mon, Jun 19, 2017 at 1:39 AM, horrido wrote: > I didn't know about the Spotter.

Re: [Pharo-users] UUIDGenerator

2017-06-19 Thread p...@highoctane.be
Spotter rulez :-) On Mon, Jun 19, 2017 at 6:02 PM, Tim Mackinnon wrote: > Damnit your right…. #help keyboard gives you the business… nice > > I think the prompt to use Spotter should be in the welcome text though, as > its a bit hidden - maybe is should be in the “Explore”

Re: [Pharo-users] UUIDGenerator

2017-06-19 Thread Tim Mackinnon
Damnit your right…. #help keyboard gives you the business… nice I think the prompt to use Spotter should be in the welcome text though, as its a bit hidden - maybe is should be in the “Explore” section. Tim > On 19 Jun 2017, at 11:30, p...@highoctane.be > wrote: >

Re: [Pharo-users] UUIDGenerator

2017-06-19 Thread p...@highoctane.be
That being said, maybe one can do a spotter extension that looks into the help topics. I did one with windows (should be in Pharo7). So one would ho to spotter and put a word followed by #help or #he Maybe this is in already! Phil On Mon, Jun 19, 2017 at 10:43 AM, Tim Mackinnon

Re: [Pharo-users] UUIDGenerator

2017-06-19 Thread Tim Mackinnon
It is in the Pharo help - however I have noticed that Help doesn’t have a convenient search box and the new Welcome screen that launches with Pharo possibly should have a shortcut to useful navigational features…. Sounds like something I can contributed. Tim > On 19 Jun 2017, at 00:39,

Re: [Pharo-users] UUIDGenerator

2017-06-18 Thread horrido
I didn't know about the Spotter. That is so frickin' cool!!! Thanks. philippeback wrote > Spotting for hex is hardly complex. > > Shift-Enter hex #im > > --> implementors of hex, first one I see is in ByteArray. > > Shit-Enter hex #se > > --> senders of hex. First one is a test in ByteArray

Re: [Pharo-users] UUIDGenerator

2017-06-18 Thread p...@highoctane.be
Spotting for hex is hardly complex. Shift-Enter hex #im --> implementors of hex, first one I see is in ByteArray. Shit-Enter hex #se --> senders of hex. First one is a test in ByteArray testHex "self debug: #testHex" self assert: #[122 43 213 7] hex = '7a2bd507'. self assert: #[151 193 242

Re: [Pharo-users] UUIDGenerator

2017-06-17 Thread Sven Van Caekenberghe
> On 17 Jun 2017, at 21:23, horrido wrote: > > Message 'next' is not understood. > > But yes, > > UUID new hex asUppercase > > works fine. > > This is what happens when there is inadequate documentation: you end up > doing things the *hard* way. > > Thanks. You

Re: [Pharo-users] UUIDGenerator

2017-06-17 Thread horrido
Message 'next' is not understood. But yes, UUID new hex asUppercase works fine. This is what happens when there is inadequate documentation: you end up doing things the *hard* way. Thanks. Sven Van Caekenberghe-2 wrote > Why not just > > UUIDGenerator default next hex asUppercase. > >

Re: [Pharo-users] UUIDGenerator

2017-06-17 Thread Sven Van Caekenberghe
Why not just UUIDGenerator default next hex asUppercase. Or even UUID new hex asUppercase. ? Since you are using #generateBytes:forVersion: (which is an internal method BTW), you must be working in an older Pharo image (older than 6). We replaced the UUIDGenerator class, the class

Re: [Pharo-users] UUIDGenerator

2017-06-17 Thread horrido
Okay, I figured it out. Here's my method: generateUUID | aStream hex s x | hex := '0123456789ABCDEF'. x := ByteArray new: 16. UUIDGenerator default generateBytes: x forVersion: 4. s := String new: 32. aStream := WriteStream on: s. x do: [ :each | aStream nextPut: (hex

Re: [Pharo-users] UUIDGenerator

2017-06-17 Thread Sven Van Caekenberghe
> On 17 Jun 2017, at 14:51, horrido wrote: > > Is there even one shred of documentation anywhere that shows how to use > UUIDGenerator? A thorough Google search reveals nothing! All I find are > reference materials. I'd like to see just one working code sample, no

Re: [Pharo-users] UUIDGenerator

2017-06-17 Thread Holger Freyther
> On 17. Jun 2017, at 20:51, horrido wrote: Hey! > > Is there even one shred of documentation anywhere that shows how to use > UUIDGenerator? A thorough Google search reveals nothing! All I find are > reference materials. I'd like to see just one working code

[Pharo-users] UUIDGenerator

2017-06-17 Thread horrido
Is there even one shred of documentation anywhere that shows how to use UUIDGenerator? A thorough Google search reveals nothing! All I find are reference materials. I'd like to see just one working code sample, no matter how simple. -- View this message in context: