[Pharo-users] Xtreams: Debugging Grammars

2016-06-22 Thread Sean P. DeNigris
I converted parts of rfc 5322 to the following: grammarEmailAddress ^'addrspec <- localpart "@" domain localpart <- dotatom / quotedstring /* obs-local-part */ domain <- dotatom / domainliteral /* obs-domain */ domainliteral <- [CFWS] "[" *([FWS] dtext)

[Pharo-users] Xtreams: Extending Bootstrap

2016-06-22 Thread Sean P. DeNigris
I copy-pasted the addr-spec grammar from rfc5322 and was converting it to Xtreams format. One PITA was converting all the decimal values to hex e.g. "%d97" -> "\x61". I wanted to extend the Xtream grammar to handle "/d97". I extended PEGParserGenerator and PEGParserParser with the following:

Re: [Pharo-users] How can an image know it is running headless?

2016-06-22 Thread Sven Van Caekenberghe
SmalltalkImage>>#isHeadless ? > On 22 Jun 2016, at 23:57, Johan Fabry wrote: > > Hi all, > > I would like to know how to know if the image is running in headless mode. Is > there an expression I can run in my code to establish that? > > TIA, > > -- > Does this mail

Re: [Pharo-users] How can an image know it is running headless?

2016-06-22 Thread Henrik Nergaard
MessageBrowser browse: ( (Symbol selectorTable select: [ :s | s includesSubstring: #headless caseSensitive: false ] ) flatCollect: [ :s | s implementors ] as: OrderedCollection ). Best regards, Henrik -Original Message- From: Pharo-users

[Pharo-users] How can an image know it is running headless?

2016-06-22 Thread Johan Fabry
Hi all, I would like to know how to know if the image is running in headless mode. Is there an expression I can run in my code to establish that? TIA, -- Does this mail seem too brief? Sorry for that, I don’t mean to be rude! Please see http://emailcharter.org . Johan Fabry -

Re: [Pharo-users] Styling a Pharo UI application

2016-06-22 Thread Dimitris Chloupis
Documentation is always a problem. I dont use Spec because I dont like it , but I use Morphic for my project ChronosManager. I do some "styling" for example use different fonts for different labels , different sizes , I format strings to time stamps and even offer easy ways for user to change

[Pharo-users] Styling a Pharo UI application

2016-06-22 Thread Tommaso Dal Sasso
Hello everybody, I have a question about the UI toolkits available for Pharo. I already asked something about this on Slack, but since I saw that there was a recent discussion about UI in the mailing list, I think this is a better place to discuss the matter. I am writing an application for

Re: [Pharo-users] File Policy

2016-06-22 Thread Christophe Demarey
> Le 22 juin 2016 à 14:05, Valentin Ryckewaert > a écrit : > > Hello everyone, > > i'm currently working on making Pharo able to manage if it writes on his > files.I created a class which can define it, then I'm already able, for > example, to define if Pharo

[Pharo-users] File Policy

2016-06-22 Thread Valentin Ryckewaert
Hello everyone, i'm currently working on making Pharo able to manage if it writes on his files.I created a class which can define it, then I'm already able, for example, to define if Pharo writes on pharo.changes or not. The meaning of this is to make Pharo able to execute a script but without