Re: [Pharo-users] Association postcopy (Pharo 3)

2015-04-06 Thread Hartmut
Am 05.04.15 um 12:34 schrieb Sven Van Caekenberghe: the Dictionary>>postCopy comment reads: "Must copy the associations, or later store will affect both the original and the copy You interpret the comment incorrectly: it talks about the association itself, not the value that it holds. Without

[Pharo-users] String operations

2015-04-06 Thread Peter Uhnák
Hi, am I really blind, or is there no way to do something like 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'" or 'BormParticipant' copyFrom: 5 "-> 'Participant'" "OrderedCollection knows this" I can do copyFrom:to:, but that requires asking the size of the string, which is (in my eyes)

Re: [Pharo-users] String operations

2015-04-06 Thread Hilaire
Hello Peter, Finder can't find when you need to compose two messages, this one does it: ('BormParticipant' splitOn: 'Borm') last Hilaire Le 06/04/2015 12:34, Peter Uhnák a écrit : > Hi, > > am I really blind, or is there no way to do something like > 'BormParticipant' removePrefix: 'Borm' "-> '

Re: [Pharo-users] String operations

2015-04-06 Thread Norbert Hartl
If you have the amount auf characters you want to omit you can do 'BormParticipant' allButFirst: 4 Norbert > Am 06.04.2015 um 12:34 schrieb Peter Uhnák : > > Hi, > > am I really blind, or is there no way to do something like > 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'" > or > 'B

[Pharo-users] Display morph in GT inspector

2015-04-06 Thread Norbert Hartl
I tried to figure out how I can display a morph inside a GT inspector presentation. How can I add a non-string representation to a composite given in an gtAnyIn: method? thanks, Norbert

Re: [Pharo-users] Display morph in GT inspector

2015-04-06 Thread Andrei Chis
Glamour has a morph presentation that can embed any morph. Have a look in Morph>>gtInspectorMorphIn: Cheers, Andrei On Mon, Apr 6, 2015 at 2:45 PM, Norbert Hartl wrote: > I tried to figure out how I can display a morph inside a GT inspector > presentation. How can I add a non-string representa

[Pharo-users] String operations

2015-04-06 Thread Torsten Bergmann
Peter Uhnák wrote: >am I really blind, or is there no way to do something like >'BormParticipant' removePrefix: 'Borm' "-> 'Participant'" what about: 'BormParticipant' allButFirst: 'Borm' size -> 'Participant' Bye T.

Re: [Pharo-users] Object-oriented state-frozen logging

2015-04-06 Thread Tudor Girba
You can also take a look at Beacon: http://www.humane-assessment.com/blog/beacon But, also at SystemLogger: http://forum.world.st/attachment/4745609/0/Logger.pier.pdf Cheers, Doru On Mon, Apr 6, 2015 at 2:00 AM, Peter Uhnák wrote: > Hi Sven, > > thanks for the answers; especially the article

Re: [Pharo-users] String operations

2015-04-06 Thread Martin Bähr
Excerpts from Torsten Bergmann's message of 2015-04-06 18:24:01 +0200: > Peter Uhnák wrote: > >am I really blind, or is there no way to do something like > >'BormParticipant' removePrefix: 'Borm' "-> 'Participant'" > what about: >'BormParticipant' allButFirst: 'Borm' size > -> 'Participant

[Pharo-users] Getting the last keyboard key pressed when using a RubScrolledTextMorph

2015-04-06 Thread Johan Fabry
Hi all, the code below gives me the number representing the last keystroke. It is a bit of a hack, so I was wondering if there is a cleaner way to do this when using a RubScrolledTextMorph (I tried subscribing to different announcements to no avail). World activeHand instVarNamed: #lastKeyScan

Re: [Pharo-users] Getting the last keyboard key pressed when using a RubScrolledTextMorph

2015-04-06 Thread Alexandre Bergel
I would expect proper announcement to be created. The small experiment we did in your office suggests this. Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > On Apr 6, 2015, at 3:12

Re: [Pharo-users] Getting the last keyboard key pressed when using a RubScrolledTextMorph

2015-04-06 Thread Johan Fabry
Sadly not, because with that experiment there is a DNU when opening the editor which is quite strange. I can show you tomorrow if you like ;-) On Apr 6, 2015, at 15:31, Alexandre Bergel wrote: > > I would expect proper announcement to be created. The small experiment we did > in your office s

Re: [Pharo-users] Data scrapping in pharo: converting text with dates in Spanish

2015-04-06 Thread Offray Vladimir Luna Cárdenas
Thanks Paul, My bad! Rookie mistake :-). Now is working as implemented in [1] and updated in the Dataviz-Twitter package. [1] http://ws.stfx.eu/L4PZMLV88I8U Thanks, Offray El 05/04/15 a las 22:22, Paul DeBruicker escribió: copyFrom:14 to: 17 copies 4 characters. You're testing a 4 charact

Re: [Pharo-users] Data scrapping in pharo: converting text with dates in Spanish

2015-04-06 Thread Offray Vladimir Luna Cárdenas
Well... there is still a minor issue with the hour... is not part of the date, for some reason. Cheers, Offray El 06/04/15 a las 14:15, Offray Vladimir Luna Cárdenas escribió: Thanks Paul, My bad! Rookie mistake :-). Now is working as implemented in [1] and updated in the Dataviz-Twitter pac

Re: [Pharo-users] String operations

2015-04-06 Thread Tudor Girba
In the Moose configuration, there is a CollectionExtensions that allows you to do this: 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'". 'BormParticipant' removeSuffix: 'Participant' "-> 'Borm'" For Pharo 5, we should move these extensions to Pharo. Cheers, Doru On Mon, Apr 6, 2015 at

Re: [Pharo-users] Data scrapping in pharo: converting text with dates in Spanish

2015-04-06 Thread Paul DeBruicker
When you look at the Date class comment you'll see that they are timespans (a Start + a duration ) and not moments in time, like the time on a clock on a certain day. What you want is probably an instance of DateAndTime. Offray wrote > Well... there is still a minor issue with the hour... i

Re: [Pharo-users] Data scrapping in pharo: Extracting tweets contents

2015-04-06 Thread Offray Vladimir Luna Cárdenas
Paul, Thanks, that's pretty much what I'm looking for! Your clue raises a new question: by default I get only the last 19 tweets from someone. There is any way to tell ZnClient to load more data, similar to what you do when you scroll down the twitter page? Sven, any suggestion here? Thanks

Re: [Pharo-users] String operations

2015-04-06 Thread Norbert Hartl
> Am 06.04.2015 um 21:28 schrieb Tudor Girba : > > In the Moose configuration, there is a CollectionExtensions that allows you > to do this: > 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'". > 'BormParticipant' removeSuffix: 'Participant' "-> 'Borm'" > > For Pharo 5, we should move t

Re: [Pharo-users] Data scrapping in pharo: converting text with dates in Spanish

2015-04-06 Thread Offray Vladimir Luna Cárdenas
Yep, that was it. asDateAndTime solves the issue. Thanks, Offray El 06/04/15 a las 14:37, Paul DeBruicker escribió: When you look at the Date class comment you'll see that they are timespans (a Start + a duration ) and not moments in time, like the time on a clock on a certain day. What you w

[Pharo-users] Showcase of initial support for word clouds and data scrapping (and the usual newbie questions)

2015-04-06 Thread Offray Vladimir Luna Cárdenas
Hi all, On [1] you can see a small video showing the support for word clouds and data scrapping from Twitter for some public profiles (including mine). As you can see the visualization is embedded on grafoscopio trees/documents that provide context for the scripts and combine them with other