Re: [Pharo-users] [seaside] adding attributes to link/stylesheet tag

2019-02-20 Thread sergio ruiz
Scratch that .. false alarm.. had to go up a level to find attributeAt: put: sorry for the interruption .. On February 20, 2019 at 10:37:21 PM, sergio ruiz (sergio@gmail.com) wrote: How would I go about rendering this: https://use.fontawesome.com/releases/v5.7.2/css/all.css"; integrity="sha

[Pharo-users] [seaside] adding attributes to link/stylesheet tag

2019-02-20 Thread sergio ruiz
How would I go about rendering this: https://use.fontawesome.com/releases/v5.7.2/css/all.css"; integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous”> I am not sure how to add the *integrity* and *crossorigin* attributes to the tag.. Thanks!

Re: [Pharo-users] how to test, if the class has "shared identity" of instances in the whole image (SmallIntegers, Symbols...)

2019-02-20 Thread Petr Fischer via Pharo-users
--- Begin Message --- > It is not clear to me what the semantics of such a selector would be. > Consider this example: > t := [:x | x copy == x]. > a := t value: 1.0e38. > b := t value: 1.0e308. > What do you expect a and b to be? > GNU Smalltalk: a=true, b=true. > My Smalltalk, 32-bit or 64-bit

Re: [Pharo-users] Pluralising messages or choosing word alternatives

2019-02-20 Thread Tim Mackinnon
Some great suggestions here guys - I had forgotten there were conditionals in expandMacros… that is the better solution. Although I do kind of think that something on OrderedCollection like: chooseBasedOn: count ^self at: ((count max: 1) min: self size) Would be a nice general solution

Re: [Pharo-users] Trying to understand Developing with Pharo, Deploying with Gemstone/s

2019-02-20 Thread Dale Henrichs
Hello Sergio, Sorry for the delay in replying .. too many balls in the air:) I'll comment in-line .. On 2/8/19 7:07 AM, sergio ruiz wrote: I have an app that is ready to deploy to alpha. I usually do this by creating a script that builds a minimal pharo image, and run that on a cloud serve

Re: [Pharo-users] Pluralising messages or choosing word alternatives

2019-02-20 Thread Sven Van Caekenberghe
You should have a look at what Seaside has. Like Integer>>#pluralize:with: But also the class GRInflector that understand more about English than I do ;-) > On 20 Feb 2019, at 22:07, Tim Mackinnon wrote: > > I was browsing some of the Pharo issues (always worth doing) - and noticed an > inter

Re: [Pharo-users] Pluralising messages or choosing word alternatives

2019-02-20 Thread Esteban Maringolo
Why not use the condition macro so you have a single string literal, that in the future could be used for translation? E.g. | occurences | occurences := 3. 'There <1?is:are> <2p> <1?occurrence:ocurrences> of <3p>' expandMacrosWith: occurences = 1 with: 3 with: 'Foo' Esteban A. Maringolo El mié

Re: [Pharo-users] Pluralising messages or choosing word alternatives

2019-02-20 Thread Gabriel Cotelli
Maybe you can use the conditional syntax of expandMacros. On Wed, Feb 20, 2019, 18:08 Tim Mackinnon wrote: > I was browsing some of the Pharo issues (always worth doing) - and noticed > an interesting one about Test results reporting and pluralisation > (https://github.com/pharo-project/pharo/is

[Pharo-users] Pluralising messages or choosing word alternatives

2019-02-20 Thread Tim Mackinnon
I was browsing some of the Pharo issues (always worth doing) - and noticed an interesting one about Test results reporting and pluralisation (https://github.com/pharo-project/pharo/issues/2578) In it, I hadn't noticed String>>asPluralBasedOn: before (and judging from many messages in the image,

Re: [Pharo-users] how to test, if the class has "shared identity" of instances in the whole image (SmallIntegers, Symbols...)

2019-02-20 Thread Richard O'Keefe
It is not clear to me what the semantics of such a selector would be. Consider this example: t := [:x | x copy == x]. a := t value: 1.0e38. b := t value: 1.0e308. What do you expect a and b to be? GNU Smalltalk: a=true, b=true. My Smalltalk, 32-bit or 64-bit: a=true, b=true. Squeak/Pharo, 32-bit

Re: [Pharo-users] How do you easily re-categorise methods in Calypso?

2019-02-20 Thread Tim Mackinnon
No problem Denis - I’m ready to dip a toe in on things like this. I just wanted to make sure I wasn’t missing something or stick in old habits. Just tried a simple fix today and discovered it’s in the Calypso code - so need to get my fork sorted again. Tim Sent from my iPhone > On 20 Feb 2019

Re: [Pharo-users] How do you easily re-categorise methods in Calypso?

2019-02-20 Thread Denis Kudriashov
Hi Tim. It needs to be improved. I simply reused the choose dialog from add protocol command because the change protocol dialog was the part of Nautilus. вт, 19 февр. 2019 г., 15:06 Tim Mackinnon tim@testit.works: > Hi - I’m scratching my head over how to easily re-caegorise methods in > calypso

Re: [Pharo-users] Pharo general questions for a commercial application

2019-02-20 Thread ducasse
> On 20 Feb 2019, at 17:23, BrunoBB wrote: > > Hi Esteban, > > Nice to see you here too... > > The web application will run Linux 64bits, the Pharo 64bits for Linux is > stable or i should use a 32bit VM ? > > Thanks for all the information slowly but surely we will implement this app. > >

[Pharo-users] how to test, if the class has "shared identity" of instances in the whole image (SmallIntegers, Symbols...)

2019-02-20 Thread Petr Fischer via Pharo-users
--- Begin Message --- Hello, some classes, like Symbols or SmallIntegers, shares identity of value instances in the whole image (I may say it wrong), so: 1 == 1 copy. [true] #aaa == #aaa copy. [true] all other classes not, like Strings, Objects etc., so: 'aaa' == 'aaa' copy. [false] Is there a

Re: [Pharo-users] Pharo general questions for a commercial application

2019-02-20 Thread Sven Van Caekenberghe
Pharo 7/8 is 64-bits by default on macOS and Linux, no problems there. > On 20 Feb 2019, at 17:23, BrunoBB wrote: > > Hi Esteban, > > Nice to see you here too... > > The web application will run Linux 64bits, the Pharo 64bits for Linux is > stable or i should use a 32bit VM ? > > Thanks for a

Re: [Pharo-users] Pharo general questions for a commercial application

2019-02-20 Thread BrunoBB
Hi Esteban, Nice to see you here too... The web application will run Linux 64bits, the Pharo 64bits for Linux is stable or i should use a 32bit VM ? Thanks for all the information slowly but surely we will implement this app. Also it seems that Pharo has a very active community !!! regards, br

Re: [Pharo-users] How to load a single package in a Metacello baseline

2019-02-20 Thread Sean P. DeNigris
Tim Mackinnon wrote > Yeah - I have a similar issue with ExternalWebBrowser... that drags in... > [a] huge raft of tests My workflow is to make every project one monolithic package until the need to do otherwise is presented (like right now!). I used to carefully think about theoretical use case

Re: [Pharo-users] Pharo general questions for a commercial application

2019-02-20 Thread Eric Gade
> > 2) For RDBMS forget about DBXTalk and Garage, I would suggest you go > straight to the PostgreSQL client (P3) or SQLite. Those are maintained and > used, the rest... who knows. > If you need ORM you can use Glorp with any of those. > What about MySQL connectors -- is anyone in the community us

Re: [Pharo-users] Pharo general questions for a commercial application

2019-02-20 Thread Esteban Maringolo
Hi Bruno, Is good to see you here as well :) 1) 7.0+. If you're in Windows only 32 bit is supported. 2) For RDBMS forget about DBXTalk and Garage, I would suggest you go straight to the PostgreSQL client (P3) or SQLite. Those are maintained and used, the rest... who knows. If you need ORM you ca

Re: [Pharo-users] Pharo general questions for a commercial application

2019-02-20 Thread BrunoBB
Sven, Thanks for you answer and links. SQL will be enough and no need for a complex ORM. I will take a look at: https://github.com/svenvc/pharo-server-tools Thanks again ! regards, bruno PS: my client has an running Java app and need another app to do some functionality and they will give Sma

Re: [Pharo-users] [ANN] SETT (Store Export to Tonel Tools) for Pharo6.1

2019-02-20 Thread Esteban Maringolo
Hi Dale, The issue I faced was a trivial one, but also easy to miss. I installed a vanilla linux environment to run it, and git was not initialized, so I needed to config the user.name and user.email global settings. So every time Sett executed `git` it was complaining about the missing config. I

Re: [Pharo-users] Phorms repository?

2019-02-20 Thread Manuel Leuenberger
Found it. RewriteTool (http://smalltalkhub.com/#!/~MarkRizun/RewriteTool/commits ) Phorms (http://smalltalkhub.com/#!/~CamilleTeruel/Patterns/commits ) Anybody has experience u

Re: [Pharo-users] RBPattern syntax

2019-02-20 Thread Manuel Leuenberger
Hi Henrik, Thanks for the the link. Interestingly, I was presented the same page on an old version, https://web.archive.org/web/20090227160738/http://st-www.cs.uiuc.edu/users/brant/Refactory/Rewrite.html

Re: [Pharo-users] Pharo general questions for a commercial application

2019-02-20 Thread Sven Van Caekenberghe
Hi Bruno, > On 20 Feb 2019, at 02:26, BrunoBB wrote: > > Hi, > > My name is Bruno i'been using Smalltalk since 1999 for commercial > applications, mostly Dolphin, GemStone/S and Visual Works. > > Now we have a commercial project and we are going to use Pharo :) Great ! > So we have some g

Re: [Pharo-users] Looking for a STON in/out "factory"

2019-02-20 Thread Cyril Ferlicot
On Wed, Feb 20, 2019 at 11:01 AM ducasse wrote: > > Hi > > I would like to use STON to save objects that non programmer will edit. > From that perspective I would like to be able to have a different class name > than the one in the implementation. > > For example > instead of > > 'SQOne{#question:

Re: [Pharo-users] Looking for a STON in/out "factory"

2019-02-20 Thread Sven Van Caekenberghe
That is already provided, you should implement SQOne class>>#stonName ^ #OneChoice Apart from that I would also use STON class>>#toStringPretty: or #prettyPrint: true on a writer, if the target audience are humans. > On 20 Feb 2019, at 11:00, ducasse wrote: > > Hi > > I would like to use

[Pharo-users] Looking for a STON in/out "factory"

2019-02-20 Thread ducasse
Hi I would like to use STON to save objects that non programmer will edit. From that perspective I would like to be able to have a different class name than the one in the implementation. For example instead of 'SQOne{#question:''Where do developers typically write the Pharo syntax?'',#cho