Re: [Pharo-users] Omit a method from a mc commit

2015-03-17 Thread Christophe Demarey
Hi,

Le 17 mars 2015 à 00:27, Serge Stinckwich a écrit :

> Hi all,
> 
> is there any way to omit a method from a Monticello commit for example
> in the case of containing a password that you don't want to publish ?

If it is one shot, you can use kommiter to cherry pick the changes you want to 
commit.

Regards,
Christophe.

smime.p7s
Description: S/MIME cryptographic signature


Re: [Pharo-users] Pharo 4 - current state?

2015-03-17 Thread Jan B.
Hello

Agreed, I know there are some technical limitation to using ctrl, although I
don't remember what is the problem exactly, but this shortcut inconsistency
is a problem. I experience the same on Windows, sometimes there is ctrl,
sometimes alt and sometimes alt with completely unusual char-key, for
example in these most basic shortcuts:
select all = alt+A (instead of ctrl+A, interesting thing is ctrl+A works in
Playground),
undo = ctrl+Z (which is right), but redo/do again = alt+J (never seen such
thing anywhere before, it is mostly ctrl+Y or ctrl+shift+Z).

Could someone recall me why lots of combinations with ctrl do not work in
Pharo?

Jan


Offray wrote
> I found the problem. The issue is that Ctrl + arrow key is now Alt + 
> Arrow key. The problem is that, in Linux Ctrl key stops working as usual 
> inside Pharo and is replaced by alt key, which is certainly a problem 
> when people is used to shorcuts and expect them to behave consistently 
> between apps.
> 
> Cheers,
> 
> Offray
> 
> El 16/03/15 a las 14:15, Offray Vladimir Luna Cárdenas escribió:
>> The only preference I can't find is the one which makes Control + arrow
>> key move/select words, like is usual on most programs. Should I fill a
>> bug report about enabling this preference?
>>
>> Cheers,
>>
>> Offray





--
View this message in context: 
http://forum.world.st/Pharo-4-current-state-tp4806692p4812505.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Error while loading GitFileTree in Pharo 4.0

2015-03-17 Thread Jan B.
Hello, just to add info about my behavior of loading gitfiletree (30 minutes
ago on clean images of Pharo 40560 on Windows 7)...

Gofer new 
url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
configurationOf: 'GitFileTree'; 
loadDevelopment.

and

Metacello new
  baseline: 'FileTree';
  repository: 'github://dalehenrich/filetree:pharo4.0_dev/repository';
  load: 'Git'

lead to 
FileDoesNotExist: File @ C:\Users\User\Pharo\images\Pharo 4.0
(beta)-40560\github-cache\dalehenrich\filetree\pharo4.0_dev\dalehenrich-filetree-7f998e5\repository\MonticelloFileTree-Git.package\monticello.meta\version

Gofer new 
url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
configurationOf: 'GitFileTree'; 
loadDevelopment.

(ForPharo30, not 40) works fine on Pharo 4 for me.

Jan


Thierry Goubier wrote
> Le 16/03/2015 21:15, kilon alios a écrit :
>> Smacc looks to load fine using its Github repo instructions. So far it
>> works ok too.
> 
> Ok. That's me then. My code for pre-loading GitFileTree for accessing 
> gitfiletree:// urls is pointing to an old version. I'll remove git 
> access from the development part of the Configuration.
> 
> I'm not that good at updating configurations spread over half a dozen 
> repositories... I'd really prefer a single point of control and 
> distribution.
> 
> Thierry





--
View this message in context: 
http://forum.world.st/Error-while-loading-GitFileTree-in-Pharo-4-0-tp4811915p4812508.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Pharo 4 - current state?

2015-03-17 Thread Tudor Girba
The same problem occurs on Windows. It was reported before by Sean, but I
think no issue was created. I think this is an important bug. Please open
an bug with that and send the link here.

Cheers,
Doru



On Mon, Mar 16, 2015 at 8:44 PM, Offray Vladimir Luna Cárdenas <
off...@riseup.net> wrote:

> I found the problem. The issue is that Ctrl + arrow key is now Alt + Arrow
> key. The problem is that, in Linux Ctrl key stops working as usual inside
> Pharo and is replaced by alt key, which is certainly a problem when people
> is used to shorcuts and expect them to behave consistently between apps.
>
> Cheers,
>
> Offray
>
> El 16/03/15 a las 14:15, Offray Vladimir Luna Cárdenas escribió:
>
>  The only preference I can't find is the one which makes Control + arrow
>> key move/select words, like is usual on most programs. Should I fill a
>> bug report about enabling this preference?
>>
>> Cheers,
>>
>> Offray
>>
>> El 16/03/15 a las 13:48, Offray Vladimir Luna Cárdenas escribió:
>>
>>> Thanks Esteban it worked! The only think I did was in "Code Completion"
>>> to move from NECController to NOCController to get the same as your
>>> screenshot. Should this be made the default one?
>>>
>>> Cheers,
>>>
>>> Offray
>>>
>>> El 16/03/15 a las 13:09, Esteban Lorenzano escribió:
>>>

  On 16 Mar 2015, at 19:03, Offray Vladimir Luna Cárdenas
>  > wrote:
>
>
>
> El 16/03/15 a las 12:09, Esteban Lorenzano escribió:
>
> [...]
>
>  1. Proper tab-autocompletion: it works, but feels unresponsive
>>> compared with
>>> the one on Pharo 3.
>>>
>>
>> nothing changed there, so it is just your feeling :)
>>
>> Esteban
>>
>>
> Well, is a feeling so objective that I can record a video of the two
> behaviours :). On Pharo 3 tab after writing some letters shows a
> list of
> possible options containing that letters, on Pharo 4, it inserts a
> tab, with
> no auto-completion at all :-/.
>

 check your settings, you should have something like this:




> Cheers,
>
> Offray
>
>

>>>
>>>
>>>
>>
>>
>>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-users] Error while loading GitFileTree in Pharo 4.0

2015-03-17 Thread Thierry Goubier
Hi Jan,

can you retry the following?

Gofer new
url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
configurationOf: 'GitFileTree';
loadStable

I've just updated the configuration (but less than 30 minutes ago ;)).

Thierry

2015-03-17 9:46 GMT+01:00 Jan B. :

> Hello, just to add info about my behavior of loading gitfiletree (30
> minutes
> ago on clean images of Pharo 40560 on Windows 7)...
>
> Gofer new
> url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
> configurationOf: 'GitFileTree';
> loadDevelopment.
>
> and
>
> Metacello new
>   baseline: 'FileTree';
>   repository: 'github://dalehenrich/filetree:pharo4.0_dev/repository';
>   load: 'Git'
>
> lead to
> FileDoesNotExist: File @ C:\Users\User\Pharo\images\Pharo 4.0
>
> (beta)-40560\github-cache\dalehenrich\filetree\pharo4.0_dev\dalehenrich-filetree-7f998e5\repository\MonticelloFileTree-Git.package\monticello.meta\version
>
> Gofer new
> url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
> configurationOf: 'GitFileTree';
> loadDevelopment.
>
> (ForPharo30, not 40) works fine on Pharo 4 for me.
>
> Jan
>
>
> Thierry Goubier wrote
> > Le 16/03/2015 21:15, kilon alios a écrit :
> >> Smacc looks to load fine using its Github repo instructions. So far it
> >> works ok too.
> >
> > Ok. That's me then. My code for pre-loading GitFileTree for accessing
> > gitfiletree:// urls is pointing to an old version. I'll remove git
> > access from the development part of the Configuration.
> >
> > I'm not that good at updating configurations spread over half a dozen
> > repositories... I'd really prefer a single point of control and
> > distribution.
> >
> > Thierry
>
>
>
>
>
> --
> View this message in context:
> http://forum.world.st/Error-while-loading-GitFileTree-in-Pharo-4-0-tp4811915p4812508.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Re: [Pharo-users] Pharo 4 - current state?

2015-03-17 Thread Nicolai Hess
There is already an issue on fogbugz:
15086  Ctrl + Arrow Behaviour


2015-03-17 9:56 GMT+01:00 Tudor Girba :

> The same problem occurs on Windows. It was reported before by Sean, but I
> think no issue was created. I think this is an important bug. Please open
> an bug with that and send the link here.
>
> Cheers,
> Doru
>
>
>
> On Mon, Mar 16, 2015 at 8:44 PM, Offray Vladimir Luna Cárdenas <
> off...@riseup.net> wrote:
>
>> I found the problem. The issue is that Ctrl + arrow key is now Alt +
>> Arrow key. The problem is that, in Linux Ctrl key stops working as usual
>> inside Pharo and is replaced by alt key, which is certainly a problem when
>> people is used to shorcuts and expect them to behave consistently between
>> apps.
>>
>> Cheers,
>>
>> Offray
>>
>> El 16/03/15 a las 14:15, Offray Vladimir Luna Cárdenas escribió:
>>
>>  The only preference I can't find is the one which makes Control + arrow
>>> key move/select words, like is usual on most programs. Should I fill a
>>> bug report about enabling this preference?
>>>
>>> Cheers,
>>>
>>> Offray
>>>
>>> El 16/03/15 a las 13:48, Offray Vladimir Luna Cárdenas escribió:
>>>
 Thanks Esteban it worked! The only think I did was in "Code Completion"
 to move from NECController to NOCController to get the same as your
 screenshot. Should this be made the default one?

 Cheers,

 Offray

 El 16/03/15 a las 13:09, Esteban Lorenzano escribió:

>
>  On 16 Mar 2015, at 19:03, Offray Vladimir Luna Cárdenas
>> > > wrote:
>>
>>
>>
>> El 16/03/15 a las 12:09, Esteban Lorenzano escribió:
>>
>> [...]
>>
>>  1. Proper tab-autocompletion: it works, but feels unresponsive
 compared with
 the one on Pharo 3.

>>>
>>> nothing changed there, so it is just your feeling :)
>>>
>>> Esteban
>>>
>>>
>> Well, is a feeling so objective that I can record a video of the two
>> behaviours :). On Pharo 3 tab after writing some letters shows a
>> list of
>> possible options containing that letters, on Pharo 4, it inserts a
>> tab, with
>> no auto-completion at all :-/.
>>
>
> check your settings, you should have something like this:
>
>
>
>
>> Cheers,
>>
>> Offray
>>
>>
>



>>>
>>>
>>>
>>
>>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>


[Pharo-users] trying a hot update un smalltalkhub

2015-03-17 Thread Esteban Lorenzano
Hi,

I’m trying to use the power of pharo and do a hot update in smalltalkhub. 
Of course, it can fail… in that case I will need to turn it off and do it in 
the old way… :)

Esteban


Re: [Pharo-users] [ANN] RProjectConnector V1.0

2015-03-17 Thread Blondeau Vincent
Hi Juampi,

I know that the libraries are difficult to configure. We will improve that.
I don’t have a Mac, but as far as I know, you need to put the R libraries where 
are the Pharo ones like “libAsynchFilePlugin.dylib”.

If you didn’t do it, you need to restart the Pharo image at each time you 
change the library location and you need to install R (to copy the libraries 
seems not enough).

If it works, inspect “self nbGetSymbolAddress: 'Rf_initEmbeddedR' module: #R” 
should show you a NBExternalAddress instead of nil.

Furthermore, you need to use the 32 bits R libraries, Pharo doesn’t not support 
yet the 64 bit libs.

I hope that will be helpful,

Regards,

Vincent

De : Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] De la part de 
Juan Pablo Sandoval Alcocer
Envoyé : vendredi 13 mars 2015 23:20
À : Any question about pharo is welcome
Cc : Pharo Development List
Objet : Re: [Pharo-users] [ANN] RProjectConnector V1.0

Hi,

I was trying to use RProjectConnector in my Mac (1.9.1) and i have some issues 
:(.

I have copied the dynamic libraries of R to /usr/lib directory (.i.e. 
libR.dylib). But PharoVM does not find the libraries. For instance, this line 
of code returns always nil.

  self nbGetSymbolAddress: 'Rf_initEmbeddedR' module: #R
  "copied from the project"

I also tried copying the libraries to folder Pharo.app/Contents/MacOS/Plugins. 
or passing the library name as parameter like:

  self nbGetSymbolAddress: 'Rf_initEmbeddedR' module: 'libR.dylib'
or

  self nbGetSymbolAddress: 'Rf_initEmbeddedR' module: 
'/usr/lib/libR.dylib'

But i had not success. Could someone help me? I am doing something wrong?

Thanks,
Juampi






2014-12-08 11:10 GMT-03:00 Blondeau Vincent 
mailto:vincent.blond...@worldline.com>>:
Hello everyone,

I am glad to announce the first version of the RProjectConnector, a binding 
between Pharo and R using NativeBoost.

You can now call directly your R methods from Pharo:
data := (1 to: 1000) collect: #yourself.
res := (#acf asRFunctionWith: {data}) eval

To use it, you should copy the R libraries near the Pharo VM (see the 
documentation on SmalltalkHub to see how to proceed) and

Gofer it

smalltalkhubUser: 'VincentBlondeau' project: 'RProjectConnector';

configuration;

loadStable
Don’t forget to relaunch Pharo after the installation to be able to use the 
connector.

The sources are available on Smalltalkhub:
http://smalltalkhub.com/#!/~VincentBlondeau/RProjectConnector

if you want to participate, just ask me!

Cheers,

Vincent BLONDEAU



Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité de Worldline ne pourra être 
recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Worldline liability cannot be triggered for the 
message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.



--
Saludos,
Juan Pablo



Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité de Worldline ne pourra être 
recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Worldline liability cannot be triggered for the 
message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender 

Re: [Pharo-users] trying a hot update un smalltalkhub

2015-03-17 Thread Esteban Lorenzano
ok, thank went more or less fine :)

now you have: 

http://smalltalkhub.com/list 

and 

http://smalltalkhub.com/list/json 

enjoy :)

Esteban



> On 17 Mar 2015, at 11:15, Esteban Lorenzano  wrote:
> 
> Hi,
> 
> I’m trying to use the power of pharo and do a hot update in smalltalkhub. 
> Of course, it can fail… in that case I will need to turn it off and do it in 
> the old way… :)
> 
> Esteban



[Pharo-users] How to depend on another Github repo from the baseline ?

2015-03-17 Thread kilon alios
I have this very simple baseline for Ephestos

baseline: spec

spec
  for: #pharo
  do: [
spec package: 'Ephestos' with: [Metacello new
baseline: 'SmaCC';
repository: 'github://ThierryGoubier/SmaCC';
load] ].

The above code works fine for me. The user can install Ephestos from
configuration browser that has a configuration that loads this baseline
which in turn not only loads the latest code for the project but also runs
this block to make sure Smacc is installed for Ephestos to use.

The question however how else I can do this and what are the advantages and
disadvantages for those other approaches ?


Re: [Pharo-users] [Pharo-dev] trying a hot update un smalltalkhub

2015-03-17 Thread Sven Van Caekenberghe
Very nice.

For those who want to parse the result:

ZnClient new
  contentReader: [ :entity | NeoJSONReader fromString: entity contents ]; 
  get: 'http://smalltalkhub.com/list/json'.

Or even:

ZnClient new
  contentReader: [ :entity | STON fromString: entity contents ]; 
  get: 'http://smalltalkhub.com/list/json'

And it is fast as well: 0.33 seconds for me.

> On 17 Mar 2015, at 11:50, Esteban Lorenzano  wrote:
> 
> ok, thank went more or less fine :)
> 
> now you have: 
> 
> http://smalltalkhub.com/list
> 
> and 
> 
> http://smalltalkhub.com/list/json
> 
> enjoy :)
> 
> Esteban
> 
> 
> 
>> On 17 Mar 2015, at 11:15, Esteban Lorenzano  wrote:
>> 
>> Hi,
>> 
>> I’m trying to use the power of pharo and do a hot update in smalltalkhub. 
>> Of course, it can fail… in that case I will need to turn it off and do it in 
>> the old way… :)
>> 
>> Esteban
> 




Re: [Pharo-users] How to depend on another Github repo from the baseline ?

2015-03-17 Thread Thierry Goubier
Hi Kilon,

I think you can simply do:

baseline: spec

spec
for: #pharo
do: [
spec baseline: 'SmaCC' with: [ spec repository:
'github://ThierryGoubier/SmaCC' ].
spec package: 'Ephestos' with: [ spec requires: #('SmaCC') ] ]

You can also restrict what you load from SmaCC in this way:

baseline: spec

spec
for: #pharo
do: [
spec baseline: 'SmaCC' with: [ spec repository:
'github://ThierryGoubier/SmaCC' ].
spec import: 'SmaCC'.
spec package: 'Ephestos' with: [ spec requires: #('SmaCC-Python') ] ]

(i.e. by importing the baseline of SmaCC, you can choose among the groups
or the packages of SmaCC...)

>From what Dale told me, you can only import one baseline this way. But you
can add from more than one baseline with import: provides:

baseline: spec

spec
for: #pharo
do: [
spec baseline: 'SmaCC' with: [ spec repository:
'github://ThierryGoubier/SmaCC' ].
spec import: 'SmaCC' provides: #('SmaCC-Python').
spec package: 'Ephestos' with: [ spec requires: #('SmaCC-Python') ] ]

Dale, is that correct? I haven't tested those, so...

Note that any kind of repository can host a baseline this way,
smalltalkhub, squeaksource, etc...

version05: spec

spec
for: #'pharo4.x'
do: [
spec
baseline: 'GitFileTree'
with: [ spec repository: '
http://smalltalkhub.com/mc/ThierryGoubier/GitFileTreePharo40/main' ];
import: 'GitFileTree' ]

And of course a baseline can require a configuration...

I'm still exploring all the possibilities this allows (and, more important,
how configurations may be simplified to defer effective loading to a
baseline inside the master repository, so that the configuration very
rarely has to be updated).

Thierry

2015-03-17 12:11 GMT+01:00 kilon alios :

> I have this very simple baseline for Ephestos
>
> baseline: spec
> 
> spec
>   for: #pharo
>   do: [
> spec package: 'Ephestos' with: [Metacello new
> baseline: 'SmaCC';
> repository: 'github://ThierryGoubier/SmaCC';
> load] ].
>
> The above code works fine for me. The user can install Ephestos from
> configuration browser that has a configuration that loads this baseline
> which in turn not only loads the latest code for the project but also runs
> this block to make sure Smacc is installed for Ephestos to use.
>
> The question however how else I can do this and what are the advantages
> and disadvantages for those other approaches ?
>


Re: [Pharo-users] Error retrieven GlorpDriverPostgreSQL from SmalltalkHub

2015-03-17 Thread Esteban A. Maringolo
Yes, I was using a base image from a month ago or so.
I updated the base image in the pipeline and now it loads ok.

Thank you Sven.
Esteban A. Maringolo


2015-03-16 17:39 GMT-03:00 Sven Van Caekenberghe :
> You are probably on Pharo 3
> String>>#substrings: is a new method renamed from String>>#subStrings:
> Zinc normally loads a 'forward compatibility' package to add this alias
> I think the very latest Pharo 3 also has it
>
>> On 16 Mar 2015, at 21:29, Esteban A. Maringolo  wrote:
>>
>> I'm getting the following error log when trying to load
>> GlorpDriverPostgreSQL from SmalltalkHub
>>
>> ...RETRY->GlorpDriverPostgreSQL-MarianoMartinezPeck.5
>> ...RETRY->GlorpDriverPostgreSQL-MarianoMartinezPeck.5
>>
>> Error: Could not access
>> http://smalltalkhub.com/mc/PharoExtras/PostgresV2/main/:
>> MessageNotUnderstood: ByteString>>substrings:
>>
>> MCSmalltalkhubRepository(Object)>>error:
>> MCSmalltalkhubRepository>>loadAllFileNames in Block: [ :exception |
>> self error: 'Could not access ' , s...etc...
>> BlockClosure>>cull:
>> MethodContext(ContextPart)>>handleSignal: in Block: [ self
>> exceptionHandlerBlock cull: exception ]
>> BlockClosure>>ensure:
>> MethodContext(ContextPart)>>handleSignal:
>> MethodContext(ContextPart)>>handleSignal:
>> MessageNotUnderstood(Exception)>>signal
>> ByteString(Object)>>doesNotUnderstand: #substrings:
>> ZnMimeType class>>fromString:
>>
>> Is this a know issue or should I debug it?
>>
>> Regards,
>>
>> Esteban A. Maringolo
>>
>
>



Re: [Pharo-users] Error while loading GitFileTree in Pharo 4.0

2015-03-17 Thread Jan B.
Yes, now it works for me, thank you, hope it helps others, too :)

Jan


Thierry Goubier wrote
> Hi Jan,
> 
> can you retry the following?
> 
> Gofer new
> url: 'https://smalltalkhub.com/mc/Pharo/MetaRepoForPharo40/main';
> configurationOf: 'GitFileTree';
> loadStable
> 
> I've just updated the configuration (but less than 30 minutes ago ;)).
> 
> Thierry





--
View this message in context: 
http://forum.world.st/Error-while-loading-GitFileTree-in-Pharo-4-0-tp4811915p4812557.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Omit a method from a mc commit

2015-03-17 Thread Stephan Eggermont

On 17/03/15 00:27, Serge Stinckwich wrote:

Hi all,

is there any way to omit a method from a Monticello commit for example
in the case of containing a password that you don't want to publish ?


I am not aware of a secure way to make that work.

Stephan





Re: [Pharo-users] Omit a method from a mc commit

2015-03-17 Thread Ben Coman
Maybe create a package DoNotPublish and make your methods an extension from
that package ?
cheers -ben

On Tue, Mar 17, 2015 at 7:27 AM, Serge Stinckwich <
serge.stinckw...@gmail.com> wrote:

> Hi all,
>
> is there any way to omit a method from a Monticello commit for example
> in the case of containing a password that you don't want to publish ?
>
> Thank you.
> --
> Serge Stinckwich
> UCBN & UMI UMMISCO 209 (IRD/UPMC)
> Every DSL ends up being Smalltalk
> http://www.doesnotunderstand.org/
>
>


[Pharo-users] PetitParser Question

2015-03-17 Thread James Foster
I’m following the example in the book 
(http://pharobooks.gforge.inria.fr/PharoByExampleTwo-Eng/latest/PetitParser.pdf 
,
 pp. 9-10) with a slight modification. I believe that the example evaluates 
things that have the same precedence from right-to-left (is that correct?). 
I’ve tried to adjust things so that it evaluates from left to right, but get an 
error. Any advice?

James

| number term prod prim start |
number := #digit asParser plus flatten ==> [ :str | str asNumber ].
term := PPDelegateParser new.
prod := PPDelegateParser new.
prim := PPDelegateParser new.
term setParser: (term memoized , $+ asParser trim , prod ==> [ :nodes | nodes 
first + nodes last ]) / prod.
prod setParser: (prim , $* asParser trim , prod ==> [ :nodes | nodes first * 
nodes last ]) / prim.
prim setParser: ($( asParser trim , term , $) asParser trim ==> [ :nodes | 
nodes second ]) / number.
start := term end.
start parse: '1 + 2'

Re: [Pharo-users] Omit a method from a mc commit

2015-03-17 Thread Serge Stinckwich
NIce idea !
Thank you Ben.

On Tue, Mar 17, 2015 at 3:02 PM, Ben Coman  wrote:
> Maybe create a package DoNotPublish and make your methods an extension from
> that package ?
> cheers -ben
>
> On Tue, Mar 17, 2015 at 7:27 AM, Serge Stinckwich
>  wrote:
>>
>> Hi all,
>>
>> is there any way to omit a method from a Monticello commit for example
>> in the case of containing a password that you don't want to publish ?
>>
>> Thank you.
>> --
>> Serge Stinckwich
>> UCBN & UMI UMMISCO 209 (IRD/UPMC)
>> Every DSL ends up being Smalltalk
>> http://www.doesnotunderstand.org/
>>
>



-- 
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/



[Pharo-users] Need more success stories

2015-03-17 Thread stepharo

Hi guys

we need more success stories:
You should get one in 15 min.

One paragraph:
Context/solution
One screenshot
One comment on the techno

This is important. But if you do not do it I cannot do it for you and we 
all lose.


Stef



[Pharo-users] A Pillar language package for Atom editor?

2015-03-17 Thread Hernán Morales Durand
Is this working?
How to preview a .pier file?

https://github.com/pillar-markup/language-pillar

Cheers,

Hernán