Re: [Pharo-users] Skipping to a substring in a stream

2016-02-09 Thread Leonardo Silva
On Tue, Feb 9, 2016 at 5:07 PM, Sven Van Caekenberghe wrote: > > > On 09 Feb 2016, at 19:54, Stephan Eggermont wrote: > > > > On 09/02/16 14:01, Sven Van Caekenberghe wrote: > >> Leonardo, > >> > >> You could try PositionalStream>>#upToAll: > >> > >> But watch out: if the substring does not occu

Re: [Pharo-users] Skipping to a substring in a stream

2016-02-09 Thread Leonardo Silva
> > HTH, > > Sven > > > On 09 Feb 2016, at 13:29, Leonardo Silva > wrote: > > > > Hi, > > > > I'd like to skip to a specific position in a stream based on a substring. > > I got the following example that works for a single character: &g

[Pharo-users] Skipping to a substring in a stream

2016-02-09 Thread Leonardo Silva
Hi, I'd like to skip to a specific position in a stream based on a substring. I got the following example that works for a single character: stream := 'abcdef' readStream. stream skipTo: $e. stream next.-→ $f But it does not work for substrings. I'd like to have something like: stream :

Re: [Pharo-users] [Moose-dev] MacroRecorder available in Pharo

2015-12-04 Thread Leonardo Silva
Nice work Gustavo, congratulations ! Leonardo On Fri, Dec 4, 2015 at 6:34 AM, Gustavo Santos wrote: > Hello guys, > > I would like to present you MacroRecorder, a tool to build custom source > code transformations in Pharo. > > The tool is available in the Catalog for some weeks now. > The curr

Re: [Pharo-users] Store a png in a class variable

2015-05-16 Thread Leonardo Silva
On Sat, May 16, 2015 at 5:28 PM, Merwan Ouddane wrote: > You can encore your image in base64 > anImage := 'holidays.png' asFileReference readStream binary. > encodedImage := Base64MimeConverter mimeEncode: anImage. > > > Then you can decode it with: > ImageReadWriter formFromStream: (

[Pharo-users] Store a png in a class variable

2015-05-15 Thread Leonardo Silva
Hi, I load a PNG file using the code below: pngPath := '/Users/Somefolder/UI-Theme.png' asFileReference. forms := pngPath readStreamDo: [ :in | (PNGReadWriter on: in) nextImage ]. ... But I don't want to create this dependency with a file path. I would like to be able to encode the image into a

Re: [Pharo-users] How to open the moose panel programmatically ?

2015-05-15 Thread Leonardo Silva
It works fine. Thanks On Fri, May 15, 2015 at 12:30 PM, Tudor Girba wrote: > Sorry: > MoosePanel open. > > Doru > > On Fri, May 15, 2015 at 12:30 PM, Tudor Girba > wrote: > >> MooseModel open. >> >> Doru >> >> On Fri, May 15, 2015 at 12:

[Pharo-users] How to open the moose panel programmatically ?

2015-05-15 Thread Leonardo Silva
Hi, I have an application that creates an instance of a moose model. I would like to know how I can open it inside the moose panel programmatically. Without using the World menu. Thank you, Leonardo

Re: [Pharo-users] Applications, features and unit tests

2014-02-13 Thread Leonardo Silva
a prefix, then I can do this mapping. Leonardo On Thu, Feb 13, 2014 at 7:08 AM, Damien Cassou wrote: > On Wed, Feb 12, 2014 at 1:17 PM, Leonardo Silva > wrote: > > I am looking for real applications in Smalltalk that have a mapping > between > > its features and the sp

[Pharo-users] Applications, features and unit tests

2014-02-12 Thread Leonardo Silva
b.com/#!/~ObjectProfile/Spy) to capture dynamic behavior. Many thanks for help, Leonardo Silva