[Pharo-users] Call for little tasks for GCI

2017-09-26 Thread Stephane Ducasse
Hi guys We want to compete to a competition for newbies programming. We need to have at least 50 tasks. Right now the tasks are quite difficult to me :) Please help to get some tasks. I can be taken from exercisism.io or other little math problems. - Grab the Pharo logo from url and display it

Re: [Pharo-users] Bloc Space within a Space

2017-09-26 Thread Stephane Ducasse
Start to play with Bloc. This is the moment to play and give feedback. I will start around December/January. Stef On Tue, Sep 26, 2017 at 3:28 AM, Sean P. DeNigris wrote: > Stephane Ducasse-3 wrote >> with multiple little worlds showing windows inside and to control all

Re: [Pharo-users] Force headless mode

2017-09-26 Thread Peter Uhnák
Out of curiosity... how does enforcing headlessness protects code? Wouldn't it be still accessible via e.g. TelePharo, or startup script override, or anything? Peter On Tue, Sep 26, 2017 at 7:04 PM, Sven Van Caekenberghe wrote: > > > On 26 Sep 2017, at 18:06, Cyril Ferlicot

Re: [Pharo-users] About encoding

2017-09-26 Thread Stephane Ducasse
So it works now. I converted the files in utf8 and now the book is not broken anymore. Thanks sven for at least taking the time to reply to my email. I helps for my mental spirit. Stef On Tue, Sep 26, 2017 at 6:09 PM, Stephane Ducasse wrote: > Here is a script that

Re: [Pharo-users] Testing a Unicode Character's Category

2017-09-26 Thread Richard Sargent
Andrew P. Black wrote > Hi Richard, > > Normally I agree with you, and prefer boolean methods > > inCatagoryCc: aChar > isCategorySm: aChar > to > categoryOf: aChar == #Cc > categoryOf: aChar == #Sm > > In this particular case, though, the category codes are part of

Re: [Pharo-users] Force headless mode

2017-09-26 Thread Sven Van Caekenberghe
> On 26 Sep 2017, at 18:06, Cyril Ferlicot wrote: > > On Tue, Sep 26, 2017 at 5:59 PM, Esteban Lorenzano > wrote: >> >> >> it is not. >> specially on windows. >> >> vm handles the creation of host window and you will always have one. >> >>

Re: [Pharo-users] About encoding

2017-09-26 Thread Sven Van Caekenberghe
> On 26 Sep 2017, at 18:09, Stephane Ducasse wrote: > > Here is a script that should work to convert from latin1 to utf-8. > Thanks to your book and trial and error. > > | str wstr | > str := ('listeDeMotsFrancaisFrGut.txt' asFileReference readStreamDo: [ :in | >

Re: [Pharo-users] About encoding

2017-09-26 Thread Stephane Ducasse
Here is a script that should work to convert from latin1 to utf-8. Thanks to your book and trial and error. | str wstr | str := ('listeDeMotsFrancaisFrGut.txt' asFileReference readStreamDo: [ :in | (ZnCharacterReadStream on: in binary encoding: #latin1) upToEnd ]) lines.

Re: [Pharo-users] Pharo 7 license question

2017-09-26 Thread Jimmie Houchin
On 09/26/2017 06:09 AM, Ben Coman wrote: On Mon, Sep 25, 2017 at 9:43 PM, Jimmie Houchin > wrote: Hello, thanks for the reply. I have thought about recursive and unfortunately it is not in my opinion an adequate or equivalent

Re: [Pharo-users] Force headless mode

2017-09-26 Thread Cyril Ferlicot
On Tue, Sep 26, 2017 at 5:59 PM, Esteban Lorenzano wrote: > > > it is not. > specially on windows. > > vm handles the creation of host window and you will always have one. > > now… if you wait one week, I will have ready the (experimental) real headless > VMs. In my tests,

Re: [Pharo-users] About encoding

2017-09-26 Thread Stephane Ducasse
Now inspecting the file containent opens gtinspector and freezes Pharo :( I think that I will remove this part of my book. It is simpler. On Tue, Sep 26, 2017 at 5:53 PM, Stephane Ducasse wrote: > I'm reading your chapter :) > Now I understand the file I found is totally

Re: [Pharo-users] Force headless mode

2017-09-26 Thread Esteban Lorenzano
> On 26 Sep 2017, at 16:49, Cyril Ferlicot wrote: > > Hi, > > At Synectique we are working on the deployment of a web application > and we would like to force the headless mode. We tried to just > override the method SmalltalkImage>>#isHeadless to return true all the

Re: [Pharo-users] About encoding

2017-09-26 Thread Stephane Ducasse
I'm reading your chapter :) Now I understand the file I found is totally bogus :) But the first one I found is indeed encoded in latin1. So I'm trying to convert it. On Tue, Sep 26, 2017 at 5:40 PM, Stephane Ducasse wrote: >> Any chance you can point me to the

Re: [Pharo-users] Force headless mode

2017-09-26 Thread Cyril Ferlicot
On Tue, Sep 26, 2017 at 5:13 PM, Christophe Demarey wrote: > Hi > > What about deploying a minimal image without UI ? > But, as you probably know, headless mode does not prevent to dump the code. > I just tried to build our tools on a minimal image but it crash when

Re: [Pharo-users] About encoding

2017-09-26 Thread Sven Van Caekenberghe
You can convert it in Pharo, of course: (FileLocator desktop / 'mots.txt') writeStreamDo: [ :out | out << (ZnCharacterEncoder latin1 decodeBytes: (ZnClient new beBinary; get:

Re: [Pharo-users] About encoding

2017-09-26 Thread Stephane Ducasse
> Any chance you can point me to the original file ? No they removed it May be I could try to convert it to utf-8 (I do not know how to do it) > The file is indeed in Latin1 encoded, but GitHub serves it as UTF-8 (it did > not change the contents, but the meta data). Ok I see the problem > >

Re: [Pharo-users] Usability issues with Calypso

2017-09-26 Thread Stephane Ducasse
In fact I'm not sure that continuing to use the * is not a good idea. On Sun, Sep 24, 2017 at 2:46 PM, Denis Kudriashov wrote: > Hi Sean > > 2017-09-23 19:57 GMT+02:00 Sean P. DeNigris : >> >> Stephane Ducasse-3 wrote >> > Calypso is still an enfant

Re: [Pharo-users] About encoding

2017-09-26 Thread Sven Van Caekenberghe
> On 26 Sep 2017, at 17:25, Stephane Ducasse wrote: > > Hi sven > > the web site I was using remove the file for my book. > So I copied the file on github. > When I open the file with texmate it tells that the encoding is western-latin1 > but when I try to load it as

[Pharo-users] About encoding

2017-09-26 Thread Stephane Ducasse
Hi sven the web site I was using remove the file for my book. So I copied the file on github. When I open the file with texmate it tells that the encoding is western-latin1 but when I try to load it as follow I get an UTF-8 illegal error. | lines | lines := (ZnDefaultCharacterEncoder value:

Re: [Pharo-users] Force headless mode

2017-09-26 Thread Clément Bera
Or write a script that obfuscate the code. Not so hard to do. On Tue, Sep 26, 2017 at 5:13 PM, Christophe Demarey < christophe.dema...@inria.fr> wrote: > Hi > > What about deploying a minimal image without UI ? > But, as you probably know, headless mode does not prevent to dump the code. > >

[Pharo-users] Re : Force headless mode

2017-09-26 Thread Christophe Demarey
Hi What about deploying a minimal image without UI ? But, as you probably know, headless mode does not prevent to dump the code. Christophe - Cyril Ferlicot a écrit : > Hi, > > At Synectique we are working on the deployment of a web application > and we would

[Pharo-users] Force headless mode

2017-09-26 Thread Cyril Ferlicot
Hi, At Synectique we are working on the deployment of a web application and we would like to force the headless mode. We tried to just override the method SmalltalkImage>>#isHeadless to return true all the time be it is not enough because the image is still opened. It is probabaly the vm that

Re: [Pharo-users] Need help with NeoJSON reader definition

2017-09-26 Thread Sven Van Caekenberghe
Hi Joachim, Have a look at this new example: === Name: Neo-JSON-Tests-SvenVanCaekenberghe.43 Author: SvenVanCaekenberghe Time: 26 September 2017, 2:14:01.71055 pm UUID: f40af758-7816-0d00-89cd-641e08d6220e Ancestors: Neo-JSON-Tests-SvenVanCaekenberghe.42 Add #testVirtualTransferObject as

Re: [Pharo-users] Testing a Unicode Character's Category

2017-09-26 Thread Prof. Andrew P. Black
Hi Richard, Normally I agree with you, and prefer boolean methods inCatagoryCc: aChar isCategorySm: aChar to categoryOf: aChar == #Cc categoryOf: aChar == #Sm In this particular case, though, the category codes are part of the Unicode Standard, so perhaps

Re: [Pharo-users] NeoJSON and polymorphism

2017-09-26 Thread Sven Van Caekenberghe
> On 25 Sep 2017, at 17:14, Juraj Kubelka wrote: > > Hi Sven, > > thank you! > > In the NeoJSON repository, you likely want to merge > Neo-JSON-Core-SvenVanCaekenberghe.43 and 44. And the same for the test cases. I did, thanks ! >> On Sep 24, 2017, at 06:05, Sven

Re: [Pharo-users] Pharo 7 license question

2017-09-26 Thread Ben Coman
On Mon, Sep 25, 2017 at 9:43 PM, Jimmie Houchin wrote: > Hello, thanks for the reply. > > I have thought about recursive and unfortunately it is not in my opinion > an adequate or equivalent substitute. It may be inoffensive, but it is not > accurate in conveying those

Re: [Pharo-users] Need help with NeoJSON reader definition

2017-09-26 Thread jtuc...@objektfabrik.de
I probably need to send a bit more info. My latest attempt was this:     mapper := NeoJSONReader new.     mapper for: #RootObject customDo: [:mapping | mapping mapWithValueSchema: #TransferMessage].     mapper         for: #TransferMessage         do: [:mapping |             (mapping

Re: [Pharo-users] Usability issues with Calypso

2017-09-26 Thread Denis Kudriashov
2017-09-26 3:26 GMT+02:00 Sean P. DeNigris : > Denis Kudriashov wrote > > In Calypso you should not create protocols with star. In method editor > > status bar there is explicit checkbox "extension" to specify external > > package for the method. > > We should move away

[Pharo-users] Need help with NeoJSON reader definition

2017-09-26 Thread jtuc...@objektfabrik.de
Hi there, I am having a hard time configuring a NeoJSONReader for a JSON file like this: {     "Paging": { someStuff    },     "ErrorMessage": null,     "ErrorCode": 0,     "Data": [     {object1},         {object2}         ] } Where I want to ignore everything but the list