Re: [Pharo-users] Ever growing image

2018-03-08 Thread Marcus Denker


> On 2 Mar 2018, at 22:52, Marcus Denker  wrote:
> 
> 
> 
>> On 2 Mar 2018, at 21:31, Hilaire > > wrote:
>> 
>> Ah, you are right it is a 32bits image.
>> 
>> My bad, Dr.Geo does not build with 64bits image Pharo7.0-64bit-52a28a8
>> 
>> ConfigurationOfDrGeo class methodsFor: 'metacelUnmatched ' in string 
>> literal. ->
>> 
>> May be should try a more recent P7 64 bits image
>> 
>> 
>> Note: 52 MB is an overlarge image size for me (down 50% will be nice)
>> 
> 
> we should again do some analysis where space is going… the Pharo7 download
> is now 38MB (the image, decompressed).
> 

down to 36,4 MB in the latest build.

Marcus



Re: [Pharo-users] cancel changes in Nautilus broken on 6.1?

2018-03-08 Thread Ben Coman
thx for looking into this.  half way there ;)
do you have the Pharo build numbers that match these Nautilus versions?

cheers -ben

On 9 March 2018 at 14:30, Siemen Baader  wrote:

> The regression happens between Nautilus-TheIntegrator1352.mcz and
> Nautilus-TheIntegrator1351.mcz. Pharo 6.0 uses
> Nautilus-TheIntegrator1366.mcz
>
> I'll look more to find the actual code that breaks.
>
> -- Siemen
>
>
>
>
> On Mon, Feb 12, 2018 at 6:57 PM, Siemen Baader 
> wrote:
>
>> Hi Stef,
>>
>> On Sat, Feb 10, 2018 at 6:22 PM, Stephane Ducasse <
>> stepharo.s...@gmail.com> wrote:
>>
>>> Hi Siemen
>>>
>>> I use often cmd-L too and may be we got a regression.
>>>
>>
>> I'm pretty sure I started doing it after I saw you do it in the MOOC ;)
>>
>> And indeed I have the same behavior in Pharo 70.
>>> Can you try to see how to address it?
>>>
>>
>> Yes, I can try to look into it. I don't have any clear idea where to
>> start other than browsing Nautilus code and perhaps uses of
>> NautilusChanged, but perhaps it is not that hard to find.
>>
>> -- Siemen
>>
>>>
>>> Stef
>>>
>>> On Fri, Feb 9, 2018 at 8:37 PM, Siemen Baader 
>>> wrote:
>>> > Hi all,
>>> >
>>> > I downloaded Pharo 6.1 for OSX and whenever I revert changes in
>>> Nautilus
>>> > with CMD-L, the content is reverted and the orange dirty marker
>>> triangle
>>> > disappears. But when I switch to a different method, Nautilus shows the
>>> > 'Content has been modified. What do you want to do?' dialog, as it only
>>> > should when content is actually different.
>>> >
>>> > I use this all the time, I can't imagine I'm the only one, but I
>>> couldn't
>>> > find the problem mentioned anywhere. Does anyone else have it? What to
>>> do?
>>> >
>>> > -- Siemen
>>>
>>>
>>
>


Re: [Pharo-users] cancel changes in Nautilus broken on 6.1?

2018-03-08 Thread Siemen Baader
The regression happens between Nautilus-TheIntegrator1352.mcz and
Nautilus-TheIntegrator1351.mcz. Pharo 6.0 uses
Nautilus-TheIntegrator1366.mcz

I'll look more to find the actual code that breaks.

-- Siemen



On Mon, Feb 12, 2018 at 6:57 PM, Siemen Baader 
wrote:

> Hi Stef,
>
> On Sat, Feb 10, 2018 at 6:22 PM, Stephane Ducasse  > wrote:
>
>> Hi Siemen
>>
>> I use often cmd-L too and may be we got a regression.
>>
>
> I'm pretty sure I started doing it after I saw you do it in the MOOC ;)
>
> And indeed I have the same behavior in Pharo 70.
>> Can you try to see how to address it?
>>
>
> Yes, I can try to look into it. I don't have any clear idea where to start
> other than browsing Nautilus code and perhaps uses of NautilusChanged, but
> perhaps it is not that hard to find.
>
> -- Siemen
>
>>
>> Stef
>>
>> On Fri, Feb 9, 2018 at 8:37 PM, Siemen Baader 
>> wrote:
>> > Hi all,
>> >
>> > I downloaded Pharo 6.1 for OSX and whenever I revert changes in Nautilus
>> > with CMD-L, the content is reverted and the orange dirty marker triangle
>> > disappears. But when I switch to a different method, Nautilus shows the
>> > 'Content has been modified. What do you want to do?' dialog, as it only
>> > should when content is actually different.
>> >
>> > I use this all the time, I can't imagine I'm the only one, but I
>> couldn't
>> > find the problem mentioned anywhere. Does anyone else have it? What to
>> do?
>> >
>> > -- Siemen
>>
>>
>


Re: [Pharo-users] Exporting Pillar docs (Pillar7)

2018-03-08 Thread Arturo Zambrano
Thanks Stef. I'm aware of templates and I saw how to use them when using
pillar from command line.
I have doubts regarding how to it programatically, but I need to take a
look that code before posting concrete questions.



On Thu, Mar 1, 2018 at 9:16 AM, Stephane Ducasse 
wrote:

> In fact in Pillar 6/7 you can take  template or create your own the
> variables are mustache variables.
> So this basically means that you inject the latex generated by Pillar into
> the latex document
> template you want.
> Have a look at the template folder.
>

> On Tue, Feb 27, 2018 at 2:42 PM, Arturo Zambrano <
> arturo.zambr...@gmail.com> wrote:
>
>> Thanks for your help.
>>
>> I will use markdown as a preview, so th PR*Writer write:document is OK.
>> For the last phase I plan to use latex to generate a pdf following
>> certain presentation rules.
>>
>> I wonder if it is possible to use pillar 7 templates programmatically.
>> Is there some example I can follow?
>>
>> Thanks again!
>>
>>
>>
>> On Mon, Feb 19, 2018 at 6:42 AM, Guillermo Polito <
>> guillermopol...@gmail.com> wrote:
>>
>>>
>>>
>>> On Sun, Feb 18, 2018 at 9:01 PM, Stephane Ducasse <
>>> stepharo.s...@gmail.com> wrote:
>>>
 Hi arturo

 What you saw is the pipeline to produce book and others. Now I do not
 think that you need it.
 To export markdown you do not need the pillar configuration and the
 rest.
 Check the chapter 6 in the publishing a booklet with pillar document.

 You can just get your document using the Pillar parser.

 | wiki doc |
 wiki := '!My Document'.
 doc := PRPillarParser parse: wiki

 Or from a file:

   PRPillarParser parse: (FileSystem workingDirectory / 'foo.pillar')

   readStream

 You can also instantiate the document model, one node after the other,
 start- ing with PRDocument and adding sub-instances of PRDocumentItem:

   | document title figure|

   document := PRDocument new.

   title := PRHeader new

  level: 1;

  add: (PRText content: 'foo');

  yourself.

   figure := PRFigure new

  add: (PRText content: 'Alias');

 then to export in HTML you just ask the htmlWriter. So I think that
 this is the same for markdown.

 PRHTMLWriter write: document


 Now pay attention because we are currently rewriting the pipeline of
 document production in Pillar 70.

>>>
>>> Yeh, but ideally the pipeline should only automatically orchestrate what
>>> people should be still able to do programatically :)
>>>
>>> So I think keeping
>>>
>>> PRHTMLWriter write: document
>>>
>>> and
>>>
>>> PRHTMLWriter write: document toStream: ...
>>>
>>> & family, is good.
>>>
>>>
 This is why this is not in master but in a specific branch.

 Stef






 On Sun, Feb 18, 2018 at 7:13 PM, Arturo Zambrano
  wrote:
 > Hi,
 > I figured it out (at least in part)
 >
 >   configuration := PRPillarConfiguration new.
 >   configuration outputType: PRMarkdownWriter.
 >   export:=PRExportPhase new .
 >   export executeOn:
 >   (PRCompilationContext withDocument: document withConfiguration:
 > configuration)
 >
 >
 > This code snipped generates a Json file which contains the
 markdown... how
 > do I generate just the markdown?
 >
 > TIA
 > Arturo
 >
 >
 > On Sun, Feb 18, 2018 at 2:16 PM, Arturo Zambrano <
 arturo.zambr...@gmail.com>
 > wrote:
 >>
 >> Hi,
 >>   can someone please tell me how to export a document using pillar7?
 >>
 >>  For pillar5  the example used to be:
 >>
 >> configuration := PRPillarConfiguration new.
 >> configuration outputType: PRHTMLWriter.
 >> PRExportPhase executeOn: { document } with: configuration.
 >>
 >>
 >> Thanks!
 >
 >


>>>
>>>
>>> --
>>>
>>>
>>>
>>> Guille Polito
>>>
>>> Research Engineer
>>>
>>> Centre de Recherche en Informatique, Signal et Automatique de Lille
>>>
>>> CRIStAL - UMR 9189
>>>
>>> French National Center for Scientific Research - *http://www.cnrs.fr
>>> *
>>>
>>>
>>> *Web:* *http://guillep.github.io* 
>>>
>>> *Phone: *+33 06 52 70 66 13 <+33%206%2052%2070%2066%2013>
>>>
>>
>>
>


Re: [Pharo-users] Exporting Pillar docs (Pillar7)

2018-03-08 Thread Arturo Zambrano
Thanks Offray, I followed previous holly wars :P .
I understand the pros and cons.
Is there any preview option in grafoscopio?
Or an external viewer is a must?

Thanks!

On Wed, Feb 28, 2018 at 2:27 PM, Offray Vladimir Luna Cárdenas <
offray.l...@mutabit.com> wrote:

> Hi Arturo,
>
> It seems that you have a project with documentation is pretty important. I
> don't want to start a holly war pointing that there is alternatives to
> Pillar in Pharo, but maybe you should check Grafoscopio + Pandoc. We can
> write pretty complex documents using it, like the Grafoscopio User Manual
> [1], the Data Journalism Handbook[2] and Pasos para una Biblioteca Digital
> de Bogotá[3] (both in Spanish).
> [1] http://mutabit.com/repos.fossil/grafoscopio/doc/tip/
> Docs/En/Books/Manual/manual.pdf
> [2] http://mutabit.com/repos.fossil/mapeda/
> [3] http://mutabit.com/repos.fossil/dataweek/doc/tip/Artefactos/
> BibliotecaDigitalBogota/intro.md
>
> Cheers,
>
> Offray
>
> On 27/02/18 08:42, Arturo Zambrano wrote:
>
> Thanks for your help.
>
> I will use markdown as a preview, so th PR*Writer write:document is OK.
> For the last phase I plan to use latex to generate a pdf following certain
> presentation rules.
>
> I wonder if it is possible to use pillar 7 templates programmatically.
> Is there some example I can follow?
>
> Thanks again!
>
>
>
> On Mon, Feb 19, 2018 at 6:42 AM, Guillermo Polito <
> guillermopol...@gmail.com> wrote:
>
>>
>>
>> On Sun, Feb 18, 2018 at 9:01 PM, Stephane Ducasse <
>> stepharo.s...@gmail.com> wrote:
>>
>>> Hi arturo
>>>
>>> What you saw is the pipeline to produce book and others. Now I do not
>>> think that you need it.
>>> To export markdown you do not need the pillar configuration and the rest.
>>> Check the chapter 6 in the publishing a booklet with pillar document.
>>>
>>> You can just get your document using the Pillar parser.
>>>
>>> | wiki doc |
>>> wiki := '!My Document'.
>>> doc := PRPillarParser parse: wiki
>>>
>>> Or from a file:
>>>
>>>   PRPillarParser parse: (FileSystem workingDirectory / 'foo.pillar')
>>>
>>>   readStream
>>>
>>> You can also instantiate the document model, one node after the other,
>>> start- ing with PRDocument and adding sub-instances of PRDocumentItem:
>>>
>>>   | document title figure|
>>>
>>>   document := PRDocument new.
>>>
>>>   title := PRHeader new
>>>
>>>  level: 1;
>>>
>>>  add: (PRText content: 'foo');
>>>
>>>  yourself.
>>>
>>>   figure := PRFigure new
>>>
>>>  add: (PRText content: 'Alias');
>>>
>>> then to export in HTML you just ask the htmlWriter. So I think that
>>> this is the same for markdown.
>>>
>>> PRHTMLWriter write: document
>>>
>>>
>>> Now pay attention because we are currently rewriting the pipeline of
>>> document production in Pillar 70.
>>>
>>
>> Yeh, but ideally the pipeline should only automatically orchestrate what
>> people should be still able to do programatically :)
>>
>> So I think keeping
>>
>> PRHTMLWriter write: document
>>
>> and
>>
>> PRHTMLWriter write: document toStream: ...
>>
>> & family, is good.
>>
>>
>>> This is why this is not in master but in a specific branch.
>>>
>>> Stef
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sun, Feb 18, 2018 at 7:13 PM, Arturo Zambrano
>>>  wrote:
>>> > Hi,
>>> > I figured it out (at least in part)
>>> >
>>> >   configuration := PRPillarConfiguration new.
>>> >   configuration outputType: PRMarkdownWriter.
>>> >   export:=PRExportPhase new .
>>> >   export executeOn:
>>> >   (PRCompilationContext withDocument: document withConfiguration:
>>> > configuration)
>>> >
>>> >
>>> > This code snipped generates a Json file which contains the markdown...
>>> how
>>> > do I generate just the markdown?
>>> >
>>> > TIA
>>> > Arturo
>>> >
>>> >
>>> > On Sun, Feb 18, 2018 at 2:16 PM, Arturo Zambrano <
>>> arturo.zambr...@gmail.com>
>>> > wrote:
>>> >>
>>> >> Hi,
>>> >>   can someone please tell me how to export a document using pillar7?
>>> >>
>>> >>  For pillar5  the example used to be:
>>> >>
>>> >> configuration := PRPillarConfiguration new.
>>> >> configuration outputType: PRHTMLWriter.
>>> >> PRExportPhase executeOn: { document } with: configuration.
>>> >>
>>> >>
>>> >> Thanks!
>>> >
>>> >
>>>
>>>
>>
>>
>> --
>>
>>
>>
>> Guille Polito
>>
>> Research Engineer
>>
>> Centre de Recherche en Informatique, Signal et Automatique de Lille
>>
>> CRIStAL - UMR 9189
>>
>> French National Center for Scientific Research - *http://www.cnrs.fr
>> *
>>
>>
>> *Web:* *http://guillep.github.io* 
>>
>> *Phone: *+33 06 52 70 66 13
>>
>
>
>


Re: [Pharo-users] Roassal to ODG

2018-03-08 Thread Arturo Zambrano
I apologize for my late reply...


On Tue, Feb 20, 2018 at 10:20 PM, Alexandre Bergel 
wrote:

> How do you want to generate the flow? You can create a view and add
> callback to add boxes and arrow.
> Is this what you mean?
>

I already generated the graph in a roassal view. My intention is to export
it in a "visio-like" format, that can be opened by some free (as in beer)
tool.
That´s was I thought first in ODG. But it could be anything editable. SVG
is not so good, as every single vector is independent, so edition could be
a nightmare.






>
> Alexandre
>
>
> > On Feb 13, 2018, at 12:09 PM, Arturo Zambrano 
> wrote:
> >
> >
> >
> > On Tue, Feb 13, 2018 at 7:27 AM, Alexandre Bergel <
> alexandre.ber...@me.com> wrote:
> > > So I want to re post my question:
> > >  "What is  the best option to generate an editable flow chart from
> Pharo (Roassal)?”
> >
> > There are none as far as I know. However, this is something that can be
> done (rather easily I would say).
> >
> > Thanks, any direction?
> >
> >
> >
> > Alexandre
> >
>
>
>


Re: [Pharo-users] [Pharo-dev] [ANN] Cruiser: A Pharo app packager

2018-03-08 Thread Vincent.Blondeau
Thx! That's not planned to do mobile apps for now. I was even not aware that 
mobile apps could be done with Pharo.
But, if you feel the need to do it, any contribution is welcomed!

Vincent

From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of 
Todd Blanchard
Sent: Thursday, March 8, 2018 12:05
To: Pharo Development List 
Cc: Thorgrimsson, Chris ; Any question 
about pharo is welcome 
Subject: Re: [Pharo-users] [Pharo-dev] [ANN] Cruiser: A Pharo app packager

That is very cool.

Any intentions to do mobile?

Inspired by David Buck's post on his mobile VM.

https://medium.com/@richardeng/mobile-smalltalk-c6f0cc712909

On Mar 8, 2018, at 12:00 PM, Alexandre Bergel 
> wrote:

I saw a demo of it two weeks ago. This is really good stuff!
Cruiser is about turning a Pharo app as a stand-alone application, as an .exe 
file from a user perspective, without knowing there is Pharo underneath.

Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





On Mar 8, 2018, at 4:29 PM, 
vincent.blond...@lamresearch.com wrote:

Hi Pharoers!

I pleased to announce you the first release of Cruiser: a tool to package your 
Pharo applications. The idea is to quickly convert an application from a 
development environment to a production one. A production environment means:
* No writing on the disk
* No access to the source code (by the shortcuts, debugger,...)
* No error displaying on the interface
* The only thing accessible is the user application

I let you discover it on: 
https://github.com/VincentBlondeau/Cruiser



Do not hesitate to ask me questions or contribute to improve it!

Cheers,

Vincent Blondeau
Software Engineer, Software and Controls | Global Product Group
Desk +1 510.572.7499

Lam Research Corporation
4650 Cushing Pkwy, Fremont, CA 94538 USA | 
www.lamresearch.com
Connect with Lam Research: 
Facebook
 | 
Twitter
 | 
LinkedIn




NOTICE: This e-mail transmission may contain confidential information. If you 
are not the intended recipient, or a person responsible for delivering it to 
the intended recipient, you are hereby notified that any disclosure, copying, 
distribution or use of any of the information contained in or attached to this 
message is STRICTLY PROHIBITED. If you have received this transmission in 
error, please immediately notify the sender and destroy the original 
transmission and its attachments without reading them or saving them to disk. 
Thank you.




Re: [Pharo-users] [ANN] Cruiser: A Pharo app packager

2018-03-08 Thread Tudor Girba
Very cool. Thanks!

Doru


> On Mar 8, 2018, at 8:29 PM,  
>  wrote:
> 
> Hi Pharoers!
>  
> I pleased to announce you the first release of Cruiser: a tool to package 
> your Pharo applications. The idea is to quickly convert an application from a 
> development environment to a production one. A production environment means:
>   • No writing on the disk
>   • No access to the source code (by the shortcuts, debugger,...)
>   • No error displaying on the interface
>   • The only thing accessible is the user application
>  
> I let you discover it on: https://github.com/VincentBlondeau/Cruiser
>  
> 
>  
> Do not hesitate to ask me questions or contribute to improve it!
>  
> Cheers,
>  
> Vincent Blondeau 
> Software Engineer, Software and Controls | Global Product Group 
> Desk +1 510.572.7499
> 
> Lam Research Corporation
> 4650 Cushing Pkwy, Fremont, CA 94538 USA | www.lamresearch.com
> Connect with Lam Research: Facebook | Twitter | LinkedIn
> 
>  
> NOTICE: This e-mail transmission may contain confidential information. If you 
> are not the intended recipient, or a person responsible for delivering it to 
> the intended recipient, you are hereby notified that any disclosure, copying, 
> distribution or use of any of the information contained in or attached to 
> this message is STRICTLY PROHIBITED. If you have received this transmission 
> in error, please immediately notify the sender and destroy the original 
> transmission and its attachments without reading them or saving them to disk. 
> Thank you.

--
www.tudorgirba.com
www.feenk.com

"Yesterday is a fact.
 Tomorrow is a possibility.
 Today is a challenge."







Re: [Pharo-users] [Pharo-dev] [ANN] Cruiser: A Pharo app packager

2018-03-08 Thread Todd Blanchard
That is very cool.  

Any intentions to do mobile?

Inspired by David Buck's post on his mobile VM.

https://medium.com/@richardeng/mobile-smalltalk-c6f0cc712909

> On Mar 8, 2018, at 12:00 PM, Alexandre Bergel  wrote:
> 
> I saw a demo of it two weeks ago. This is really good stuff!
> Cruiser is about turning a Pharo app as a stand-alone application, as an .exe 
> file from a user perspective, without knowing there is Pharo underneath. 
> 
> Alexandre
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu 
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> 
> 
> 
>> On Mar 8, 2018, at 4:29 PM, vincent.blond...@lamresearch.com 
>>  wrote:
>> 
>> Hi Pharoers!
>>  
>> I pleased to announce you the first release of Cruiser: a tool to package 
>> your Pharo applications. The idea is to quickly convert an application from 
>> a development environment to a production one. A production environment 
>> means:
>> No writing on the disk
>> No access to the source code (by the shortcuts, debugger,...)
>> No error displaying on the interface
>> The only thing accessible is the user application
>>  
>> I let you discover it on: https://github.com/VincentBlondeau/Cruiser 
>> 
>>  
>> 
>>  
>> Do not hesitate to ask me questions or contribute to improve it!
>>  
>> Cheers,
>>  
>> Vincent Blondeau 
>> Software Engineer, Software and Controls | Global Product Group 
>> Desk +1 510.572.7499
>> 
>> Lam Research Corporation
>> 4650 Cushing Pkwy, Fremont, CA 94538 USA | www.lamresearch.com 
>> 
>> Connect with Lam Research: Facebook 
>>  | Twitter 
>>  | LinkedIn 
>> 
>> 
>>  
>> NOTICE: This e-mail transmission may contain confidential information. If 
>> you are not the intended recipient, or a person responsible for delivering 
>> it to the intended recipient, you are hereby notified that any disclosure, 
>> copying, distribution or use of any of the information contained in or 
>> attached to this message is STRICTLY PROHIBITED. If you have received this 
>> transmission in error, please immediately notify the sender and destroy the 
>> original transmission and its attachments without reading them or saving 
>> them to disk. Thank you.
> 



Re: [Pharo-users] [ANN] Cruiser: A Pharo app packager

2018-03-08 Thread Alexandre Bergel
I saw a demo of it two weeks ago. This is really good stuff!
Cruiser is about turning a Pharo app as a stand-alone application, as an .exe 
file from a user perspective, without knowing there is Pharo underneath. 

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



> On Mar 8, 2018, at 4:29 PM, vincent.blond...@lamresearch.com wrote:
> 
> Hi Pharoers!
>  
> I pleased to announce you the first release of Cruiser: a tool to package 
> your Pharo applications. The idea is to quickly convert an application from a 
> development environment to a production one. A production environment means:
> No writing on the disk
> No access to the source code (by the shortcuts, debugger,...)
> No error displaying on the interface
> The only thing accessible is the user application
>  
> I let you discover it on: https://github.com/VincentBlondeau/Cruiser 
> 
>  
> 
>  
> Do not hesitate to ask me questions or contribute to improve it!
>  
> Cheers,
>  
> Vincent Blondeau 
> Software Engineer, Software and Controls | Global Product Group 
> Desk +1 510.572.7499
> 
> Lam Research Corporation
> 4650 Cushing Pkwy, Fremont, CA 94538 USA | www.lamresearch.com 
> 
> Connect with Lam Research: Facebook 
>  | Twitter 
>  | LinkedIn 
> 
> 
>  
> NOTICE: This e-mail transmission may contain confidential information. If you 
> are not the intended recipient, or a person responsible for delivering it to 
> the intended recipient, you are hereby notified that any disclosure, copying, 
> distribution or use of any of the information contained in or attached to 
> this message is STRICTLY PROHIBITED. If you have received this transmission 
> in error, please immediately notify the sender and destroy the original 
> transmission and its attachments without reading them or saving them to disk. 
> Thank you.



Re: [Pharo-users] Bootstrap how to

2018-03-08 Thread Alistair Grant
Hi Hilaire,

Moving this to pharo-dev...


On Thu, Mar 08, 2018 at 11:34:55AM +0100, Hilaire wrote:
> I give again a try to bootstrap (after my last summer fail). Here how far I
> went:
>
> Do people really like git or pretend to because
> everyone is using it.

Maybe there's a better source management system out there, but for me
git is much better than any of the alternatives I've used (rcs, svn, vcs
and a couple I've forgotten (cms?)).


> 1. Fetched the repo https://github.com/pharo-project/pharo. I have to fetch
> a fresh one as updating my repo failed with the git command
> pull/fetch/merge/reset hard does not work. Incredible how simple thinks does
> not work simply with git.

I consider myself far from a git expert, so take the following with a
grain of salt...

You haven't given much detail, but when you have a clone think of the
branches that are upstream as being "read only" (typically master and
development).  They should only ever be modified by merging in the
branch from upstream.  If you're writing (committing) to your clone, it
should always be in a separate branch.

When updating, e.g. master, from upstream, get in to the habit of
enforcing fast-foward only e.g.:

git checkout master
git fetch --prune upstream
git merge --ff-only upstream/master
git push

It's more steps, but will ensure you don't get in to the problem you
describe above.  git pull will do a merge if necessary, making future
updates hard / impossible.



> 2. Followed instructions to build a bootstrap.
>
> BUILD_NUMBER=42 BOOTSTRAP_ARCH=32 sh ./bootstrap/scripts/bootstrap.sh

The script I've been using is:


#!/bin/bash

export JOB=bootstrap
export BOOTSTRAP_ARCH=32
export PHARO_VERSION=60
export BUILD_NUMBER=$(date "+%m%d")
./bootstrap/scripts/bootstrap.sh


It would be good to have a readme in the bootstrap directory that
provides basic instructions on what the key variables are and how to run
the bootstrap.


> The resulting image bootstrap-cache/bootstrap.image is built after 1 or 2
> hours. Its size is 3,4MB, when started there is only blank screen, I guess
> it is the expected outcome.

My 4 year old Dell XPS-13 (i7) takes about 30-40 minutes to do the build.



> 3. Followed instructions to load pharo environment:
>
> ??BUILD_NUMBER=42 BOOTSTRAP_ARCH=32 ./bootstrap/scripts/build.sh

This is called by bootstrap.sh, so it shouldn't be necessary for you to
call it directly.


> Several attempts were needed and the build.sh script is fragile and fail
> when at the repeated attempts, some cleaning were needed.
>
> I suggest two things :
>
> 1. you add -p to your mkdir commands (in build.sh and get-vm.sh
>scripts) as it make your script less fragile !
> 2. Also checking for the existence of the Pharo.source will avoid to
>have duplicted uncessary downloaded source file version.
>(Pharo.source1, Pharo.source2):
>
>if test ! -e PharoV60.sources
>  then
>  wget http://files.pharo.org/sources/PharoV60.sources
>fi
>
> Now the image is building, will see next.

I agree that it would be nice if it was possible to avoid downloading
the files each time, and also possible separate the process in to a
number of stages, and restart from a nominated stage.

Maybe the stages could be:

1. Download all requirements (stable vm (6.0), target vm (7.0),
bootstrapImage.zip and anything else I've forgotten).
2. The build steps in bootstrap.sh.
3. The build steps in build.sh

There could be a "clean" option that would be called as part of the CI
process to ensure that everything is always up to date.

Esteban and co.:  How open are you to refactoring the scripts to
support this?  Or is there something I don't understand that means it
doesn't make sense?


Cheers,
Alistair



Re: [Pharo-users] Mounting/seeing samba network files on Pharo

2018-03-08 Thread Cédrick Béler
I used the one click image (installing applications on those windows seven 
virtualized OS is not possible without admin right which I haven’t).

Personal files (Desktop, My Document) are mounted on startup so I put Pharo on 
Desktop (or in My Document).

Double click on the one-click image open. It complains about no accessing the 
sources files… When I open the File Browser in Pharo, I see empty directories 
for Desktop and friends…

I thought naively that it should be able to read from the directory it is 
launched but no… 

But do not mind, I asked student to bring their computers :)

Thanks Ben for answering,

Cédrick


> Le 7 mars 2018 à 14:17, Ben Coman  a écrit :
> 
> Can you provide a bit more info about the setup.  
> e.g. For two machines/users, describe the paths to the executables that are 
> run and the method of launching.
> 
> cheers -ben
> 
> 
> On 5 March 2018 at 21:41, Cédrick Béler  > wrote:
> Hi all,
> 
> I try to use Pharo in my lecture, therefore in our virtualized architecture.
> 
> The problem is once dowloaded and launched (on Desktop or Document - the 
> student repository that is mounted on the virtualized machine), Pharo cannot 
> access the networked file system (source is not accessible, save as not 
> possible, etc..).
> 
> Does someone has experience on that ?
> Is it possibile to mount a samba directory ?
> 
> TIA,
> 
> Cédrick
> 



Re: [Pharo-users] Bootstrap how to

2018-03-08 Thread Hilaire

Le 08/03/2018 à 12:27, Hilaire a écrit :

The build process ended with this output, don't know if it is right:


To clarify, several images were produced, don't know if the job was 
completed as expected:


-rw-rw-r-- 1 hilaire hilaire  70M mars   8 12:01 
Pharo7.0-32bit-dcd5b5611.image
-rw-rw-r-- 1 hilaire hilaire  11M mars   8 11:43 
Pharo7.0-metacello-32bit-dcd5b5611.image
-rw-rw-r-- 1 hilaire hilaire 8,8M mars   8 11:42 
Pharo7.0-monticello-32bit-dcd5b5611.image
-rw-rw-r-- 1 hilaire hilaire 8,0M mars   8 11:42 
Pharo7.0-monticello_bootstrap-32bit-dcd5b5611.image
-rw-rw-r-- 1 hilaire hilaire 5,9M mars   8 11:40 
Pharo7.0-core-32bit-dcd5b5611.image
-rw-rw-r-- 1 hilaire hilaire 5,8M mars   8 11:40 
Pharo7.0-traits-32bit-dcd5b5611.image
-rw-rw-r-- 1 hilaire hilaire 5,5M mars   8 11:40 
Pharo7.0-compiler-32bit-dcd5b5611.image
-rw-rw-r-- 1 hilaire hilaire 3,4M mars   8 11:40 
Pharo7.0-bootstrap-32bit-dcd5b5611.image

-rw-rw-r-- 1 hilaire hilaire 3,4M mars   8 11:02 bootstrap.image
-rw-rw-r-- 1 hilaire hilaire  38M mars   8 10:50 Pharo.image

--
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] Pharo for MacOs 10.6.8?

2018-03-08 Thread Sean P. DeNigris
EstebanLM wrote
> just... launcher itself will not work on those machines since is based in
> Pharo 6.1 ;) 

Ah, good point! he he



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



Re: [Pharo-users] I can't install Dataframe on Pharo 6.1

2018-03-08 Thread Hernán Morales Durand
I tried using Windows 8.1 and everything installed correctly.
Which did you installed Pharo?


2018-03-08 8:30 GMT-03:00 hayatou via Pharo-users :
>
>
> -- Mensaje reenviado --
> From: hayatou 
> To: pharo-users@lists.pharo.org
> Cc:
> Bcc:
> Date: Thu, 8 Mar 2018 04:30:09 -0700 (MST)
> Subject: I can't install Dataframe on Pharo 6.1
> Hi All,
> I've got an SSL Exception : connect failed [code:-5] when installing
> DataFrame
> (Metacello new
>   baseline: 'DataFrame';
>   repository: 'github://PolyMathOrg/DataFrame';
>   load.)
> on pharo 6.1 on windows system
> What am I missing?
> hayatou
>
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>



Re: [Pharo-users] HMAC-SHA512

2018-03-08 Thread Ben Coman
On 8 March 2018 at 12:22, Hernán Morales Durand 
wrote:

> 2018-03-07 23:07 GMT-03:00 Ben Coman :
> >
> >
> > On 8 March 2018 at 02:38, Michael Forster  wrote:
> >>
> >> On Fri, Mar 2, 2018 at 9:40 PM, Ben Coman  wrote:
> >> [...]
> >> >
> >> > If that is the one available from the Pharo Catalog, when I tried it,
> it
> >> > used a different api than the libsodium library supplied by Ubuntu
> >> > 16.04.
> >> >
> >> > It makes this call out...
> >> >crypto_hash_sha512_ref()
> >> > but Ubuntu libsodium library did not export that, but instead...
> >> >   crypto_hash_sha512()
> >> >
> >> > I failed to track down the implications of the "_ref",
> >> > and at that time Crypto-Nacl did not supply a 64-bit library,
> >> > so a single FFI matching the system supplied libsodium library was
> >> > easier.
> >> > Also as a minor policy, I prefer to use the system library than one
> >> > compiled
> >> > by a third-party.
> >> >
> >> > cheers -ben
> >> [...]
> >>
> >>
> >> Hi,
> >>
> >> Yes, I recommend using the OS/package-manager supplied libsodium
> >> (based on https://github.com/jedisct1/libsodium). The downloads
> >> provided on Tony's site were based on early commits that exported the
> >> "_ref" functions instead:
> >>
> >> commit e144f9d40d5695b69306bde729d6d8adcd62b1c4
> >> Author: Frank Denis 
> >> Date:   Mon Apr 22 16:30:31 2013 -0700
> >>
> >> crypto_hash_sha(256|512) are the exported functions that have
> >> to be exported.
> >> _ref are implementations, that shouldn't be exported.
> >
> >
> > Thanks for clarifying that.
> >
> >
> >>
> >>
> >> To be useful, http://smalltalkhub.com/#!/~tonyg/Crypto-Nacl/ should be
> >> updated to use a system-supplied libsodium.
> >
> >
> > Or at least to the later api.In general there is some advantage in
> > packaging the C-lib with the Smalltalk package
> > for people experimenting with it the first time, to ensure the function
> > prototypes match.  But flipping into production
> > may prefer the system library. Currently it seems awkward to switch
> later to
> > a system library since the library used is hard coded.
>
> Hi Ben,
>
> "system library" means it's pre-installed in some Linux distros?

I installed a Debian 4.9.65-3+deb9u1 (2017-12-23) last week and
> libsodium is not present.
>

For Linux, system libraries are not only pre-installed,
but rather whatever is available in the default system repository,
simply installed with a single command like...
$ sudo apt-get install libsodium

All such installed packages receive security updates by doing...
$ sudo apt-get update
$ sudo apt-get upgrade


I use Windows and also isn't available by default.


Unfortunately Windows lacks a standard repository with a
broad range of open source packages installable with a single command.
Here it makes more sense to auto-install some package.
Perhaps a particular version from the project
https://download.libsodium.org/libsodium/releases/


In any case, how do you ensure libsodium system lib matches your interface
> code?
>
What do you do now if target has a different version?
>

Good question.  I guess its unit tests and manual effort.
The next question is whether its worth the effort.
For a given production environment, you might take a hit every couple of
years when you move distro-versions.
For a more turnkey system suiting a broader range of new users, maybe
downloading a particular version of libsodium
from the project site is a better option.

Checking just now i see the Ubuntu 16.04 LTS libsodium library is version
1.0.8...
  https://launchpad.net/ubuntu/xenial/+package/libsodium18
which actually is unsupported...
  https://download.libsodium.org/libsodium/releases/old/unsupported/
so perhaps downloading from the project site is a better option.

cheers -ben

P.S.  Did you indicate Crypto-Nacl was being (or could be) updated to
latest libsodium?
If it could, and the auto-installed library was downloaded and sig-checked
from the project site,
I'd be interested in dropping my own hack and using Crypto-Nacl.



> > How do others work around that?
> >
> > Perhaps it would be good to have the external library initialized into an
> > instance variable of FFILIbrary,
> > so a user-application can change the external C-library used without
> > changing code in someone else's ffi-interface package.
> >
> > cheers -ben
> >
> > P.S. On the dream list would be a GUI for managing referenced external
> > C-libraries, including browsing their exported functions.
>
> That would be really cool
>
> Hernán
>
>


Re: [Pharo-users] I can't install Dataframe on Pharo 6.1

2018-03-08 Thread Cyril Ferlicot
On jeu. 8 mars 2018 at 13:13, Serge Stinckwich 
wrote:

> Please your question on PolyMath mailing-list
>
> https://groups.google.com/forum/#!forum/scismalltalk
>
> or PolyMath Discord channel.
>

Hi Serge. This might be related to Iceberg, so it might concerne Pharo.


>
> On Thu, Mar 8, 2018 at 12:30 PM, hayatou via Pharo-users <
> pharo-users@lists.pharo.org> wrote:
>
>
>>
>> -- Forwarded message --
>> From: hayatou 
>> To: pharo-users@lists.pharo.org
>> Cc:
>> Bcc:
>> Date: Thu, 8 Mar 2018 04:30:09 -0700 (MST)
>> Subject: I can't install Dataframe on Pharo 6.1
>> Hi All,
>> I've got an SSL Exception : connect failed [code:-5] when installing
>> DataFrame
>> (Metacello new
>>   baseline: 'DataFrame';
>>   repository: 'github://PolyMathOrg/DataFrame';
>>   load.)
>> on pharo 6.1 on windows system
>> What am I missing?
>> hayatou
>>
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>>
>>
>
>
> --
> Serge Stinckwich
> UMI UMMISCO 209 (IRD/UPMC/UY1)
> "Programs must be written for people to read, and only incidentally for
> machines to execute."http://www.doesnotunderstand.org/
>
-- 
Cyril Ferlicot
https://ferlicot.fr

http://www.synectique.eu
2 rue Jacques Prévert 01,
59650 Villeneuve d'ascq France


Re: [Pharo-users] I can't install Dataframe on Pharo 6.1

2018-03-08 Thread Serge Stinckwich
Please your question on PolyMath mailing-list

https://groups.google.com/forum/#!forum/scismalltalk

or PolyMath Discord channel.

On Thu, Mar 8, 2018 at 12:30 PM, hayatou via Pharo-users <
pharo-users@lists.pharo.org> wrote:

>
>
> -- Forwarded message --
> From: hayatou 
> To: pharo-users@lists.pharo.org
> Cc:
> Bcc:
> Date: Thu, 8 Mar 2018 04:30:09 -0700 (MST)
> Subject: I can't install Dataframe on Pharo 6.1
> Hi All,
> I've got an SSL Exception : connect failed [code:-5] when installing
> DataFrame
> (Metacello new
>   baseline: 'DataFrame';
>   repository: 'github://PolyMathOrg/DataFrame';
>   load.)
> on pharo 6.1 on windows system
> What am I missing?
> hayatou
>
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>
>


-- 
Serge Stinckwich
UMI UMMISCO 209 (IRD/UPMC/UY1)
"Programs must be written for people to read, and only incidentally for
machines to execute."http://www.doesnotunderstand.org/


[Pharo-users] SSL Exception when installing DataFrame

2018-03-08 Thread Hayatou Oumarou via Pharo-users
--- Begin Message ---
Hi All,I've got an SSL Exception : connect failed [code:-5] when installing 
DataFrame (Metacello new  baseline: 'DataFrame';  repository: 
'github://PolyMathOrg/DataFrame';  load.) on pharo 6.1 on windows systemWhat am 
I missing?cheers


--- End Message ---


Re: [Pharo-users] Bootstrap how to

2018-03-08 Thread Hilaire

Le 08/03/2018 à 12:25, Stephane Ducasse a écrit :

Thanks for sharing that with us.
Can you do a pull resquest for the changes you suggest?
No I prefer to just paste it here, it is easier for me. Moreover those 
suggestions may need to be adjusted by whoever knows better. For 
example, "mkdir -p .." may be better replaced by something like "rm -rf 
toto; mkdir toto". I don't know


I think that for the bootstrap we have to recreate the source each
time so we should recreate because it is depend on what
is in the boostrap.
Now this bootstrap is slow and you can reuse the result of our builds.


It is ok, I just try to see at large how it is going on.

Hilaire

--
Dr. Geo
http://drgeo.eu





[Pharo-users] I can't install Dataframe on Pharo 6.1

2018-03-08 Thread hayatou via Pharo-users
--- Begin Message ---
Hi All,
I've got an SSL Exception : connect failed [code:-5] when installing
DataFrame 
(Metacello new
  baseline: 'DataFrame';
  repository: 'github://PolyMathOrg/DataFrame';
  load.) 
on pharo 6.1 on windows system
What am I missing?
hayatou




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

--- End Message ---


Re: [Pharo-users] Bootstrap how to

2018-03-08 Thread Hilaire

Le 08/03/2018 à 11:34, Hilaire a écrit :

Now the image is building, will see next.


The build process ended with this output, don't know if it is right:


PharoCommandLineHandler(BasicCommandLineHandler)>>activateSubCommand:
PharoCommandLineHandler(BasicCommandLineHandler)>>handleSubcommand
PharoCommandLineHandler(BasicCommandLineHandler)>>handleArgument:
[ self
    handleArgument:
        (self arguments
            ifEmpty: [ '' ]
            ifNotEmpty: [ :arguments | arguments first ]) ] in [ [ self
    handleArgument:
        (self arguments
            ifEmpty: [ '' ]
            ifNotEmpty: [ :arguments | arguments first ]) ]
    on: Exit
    do: [ :exit |
        "If the command line is protected by password, we just exit the 
image because in non-headless mode the handleExit will let the image 
open. If the password protection is enabled, it is to avoid to let the 
access to the image."

        self class commandLinePasswordManager hasPasswordSet
            ifTrue: [ Smalltalk snapshot: false andQuit: true ].
        ^ self handleExit: exit ] ] in 
PharoCommandLineHandler(BasicCommandLineHandler)>>activate in Block: [ 
self...

BlockClosure>>on:do:
[ [ self
    handleArgument:
        (self arguments
            ifEmpty: [ '' ]
            ifNotEmpty: [ :arguments | arguments first ]) ]
    on: Exit
    do: [ :exit |
        "If the command line is protected by password, we just exit the 
image because in non-headless mode the handleExit will let the image 
open. If the password protection is enabled, it is to avoid to let the 
access to the image."

        self class commandLinePasswordManager hasPasswordSet
            ifTrue: [ Smalltalk snapshot: false andQuit: true ].
        ^ self handleExit: exit ] ] in 
PharoCommandLineHandler(BasicCommandLineHandler)>>activate in Block: [ [ 
self...

[ self value.
Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self 
value




--
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] Bootstrap how to

2018-03-08 Thread Stephane Ducasse
Thanks for sharing that with us.
Can you do a pull resquest for the changes you suggest?

I think that for the bootstrap we have to recreate the source each
time so we should recreate because it is depend on what
is in the boostrap.
Now this bootstrap is slow and you can reuse the result of our builds.

Stef


On Thu, Mar 8, 2018 at 11:34 AM, Hilaire  wrote:
> I give again a try to bootstrap (after my last summer fail). Here how far I
> went:
>
> 1. Fetched the repo https://github.com/pharo-project/pharo. I have to fetch
> a fresh one as updating my repo failed with the git command
> pull/fetch/merge/reset hard does not work. Incredible how simple thinks does
> not work simply with git. Do people really like git or pretend to because
> everyone is using it.
>
> 2. Followed instructions to build a bootstrap.
>
> BUILD_NUMBER=42 BOOTSTRAP_ARCH=32 sh ./bootstrap/scripts/bootstrap.sh
>
> The resulting image bootstrap-cache/bootstrap.image is built after 1 or 2
> hours. Its size is 3,4MB, when started there is only blank screen, I guess
> it is the expected outcome.
>
> 3. Followed instructions to load pharo environment:
>
>  BUILD_NUMBER=42 BOOTSTRAP_ARCH=32 ./bootstrap/scripts/build.sh
>
> Several attempts were needed and the build.sh script is fragile and fail
> when at the repeated attempts, some cleaning were needed.
>
> I suggest two things :
>
> 1. you add -p to your mkdir commands (in build.sh and get-vm.sh
>scripts) as it make your script less fragile !
> 2. Also checking for the existence of the Pharo.source will avoid to
>have duplicted uncessary downloaded source file version.
>(Pharo.source1, Pharo.source2):
>
>if test ! -e PharoV60.sources
>then
>wget http://files.pharo.org/sources/PharoV60.sources
>fi
>
> Now the image is building, will see next.
>
> Hilaire
>
> --
> Dr. Geo
> http://drgeo.eu
>
>
>



[Pharo-users] Bootstrap how to

2018-03-08 Thread Hilaire
I give again a try to bootstrap (after my last summer fail). Here how 
far I went:


1. Fetched the repo https://github.com/pharo-project/pharo. I have to 
fetch a fresh one as updating my repo failed with the git command 
pull/fetch/merge/reset hard does not work. Incredible how simple thinks 
does not work simply with git. Do people really like git or pretend to 
because everyone is using it.


2. Followed instructions to build a bootstrap.

BUILD_NUMBER=42 BOOTSTRAP_ARCH=32 sh ./bootstrap/scripts/bootstrap.sh

The resulting image bootstrap-cache/bootstrap.image is built after 1 or 
2 hours. Its size is 3,4MB, when started there is only blank screen, I 
guess it is the expected outcome.


3. Followed instructions to load pharo environment:

 BUILD_NUMBER=42 BOOTSTRAP_ARCH=32 ./bootstrap/scripts/build.sh

Several attempts were needed and the build.sh script is fragile and fail 
when at the repeated attempts, some cleaning were needed.


I suggest two things :

1. you add -p to your mkdir commands (in build.sh and get-vm.sh
   scripts) as it make your script less fragile !
2. Also checking for the existence of the Pharo.source will avoid to
   have duplicted uncessary downloaded source file version.
   (Pharo.source1, Pharo.source2):

   if test ! -e PharoV60.sources
   then
   wget http://files.pharo.org/sources/PharoV60.sources
   fi

Now the image is building, will see next.

Hilaire

--
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] Pharo for MacOs 10.6.8?

2018-03-08 Thread Esteban Lorenzano


> On 7 Mar 2018, at 22:55, Sean P. DeNigris  wrote:
> 
> EstebanLM wrote
>> get.pharo.org/30+vm http://get.pharo.org/30+vm; 
> 
> And if you prefer a GUI over the command line, Launcher automatically
> downloads images pretty far back (I just confirmed that 1.4 works on a MBP
> 2017) and matches them up to the correct VM. One caveat: if the image is
> very old (e.g. the 1.4 above), Launcher will hang when you try to run the
> DLed image with a "determining correct VM for image…" dialog. The solution
> is simple: create a `pharo.version` text file in the image folder with
> `majorVersionNumber asString, minorVersionNumber asString` (e.g. for Pharo
> 1.4 -> '14'). That will tell Launcher which VM to use. I happily use
> Launcher for all my development images. HTH

just... launcher itself will not work on those machines since is based in Pharo 
6.1 ;) 

Esteban

> 
> 
> 
> -
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>