Re: [Pharo-dev] GitFileTree - Git command not found (is which shell startup script is run when pharo launched from UI)

2015-02-03 Thread kilon alios
here some info I found

http://serverfault.com/questions/16355/how-to-set-global-path-on-os-x

On Wed, Feb 4, 2015 at 12:28 AM, Manfred Kröhnert <
mkroehner...@googlemail.com> wrote:

> Hi,
>
> On Tue, Feb 3, 2015 at 4:21 PM, Peter Uhnák  wrote:
>
>> Hi,
>>
>> Both .bashrc and .bash_profile are directly bound to shell (bash shell)
>> so this will not help. I do not know MacOS, so I'm not sure if there is
>> some GUI configuration like in MS Windows, so someone else might clarify.
>>
>
> another possibility on OS X is to put the correct path in .bashrc and then
> start Pharo from a Terminal via the command 'open Pharo.app'.
> Adjust Pharo.app to the name of the Pharo application bundle on your
> machine.
> This is not a perfect solution but it works.
>
> There is also a special file on OS X where you supposedly can add things
> like a $PATH variable for graphical programs.
> Unfortunately I don't remember the name of that file.
>
> Best,
> Manfred
>
>
>
>> In the meantime there is also an alternative way - create a custom
>> launcher where you set the path explicitly... i.e.
>> PATH=$PATH:/usr/local/bin ./pharo pharo.image (or however you start your
>> pharo instance).
>>
>> Peter
>>
>> On Tue, Feb 3, 2015 at 4:08 PM, Christophe Demarey <
>> christophe.dema...@inria.fr> wrote:
>>
>>> Hi,
>>>
>>> I wanted to give a try to gitfiletree but I got a 'Git command not
>>> found'.
>>> Indeed, the git command is not in the path Here is the code used by
>>> GitFileTree to run a git command:
>>>
>>> | c output |
>>> [
>>> c := PipeableOSProcess
>>> command: 'export'.
>>> output := ReadStream on: c output.
>>> c succeeded
>>> ifFalse: [ self error: 'Git error: ' , c
>>> errorPipelineContents ] ]
>>> ensure: [ c closePipes ].
>>> output
>>>
>>> I replaced the command to execute by 'export' to get all environment
>>> variables. I noticed that '/usr/local/bin' is not in the path (used by
>>> brew).
>>>
>>>
>>> To get my full environment (.profile executed), I need to run pharo from
>>> a shell with the same environment. The question is: how to run Pharo from
>>> the UI and get this environment?
>>> I tried with a .bashrc, bash_profile without success.
>>> Any idea?
>>>
>>> Thanks,
>>> Christophe.
>>
>>
>>
>


Re: [Pharo-dev] Question on AioPlugin

2015-02-03 Thread Esteban Lorenzano
in linux, is in the latest, not the stable (you can take the latest without 
problem, btw… is a lateral problem who is preventing me to me latest to stable)
in mac is since ever
in windows is not necessary 

Esteban

> On 04 Feb 2015, at 07:18, Thierry Goubier  wrote:
> 
> Hi all,
> 
> anybody knows how to check if the AioPlugin is included in the current stable 
> Pharo vm(*)? OSProcess is complaining of a missing AioPlugin, and I remember 
> a thread where this was solved by integrating it in the vm build.
> 
> Thanks,
> 
> Thierry
> 
> * : The vm one get when doing wget -O- get.pharo.org/30+vm 
>  | bash



[Pharo-dev] Question on AioPlugin

2015-02-03 Thread Thierry Goubier
Hi all,

anybody knows how to check if the AioPlugin is included in the current
stable Pharo vm(*)? OSProcess is complaining of a missing AioPlugin, and I
remember a thread where this was solved by integrating it in the vm build.

Thanks,

Thierry

* : The vm one get when doing wget -O- get.pharo.org/30+vm | bash


Re: [Pharo-dev] GitFileTree - Git command not found (is which shell startup script is run when pharo launched from UI)

2015-02-03 Thread Manfred Kröhnert
Hi,

On Tue, Feb 3, 2015 at 4:21 PM, Peter Uhnák  wrote:

> Hi,
>
> Both .bashrc and .bash_profile are directly bound to shell (bash shell) so
> this will not help. I do not know MacOS, so I'm not sure if there is some
> GUI configuration like in MS Windows, so someone else might clarify.
>

another possibility on OS X is to put the correct path in .bashrc and then
start Pharo from a Terminal via the command 'open Pharo.app'.
Adjust Pharo.app to the name of the Pharo application bundle on your
machine.
This is not a perfect solution but it works.

There is also a special file on OS X where you supposedly can add things
like a $PATH variable for graphical programs.
Unfortunately I don't remember the name of that file.

Best,
Manfred



> In the meantime there is also an alternative way - create a custom
> launcher where you set the path explicitly... i.e.
> PATH=$PATH:/usr/local/bin ./pharo pharo.image (or however you start your
> pharo instance).
>
> Peter
>
> On Tue, Feb 3, 2015 at 4:08 PM, Christophe Demarey <
> christophe.dema...@inria.fr> wrote:
>
>> Hi,
>>
>> I wanted to give a try to gitfiletree but I got a 'Git command not found'.
>> Indeed, the git command is not in the path Here is the code used by
>> GitFileTree to run a git command:
>>
>> | c output |
>> [
>> c := PipeableOSProcess
>> command: 'export'.
>> output := ReadStream on: c output.
>> c succeeded
>> ifFalse: [ self error: 'Git error: ' , c
>> errorPipelineContents ] ]
>> ensure: [ c closePipes ].
>> output
>>
>> I replaced the command to execute by 'export' to get all environment
>> variables. I noticed that '/usr/local/bin' is not in the path (used by
>> brew).
>>
>>
>> To get my full environment (.profile executed), I need to run pharo from
>> a shell with the same environment. The question is: how to run Pharo from
>> the UI and get this environment?
>> I tried with a .bashrc, bash_profile without success.
>> Any idea?
>>
>> Thanks,
>> Christophe.
>
>
>


Re: [Pharo-dev] GitFileTree - Git command not found (is which shell startup script is run when pharo launched from UI)

2015-02-03 Thread Thierry Goubier
2015-02-03 22:04 GMT+01:00 Christophe Demarey :

> Hi Thierry,
>
> --
>
> *De: *"Thierry Goubier" 
> *À: *"Pharo Development List" 
> *Envoyé: *Mardi 3 Février 2015 18:51:05
> *Objet: *Re: [Pharo-dev] GitFileTree - Git command not found (is which
> shell startup script is run when pharo launched from UI)
>
> Hi Christophe,
>
> looks like that a configuration option for the path to the git command is
> necessary :) https://github.com/dalehenrich/filetree/issues/143
>
> I'm planning a bit of a rewrite for GitFileTree (saw a few significant
> issues on Monticello to git integration pop-up recently) and I'll add that
> along with the others.
>
>
> Thanks.
> By the way, for this specific case (run Pharo from UI), I still think it
> should be configurable with the OS (from some profile file) but I did not
> find a solution yet.
> Another option could be to retrieve the content of path variable with
> NativeBoost and use it to run the git command. I will test.
>

Ok, tell me how it goes. OSProcess/CommandShell has options and examples to
retrieve and extend the path before calling an external function, so this
may also be a way to solve it.

A third one would be to download a git static executable along with the
GitFileTree support.

Thierry


>
> Christophe.
>


Re: [Pharo-dev] GitFileTree - Git command not found (is which shell startup script is run when pharo launched from UI)

2015-02-03 Thread Christophe Demarey
Hi Thierry, 

- Mail original -

> De: "Thierry Goubier" 
> À: "Pharo Development List" 
> Envoyé: Mardi 3 Février 2015 18:51:05
> Objet: Re: [Pharo-dev] GitFileTree - Git command not found (is which shell
> startup script is run when pharo launched from UI)

> Hi Christophe,

> looks like that a configuration option for the path to the git command is
> necessary :) https://github.com/dalehenrich/filetree/issues/143

> I'm planning a bit of a rewrite for GitFileTree (saw a few significant issues
> on Monticello to git integration pop-up recently) and I'll add that along
> with the others.

Thanks. 
By the way, for this specific case (run Pharo from UI), I still think it should 
be configurable with the OS (from some profile file) but I did not find a 
solution yet. 
Another option could be to retrieve the content of path variable with 
NativeBoost and use it to run the git command. I will test. 

Christophe. 


Re: [Pharo-dev] why smalltalk is the best system to support object-oriented thinking :)

2015-02-03 Thread Thierry Goubier
Thanks Steph, I'll have a use for that :)

Thierry

2015-02-03 21:15 GMT+01:00 stepharo :

> Here is the presentation I did at Brescia
>
> http://www.slideshare.net/pharoproject/the-best-system-
> for-objectoriented-thinking
>
>
>
>


[Pharo-dev] why smalltalk is the best system to support object-oriented thinking :)

2015-02-03 Thread stepharo

Here is the presentation I did at Brescia

http://www.slideshare.net/pharoproject/the-best-system-for-objectoriented-thinking





Re: [Pharo-dev] Overwrite repository in symbolic version

2015-02-03 Thread Yuriy Tymchuk
Yes, I do the same, although instead of using \ I wrap my command in double 
quotes. Still I think that dedicated handler is nicer. Maybe I’ll do it one day.

Uko


> On 03 Feb 2015, at 18:32, Thierry Goubier  wrote:
> 
> I do on the command line the following:
> 
> pharo Pharo.image eval --save Metacello new baseline: \'MyProject\'\; 
> repository: \'github://\'\; load
> 
> The \ are a bit annoying, but it gives you access to any smalltalk cod, which 
> is very convenient.
> 
> Thierry
> 
> Le 3 févr. 2015 17:15, "Yuriy Tymchuk"  > a écrit :
> One more question. Is there any command line handler which uses Metacello? 
> Because as far as I know, Gofer does not support github “protocol”.
> 
> Uko
> 
>> On 02 Feb 2015, at 18:28, Thierry Goubier > > wrote:
>> 
>> Hi Uko,
>> 
>> 2015-02-02 17:34 GMT+01:00 Yuriy Tymchuk > >:
>> Hi.
>> 
>> Thank you in a first place.
>> 
>> Maybe I should use baseline class instead of configuration indeed. But I 
>> also like to release some versions using git tags. Does it make sense to use 
>> baseline class for development purposes and configuration for releases.
>> 
>> It's up to you.
>> 
>> My suggestion would be baselines in the branches and version tags, and refer 
>> to those in a configuration.
>> 
>> A baseline in a branch behaves like a #development version in a 
>> configuration; a baseline in a version tag behaves exactly like a #stable 
>> version in a configuration, except that you don't have to specify the 
>> precise version and file name for each package.
>> 
>> Thierry
>>  
>> 
>> Uko
>> 
>> 
>>> On 01 Feb 2015, at 16:59, Thierry Goubier >> > wrote:
>>> 
>>> Hi Uko,
>>> 
>>> If I understand your need correctly, I would say yes : you can add a spec 
>>> repository: anUrl inside the version and this should override the 
>>> repository inside the baseline method.
>>> 
>>> If you're ready to try some of the new stuff pushed in Metacello by Dale, I 
>>> would suggest that you create a BaselineOfYourProject inside your branch 
>>> and write a configuration which refer to the baseline; there, just changing 
>>> the url to point to your branch would make it work.
>>> 
>>> inside the version method, for example: (gitfiletree url)
>>> 
>>> spec
>>> blessing: #development;
>>> author: 'ThierryGoubier';
>>> baseline: 'AltBrowser'
>>> with: [ spec repository: 
>>> 'gitfiletree://github.com/ThierryGoubier/AltBrowser.git?branch=pharo4.0 
>>> ' ];
>>> import: 'AltBrowser'
>>> 
>>> (It's also quite convenient to be able to work with metacello scripts which 
>>> are as short as loading the configuration in the first place:
>>> 
>>> Metacello new
>>> baseline: 'AltBrowser';
>>> repository: 
>>> 'gitfiletree://github.com/ThierryGoubier/AltBrowser:pharo4.0 
>>> ';
>>> load
>>> 
>>> And you can then customize your dependencies per branches, by modifying the 
>>> BaselineOf in each.
>>> 
>>> Thierry
>>> 
>>> 
>>> 2015-02-01 16:21 GMT+01:00 Yuriy Tymchuk >> >:
>>> Hi,
>>> 
>>> I’m using git for versioning, and usually I just work with master branch. 
>>> Now I have created another branch, can I create at least temporal symbolic 
>>> version that will work on a current baseline, but will use different 
>>> “repository” and so other branch? Or is there another good way to handle 
>>> branches?
>>> 
>>> Uko
>>> 
>> 
>> 
> 



Re: [Pharo-dev] ||

2015-02-03 Thread Levente Uzonyi

On Tue, 3 Feb 2015, Marcus Denker wrote:



  On 03 Feb 2015, at 09:17, Marcus Denker  wrote:


  On 02 Feb 2015, at 21:47, Eliot Miranda  wrote:

Hi All,
    code as in the double bars forming the end of block arguments and the 
beginning of block temporaries in


This is fixed in Pharo4 (I think we did that in Pharo3 already):

I should search the issue in the issue tracker… it seems to be Pharo4, so just 
1296 closed issues to check there…
I will search for it.

Another question: In the code I saw. ReadOnlyVariableBinding. I removed that in 
Pharo relatively early as it was not used:
half of the classes were stored that binding (old ones) all newer ones where 
just associations.
The code to make a binding "read only" was never called.

Is this now used in Squeak? Is it worth the complexity?


Squeak doesn't use ReadOnlyVariableBinding anymore. The bindings of 
classes are instances of the ClassBinding class.
Without using separate class it's a bit cumbersome (and less OO) to decide 
if an assignment to a global variable should be allowed or not. E.g.:


Foo := 1.

should work if Foo is a global, but not a behavior. It should raise an 
error if it's a behavior.


Levente



Marcus



Re: [Pharo-dev] GitFileTree - Git command not found (is which shell startup script is run when pharo launched from UI)

2015-02-03 Thread Thierry Goubier
Hi Christophe,

looks like that a configuration option for the path to the git command is
necessary :) https://github.com/dalehenrich/filetree/issues/143

I'm planning a bit of a rewrite for GitFileTree (saw a few significant
issues on Monticello to git integration pop-up recently) and I'll add that
along with the others.

Thierry

2015-02-03 16:08 GMT+01:00 Christophe Demarey :

> Hi,
>
> I wanted to give a try to gitfiletree but I got a 'Git command not found'.
> Indeed, the git command is not in the path Here is the code used by
> GitFileTree to run a git command:
>
> | c output |
> [
> c := PipeableOSProcess
> command: 'export'.
> output := ReadStream on: c output.
> c succeeded
> ifFalse: [ self error: 'Git error: ' , c
> errorPipelineContents ] ]
> ensure: [ c closePipes ].
> output
>
> I replaced the command to execute by 'export' to get all environment
> variables. I noticed that '/usr/local/bin' is not in the path (used by
> brew).
>
>
> To get my full environment (.profile executed), I need to run pharo from a
> shell with the same environment. The question is: how to run Pharo from the
> UI and get this environment?
> I tried with a .bashrc, bash_profile without success.
> Any idea?
>
> Thanks,
> Christophe.


Re: [Pharo-dev] Overwrite repository in symbolic version

2015-02-03 Thread Thierry Goubier
I do on the command line the following:

pharo Pharo.image eval --save Metacello new baseline: \'MyProject\'\;
repository: \'github://\'\; load

The \ are a bit annoying, but it gives you access to any smalltalk cod,
which is very convenient.

Thierry
Le 3 févr. 2015 17:15, "Yuriy Tymchuk"  a écrit :

> One more question. Is there any command line handler which uses Metacello?
> Because as far as I know, Gofer does not support github "protocol".
>
> Uko
>
> On 02 Feb 2015, at 18:28, Thierry Goubier 
> wrote:
>
> Hi Uko,
>
> 2015-02-02 17:34 GMT+01:00 Yuriy Tymchuk :
>
>> Hi.
>>
>> Thank you in a first place.
>>
>> Maybe I should use baseline class instead of configuration indeed. But I
>> also like to release some versions using git tags. Does it make sense to
>> use baseline class for development purposes and configuration for releases.
>>
>
> It's up to you.
>
> My suggestion would be baselines in the branches and version tags, and
> refer to those in a configuration.
>
> A baseline in a branch behaves like a #development version in a
> configuration; a baseline in a version tag behaves exactly like a #stable
> version in a configuration, except that you don't have to specify the
> precise version and file name for each package.
>
> Thierry
>
>
>>
>> Uko
>>
>>
>> On 01 Feb 2015, at 16:59, Thierry Goubier 
>> wrote:
>>
>> Hi Uko,
>>
>> If I understand your need correctly, I would say yes : you can add a spec
>> repository: anUrl inside the version and this should override the
>> repository inside the baseline method.
>>
>> If you're ready to try some of the new stuff pushed in Metacello by Dale,
>> I would suggest that you create a BaselineOfYourProject inside your branch
>> and write a configuration which refer to the baseline; there, just changing
>> the url to point to your branch would make it work.
>>
>> inside the version method, for example: (gitfiletree url)
>>
>> spec
>> blessing: #development;
>> author: 'ThierryGoubier';
>> baseline: 'AltBrowser'
>> with: [ spec repository: 'gitfiletree://
>> github.com/ThierryGoubier/AltBrowser.git?branch=pharo4.0' ];
>> import: 'AltBrowser'
>>
>> (It's also quite convenient to be able to work with metacello scripts
>> which are as short as loading the configuration in the first place:
>>
>> Metacello new
>> baseline: 'AltBrowser';
>> repository: 'gitfiletree://
>> github.com/ThierryGoubier/AltBrowser:pharo4.0';
>> load
>>
>> And you can then customize your dependencies per branches, by modifying
>> the BaselineOf in each.
>>
>> Thierry
>>
>>
>> 2015-02-01 16:21 GMT+01:00 Yuriy Tymchuk :
>>
>>> Hi,
>>>
>>> I'm using git for versioning, and usually I just work with master
>>> branch. Now I have created another branch, can I create at least temporal
>>> symbolic version that will work on a current baseline, but will use
>>> different "repository" and so other branch? Or is there another good way to
>>> handle branches?
>>>
>>> Uko
>>>
>>
>>
>>
>
>


Re: [Pharo-dev] Overwrite repository in symbolic version

2015-02-03 Thread Yuriy Tymchuk
One more question. Is there any command line handler which uses Metacello? 
Because as far as I know, Gofer does not support github “protocol”.

Uko

> On 02 Feb 2015, at 18:28, Thierry Goubier  wrote:
> 
> Hi Uko,
> 
> 2015-02-02 17:34 GMT+01:00 Yuriy Tymchuk  >:
> Hi.
> 
> Thank you in a first place.
> 
> Maybe I should use baseline class instead of configuration indeed. But I also 
> like to release some versions using git tags. Does it make sense to use 
> baseline class for development purposes and configuration for releases.
> 
> It's up to you.
> 
> My suggestion would be baselines in the branches and version tags, and refer 
> to those in a configuration.
> 
> A baseline in a branch behaves like a #development version in a 
> configuration; a baseline in a version tag behaves exactly like a #stable 
> version in a configuration, except that you don't have to specify the precise 
> version and file name for each package.
> 
> Thierry
>  
> 
> Uko
> 
> 
>> On 01 Feb 2015, at 16:59, Thierry Goubier > > wrote:
>> 
>> Hi Uko,
>> 
>> If I understand your need correctly, I would say yes : you can add a spec 
>> repository: anUrl inside the version and this should override the repository 
>> inside the baseline method.
>> 
>> If you're ready to try some of the new stuff pushed in Metacello by Dale, I 
>> would suggest that you create a BaselineOfYourProject inside your branch and 
>> write a configuration which refer to the baseline; there, just changing the 
>> url to point to your branch would make it work.
>> 
>> inside the version method, for example: (gitfiletree url)
>> 
>> spec
>> blessing: #development;
>> author: 'ThierryGoubier';
>> baseline: 'AltBrowser'
>> with: [ spec repository: 
>> 'gitfiletree://github.com/ThierryGoubier/AltBrowser.git?branch=pharo4.0 
>> ' ];
>> import: 'AltBrowser'
>> 
>> (It's also quite convenient to be able to work with metacello scripts which 
>> are as short as loading the configuration in the first place:
>> 
>> Metacello new
>> baseline: 'AltBrowser';
>> repository: 'gitfiletree://github.com/ThierryGoubier/AltBrowser:pharo4.0 
>> ';
>> load
>> 
>> And you can then customize your dependencies per branches, by modifying the 
>> BaselineOf in each.
>> 
>> Thierry
>> 
>> 
>> 2015-02-01 16:21 GMT+01:00 Yuriy Tymchuk > >:
>> Hi,
>> 
>> I’m using git for versioning, and usually I just work with master branch. 
>> Now I have created another branch, can I create at least temporal symbolic 
>> version that will work on a current baseline, but will use different 
>> “repository” and so other branch? Or is there another good way to handle 
>> branches?
>> 
>> Uko
>> 
> 
> 



Re: [Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Esteban Lorenzano
yeah :(

> On 03 Feb 2015, at 17:02, Chris Cunningham  wrote:
> 
> Ah, there is also NaN (not a number).
> 
> So, float can be:
> NegativeInfinity
> a Finite Float
> Infinity (;positive by elimination)
> NaN
> 
> Oh, and NegativeZero as well.
> 
> floats are weird.
> 
> -cbc
> 
> On Tue, Feb 3, 2015 at 7:51 AM, Esteban Lorenzano  > wrote:
> in fact, I wonder why #isFinite is implemented: 
> 
> ^(self - self) = 0.0
> 
> and not just:
> 
> ^self isInfinite not
> 
> which includes the negativeInfinity… 
> 
> Esteban
> 
> 
>> On 03 Feb 2015, at 16:46, Chris Cunningham > > wrote:
>> 
>> There is Float infinity and Float negativeInfinity - two infinite classes.
>> 
>> Can I assume your first test really wanted to be:
>> 
>> aFloat isFinite = false
>> ?
>> 
>> cbc
>> 
>> On Tue, Feb 3, 2015 at 7:38 AM, Esteban Lorenzano > > wrote:
>> Hi,
>> 
>> that… I wonder if
>> 
>> aFloat isFinite = true
>> 
>> and
>> 
>> (aFloat == Float infinite) = false
>> 
>> is a possible combination
>> 
>> Esteban
>> 
> 
> 



Re: [Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Chris Cunningham
Ah, there is also NaN (not a number).

So, float can be:
NegativeInfinity
a Finite Float
Infinity (;positive by elimination)
NaN

Oh, and NegativeZero as well.

floats are weird.

-cbc

On Tue, Feb 3, 2015 at 7:51 AM, Esteban Lorenzano 
wrote:

> in fact, I wonder why #isFinite is implemented:
>
> ^(self - self) = 0.0
>
> and not just:
>
> ^self isInfinite not
>
> which includes the negativeInfinity…
>
> Esteban
>
>
> On 03 Feb 2015, at 16:46, Chris Cunningham 
> wrote:
>
> There is Float infinity and Float negativeInfinity - two infinite classes.
>
> Can I assume your first test really wanted to be:
>
> aFloat isFinite = false
> ?
>
> cbc
>
> On Tue, Feb 3, 2015 at 7:38 AM, Esteban Lorenzano 
> wrote:
>
>> Hi,
>>
>> that… I wonder if
>>
>> aFloat isFinite = true
>>
>> and
>>
>> (aFloat == Float infinite) = false
>>
>> is a possible combination
>>
>> Esteban
>>
>
>
>


Re: [Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Esteban Lorenzano
in fact, I wonder why #isFinite is implemented: 

^(self - self) = 0.0

and not just:

^self isInfinite not

which includes the negativeInfinity… 

Esteban


> On 03 Feb 2015, at 16:46, Chris Cunningham  wrote:
> 
> There is Float infinity and Float negativeInfinity - two infinite classes.
> 
> Can I assume your first test really wanted to be:
> 
> aFloat isFinite = false
> ?
> 
> cbc
> 
> On Tue, Feb 3, 2015 at 7:38 AM, Esteban Lorenzano  > wrote:
> Hi,
> 
> that… I wonder if
> 
> aFloat isFinite = true
> 
> and
> 
> (aFloat == Float infinite) = false
> 
> is a possible combination
> 
> Esteban
> 



Re: [Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Chris Cunningham
There is Float infinity and Float negativeInfinity - two infinite classes.

Can I assume your first test really wanted to be:

aFloat isFinite = false
?

cbc

On Tue, Feb 3, 2015 at 7:38 AM, Esteban Lorenzano 
wrote:

> Hi,
>
> that… I wonder if
>
> aFloat isFinite = true
>
> and
>
> (aFloat == Float infinite) = false
>
> is a possible combination
>
> Esteban
>


[Pharo-dev] can a Float be not finite and not equals to Float class>>#infinity ?

2015-02-03 Thread Esteban Lorenzano
Hi, 

that… I wonder if 

aFloat isFinite = true

and 

(aFloat == Float infinite) = false

is a possible combination

Esteban


Re: [Pharo-dev] GitFileTree - Git command not found (is which shell startup script is run when pharo launched from UI)

2015-02-03 Thread Peter Uhnák
Hi,

Both .bashrc and .bash_profile are directly bound to shell (bash shell) so
this will not help. I do not know MacOS, so I'm not sure if there is some
GUI configuration like in MS Windows, so someone else might clarify.

In the meantime there is also an alternative way - create a custom launcher
where you set the path explicitly... i.e. PATH=$PATH:/usr/local/bin ./pharo
pharo.image (or however you start your pharo instance).

Peter

On Tue, Feb 3, 2015 at 4:08 PM, Christophe Demarey <
christophe.dema...@inria.fr> wrote:

> Hi,
>
> I wanted to give a try to gitfiletree but I got a 'Git command not found'.
> Indeed, the git command is not in the path Here is the code used by
> GitFileTree to run a git command:
>
> | c output |
> [
> c := PipeableOSProcess
> command: 'export'.
> output := ReadStream on: c output.
> c succeeded
> ifFalse: [ self error: 'Git error: ' , c
> errorPipelineContents ] ]
> ensure: [ c closePipes ].
> output
>
> I replaced the command to execute by 'export' to get all environment
> variables. I noticed that '/usr/local/bin' is not in the path (used by
> brew).
>
>
> To get my full environment (.profile executed), I need to run pharo from a
> shell with the same environment. The question is: how to run Pharo from the
> UI and get this environment?
> I tried with a .bashrc, bash_profile without success.
> Any idea?
>
> Thanks,
> Christophe.


[Pharo-dev] GitFileTree - Git command not found (is which shell startup script is run when pharo launched from UI)

2015-02-03 Thread Christophe Demarey
Hi,

I wanted to give a try to gitfiletree but I got a 'Git command not found'.
Indeed, the git command is not in the path Here is the code used by GitFileTree 
to run a git command:

| c output |
[ 
c := PipeableOSProcess
command: 'export'.
output := ReadStream on: c output.
c succeeded
ifFalse: [ self error: 'Git error: ' , c errorPipelineContents 
] ]
ensure: [ c closePipes ].
output

I replaced the command to execute by 'export' to get all environment variables. 
I noticed that '/usr/local/bin' is not in the path (used by brew).


To get my full environment (.profile executed), I need to run pharo from a 
shell with the same environment. The question is: how to run Pharo from the UI 
and get this environment?
I tried with a .bashrc, bash_profile without success.
Any idea?

Thanks,
Christophe.

smime.p7s
Description: S/MIME cryptographic signature


[Pharo-dev] Monospaced font

2015-02-03 Thread KasperOsterbye
And no, I do not want to restart the discussion of the (lack of) qualities
regarding such fonts. 

It is just not clear to me how to get hold of a font. 
It seems like at the one hand it is all 'Bitmap deja vu sans regular'. 

In the settings browser I can pick all kinds of fonts, but it is unclear how
I get a reference to them as I do not want to install the font as default or
code fonts, but just need to apply the font to a few words in a Text object. 

If I try to ask for StrikeFont for say 'Courier' I get 'Bitmap deja vu sans
regular'. 

Where is the magic hidden? 

A perhaps related question is if one can apply subscript and superscript to
the regular Text attributes - I have not been able to find that either. 

Best, Kasper 



--
View this message in context: 
http://forum.world.st/Monospaced-font-tp4803396.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



[Pharo-dev] [pharo-project/pharo-core] 3a0ba4: 40473

2015-02-03 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: 3a0ba4aeb85b5422431633c0f60f856759c7ec54
  
https://github.com/pharo-project/pharo-core/commit/3a0ba4aeb85b5422431633c0f60f856759c7ec54
  Author: Jenkins Build Server 
  Date:   2015-02-03 (Tue, 03 Feb 2015)

  Changed paths:
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/README.md
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/accessing/project.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/development
 support/DevelopmentSupport.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/development
 support/validate.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/loading/load.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/loading/loadBleedingEdge.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/loading/loadDevelopment.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/metacello
 tool support/isMetacelloConfig.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/private/baseConfigurationClassIfAbsent_.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/private/ensureMetacello.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/class/private/ensureMetacelloBaseConfiguration.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/definition.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/instance/accessing/customProjectAttributes.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/instance/accessing/project.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/instance/baselines/baseline30_.st
A 
ConfigurationOfGToolkitCore.package/ConfigurationOfGToolkitCore.class/instance/symbolic
 versions/development_.st
A 
GT-Inspector.package/GTInspector.class/instance/accessing/firstPresentation.st
M GT-Inspector.package/GTInspector.class/instance/building/compose.st
A 
GT-Inspector.package/GTInspector.class/instance/context/filterByMethods_.st
M 
GT-Inspector.package/GTInspector.class/instance/initialization/initialize.st
A GT-Inspector.package/GTInspectorMethodListFilter.class/README.md
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/class/examples/exampleASTBrowser.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/class/examples/exampleCodeBrowser.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/class/examples/exampleFileBrowser.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/class/examples/exampleFullInspector.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/class/examples/exampleRawInspector.st
A GT-Inspector.package/GTInspectorMethodListFilter.class/definition.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/accessing/allPresentationMethods.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/accessing/changeFilterRequestFor_.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/accessing/inspectorPragmaKey.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/accessing/signatureFor_.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/adding/addAllSignatures.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/adding/addAndSelectAllSignatures.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/adding/addAndSelectSignatureFor_.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/adding/addSignatureFor_.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/callbacks/replaceSelectedSignaturesWith_in_.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/initialization/initialize.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/printing/printSignature_.st
A 
GT-Inspector.package/GTInspectorMethodListFilter.class/instance/testing/shouldDisplayPresentationCreateBy_.st
R GT-Inspector.package/GTInspectorMethodListFilterStrategy.class/README.md
R 
GT-Inspector.package/GTInspectorMethodListFilterStrategy.class/class/examples/exampleASTBrowser.st
R 
GT-Inspector.package/GTInspectorMethodListFilterStrategy.class/class/examples/exampleCodeBrowser.st
R 
GT-Inspector.package/GTInspectorMethodListFilterStrategy.class/class/examples/exampleFileBrowser.st
R 
GT-Inspector.package/GTInspectorMethodListFilterStrategy.class/class/examples/exampleFullInspector.st
R 
GT-Inspector.package/GTInspectorMethodListFilterStrategy.class/class/examples/exampleRawInspector.st
R 
GT-Inspector.package/GTInspect

[Pharo-dev] [pharo-project/pharo-core]

2015-02-03 Thread GitHub
  Branch: refs/tags/40473
  Home:   https://github.com/pharo-project/pharo-core


Re: [Pharo-dev] [Pharo-users] spotter preview

2015-02-03 Thread Marcus Denker

> On 02 Feb 2015, at 22:02, Tudor Girba  wrote:
> 
> Hi,
> 
> The Glamorous Team is happy to present a new feature in Spotter: preview (you 
> toggle it with Cmd+p). We think this boosts the usefulness of the Spotter 
> interface significantly.
> 
> 
> 
> For more details, please take a look at:
> http://www.humane-assessment.com/blog/boosting-gtspotter-with-preview 
> 
> 
> This is available in the Moose image, and it will soon be integrated in the 
> Pharo one.
> 

This is now in Pharo4 update 473 (the latest one from today).

Marcus



Re: [Pharo-dev] Slides from the Pharo Status talk at FOSDEM 2015

2015-02-03 Thread Marcus Denker

> On 02 Feb 2015, at 21:19, Marcus Denker  wrote:
> 
> Hi,
> 
> Here are the slides from my talk from yesterday:
> 
> http://www.slideshare.net/MarcusDenker/2015-fosdempharo
> 

The part in between Pharo3 and Pharo4 tries a bit to explain the philosophy… I 
did a longer
talk at ESUG last year about that:

Nomads do not build Cathedrals
http://www.slideshare.net/MarcusDenker/2014-esugcathedral

The video of that is online:

Video Part 1: https://www.youtube.com/watch?v=Vcoy5gwUvOA 
Video Part 2: https://www.youtube.com/watch?v=5LrH9r4FNzY

In the spirit of the talk, I should do a pass over it and make a version 2…

e.g. one book that was very influential to my thinking was
Finite and Infinite Games by James P. Carse:

http://kk.org/cooltools/archives/000434

To me a software system should always be thought as an “infinite game”… 

Marcus


Re: [Pharo-dev] ||

2015-02-03 Thread Yuriy Tymchuk
Yes, I’ve reported that already and it was fixed in Pharo 4

Uko

> On 03 Feb 2015, at 09:17, Marcus Denker  wrote:
> 
> 
>> On 02 Feb 2015, at 21:47, Eliot Miranda > > wrote:
>> 
>> Hi All,
>> 
>> code as in the double bars forming the end of block arguments and the 
>> beginning of block temporaries in
>> 
> 
> This is fixed in Pharo4 (I think we did that in Pharo3 already):
> 
> 
> 
> 
> In general, I really am convinced that we should continue to reduce the 
> number of Smalltalk parsers
> in the system. Imagine there would be only *one*, then bugs like this would 
> never happen, we would
> have less code to maintain and every improvement would benefit directly all 
> subsystems that use 
> the Parser or the AST.
> 
> We already did that for the tools (RB) and the Compiler. We use the 
> handwritten RBParser for now
> (I would like to use PetitParser…). 
> The next would be to replace the Shout Parser+Tokenstream… we already in all 
> tools create an AST
> as soon as you select a method anyway. (the is for per-AST-Node Navigation + 
> the “suggestions” menu).
> 
> RBParser already has #parseFaultyMethod:, this means it can generate an AST 
> even for incomplete input
> (with an error node). e.g. you can parse the expression ‘1+’:
> 
> 
> 
> There is already a SHRBTextStyler which uses it, we should finish that and 
> replace the Shout parser.
> 
>   Marcus
> 
> 



Re: [Pharo-dev] [Pharo-users] Slides from the Pharo Status talk at FOSDEM 2015

2015-02-03 Thread Marcus Denker

> On 02 Feb 2015, at 21:26, Eliot Miranda  wrote:
> 
> 
> 
> On Mon, Feb 2, 2015 at 12:19 PM, Marcus Denker  > wrote:
> Hi,
> 
> Here are the slides from my talk from yesterday:
> 
> http://www.slideshare.net/MarcusDenker/2015-fosdempharo 
> 
> 
> very cool, Marcus!  will there be audio of the Q&A?  Do you have any 
> recollections of the Q&A?
> 

It was recorded… the Q&A after was not that many questions… I don’t actually 
remember.

I think the impact is more the slides+video, not the presentation itself there.

Marcus