[Pharo-users] Pharo refactoring rewrite tool?

2019-03-17 Thread Tim Mackinnon
I recall there was a refactoring rewrite tool - but where is it in Pharo? Is it 
something you have to load separately? Or do you just copy some of the 
deprecated examples and do it manually? I thought there was something with a 
window where you typed in a rule and then it showed you what it would do? (Or 
was that only in Dolphin?)

Thanks,

Tim


Re: [Pharo-users] Test skip isn't working?

2019-03-17 Thread Vitor Medina Cruz
Skip only works when I run tests from class. If I click the test button
from the method skipped it don't work, maybe an error in calypso?

On Sun, Mar 17, 2019 at 3:13 PM Vitor Medina Cruz 
wrote:

> Hello,
>
> someTest
> self skip: 'some message'.
>
> rest of the test
>
> Rest of the test is being executed. There is a different woy of skipping
> tests?
>
> Thanks,
> Vitor.
>


Re: [Pharo-users] 7.0.2 and the font glitch - seems far worse than 7.0.1

2019-03-17 Thread Pierce Ng
On Sun, Mar 17, 2019 at 02:44:25PM +, Tim Mackinnon wrote:
> Hey Pierce - what font did you use - are you talking about the Bitmap
> fonts, or did you pick something else?

I use the platform fonts to show Chinese and Japanese content correctly.
On Mac, PingFang SC. On Ubuntu I have been using Noto Sans.

Pierce



Re: [Pharo-users] rdf and/or json-ld

2019-03-17 Thread Ben Coman
On Mon, 18 Mar 2019 at 04:09, Tudor Girba  wrote:

> Hi,
>
> Is anyone aware of RDF or JSON-LD support in Pharo?
>

Not yet in Pharo, but maybe supporting Christian to port his RDF library (
https://wiki.pdftalk.de/doku.php?id=rdf)
could be an option...
> I did a tool for porting PDFtalk from VW to Gemstone (bundle {Gemstone
Fileout Project}) .
> When I have time, I plan to extend it for Pharo in order to port RDF (and
Values).
> I am thinking of making Pharo my RDF engine… we’ll see…
> Happy hacking, Christian
(http://forum.world.st/RDF-td5083503.html)


cheers -ben


[Pharo-users] Pharo MOOC

2019-03-17 Thread Richard Kenneth Eng
Will there be another run in 2019? I have friends who are interested.


Re: [Pharo-users] [Moose-dev] Re: [Pharo-dev] Re: [ANN] Lan.d.s Alpha: All Along the Language Tower

2019-03-17 Thread Nick Papoylias
On Sun, Mar 17, 2019 at 9:24 PM Stéphane Ducasse 
wrote:

> I know what is it to write book.
> I sent you some support and I want to be a reviewer.
>

Would be my pleasure Stef ! Today was a wonderful start !

Thank you,

Nick


>
> Stef
>
> On 17 Mar 2019, at 20:35, Nick Papoylias  wrote:
>
> That was good to know. I updated the site with* one-click direct*
> *(non-recurring) alternative*: *PayPal.Me for Lands*
> 
>
> https://npapoylias.gitlab.io/lands-project/Support/
>
> *"Alternatively you can make a direct (non-recurrent) contribution *
> *through paypal.me : PayPal.Me for Lands
> . Adding "Lands Support" *
> *as a note, plus the e-mail and address you would wish to *
> *receive your perks on"*
>
> Cheers,
>
> Nick
>
>
>
> On Sun, Mar 17, 2019 at 5:26 PM Nick Papoylias 
> wrote:
>
>>
>>
>> On Sun, Mar 17, 2019 at 2:18 PM Stéphane Ducasse <
>> stephane.duca...@inria.fr> wrote:
>>
>>> Hi nick
>>>
>>> I wanted to support your chapters via paypal but it asked me about my
>>> visa and I would like
>>> to pay via my paypal account. Do you know if this is possible?
>>>
>>
>> Thanx Stef !
>>
>> *Through patreon, this seems to be required for recurrent payments:*
>>
>>
>> https://support.patreon.com/hc/en-us/articles/115001917686-Why-do-I-need-to-add-a-credit-card-for-PayPal-
>>
>> There are 2 alternatives through that might not have this requirement:
>>
>> *Alternative 1, through the Paypal button (if you did not try already):*
>>
>> *Step1,* from: https://npapoylias.gitlab.io/lands-project/Support/
>>
>> Hit the PayPal button.
>>
>> *Step2*: And then in the Paypal screen, hit PayPal pay.
>>
>> *Alternative 2,  directly from your PayPal dashboard:*
>>
>> "*Pay for goods or services* No fee for you. The recipient pays a fee."
>>
>> *using my e-mail address:* npapoyl...@gmail.com  
>>
>> Adding in the note a message like: "Lands Support" so that it is
>> distinguishable
>> form other transactions.
>>
>> *Let me know if you encounter any problems, so that I contact them, if
>> necessary.*
>> And update the site, for ways to support without credit-card required.
>>
>> Best,
>>
>> Nick
>>
>> Else can you send me your pp account?
>>>
>>> Stef
>>>
>>> On 17 Mar 2019, at 10:21, Nick Papoylias  wrote:
>>>
>>> *Dear friends ! *
>>>
>>> I am quite excited to announce the availability of an alpha version
>>> of my latest work around *Parsing and Programming Languages *at:
>>>
>>> https://npapoylias.gitlab.io/lands-project/
>>>
>>> Accompanied by *~ 30 min of transcribed eye-candy:*
>>>
>>> https://www.youtube.com/playlist?list=PLIjPQnRzAKVHABG1-oTvwWc3Gj1Z4C91B
>>>
>>> Backed by* a crowdfunding campaign ! *To get the *book and stable
>>> release *
>>> successfully out of the door:
>>>
>>> https://www.patreon.com/lands_project
>>> https://npapoylias.gitlab.io/lands-project/Support/
>>>
>>> *Click, download, watch, enjoy !* If you like what you see, support the
>>> project ! Tiers
>>> start *from 5 and 10 euros per chapter for individuals.* Companies
>>> supporting
>>> the project can get
>>> *6 to 12 days of consultancy, on-site workshops and other perks.*
>>> =
>>>
>>> *What is all about ??*
>>>
>>> *Lan.d.s is a new solution for language design.* From
>>> *general purpose languages *like *Lise* (short for (list (embedding))
>>> to
>>> *Domain-Specific Languages using the MOODs framework*, and everything
>>> else in between.
>>> Lan.d.s is build around the formalism of
>>> *Multi-Ordered Grammars, which are a possible alternative to CFGs and
>>> PEGs in wider use today.*
>>>
>>> Multi-ordered grammars (or simply MOGs) aim for a better exploration of
>>> ambiguity,
>>> recursion, ordering and associativity during language design. They can
>>> be
>>> *parsed using the Gray Algorithm. *After parsing in order to ease the
>>> production of executable code
>>> Lan.d.s introduces the *Abstract Syntax Language (ASL)*, which is an OO
>>> solution for compile-time meta-programming. Finally in order to promote
>>> language extension and re-use, Lan.d.s employs
>>> *GrammarTraits, as units of composition for both MOG rules and ASL
>>> actions.*
>>>
>>> =
>>>
>>> Some random highlights for the impatient:
>>>
>>>
>>> ** Object subclass: #Prediction uses: Future syntax*
>>>
>>> ** Languages are everywhere, they are all around you, even now in this
>>> very sentence.*
>>>
>>> ** Study SICP with a Xerox flavor, while re-inventing some Bell-labs
>>> utilities.*
>>>
>>> ** TOC-Board, the TOC for your next talk ;)*
>>>
>>>
>>> Enjoy !
>>> 
>>> 
>>>
>>>
>>> 
>>> Stéphane Ducasse
>>> http://stephane.ducasse.free.fr
>>> http://www.synectique.eu / http://www.pharo.org
>>> 03 59 35 87 52
>>> Assistant: Julie Jonas
>>> FAX 03 59 57 78 50
>>> TEL 03 59 35 86 16
>>> S. Ducasse - Inria
>>> 40, avenue Halley,
>>> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
>>> Villeneuve d'Ascq 5

[Pharo-users] rdf and/or json-ld

2019-03-17 Thread Tudor Girba
Hi,

Is anyone aware of RDF or JSON-LD support in Pharo?

Cheers,
Doru


--
www.feenk.com

"Innovation comes in the least expected form. 
That is, if it is expected, it already happened."




Re: [Pharo-users] [Moose-dev] Re: [ANN] Lan.d.s Alpha: All Along the Language Tower

2019-03-17 Thread Nick Papoylias
That was good to know. I updated the site with* one-click direct*
*(non-recurring) alternative*: *PayPal.Me for Lands*


https://npapoylias.gitlab.io/lands-project/Support/

*"Alternatively you can make a direct (non-recurrent) contribution *
*through paypal.me : PayPal.Me for Lands
. Adding "Lands Support" *
*as a note, plus the e-mail and address you would wish to *
*receive your perks on"*

Cheers,

Nick



On Sun, Mar 17, 2019 at 5:26 PM Nick Papoylias  wrote:

>
>
> On Sun, Mar 17, 2019 at 2:18 PM Stéphane Ducasse <
> stephane.duca...@inria.fr> wrote:
>
>> Hi nick
>>
>> I wanted to support your chapters via paypal but it asked me about my
>> visa and I would like
>> to pay via my paypal account. Do you know if this is possible?
>>
>
> Thanx Stef !
>
> *Through patreon, this seems to be required for recurrent payments:*
>
>
> https://support.patreon.com/hc/en-us/articles/115001917686-Why-do-I-need-to-add-a-credit-card-for-PayPal-
>
> There are 2 alternatives through that might not have this requirement:
>
> *Alternative 1, through the Paypal button (if you did not try already):*
>
> *Step1,* from: https://npapoylias.gitlab.io/lands-project/Support/
>
> Hit the PayPal button.
>
> *Step2*: And then in the Paypal screen, hit PayPal pay.
>
> *Alternative 2,  directly from your PayPal dashboard:*
>
> "*Pay for goods or services* No fee for you. The recipient pays a fee."
>
> *using my e-mail address:* npapoyl...@gmail.com  
>
> Adding in the note a message like: "Lands Support" so that it is
> distinguishable
> form other transactions.
>
> *Let me know if you encounter any problems, so that I contact them, if
> necessary.*
> And update the site, for ways to support without credit-card required.
>
> Best,
>
> Nick
>
> Else can you send me your pp account?
>>
>> Stef
>>
>> On 17 Mar 2019, at 10:21, Nick Papoylias  wrote:
>>
>> *Dear friends ! *
>>
>> I am quite excited to announce the availability of an alpha version
>> of my latest work around *Parsing and Programming Languages *at:
>>
>> https://npapoylias.gitlab.io/lands-project/
>>
>> Accompanied by *~ 30 min of transcribed eye-candy:*
>>
>> https://www.youtube.com/playlist?list=PLIjPQnRzAKVHABG1-oTvwWc3Gj1Z4C91B
>>
>> Backed by* a crowdfunding campaign ! *To get the *book and stable
>> release *
>> successfully out of the door:
>>
>> https://www.patreon.com/lands_project
>> https://npapoylias.gitlab.io/lands-project/Support/
>>
>> *Click, download, watch, enjoy !* If you like what you see, support the
>> project ! Tiers
>> start *from 5 and 10 euros per chapter for individuals.* Companies
>> supporting
>> the project can get
>> *6 to 12 days of consultancy, on-site workshops and other perks.*
>> =
>>
>> *What is all about ??*
>>
>> *Lan.d.s is a new solution for language design.* From
>> *general purpose languages *like *Lise* (short for (list (embedding)) to
>> *Domain-Specific Languages using the MOODs framework*, and everything
>> else in between.
>> Lan.d.s is build around the formalism of
>> *Multi-Ordered Grammars, which are a possible alternative to CFGs and
>> PEGs in wider use today.*
>>
>> Multi-ordered grammars (or simply MOGs) aim for a better exploration of
>> ambiguity,
>> recursion, ordering and associativity during language design. They can be
>> *parsed using the Gray Algorithm. *After parsing in order to ease the
>> production of executable code
>> Lan.d.s introduces the *Abstract Syntax Language (ASL)*, which is an OO
>> solution for compile-time meta-programming. Finally in order to promote
>> language extension and re-use, Lan.d.s employs
>> *GrammarTraits, as units of composition for both MOG rules and ASL
>> actions.*
>>
>> =
>>
>> Some random highlights for the impatient:
>>
>>
>> ** Object subclass: #Prediction uses: Future syntax*
>>
>> ** Languages are everywhere, they are all around you, even now in this
>> very sentence.*
>>
>> ** Study SICP with a Xerox flavor, while re-inventing some Bell-labs
>> utilities.*
>>
>> ** TOC-Board, the TOC for your next talk ;)*
>>
>>
>> Enjoy !
>> 
>> 
>>
>>
>> 
>> Stéphane Ducasse
>> http://stephane.ducasse.free.fr
>> http://www.synectique.eu / http://www.pharo.org
>> 03 59 35 87 52
>> Assistant: Julie Jonas
>> FAX 03 59 57 78 50
>> TEL 03 59 35 86 16
>> S. Ducasse - Inria
>> 40, avenue Halley,
>> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
>> Villeneuve d'Ascq 59650
>> France
>>
>> ___
>> Moose-dev mailing list
>> moose-...@list.inf.unibe.ch
>> https://www.list.inf.unibe.ch/listinfo/moose-dev
>>
>


[Pharo-users] Test skip isn't working?

2019-03-17 Thread Vitor Medina Cruz
Hello,

someTest
self skip: 'some message'.

rest of the test

Rest of the test is being executed. There is a different woy of skipping
tests?

Thanks,
Vitor.


Re: [Pharo-users] [Moose-dev] Re: [ANN] Lan.d.s Alpha: All Along the Language Tower

2019-03-17 Thread Nick Papoylias
On Sun, Mar 17, 2019 at 2:18 PM Stéphane Ducasse 
wrote:

> Hi nick
>
> I wanted to support your chapters via paypal but it asked me about my visa
> and I would like
> to pay via my paypal account. Do you know if this is possible?
>

Thanx Stef !

*Through patreon, this seems to be required for recurrent payments:*

https://support.patreon.com/hc/en-us/articles/115001917686-Why-do-I-need-to-add-a-credit-card-for-PayPal-

There are 2 alternatives through that might not have this requirement:

*Alternative 1, through the Paypal button (if you did not try already):*

*Step1,* from: https://npapoylias.gitlab.io/lands-project/Support/

Hit the PayPal button.

*Step2*: And then in the Paypal screen, hit PayPal pay.

*Alternative 2,  directly from your PayPal dashboard:*

"*Pay for goods or services* No fee for you. The recipient pays a fee."

*using my e-mail address:* npapoyl...@gmail.com  

Adding in the note a message like: "Lands Support" so that it is
distinguishable
form other transactions.

*Let me know if you encounter any problems, so that I contact them, if
necessary.*
And update the site, for ways to support without credit-card required.

Best,

Nick

Else can you send me your pp account?
>
> Stef
>
> On 17 Mar 2019, at 10:21, Nick Papoylias  wrote:
>
> *Dear friends ! *
>
> I am quite excited to announce the availability of an alpha version
> of my latest work around *Parsing and Programming Languages *at:
>
> https://npapoylias.gitlab.io/lands-project/
>
> Accompanied by *~ 30 min of transcribed eye-candy:*
>
> https://www.youtube.com/playlist?list=PLIjPQnRzAKVHABG1-oTvwWc3Gj1Z4C91B
>
> Backed by* a crowdfunding campaign ! *To get the *book and stable release
> *
> successfully out of the door:
>
> https://www.patreon.com/lands_project
> https://npapoylias.gitlab.io/lands-project/Support/
>
> *Click, download, watch, enjoy !* If you like what you see, support the
> project ! Tiers
> start *from 5 and 10 euros per chapter for individuals.* Companies
> supporting
> the project can get
> *6 to 12 days of consultancy, on-site workshops and other perks.*
> =
>
> *What is all about ??*
>
> *Lan.d.s is a new solution for language design.* From
> *general purpose languages *like *Lise* (short for (list (embedding)) to
> *Domain-Specific Languages using the MOODs framework*, and everything
> else in between.
> Lan.d.s is build around the formalism of
> *Multi-Ordered Grammars, which are a possible alternative to CFGs and PEGs
> in wider use today.*
>
> Multi-ordered grammars (or simply MOGs) aim for a better exploration of
> ambiguity,
> recursion, ordering and associativity during language design. They can be
> *parsed using the Gray Algorithm. *After parsing in order to ease the
> production of executable code
> Lan.d.s introduces the *Abstract Syntax Language (ASL)*, which is an OO
> solution for compile-time meta-programming. Finally in order to promote
> language extension and re-use, Lan.d.s employs
> *GrammarTraits, as units of composition for both MOG rules and ASL
> actions.*
>
> =
>
> Some random highlights for the impatient:
>
>
> ** Object subclass: #Prediction uses: Future syntax*
>
> ** Languages are everywhere, they are all around you, even now in this
> very sentence.*
>
> ** Study SICP with a Xerox flavor, while re-inventing some Bell-labs
> utilities.*
>
> ** TOC-Board, the TOC for your next talk ;)*
>
>
> Enjoy !
> 
> 
>
>
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr
> http://www.synectique.eu / http://www.pharo.org
> 03 59 35 87 52
> Assistant: Julie Jonas
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley,
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France
>
> ___
> Moose-dev mailing list
> moose-...@list.inf.unibe.ch
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>


Re: [Pharo-users] 7.0.2 and the font glitch - seems far worse than 7.0.1

2019-03-17 Thread Tim Mackinnon
Hey Pierce - what font did you use - are you talking about the Bitmap fonts, or 
did you pick something else?

This tip, also reveals a usability annoyance on that font setting panel - the 
Force All button not only copies the font to all the sub settings - but also 
the size (making it slightly less useful).

Tim

> On 17 Mar 2019, at 10:43, Tim Mackinnon  wrote:
> 
> Ah - I didn’t know about using “native fonts” - is that in settings?  I’ll 
> check it out.
> 
> That said - if the image default is not to have that setting - we really need 
> to understand and fix this as it’s mega confusing for new users when you 
> don’t see what you typed or code suddenly changes in front of you.
> 
> So I will also eat the dog food and see if I can help diagnose this .
> 
> Tim
> 
> Sent from my iPhone
> 
> 
> 
> Sent from my iPhone
>>> On 17 Mar 2019, at 10:18, Pierce Ng  wrote:
>>> 
>>> On Fri, Mar 15, 2019 at 11:04:35PM +, Tim Mackinnon wrote:
>>> In 7.0.1 (osx - high Sierra - launcher), I was seeing the odd font
>>> glitch (where characters suddenly start glyphing in code and menus -
>>> see photos) and it seemed to be fixable by saving your image the first
>>> time (e.g. after 30+ mins you would see this in a new install). Once
>>> the image was saved, this seemed to stick and never be a problem.
>>> 
>>> In 7.0.2 this is now happening to me very 10-60 mins. The save fix
>>> still works - the moment you save the glyphs will all just disappear
>>> until it happens again.
>> 
>> Worked on my Mojave Mac with fresh 7.0.2 images today. Saw the font
>> glitch after a short while. I switched to native fonts and the glitch
>> went away. I don't use Launcher.
>> 
>> Pierce
>> 
>> 
> 
> 




Re: [Pharo-users] 7.0.2 and the font glitch - seems far worse than 7.0.1

2019-03-17 Thread Tim Mackinnon
Ah - I didn’t know about using “native fonts” - is that in settings?  I’ll 
check it out.

That said - if the image default is not to have that setting - we really need 
to understand and fix this as it’s mega confusing for new users when you don’t 
see what you typed or code suddenly changes in front of you.

So I will also eat the dog food and see if I can help diagnose this .

Tim

Sent from my iPhone



Sent from my iPhone
>> On 17 Mar 2019, at 10:18, Pierce Ng  wrote:
>> 
>> On Fri, Mar 15, 2019 at 11:04:35PM +, Tim Mackinnon wrote:
>> In 7.0.1 (osx - high Sierra - launcher), I was seeing the odd font
>> glitch (where characters suddenly start glyphing in code and menus -
>> see photos) and it seemed to be fixable by saving your image the first
>> time (e.g. after 30+ mins you would see this in a new install). Once
>> the image was saved, this seemed to stick and never be a problem.
>> 
>> In 7.0.2 this is now happening to me very 10-60 mins. The save fix
>> still works - the moment you save the glyphs will all just disappear
>> until it happens again.
> 
> Worked on my Mojave Mac with fresh 7.0.2 images today. Saw the font
> glitch after a short while. I switched to native fonts and the glitch
> went away. I don't use Launcher.
> 
> Pierce
> 
> 




Re: [Pharo-users] 7.0.2 and the font glitch - seems far worse than 7.0.1

2019-03-17 Thread Pierce Ng
On Fri, Mar 15, 2019 at 11:04:35PM +, Tim Mackinnon wrote:
> In 7.0.1 (osx - high Sierra - launcher), I was seeing the odd font
> glitch (where characters suddenly start glyphing in code and menus -
> see photos) and it seemed to be fixable by saving your image the first
> time (e.g. after 30+ mins you would see this in a new install). Once
> the image was saved, this seemed to stick and never be a problem.
>
> In 7.0.2 this is now happening to me very 10-60 mins. The save fix
> still works - the moment you save the glyphs will all just disappear
> until it happens again.

Worked on my Mojave Mac with fresh 7.0.2 images today. Saw the font
glitch after a short while. I switched to native fonts and the glitch
went away. I don't use Launcher.

Pierce




Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-17 Thread Sven Van Caekenberghe



> On 17 Mar 2019, at 07:56, Richard O'Keefe  wrote:
> 
> (1) As it happens, my Smalltalk library *does* have

"my mystery Smalltalk" ;-)

> #excludes: and #identityExcludes:
> (2) The definitions are trivial.
> excludes: item
>   ^(self includes: item) not
> identityExcludes: item
>   ^(self identityIncludes: item) not
> 
> If you want to execute aBlock when aString is not all zeros
> and ones, just do
>(aString allSatisfy: [:each | each = $0 or: [each = $1]])
>  ifFalse: [aBlock value].
> or
>(aString anySatisfy: [:each | each ~= $0 and: [each ~= $1]])
>  ifTrue: [aBlock value].
> or
>('01' includesAll: aString) ifFalse: [aBlock value].

That last expression wins hands down !

Thank you for bringing that up, I learned something new.

> On Sat, 16 Mar 2019 at 11:33, Tim Mackinnon  wrote:
> Hi - in my quest to understand the edgier details of Pharo (and Smalltalk) - 
> and driven by fresh thoughts of completing exercism exercises - I was 
> surprised to find that there is no #excludes: operation on collection to 
> mirror the #includes: operation?
> 
> I was curious about this - its seems a strange omission?
> 
> Of course I can inverse it with not, or do things a different way - but we 
> have ifTrue: mirrored with ifFalse, empty/notEmpty so am I missing something?
> 
> I wanted to write something like
> 
> 
> aString detect: [:c | ($0 to: $1) excludes: c] ifFound: aBlock. (Evaluate a 
> block if the string isn’t all 0 and 1’s)
> 
> 
> Of course I can write this as:
> 
> (aString reject: [:c | c = $0 | c = $1)) ifNotEmpty: aBlock
> 
> But as recent messages in this vein have shown me (and taught me lots - 
> thanks to those answering), the answer is often not what I thought.
> 
> Tim
> 
>