Re: [Pharo-users] Metacello, Github and Cryptography

2020-08-03 Thread Stéphane Ducasse
Hi francis

did you look at the booklet on iceberg available at http://books.pharo.org?

S

> On 16 Jul 2020, at 16:43, Francis  wrote:
> 
> 
> From: Francis 
> Subject: Metacello, Github and Cryptography
> Date: 16 July 2020 at 16:43:34 CEST
> To: pharo-users@lists.pharo.org
> 
> 
> Hi Guys,
> 
> I'm looking for a guide on how to load a project from github but I can't
> find anything.
> Specifically I want to load the Cryptography package. Udo, told me it is on
> https://github.com/pharo-contributions/Cryptography, so I went to
> https://github.com/pharo-contributions/Cryptography but there is no
> documentation on how to load it.
> 
> Then after some attempts, I evaluated this code:
> 
> Metacello new
>  baseline: 'Cryptography';
>  repository: 'github://pharo-contributions/Cryptography';
>  load.
> 
> and it works, but I can't figure out where is the usage of Metacello with
> Github
> 
> Thanks
> Francis
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 
> 
> 


Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France



Re: [Pharo-users] Pharo-Mars on Ubuntu

2020-08-03 Thread Stéphane Ducasse
Esteban is on vacation and I’m not sure that he is reading emails. 
Now can you check the path that is used by the FFI call and put your path?
may be look at ffiLibrary and ffiLibrary:
I do not have an image with Mars at hand. 

Stef
> On 22 Jul 2020, at 11:11, kmo  wrote:
> 
> Thanks for the suggestion but everything is 64 bit.
> 
> I added this problem to the mars github issues list (there's an existing
> issue for linux problems) and Esteban is now looking at it, so we're getting
> somewhere.
> 
> The problem was I had no libgit-3.so in the folder only a libgit.so.0.
> 
> Unfortunately adding a symbolic link hasn't solved my problems. I now get a
> VM crash. I've reported this along with the crash dump.
> 
> I'm sure it will be sorted eventually but I've been trying to get mars to
> run on ubuntu since May - so progress is slow.

I’m sorry for this. 



Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France



Re: [Pharo-users] Metacello, Github and Cryptography

2020-08-03 Thread Francis via Pharo-users
--- Begin Message ---
Hi Stéphane,

Thanks, I was not aware of that book.
Francis


Stéphane Ducasse wrote
> Hi francis
> 
> did you look at the booklet on iceberg available at
> http://books.pharo.org?
> 
> S
> 
>> On 16 Jul 2020, at 16:43, Francis <

> falzonidavide@

> > wrote:
>> 
>> 
>> From: Francis <

> falzonidavide@

> >
>> Subject: Metacello, Github and Cryptography
>> Date: 16 July 2020 at 16:43:34 CEST
>> To: 

> pharo-users@.pharo

>> 
>> 
>> Hi Guys,
>> 
>> I'm looking for a guide on how to load a project from github but I can't
>> find anything.
>> Specifically I want to load the Cryptography package. Udo, told me it is
>> on
>> https://github.com/pharo-contributions/Cryptography, so I went to
>> https://github.com/pharo-contributions/Cryptography but there is no
>> documentation on how to load it.
>> 
>> Then after some attempts, I evaluated this code:
>> 
>> Metacello new
>>  baseline: 'Cryptography';
>>  repository: 'github://pharo-contributions/Cryptography';
>>  load.
>> 
>> and it works, but I can't figure out where is the usage of Metacello with
>> Github
>> 
>> Thanks
>> Francis
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>> 
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr / http://www.pharo.org 
> 03 59 35 87 52
> Assistant: Aurore Dalle 
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley, 
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

--- End Message ---


Re: [Pharo-users] Pharo-Mars on Ubuntu

2020-08-03 Thread kmo
The library not found problem has been resolved. We are now back to a VM
crash when GTK is used. Pharo-Mars is still not running on Ubuntu.

For those who want the details -

The library problem was caused by Ubuntu not creating a symbolic link
libGtk-3.so. It only has a libGtk-3.so.0 link.

When I created the libGtk-3.so link, I got a VM crash when the image starts
up.

I see that Estaban has recently fixed the library issue by adding
libGtk-3.so.0 to the library search path. He has also changed something in
the startup of Pharo-Mars because I no longer get a VM crash when the Image
starts up - I now get the crash when a GTK  Spec application starts up.

I'm just waiting for Estaban to update the issue to say he's had a chance to
look at the crash.



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Working directory and image directory

2020-08-03 Thread Davide Varvello via Pharo-users
--- Begin Message ---
Fine Stéphane, I opened two entries:
https://github.com/pharo-project/pharo/issues/7039

https://github.com/pharo-project/pharo/issues/7040

Cheers
Davide



Stéphane Ducasse wrote
> Hi Davide 
> 
> Can you open a bug entry on Pharo and on Fuel?
> 
> S. 
> 
>> On 31 Jul 2020, at 11:37, Davide Varvello <

> varvello@

> > wrote:
>> 
>> 
>> From: Davide Varvello <

> varvello@

> >
>> Subject: Re: Working directory and image directory
>> Date: 31 July 2020 at 11:37:22 CEST
>> To: 

> pharo-users@.pharo

>> 
>> 
>> Hi
>> 
>> Isn't it weird this behavior for the community? Should I open a bug?
>> Cheers
>> Davide
>> 
>> 
>> Pharo Smalltalk Users mailing list wrote
>>> Hi Guys,
>>> As I already described here:
>>> http://forum.world.st/Fuel-FLSerializer-tests-are-not-working-pharo-8-td5120052.html
>>> there is something weird on Pharo 8 (on Mac) because I'm running an
>>> image
>>> that is in the same directory of the Pharo.app but "FileLocator
>>> workingDirectory" give me the root directory.
>>> 
>>> I expected the same directory where there is Pharo.app
>>> Cheers
>>> Davide
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> 
>> 
>> 
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr / http://www.pharo.org 
> 03 59 35 87 52
> Assistant: Aurore Dalle 
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley, 
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

--- End Message ---


Re: [Pharo-users] Pharo-Mars on Ubuntu

2020-08-03 Thread Stéphane Ducasse
Hi kmo

Pablo is about to release a new VM this week or next week and your crash are 
interesting to us. 
I think that pablo will contact you. 

S.

> On 3 Aug 2020, at 15:15, kmo  wrote:
> 
> The library not found problem has been resolved. We are now back to a VM
> crash when GTK is used. Pharo-Mars is still not running on Ubuntu.
> 
> For those who want the details -
> 
> The library problem was caused by Ubuntu not creating a symbolic link
> libGtk-3.so. It only has a libGtk-3.so.0 link.
> 
> When I created the libGtk-3.so link, I got a VM crash when the image starts
> up.
> 
> I see that Estaban has recently fixed the library issue by adding
> libGtk-3.so.0 to the library search path. He has also changed something in
> the startup of Pharo-Mars because I no longer get a VM crash when the Image
> starts up - I now get the crash when a GTK  Spec application starts up.
> 
> I'm just waiting for Estaban to update the issue to say he's had a chance to
> look at the crash.
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 


Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France



Re: [Pharo-users] Working directory and image directory

2020-08-03 Thread Stéphane Ducasse
Thanks a lot!

> On 3 Aug 2020, at 15:39, Davide Varvello  wrote:
> 
> 
> From: Davide Varvello mailto:varve...@yahoo.com>>
> Subject: Re: Working directory and image directory
> Date: 3 August 2020 at 15:39:40 CEST
> To: pharo-users@lists.pharo.org 
> 
> 
> Fine Stéphane, I opened two entries:
> https://github.com/pharo-project/pharo/issues/7039 
> 
> 
> https://github.com/pharo-project/pharo/issues/7040 
> 
> 
> Cheers
> Davide
> 
> 
> 
> Stéphane Ducasse wrote
>> Hi Davide 
>> 
>> Can you open a bug entry on Pharo and on Fuel?
>> 
>> S. 
>> 
>>> On 31 Jul 2020, at 11:37, Davide Varvello <
> 
>> varvello@
> 
>> > wrote:
>>> 
>>> 
>>> From: Davide Varvello <
> 
>> varvello@
> 
>> >
>>> Subject: Re: Working directory and image directory
>>> Date: 31 July 2020 at 11:37:22 CEST
>>> To: 
> 
>> pharo-users@.pharo
> 
>>> 
>>> 
>>> Hi
>>> 
>>> Isn't it weird this behavior for the community? Should I open a bug?
>>> Cheers
>>> Davide
>>> 
>>> 
>>> Pharo Smalltalk Users mailing list wrote
 Hi Guys,
 As I already described here:
 http://forum.world.st/Fuel-FLSerializer-tests-are-not-working-pharo-8-td5120052.html
 there is something weird on Pharo 8 (on Mac) because I'm running an
 image
 that is in the same directory of the Pharo.app but "FileLocator
 workingDirectory" give me the root directory.
 
 I expected the same directory where there is Pharo.app
 Cheers
 Davide
 
 
 
 --
 Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>> 
>>> 
>>> 
>> 
>> 
>> Stéphane Ducasse
>> http://stephane.ducasse.free.fr / http://www.pharo.org 
>> 03 59 35 87 52
>> Assistant: Aurore Dalle 
>> FAX 03 59 57 78 50
>> TEL 03 59 35 86 16
>> S. Ducasse - Inria
>> 40, avenue Halley, 
>> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
>> Villeneuve d'Ascq 59650
>> France
> 
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html 
> 

Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France



Re: [Pharo-users] Fuel - FLSerializer tests are not working (pharo 8)

2020-08-03 Thread Stéphane Ducasse
I still find it strange because Max and Martin are always taking care about 
fuel and I do not see them
publishing a version for a new version with red tests.

S

> On 27 Jul 2020, at 12:15, Davide Varvello  wrote:
> 
> 
> From: Davide Varvello 
> Subject: Fuel - FLSerializer tests are not working (pharo 8)
> Date: 27 July 2020 at 12:15:32 CEST
> To: pharo-users@lists.pharo.org
> 
> 
> Hi Guys,
> 
> There is something wrong with Fuel.
> I got the version for Pharo 8
> 
> Metacello new
>repository: 'github://theseion/Fuel:3.0.2/repository';
>baseline: 'Fuel';
>load.
> 
> 
> But tests are red, all tests of FLBinaryFileStreamBasicSerializationTest and
> others
> 
> Cheers
> Davide
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 
> 
> 


Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France



Re: [Pharo-users] Fuel - FLSerializer tests are not working (pharo 8)

2020-08-03 Thread Stéphane Ducasse
I took a Pharo8 image and 

Metacello new
   repository: 'github://theseion/Fuel:3.0.2/repository 
';
   baseline: 'Fuel';
   load.

and run the tests and all the tests are green on my machine. 

595 ran, 576 passed, 1 skipped, 19 expected failures, 0 failures, 0 errors, 0 
passed unexpected


S. 

Re: [Pharo-users] A question concerning Nautilus

2020-08-03 Thread Stéphane Ducasse
For the record this is already fixed in Pharo by Example 8.


S. 

> On 14 Jul 2020, at 03:58, Serge Stinckwich  wrote:
> 
> Hi René,
> 
> use instead:
> 
> ClyFullBrowser openOnMethod: Integer >> #factorial 
> 
> Book should be updated for Pharo 8 :-)
> Regards,
> 
> On Mon, Jul 13, 2020 at 10:42 PM Rene Paul Mages (ramix)  > wrote:
> Hello,
> 
> In the chapter 2 ( A quick tour of Pharo )  of this book :
> 
> https://github.com/SquareBracketAssociates/UpdatedPharoByExample 
> 
> 
>  we can read :
> 
> http://ramix.org/pharo/UpdatePBE/TheSystemBrowser.png 
> 
> 
> When I "do it" the following code Nautilus don't open on the method
> factorial :
> 
> http://ramix.org/pharo/UpdatePBE/Nautilus.png 
> 
> 
> I am running Pharo version 8.0. under a 64 bits Linux machine.
> 
> -- 
> Thanks for your help
> Rene Paul Mages ( GnuPG_key 0x9840A6F7 )
> http://www.pharo.fr 
> http://www.linux-azur.org/ramix 
> http://twitter.com/RenePaulMages 
> 
> 
> 
> 
> 
> 
> -- 
> Serge Stinckwic​h​
> https://twitter.com/SergeStinckwich 
> ​


Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France



Re: [Pharo-users] Fuel - FLSerializer tests are not working (pharo 8)

2020-08-03 Thread Denis Kudriashov
It can be a known issue with MacOS, the way how an operating system assigns
a working directory for applications.
For example starting an app using double click from Finder will use a root
directory as a working copy.

Davide how did you start the Pharo? Can you try to run it from the command
line? In that case the current working directory of the terminal will be
assigned to the started application.




пн, 3 авг. 2020 г. в 19:16, Stéphane Ducasse :

> I took a Pharo8 image and
>
> Metacello new
>repository: 'github://theseion/Fuel:3.0.2/repository';
>baseline: 'Fuel';
>load.
>
> and run the tests and all the tests are green on my machine.
>
> 595 ran, 576 passed, 1 skipped, 19 expected failures, 0 failures, 0
> errors, 0 passed unexpected
>
>
> S.
>


[Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-03 Thread Offray Vladimir Luna Cárdenas
Hi,

Today I was an introduction to Pharo. As usual, I asked the learner to
taste the environment and syntax by running the examples in excellent
Sven's Elegant Code[1] (BTW, can I translate snips of  it to Spanish?).
When she was adapting the example 6 about converting JPGs to PNGs, we
get the error reported in this mail's subject. I tried running her
example in my machine with her images and with my own and still I got
the same error. What are we missing?

[1] https://medium.com/concerning-pharo/elegant-pharo-code-bb590f0856d0

We are using Pharo 8.x on Manjaro Gnu/Linux 64 bits.

Thanks,

Offray





Re: [Pharo-users] Intermediate-Level Tutorials for Pharo

2020-08-03 Thread tbrunz
I wrote a "theory of operation" document for my app, 
https://github.com/tbrunz/logic-puzzle

But then I realized, "Where do I put it??"

I thought of a few possibilities:

* Commit it to the git repo, but then it wouldn't be easy to access from
Pharo,
* Add it to a top-level Pharo class comment, 
* Make it into a string in Pharo, put it in a method in a class.

What's the standard practice for "attaching" non-code documents to Pharo
applications?

-t



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Intermediate-Level Tutorials for Pharo

2020-08-03 Thread Stéphane Ducasse
I would put it in class comment.

We are about to release a nicer rendering of comments. 

S.

> On 4 Aug 2020, at 06:46, tbrunz  wrote:
> 
> I wrote a "theory of operation" document for my app, 
> https://github.com/tbrunz/logic-puzzle
> 
> But then I realized, "Where do I put it??"
> 
> I thought of a few possibilities:
> 
> * Commit it to the git repo, but then it wouldn't be easy to access from
> Pharo,
> * Add it to a top-level Pharo class comment, 
> * Make it into a string in Pharo, put it in a method in a class.
> 
> What's the standard practice for "attaching" non-code documents to Pharo
> applications?
> 
> -t
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 


Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France



Re: [Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-03 Thread Stéphane Ducasse
Thanks for the report I confirm that I can reproduce the problem.
I do not know yet the answer. Now I think strange that we use a characterStream 
for reading jpeg. 
S. 


> On 3 Aug 2020, at 20:41, Offray Vladimir Luna Cárdenas 
>  wrote:
> 
> Hi,
> 
> Today I was an introduction to Pharo. As usual, I asked the learner to
> taste the environment and syntax by running the examples in excellent
> Sven's Elegant Code[1] (BTW, can I translate snips of  it to Spanish?).
> When she was adapting the example 6 about converting JPGs to PNGs, we
> get the error reported in this mail's subject. I tried running her
> example in my machine with her images and with my own and still I got
> the same error. What are we missing?
> 
> [1] https://medium.com/concerning-pharo/elegant-pharo-code-bb590f0856d0
> 
> We are using Pharo 8.x on Manjaro Gnu/Linux 64 bits.
> 
> Thanks,
> 
> Offray
> 
> 
> 


Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France