[Pharo-users] Re: BlockClosure folding

2022-03-14 Thread Julián Maestri
Not satisfying the equality, but you can use polymorphism.

Block >> , aBlock
^ BlockCompositor andAll: OrderedCollection with: self with: aBlock

BlockCompositor >> #, aBlock
conditions add: aBlock.

BlockCompositor >> value: anObject
^ conditions allSatisfy: [:e | e value: anObject ]

I don't really like the name BlockCompositor, but can't think of a better
name at the moment.

You could also implement logic for #or: using #+ and: #anySatisfy: for
example, but need to safeguard against mixing both conditions.

On Mon, 14 Mar 2022 at 22:29, Hernán Morales Durand <
hernan.mora...@gmail.com> wrote:

> I think I saw a coding pattern a while ago that allows you to do the
> following:
>
> cond1 , cond2 , cond3 , cond4
>
> And providing a kind of folding selector condition #and: you would get:
>
> [ cond1 and: [ cond2 and: [ cond3 and: [ cond4 ] ] ] ].
>
> for example:
>
> conditions := [ : each | each firstName = 'Boca' ] ,
> [ : each | each lastName = 'Baret' ] ,
> [ : each | each fullName = 'Virgasia' ].
>
> such that the following assert is met:
>
> self assert: conditions equals: [ : each | each firstName = 'Boca' and: [
> each lastName = 'Baret' and: [ each fullName = 'Virgasia' ] ] ].
>
> Any ideas or pointers?
>
> Cheers,
>
> Hernán
>
>


[Pharo-users] BlockClosure folding

2022-03-14 Thread Hernán Morales Durand
I think I saw a coding pattern a while ago that allows you to do the
following:

cond1 , cond2 , cond3 , cond4

And providing a kind of folding selector condition #and: you would get:

[ cond1 and: [ cond2 and: [ cond3 and: [ cond4 ] ] ] ].

for example:

conditions := [ : each | each firstName = 'Boca' ] ,
[ : each | each lastName = 'Baret' ] ,
[ : each | each fullName = 'Virgasia' ].

such that the following assert is met:

self assert: conditions equals: [ : each | each firstName = 'Boca' and: [
each lastName = 'Baret' and: [ each fullName = 'Virgasia' ] ] ].

Any ideas or pointers?

Cheers,

Hernán


[Pharo-users] Re: pharo image and vm

2022-03-14 Thread Esteban Lorenzano


but is true is not "recommended", I should phrase what is there better ;)
Also VM should work anyway... but Ubuntu 16.04 is pretty old, I am no surprised 
it is not working properly (and no idea if we can make it work easily... I will 
let Pablo Tesone answer that)... in OBS we start by ubuntu 18.04

Esteban
On Mar 14 2022, at 5:46 pm, Otto Behrens  wrote:
> Thanks Esteban,
>
> I'm on Ubuntu 16.04. Where did I miss the "pointed in the download page"? If 
> I go to https://pharo.org/download, I can see a section called
> "Pharo standalone", with a link there to "
> Pharo VM 9 for Linux: 64bit (default) 
> (https://files.pharo.org/get-files/90/pharo64-linux-stable.zip) | 32bit 
> (https://files.pharo.org/get-files/90/pharo-linux-stable.zip)
>
>
> Why would that not work?
>
> I really prefer not to install a deb. More work for me now.
>
>
> Otto Behrens
>
>
>
> +27 82 809 2375
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> www.finworks.biz (http://www.finworks.biz/)
>
>
>
>
>
>
>
>
>
>
> Disclaimer & Confidentiality Note: This email is intended solely for the use 
> of the individual or entity named above as it may contain information that is 
> confidential and privileged. If you are not the intended recipient, be 
> advised that any dissemination, distribution or copying of this email is 
> strictly prohibited. FINWorks cannot be held liable by any person other than 
> the addressee in respect of any opinions, conclusions, advice or other 
> information contained in this email.
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Mon, Mar 14, 2022 at 6:39 PM Esteban Lorenzano  (mailto:esteba...@netc.eu)> wrote:
> > Hi,
> >
> > which is your distribution?
> > In anycase, as pointed in the download page, preferred way in linux to 
> > install the vm is through openbuildservice:
> >
> > https://software.opensuse.org/download.html?project=devel:languages:pharo:latest=pharo9-ui
> > can you try one of that and tell us if problem remains?
> >
> > Esteban
> > On Mar 14 2022, at 5:28 pm, Otto Behrens  > (mailto:o...@finworks.biz)> wrote:
> > > Hi,
> > >
> > > I downloaded a new pharo from
> > >
> > > https://files.pharo.org/get-files/90/pharo64.zip
> > > https://files.pharo.org/get-files/90/pharo64-linux-stable.zip
> > >
> > >
> > > When I start up the image with the VM, I get "Your VM is too old for this 
> > > image. Please download the latest VM"
> > >
> > > None of the shortcut keys seem to work. Something like -c does 
> > > nothing. Does this have something to do with the incorrect VM?
> > >
> > > What am I missing here?
> > >
> > > Thanks for your help
> > >
> > >
> > > Otto Behrens
> > >
> > >
> > >
> > > +27 82 809 2375
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > www.finworks.biz (http://www.finworks.biz/)
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Disclaimer & Confidentiality Note: This email is intended solely for the 
> > > use of the individual or entity named above as it may contain information 
> > > that is confidential and privileged. If you are not the intended 
> > > recipient, be advised that any dissemination, distribution or copying of 
> > > this email is strictly prohibited. FINWorks cannot be held liable by any 
> > > person other than the addressee in respect of any opinions, conclusions, 
> > > advice or other information contained in this email.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
>



[Pharo-users] Re: pharo image and vm

2022-03-14 Thread Otto Behrens
Thanks Esteban,

I'm on Ubuntu 16.04. Where did I miss the "pointed in the download page"?
If I go to https://pharo.org/download, I can see a section called
"Pharo standalone", with a link there to "

   -  Pharo VM 9 for Linux: 64bit (default)
    | 32bit
   

Why would that not work?

I really prefer not to install a deb. More work for me now.

Otto Behrens

+27 82 809 2375
[image: FINWorks]
[image: FINWorks] 
www.finworks.biz

Disclaimer & Confidentiality Note: This email is intended solely for the
use of the individual or entity named above as it may contain information
that is confidential and privileged. If you are not the intended recipient,
be advised that any dissemination, distribution or copying of this email is
strictly prohibited. FINWorks cannot be held liable by any person other
than the addressee in respect of any opinions, conclusions, advice or other
information contained in this email.


On Mon, Mar 14, 2022 at 6:39 PM Esteban Lorenzano  wrote:

> Hi,
>
> which is your distribution?
> In anycase, as pointed in the download page, preferred way in linux to
> install the vm is through openbuildservice:
>
>
> https://software.opensuse.org/download.html?project=devel:languages:pharo:latest=pharo9-ui
> can you try one of that and tell us if problem remains?
>
> Esteban
>
> On Mar 14 2022, at 5:28 pm, Otto Behrens  wrote:
>
> Hi,
>
> I downloaded a new pharo from
>
> https://files.pharo.org/get-files/90/pharo64.zip
> https://files.pharo.org/get-files/90/pharo64-linux-stable.zip
>
> When I start up the image with the VM, I get "Your VM is too old for this
> image. Please download the latest VM"
>
> None of the shortcut keys seem to work. Something like -c does
> nothing. Does this have something to do with the incorrect VM?
>
> What am I missing here?
>
> Thanks for your help
>
> Otto Behrens
>
> +27 82 809 2375
> [image: FINWorks]
> [image: FINWorks] 
> www.finworks.biz
>
> Disclaimer & Confidentiality Note: This email is intended solely for the
> use of the individual or entity named above as it may contain information
> that is confidential and privileged. If you are not the intended recipient,
> be advised that any dissemination, distribution or copying of this email is
> strictly prohibited. FINWorks cannot be held liable by any person other
> than the addressee in respect of any opinions, conclusions, advice or other
> information contained in this email.
>
>


[Pharo-users] Re: pharo image and vm

2022-03-14 Thread Esteban Lorenzano
Hi,

which is your distribution?
In anycase, as pointed in the download page, preferred way in linux to install 
the vm is through openbuildservice:

https://software.opensuse.org/download.html?project=devel:languages:pharo:latest=pharo9-ui
can you try one of that and tell us if problem remains?
Esteban
On Mar 14 2022, at 5:28 pm, Otto Behrens  wrote:
> Hi,
>
> I downloaded a new pharo from
>
> https://files.pharo.org/get-files/90/pharo64.zip
> https://files.pharo.org/get-files/90/pharo64-linux-stable.zip
>
>
> When I start up the image with the VM, I get "Your VM is too old for this 
> image. Please download the latest VM"
>
> None of the shortcut keys seem to work. Something like -c does nothing. 
> Does this have something to do with the incorrect VM?
>
> What am I missing here?
>
> Thanks for your help
>
>
> Otto Behrens
>
>
>
> +27 82 809 2375
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> www.finworks.biz (http://www.finworks.biz/)
>
>
>
>
>
>
>
>
>
>
> Disclaimer & Confidentiality Note: This email is intended solely for the use 
> of the individual or entity named above as it may contain information that is 
> confidential and privileged. If you are not the intended recipient, be 
> advised that any dissemination, distribution or copying of this email is 
> strictly prohibited. FINWorks cannot be held liable by any person other than 
> the addressee in respect of any opinions, conclusions, advice or other 
> information contained in this email.
>
>
>
>
>
>
>
>
>
>
>
>
>



[Pharo-users] pharo image and vm

2022-03-14 Thread Otto Behrens
Hi,

I downloaded a new pharo from

https://files.pharo.org/get-files/90/pharo64.zip
https://files.pharo.org/get-files/90/pharo64-linux-stable.zip

When I start up the image with the VM, I get "Your VM is too old for this
image. Please download the latest VM"

None of the shortcut keys seem to work. Something like -c does
nothing. Does this have something to do with the incorrect VM?

What am I missing here?

Thanks for your help

Otto Behrens

+27 82 809 2375
[image: FINWorks]
[image: FINWorks] 
www.finworks.biz

Disclaimer & Confidentiality Note: This email is intended solely for the
use of the individual or entity named above as it may contain information
that is confidential and privileged. If you are not the intended recipient,
be advised that any dissemination, distribution or copying of this email is
strictly prohibited. FINWorks cannot be held liable by any person other
than the addressee in respect of any opinions, conclusions, advice or other
information contained in this email.


[Pharo-users] [ANN] Camp Smalltalk Supreme's Speaker Line-up

2022-03-14 Thread horrido . hobbies
Here it is: https://campsmalltalksupreme.wordpress.com/2020/06/28/daily-events/

Looks like a very strong event!