Re: [Pharo-users] diff'ing with metacello

2017-03-30 Thread Siemen Baader
Ok. So it is a missing feature. I will do individual diff'ing on versions of the package that contains the method under concern instead. This is after all not different from a git repo that uses eg a package.json file to include external projects. Thanks for enlightening me! Siemen On Thu, Mar 3

Re: [Pharo-users] Morphic component to display images/pictures

2017-03-30 Thread Stephane Ducasse
have a look at the solution of the challenge 2 or 3 in the mooc :) On Thu, Mar 30, 2017 at 3:37 PM, Stephan Eggermont wrote: > On 30/03/17 13:24, Peter Uhnak wrote: > >> do we have a Morphic/Brick/whatever component for displaying >> pictures/images in Pharo? >> > > You can combine something w

Re: [Pharo-users] PetitParser question parsing HTML meta tags

2017-03-30 Thread Martin McClure
On 03/30/2017 10:58 AM, PAUL DEBRUICKER wrote: > I can't figure out how to change the startParser parser to accept the second > idiom. And maybe there's a better approach altogether. Anyway. If anyone > has any ideas on different approaches I'd appreciate learning them. This looks like a jo

Re: [Pharo-users] type checking in Smalltalk

2017-03-30 Thread Ben Coman
On Thu, Mar 30, 2017 at 11:06 PM, Stephan Eggermont wrote: > On 30/03/17 16:03, Marc Hanisch via Pharo-users wrote: >> >> Reading this, I realized, that I never saw such type-checking in >> Pharo production code. So the question is, what are recommended >> design principles for that problem in Sma

[Pharo-users] PetitParser question parsing HTML meta tags

2017-03-30 Thread PAUL DEBRUICKER
This is kind of a "I'm tired of thinking about this and not making much progress for the amount of time I'm putting in question" but here it is: I'm trying to parse descriptions from HTML meta elements. I can't use Soup because there isn't a working GemStone port. I've got it to work with

Re: [Pharo-users] type checking in Smalltalk

2017-03-30 Thread Denis Kudriashov
2017-03-30 16:03 GMT+02:00 Marc Hanisch via Pharo-users < pharo-users@lists.pharo.org>: > It is advised not to use the message isKindOf: in applications. > > I do understand that it is not a good idea to do different operations > depending on the kind of an object in one method. But in my (Javascr

Re: [Pharo-users] type checking in Smalltalk

2017-03-30 Thread Alexandre Bergel
Hi Marc, > Reading this, I realized, that I never saw such type-checking in Pharo > production code. So the question is, what are recommended design principles > for that problem in Smalltalk? Do you use what is called duck typing? I have carefully studied the topic of type checking in the past

Re: [Pharo-users] type checking in Smalltalk

2017-03-30 Thread Stephan Eggermont
On 30/03/17 16:03, Marc Hanisch via Pharo-users wrote: Reading this, I realized, that I never saw such type-checking in Pharo production code. So the question is, what are recommended design principles for that problem in Smalltalk? Do you use what is called duck typing? Normally I'm not intere

Re: [Pharo-users] diff'ing with metacello

2017-03-30 Thread Thierry Goubier
2017-03-30 16:42 GMT+02:00 Ben Coman : > On Thu, Mar 30, 2017 at 2:58 PM, Siemen Baader > wrote: > > Below is a fileout of 'ConfigurationOfPharoJS'. I download new releases > of > > PharoJS as they become available. Recently I found a regression - a > method > > 'PjApplication class >> playgroun

Re: [Pharo-users] diff'ing with metacello

2017-03-30 Thread Ben Coman
On Thu, Mar 30, 2017 at 2:58 PM, Siemen Baader wrote: > Below is a fileout of 'ConfigurationOfPharoJS'. I download new releases of > PharoJS as they become available. Recently I found a regression - a method > 'PjApplication class >> playgroundWithoutLaunch' did not work any more. What > I wante

[Pharo-users] type checking in Smalltalk

2017-03-30 Thread Marc Hanisch via Pharo-users
--- Begin Message --- Hello, I have a question which is more related to software engineering than to Pharo, but I hope that someone can give me an useful hint ;-) In Pharo By Example 5, Page 308, in the Chapter "Introspection", it is written: "Although these features (type inspection) are especi

Re: [Pharo-users] Morphic component to display images/pictures

2017-03-30 Thread Stephan Eggermont
On 30/03/17 13:24, Peter Uhnak wrote: do we have a Morphic/Brick/whatever component for displaying pictures/images in Pharo? You can combine something with ImageMorph, ImagePreviewMorph, Form and TransformMorph. I don't know about mousewheel support, I vaguely remember something about mousew

[Pharo-users] Morphic component to display images/pictures

2017-03-30 Thread Peter Uhnak
Hi, do we have a Morphic/Brick/whatever component for displaying pictures/images in Pharo? The "best" I found was GTInspector extension on PNG files, which provides scrollbars, however I would like to also have: 1) zooming with mousewheel (now it scrolls vertically) 2) dragging the image aroun