[Pharo-users] Permancy of booklet links

2017-11-01 Thread Ben Coman
This link turned up in a google search on... Web Scraping Pharo, which is
great,

http://files.pharo.org/books-pdfs/booklet-Scraping/2017-09-29-scrapingbook.pdf
but with the date I'm wondering how permanent the link is, for if I use it
the respond to someone's question in a forum?

Will you be keeping years of pdfs?
For now I'll just use the directory url, but future missing files will
frustrate user searches.

Perhaps a sitemap is needed (though I'm not familiar with the details)...
https://support.google.com/webmasters/answer/183668?hl=en

cheers -ben


Re: [Pharo-users] Pharo: Reinventing Smalltalk

2017-11-01 Thread Andrew Glynn
There is a basic difference between debugging compiled code using debug 
symbols, debugging a live environment that’s represented as if it isn’t,  and 
debugging a live environment that’s represented as if it is. 

In general Java is represented the same way as C/C++, although Eclipse is 
somewhat better than other Java IDE’s when it comes to debugging, mainly 
because it tries to be somewhat like VisualAge for Java, which was written in 
Smalltalk.

XCode represents MacOS similarly to the way Eclipse represents Java.   
F-Script, on the other hand, allows you to debug MacOS / iOS in the same manner 
Smalltalk environments do.

But then, F-Script is Smalltalk by any other name.

From: Dimitris Chloupis
Sent: Wednesday, November 1, 2017 7:28 PM
To: Any question about pharo is welcome; henry
Subject: Re: [Pharo-users] Pharo: Reinventing Smalltalk

Should pretty standard even for Java using a debugger 

I mean I have done this with Visual Studio and its debugger with C++. It even 
allows you to inspect the machine code or see the memory in raw bits formats. 
So I find it hard to believe that Eclipse cannot do that with Java.

There is even a feature which is called watching a variable that pops the 
debugger only when a specific variable changes value. The functionality is 
there , the terminology is different. 

On Thu, 2 Nov 2017 at 01:12, henry  wrote:
I am only familiar with Eclipse, not other Java development environments. In 
comparison, what is lacking in the land of Java, which is so powerful in 
Pharo/Squeak/Smalltalk is the ability to inspect the object resulting from some 
highlighted code. As a developer, Smalltalk wins on inspectability.

- HH


On Wed, Nov 1, 2017 at 17:47, Dimitris Chloupis  wrote:
Well I rather not reply because I am a huge hater of multi window GUIs . Thank 
god Pharo is not. 

Seriously how on earth someone can find convenient multiple windows is beyond 
my understanding . It was a terrible idea in 90s , it’s still a terrible idea. 
On Wed, 1 Nov 2017 at 23:05, horrido  wrote: 
FYI, reader comments to my interview with Stef: 
https://www.reddit.com/r/programming/comments/7a30vx/pharo_reinventing_smalltalk/
 

If you can respond, that would be great. 



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



Re: [Pharo-users] Pharo: Reinventing Smalltalk

2017-11-01 Thread Andrew Glynn
How many development environments use single document windows?  Off the top of 
my head, Dolphin and … er, Dolphin.  That the person thinks it’s supposed to be 
an end user application says it al, really.

I don’t hate SDI’s. they work ok for word processors.

From: Dimitris Chloupis
Sent: Wednesday, November 1, 2017 5:48 PM
To: Any question about pharo is welcome
Subject: Re: [Pharo-users] Pharo: Reinventing Smalltalk

Well I rather not reply because I am a huge hater of multi window GUIs . Thank 
god Pharo is not. 

Seriously how on earth someone can find convenient multiple windows is beyond 
my understanding . It was a terrible idea in 90s , it’s still a terrible idea. 
On Wed, 1 Nov 2017 at 23:05, horrido  wrote:
FYI, reader comments to my interview with Stef:
https://www.reddit.com/r/programming/comments/7a30vx/pharo_reinventing_smalltalk/

If you can respond, that would be great.



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



Re: [Pharo-users] Writing "powerpoint" like presentations in Pharo?

2017-11-01 Thread Dimitris Chloupis
Well if you have a specific template in mind then you can use Pillar and
input the final results as images back to Morphic.

Creating a full PowerPoint implementation with Morphic sounds an overkill
to me. Why waste all this time when there so many great external solutions
?

Or you even bypass Pillar and go straight to a PowerPoint app, export to
jpgs and import to Morphic. Definetly not more than 2 hours work. If you
love open source LibreOffice has an excellent presentation app

https://www.libreoffice.org/discover/impress/


On Thu, 2 Nov 2017 at 01:23, Tim Mackinnon  wrote:

> Yes I was thinking of something like the morphic approach with a palette
> for adding buttons, text, images (maybe someone has done a simple vector
> paint app - didn't think to check).
>
> Of course it quickly gets annoying without a simple template mechanism to
> have a consistent header/footer - and you also need to try it on a
> projector and make sure it actually looks right... and so it will take
> longer than a few hours is my fear (my morphic is a bit rusty too).
>
> Not a horrible amount of work - but I actually need to create my slides
> and demo so may be a longer term project unless someone has already done it.
>
> Tim
>
> Sent from my iPhone
>
> On 1 Nov 2017, at 20:57, Dimitris Chloupis  wrote:
>
> Well technically this is easy to do with Morphic. Probably Spec 2. Doing
> it from inside the Pharo window will give you the ability to demonstrate
> live code and Morphic is live code.
>
> If you don’t want to do everything with Morphic you can create this in any
> app of your choosing , export to images and have Morphic load those images.
> I don’t see why this would take more than a couple of hours to prepare ,
> the actual Morphic code should not take more than 20 minutes.
>
> It a simple case of a SystemWindowMorph embedding a couple of button morph
> (for going forward and backward) and an ImageMorph. Plus a timer if you
> want the slides to proceed automatically.
>
> If you feel adventurous you can do this entirely on Morphic , again should
> not take you more than two hours total together with content creation.
> TextMorph should be more than enough.
>
> I would have said use Pillar but in this case it’s an overkill and Pillar
> does not allow for the precise positioning of images like Morphic does.
> On Wed, 1 Nov 2017 at 20:35, Tim Mackinnon  wrote:
>
>> Hi - has anyone made anything where you can create a full screen
>> presentation in Pharo with slides with some large text, bullet points and
>> embedded pictures - but then it’s a facade that lets you evaluate items in
>> the slide or jump to any code mentioned?
>>
>> Sort of like what Alan Kay does in the eToys images?
>>
>> I need to do a presentation next week and I always loved it when I was
>> fooled into thinking I was looking at a static’ish powerpoint and then
>> suddenly realised it was a live environment.
>>
>> It doesn’t sound that hard to do something simple - but I’m not sure if I
>> can pull it off in time for my presentation. But am curious if we have
>> something.
>>
>> (For bonus points, GT-Spotter stuff would work in it over top of the
>> presentation to demonstrate simple things)
>>
>> Tim
>>
>


Re: [Pharo-users] Pharo: Reinventing Smalltalk

2017-11-01 Thread henry
Watching is one thing you can do to see the result of an expression. The issue 
is that this has to be in scope within the selected stackframe or something. I 
can never watch once that scope has gone. As a result, I have no idea if it is 
possible, but I cannot just open an inspector that sticks around as I process 
stacks in the debugger. That level of the environment being alive is just 
missing from the Java development environments. One reason is Smalltalk is 
running the image objects all the time and Java does not have an image-based 
environment. You restart the environment each time you rerun a java test case. 
It's DOA.

- HH

>  Original Message 
> Subject: Re: [Pharo-users] Pharo: Reinventing Smalltalk
> Local Time: November 1, 2017 7:27 PM
> UTC Time: November 1, 2017 11:27 PM
> From: kilon.al...@gmail.com
> To: Any question about pharo is welcome , henry 
> 
>
> Should pretty standard even for Java using a debugger
>
> I mean I have done this with Visual Studio and its debugger with C++. It even 
> allows you to inspect the machine code or see the memory in raw bits formats. 
> So I find it hard to believe that Eclipse cannot do that with Java.
>
> There is even a feature which is called watching a variable that pops the 
> debugger only when a specific variable changes value. The functionality is 
> there , the terminology is different.
>
> On Thu, 2 Nov 2017 at 01:12, henry  wrote:
>
>> I am only familiar with Eclipse, not other Java development environments. In 
>> comparison, what is lacking in the land of Java, which is so powerful in 
>> Pharo/Squeak/Smalltalk is the ability to inspect the object resulting from 
>> some highlighted code. As a developer, Smalltalk wins on inspectability.
>>
>> - HH
>>
>> On Wed, Nov 1, 2017 at 17:47, Dimitris Chloupis  
>> wrote:
>>
>>> Well I rather not reply because I am a huge hater of multi window GUIs . 
>>> Thank god Pharo is not.
>>>
>>> Seriously how on earth someone can find convenient multiple windows is 
>>> beyond my understanding . It was a terrible idea in 90s , it’s still a 
>>> terrible idea.
>>>
>>> On Wed, 1 Nov 2017 at 23:05, horrido  wrote:
>>>
 FYI, reader comments to my interview with Stef:
 https://www.reddit.com/r/programming/comments/7a30vx/pharo_reinventing_smalltalk/

 If you can respond, that would be great.

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

Re: [Pharo-users] Pharo: Reinventing Smalltalk

2017-11-01 Thread Dimitris Chloupis
Should pretty standard even for Java using a debugger

I mean I have done this with Visual Studio and its debugger with C++. It
even allows you to inspect the machine code or see the memory in raw bits
formats. So I find it hard to believe that Eclipse cannot do that with Java.

There is even a feature which is called watching a variable that pops the
debugger only when a specific variable changes value. The functionality is
there , the terminology is different.

On Thu, 2 Nov 2017 at 01:12, henry  wrote:

> I am only familiar with Eclipse, not other Java development environments.
> In comparison, what is lacking in the land of Java, which is so powerful in
> Pharo/Squeak/Smalltalk is the ability to inspect the object resulting from
> some highlighted code. As a developer, Smalltalk wins on inspectability.
>
> - HH
>
>
> On Wed, Nov 1, 2017 at 17:47, Dimitris Chloupis 
> wrote:
>
> Well I rather not reply because I am a huge hater of multi window GUIs .
> Thank god Pharo is not.
>
> Seriously how on earth someone can find convenient multiple windows is
> beyond my understanding . It was a terrible idea in 90s , it’s still a
> terrible idea.
> On Wed, 1 Nov 2017 at 23:05, horrido  wrote:
>
>> FYI, reader comments to my interview with Stef:
>>
>> https://www.reddit.com/r/programming/comments/7a30vx/pharo_reinventing_smalltalk/
>>
>> If you can respond, that would be great.
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>>


Re: [Pharo-users] Writing "powerpoint" like presentations in Pharo?

2017-11-01 Thread Tim Mackinnon
Yes I was thinking of something like the morphic approach with a palette for 
adding buttons, text, images (maybe someone has done a simple vector paint app 
- didn't think to check).

Of course it quickly gets annoying without a simple template mechanism to have 
a consistent header/footer - and you also need to try it on a projector and 
make sure it actually looks right... and so it will take longer than a few 
hours is my fear (my morphic is a bit rusty too).

Not a horrible amount of work - but I actually need to create my slides and 
demo so may be a longer term project unless someone has already done it.

Tim

Sent from my iPhone

> On 1 Nov 2017, at 20:57, Dimitris Chloupis  wrote:
> 
> Well technically this is easy to do with Morphic. Probably Spec 2. Doing it 
> from inside the Pharo window will give you the ability to demonstrate live 
> code and Morphic is live code. 
> 
> If you don’t want to do everything with Morphic you can create this in any 
> app of your choosing , export to images and have Morphic load those images. I 
> don’t see why this would take more than a couple of hours to prepare , the 
> actual Morphic code should not take more than 20 minutes. 
> 
> It a simple case of a SystemWindowMorph embedding a couple of button morph 
> (for going forward and backward) and an ImageMorph. Plus a timer if you want 
> the slides to proceed automatically. 
> 
> If you feel adventurous you can do this entirely on Morphic , again should 
> not take you more than two hours total together with content creation. 
> TextMorph should be more than enough.
> 
> I would have said use Pillar but in this case it’s an overkill and Pillar 
> does not allow for the precise positioning of images like Morphic does. 
>> On Wed, 1 Nov 2017 at 20:35, Tim Mackinnon  wrote:
>> Hi - has anyone made anything where you can create a full screen 
>> presentation in Pharo with slides with some large text, bullet points and 
>> embedded pictures - but then it’s a facade that lets you evaluate items in 
>> the slide or jump to any code mentioned?
>> 
>> Sort of like what Alan Kay does in the eToys images?
>> 
>> I need to do a presentation next week and I always loved it when I was 
>> fooled into thinking I was looking at a static’ish powerpoint and then 
>> suddenly realised it was a live environment.
>> 
>> It doesn’t sound that hard to do something simple - but I’m not sure if I 
>> can pull it off in time for my presentation. But am curious if we have 
>> something.
>> 
>> (For bonus points, GT-Spotter stuff would work in it over top of the 
>> presentation to demonstrate simple things)
>> 
>> Tim


Re: [Pharo-users] Pharo: Reinventing Smalltalk

2017-11-01 Thread henry
I am only familiar with Eclipse, not other Java development environments. In 
comparison, what is lacking in the land of Java, which is so powerful in 
Pharo/Squeak/Smalltalk is the ability to inspect the object resulting from some 
highlighted code. As a developer, Smalltalk wins on inspectability.

- HH

On Wed, Nov 1, 2017 at 17:47, Dimitris Chloupis  wrote:

> Well I rather not reply because I am a huge hater of multi window GUIs . 
> Thank god Pharo is not.
>
> Seriously how on earth someone can find convenient multiple windows is beyond 
> my understanding . It was a terrible idea in 90s , it’s still a terrible idea.
>
> On Wed, 1 Nov 2017 at 23:05, horrido  wrote:
>
>> FYI, reader comments to my interview with Stef:
>> https://www.reddit.com/r/programming/comments/7a30vx/pharo_reinventing_smalltalk/
>>
>> If you can respond, that would be great.
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] LiteratureResearcher - where graphs, PDFs, and BibTex happily live together

2017-11-01 Thread Bernardo Ezequiel Contreras
really nice! ted nelson talks about something like that in his xanadu
project.

On Wed, Nov 1, 2017 at 6:16 PM, Manuel Leuenberger  wrote:

> Hi everyone,
>
> I was experimenting in the last few weeks with my take on literature
> research. For me, the corpus of scientific papers form an interconnected
> graph, not those plain lists and tables we keep in our bibliographies. So,
> here is the first prototype that has Google Scholar integration for search,
> can fetch PDFs from IEEE and ACM, extracts metadata from PDFs - all this
> results in hyperlinked PDFs!
>
> See a demo here: https://youtu.be/EcK3Pt_WnEw
> Also slides from the SCG seminar here: http://scg.unibe.ch/
> download/softwarecomposition/2017-10-31-Leuenberger-ILE.pdf
>
> I plan on packaging it, so that those who are interested can check it out
> themselves (help wanted!). Currently, it only works on macOS.
>
> What do you think of my approach? Which use cases should be added?
>
> Cheers,
> Manuel
>
>


-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


Re: [Pharo-users] Pharo: Reinventing Smalltalk

2017-11-01 Thread Dimitris Chloupis
Well I rather not reply because I am a huge hater of multi window GUIs .
Thank god Pharo is not.

Seriously how on earth someone can find convenient multiple windows is
beyond my understanding . It was a terrible idea in 90s , it’s still a
terrible idea.
On Wed, 1 Nov 2017 at 23:05, horrido  wrote:

> FYI, reader comments to my interview with Stef:
>
> https://www.reddit.com/r/programming/comments/7a30vx/pharo_reinventing_smalltalk/
>
> If you can respond, that would be great.
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>


Re: [Pharo-users] LiteratureResearcher - where graphs, PDFs, and BibTex happily live together

2017-11-01 Thread Dimitris Chloupis
Super cool more detailed recommendations when I try it on practice

A cheap pdf viewer in Pharo would be to turn pdf pages to JPG images which
you can load via image morph so you won’t have to have two separate
windows. There are ton of converters out there that can do this.
On Wed, 1 Nov 2017 at 23:17, Manuel Leuenberger 
wrote:

> Hi everyone,
>
> I was experimenting in the last few weeks with my take on literature
> research. For me, the corpus of scientific papers form an interconnected
> graph, not those plain lists and tables we keep in our bibliographies. So,
> here is the first prototype that has Google Scholar integration for search,
> can fetch PDFs from IEEE and ACM, extracts metadata from PDFs - all this
> results in hyperlinked PDFs!
>
> See a demo here: https://youtu.be/EcK3Pt_WnEw
> Also slides from the SCG seminar here:
> http://scg.unibe.ch/download/softwarecomposition/2017-10-31-Leuenberger-ILE.pdf
>
> I plan on packaging it, so that those who are interested can check it out
> themselves (help wanted!). Currently, it only works on macOS.
>
> What do you think of my approach? Which use cases should be added?
>
> Cheers,
> Manuel
>
>


[Pharo-users] LiteratureResearcher - where graphs, PDFs, and BibTex happily live together

2017-11-01 Thread Manuel Leuenberger
Hi everyone,

I was experimenting in the last few weeks with my take on literature research. 
For me, the corpus of scientific papers form an interconnected graph, not those 
plain lists and tables we keep in our bibliographies. So, here is the first 
prototype that has Google Scholar integration for search, can fetch PDFs from 
IEEE and ACM, extracts metadata from PDFs - all this results in hyperlinked 
PDFs!

See a demo here: https://youtu.be/EcK3Pt_WnEw 
Also slides from the SCG seminar here: 
http://scg.unibe.ch/download/softwarecomposition/2017-10-31-Leuenberger-ILE.pdf 


I plan on packaging it, so that those who are interested can check it out 
themselves (help wanted!). Currently, it only works on macOS.

What do you think of my approach? Which use cases should be added?

Cheers,
Manuel



[Pharo-users] Pharo: Reinventing Smalltalk

2017-11-01 Thread horrido
FYI, reader comments to my interview with Stef:
https://www.reddit.com/r/programming/comments/7a30vx/pharo_reinventing_smalltalk/

If you can respond, that would be great.



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



Re: [Pharo-users] New Pharo Booklet

2017-11-01 Thread Dimitris Chloupis
Pillar supports embedding LaTex and HTML inside your pillar files so
whatever works for those should work for Pillar. Pillar also has templates
you can modify via moustache. Pillar is actually so flexible I used as a
static website generator utilizing moustache and bootstrap and worked like
a charm. It’s syntax is just the tip of the iceberg.

On Wed, 1 Nov 2017 at 06:39, Hernán Morales Durand 
wrote:

> Thank you Stef!
>
> I wrote documentation for my packages in Markdown + pandoc + LaTeX.
>
> The TeX macros contains syntax colorization for Smalltalk code which
> can be easily added to Pillar (I suppose)
> Would you consider adding the syntax coloring from the TeX macros I sent
> to you?
>
> I have some silly questions about Pillar:
>
> The documents can be integrated with toc through pandoc, can this be
> done in Pillar?
> For tables I use tabu, longtable, booktabs, what to use in Pillar?
> For multiple language suppor I use fontspec and lmodern, what to use in
> Pillar?
> For link I use hyperref, what to use in Pillar?
>
> I have some chapters ready and I would love to be published in a book,
> under the umbrella of Pharo Books:
>
> https://github.com/hernanmd/Territorial/raw/master/Territorial.pdf
> http://biosmalltalk.github.io/web/doc/BioSmalltalk-1.0.pdf
>
> https://github.com/PhyloclassTalk/phyloclasstalk.github.io/raw/master/doc/PhyloclassTalk-1.0.pdf
>
> What do you think?
>
> Cheers
>
> Hernán
>
>
> 2017-10-29 17:53 GMT-03:00 Stephane Ducasse :
> > Hi guys
> >
> > I just published a new little booklet on Pharo tips and tricks!
> > Available at: http://books.pharo.org
> >
> > Feedback and contributions are welcome as usual.
> >
> > Stef
> >
>
>


Re: [Pharo-users] Writing "powerpoint" like presentations in Pharo?

2017-11-01 Thread Dimitris Chloupis
Oh there is also the possibility this is already available via GTInspector,
last time I checked I remember it having a slideshow preview of images
collection and it embeds a workspace as well. So maybe you already have
what you need.
On Wed, 1 Nov 2017 at 22:57, Dimitris Chloupis 
wrote:

> Well technically this is easy to do with Morphic. Probably Spec 2. Doing
> it from inside the Pharo window will give you the ability to demonstrate
> live code and Morphic is live code.
>
> If you don’t want to do everything with Morphic you can create this in any
> app of your choosing , export to images and have Morphic load those images.
> I don’t see why this would take more than a couple of hours to prepare ,
> the actual Morphic code should not take more than 20 minutes.
>
> It a simple case of a SystemWindowMorph embedding a couple of button morph
> (for going forward and backward) and an ImageMorph. Plus a timer if you
> want the slides to proceed automatically.
>
> If you feel adventurous you can do this entirely on Morphic , again should
> not take you more than two hours total together with content creation.
> TextMorph should be more than enough.
>
> I would have said use Pillar but in this case it’s an overkill and Pillar
> does not allow for the precise positioning of images like Morphic does.
> On Wed, 1 Nov 2017 at 20:35, Tim Mackinnon  wrote:
>
>> Hi - has anyone made anything where you can create a full screen
>> presentation in Pharo with slides with some large text, bullet points and
>> embedded pictures - but then it’s a facade that lets you evaluate items in
>> the slide or jump to any code mentioned?
>>
>> Sort of like what Alan Kay does in the eToys images?
>>
>> I need to do a presentation next week and I always loved it when I was
>> fooled into thinking I was looking at a static’ish powerpoint and then
>> suddenly realised it was a live environment.
>>
>> It doesn’t sound that hard to do something simple - but I’m not sure if I
>> can pull it off in time for my presentation. But am curious if we have
>> something.
>>
>> (For bonus points, GT-Spotter stuff would work in it over top of the
>> presentation to demonstrate simple things)
>>
>> Tim
>>
>


Re: [Pharo-users] Writing "powerpoint" like presentations in Pharo?

2017-11-01 Thread Dimitris Chloupis
Well technically this is easy to do with Morphic. Probably Spec 2. Doing it
from inside the Pharo window will give you the ability to demonstrate live
code and Morphic is live code.

If you don’t want to do everything with Morphic you can create this in any
app of your choosing , export to images and have Morphic load those images.
I don’t see why this would take more than a couple of hours to prepare ,
the actual Morphic code should not take more than 20 minutes.

It a simple case of a SystemWindowMorph embedding a couple of button morph
(for going forward and backward) and an ImageMorph. Plus a timer if you
want the slides to proceed automatically.

If you feel adventurous you can do this entirely on Morphic , again should
not take you more than two hours total together with content creation.
TextMorph should be more than enough.

I would have said use Pillar but in this case it’s an overkill and Pillar
does not allow for the precise positioning of images like Morphic does.
On Wed, 1 Nov 2017 at 20:35, Tim Mackinnon  wrote:

> Hi - has anyone made anything where you can create a full screen
> presentation in Pharo with slides with some large text, bullet points and
> embedded pictures - but then it’s a facade that lets you evaluate items in
> the slide or jump to any code mentioned?
>
> Sort of like what Alan Kay does in the eToys images?
>
> I need to do a presentation next week and I always loved it when I was
> fooled into thinking I was looking at a static’ish powerpoint and then
> suddenly realised it was a live environment.
>
> It doesn’t sound that hard to do something simple - but I’m not sure if I
> can pull it off in time for my presentation. But am curious if we have
> something.
>
> (For bonus points, GT-Spotter stuff would work in it over top of the
> presentation to demonstrate simple things)
>
> Tim
>


Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-11-01 Thread Herby Vojčík

Herby Vojčík wrote:

Not as easy as it seems, ran this on docker image herbysk/pharo:64_61

61_64, of course.



Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-11-01 Thread Herby Vojčík

Esteban Lorenzano wrote:

Hi,

I don’t know if is useful in your case, but you made me remember I made
a small tool to trap unix signals within Pharo. I uploaded then to github.

https://github.com/estebanlm/pharo-posix-signal

is very easy to use and it will allow you to trap any signal and do what
you want ;)


Not as easy as it seems, ran this on docker image herbysk/pharo:64_61 
(based on the one from that day Iceberg was backported):




root@2367caef3dac:/# cat s.st
| trap |
Iceberg enableMetacelloIntegration: true; remoteTypeSelector: #httpsUrl.
Metacello new
  repository: 'github://estebanlm/pharo-posix-signal/src';
  baseline: 'POSIXSignal';
  load.
trap := POSIXSignal SIGINT. trap installWith: [ :signal |  'Trapped!!' 
crLog ].
trap := POSIXSignal SIGTERM. trap installWith: [ :signal |  'TERM!!' 
crLog ].

root@2367caef3dac:/# pharo /opt/pharo/Pharo.image ${PWD}/s.st --no-quit
pthread_setschedparam failed: Operation not permitted
This VM uses a separate heartbeat thread to update its internal clock
and handle events.  For best operation, this thread should run at a
higher priority, however the VM was unable to change the priority.  The
effect is that heavily loaded systems may experience some latency
issues.  If this occurs, please create the appropriate configuration
file in /etc/security/limits.d/ as shown below:

cat >DoIt (POSIXSignal is Undeclared)

UndefinedObject>>DoIt (POSIXSignal is Undeclared)

Fetched -> BaselineOfPOSIXSignal-GitHub.1509525907 --- 
https://github.com/estebanlm/pharo-posix-signal.git[master] --- 
/opt/pharo/pharo-local/iceberg/estebanlm/pharo-posi

x-signal/src (Libgit)
Loaded -> BaselineOfPOSIXSignal-GitHub.1509525907 --- 
https://github.com/estebanlm/pharo-posix-signal.git[master] --- 
/opt/pharo/pharo-local/iceberg/estebanlm/pharo-posix

-signal/src (Libgit)
Loading baseline of BaselineOfPOSIXSignal...
Fetched -> POSIXSignal-GitHub.1509525907 --- 
https://github.com/estebanlm/pharo-posix-signal.git[master] --- 
/opt/pharo/pharo-local/iceberg/estebanlm/pharo-posix-signal/s

rc (Libgit)
Loaded -> POSIXSignal-GitHub.1509525907 --- 
https://github.com/estebanlm/pharo-posix-signal.git[master] --- cache

finished baseline^C
Segmentation fault Wed Nov  1 19:03:27 2017


/opt/pharo/pharo-vm/lib/pharo/5.0-201707201942/pharo
Pharo VM version: 5.0-201707201942  Thu Jul 20 20:40:54 UTC 2017 gcc 
4.6.3 [Production Spur 64-bit VM]
Built from: CoInterpreter VMMaker.oscog-eem.2254 uuid: 
4f2c2cce-f4a2-469a-93f1-97ed941df0ad Jul 20 2017
With: StackToRegisterMappingCogit VMMaker.oscog-eem.2252 uuid: 
2f3e9b0e-ecd3-4adf-b092-cce2e2587a5c Jul 20 2017
Revision: VM: 201707201942 
https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Thu Jul 20 
12:42:21 2017 -0700 $ Plugins: 201707201942 https://github.com/OpenSma

lltalk/opensmalltalk-vm.git $
Build host: Linux testing-gce-74d10329-bbfd-42e5-8995-b0e3a68c73cb 
3.13.0-115-generic #162~precise1-Ubuntu SMP Fri Mar 24 16:47:06 UTC 2017 
x86_64 x86_64 x86_64 GNU/Linux
plugin path: /opt/pharo/pharo-vm/lib/pharo/5.0-201707201942 [default: 
/opt/pharo/pharo-vm/lib/pharo/5.0-201707201942/]



C stack backtrace & registers:
rax 0x2c1da080 rbx 0x2c1d9f10 rcx 0x2c1da138 rdx 0x2c1d9fc8
rdi 0x2c1d9ce8 rsi 0x2c1d9ce8 rbp 0x2c1d9e58 rsp 0x2c1da1f0
r8  0x2c1d9728 r9  0x2c1d97e0 r10 0x2c1d9898 r11 0x2c1d9950
r12 0x2c1d9a08 r13 0x2c1d9ac0 r14 0x2c1d9b78 r15 0x2c1d9c30
rip 0x2c1da2a8
*[0x7ffc2c1da2a8]
/opt/pharo/pharo-vm/lib/pharo/5.0-201707201942/pharo[0x41ccd1]
/opt/pharo/pharo-vm/lib/pharo/5.0-201707201942/pharo[0x41d05f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f155abba390]
[0x7f155b151000]
[0x0]


Smalltalk stack dump:
0x7ffc2c1de400 M ProcessorScheduler class>idleProcess 0x2f982d8: 
a(n) ProcessorScheduler class
0x7ffc2c1de440 I [] in ProcessorScheduler class>startUp 0x2f982d8: 
a(n) ProcessorScheduler class
0x7ffc2c1de480 I [] in BlockClosure>newProcess 0x60396e8: a(n) 
BlockClosure


Most recent primitives
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
relinquishProcessorForMicroseconds:
primUTCMicrosecondsClock
signal
primSignal:atUTCMicroseconds:
wait
millisecondClockValue
millisecondClockValue
tempAt:
tempAt:put:
tempAt:
terminateTo:
findNextUnwindContextUp

Re: [Pharo-users] New Pharo Booklet

2017-11-01 Thread Hernán Morales Durand
Hi Stef,

2017-11-01 8:11 GMT-03:00 Stephane Ducasse :
>> I wrote documentation for my packages in Markdown + pandoc + LaTeX.
>>
>> The TeX macros contains syntax colorization for Smalltalk code which
>> can be easily added to Pillar (I suppose)
>> Would you consider adding the syntax coloring from the TeX macros I sent to 
>> you?
>
> Sure now I'm not a latex expert and I want to keep dependencies to a minimum

Yes, LaTeX is complicated and ugly.

> What you can do is
>
>>
>> I have some silly questions about Pillar:
>>
>> The documents can be integrated with toc through pandoc, can this be
>> done in Pillar?
>
> I do not understand what you mean here.
>

When creating PDF document with pandoc command line I use the
parameter "--toc" to automatically create Table of Contents from the
document titles and subtitles. For example from command line:

pandoc --toc --latex-engine=xelatex --listings -H macros.tex
BioSmalltalk.md -s -o BioSmalltalk.pdf

I don't know if "toc" is supported in Pillar. As I understand a Pillar
book can contain multiple chapters, but a chapter may include a table
of contents on its own?

>> For tables I use tabu, longtable, booktabs, what to use in Pillar?
> In pillar you have
>
> | a column | a column |
>

Ok, what I mean is for example with the "longtabu" LaTeX package I can
specify column width individually:

\begin{longtabu} to \linewidth{X[1.5,l,m] X[.3,m] X[.3,m] X[.5,m]
X[c,m] X[c,m] X[c,m]}

And many other table spacing properties :
https://en.wikibooks.org/wiki/LaTeX/Tables

I guess to add more advanced features one should edit Pillar templates
with archetype?

>> For multiple language suppor I use fontspec and lmodern, what to use in 
>> Pillar?
>
> I do not know that. And what are the use. In pillar we have utf-8
>
>> For link I use hyperref, what to use in Pillar?
>
> * *
>

I would love to have linkcolor, anchorcolor, citecolor, etc :)

What I found is
https://github.com/pillar-markup/Pillar-Archetype/blob/master/book/support/latex/common.tex

So I could inject my own LaTeX styles/commands/sections in common.tex?
Or should I go through PRLaTeXWriter?

Then if you like it you may integrate into Pillar in the future?

>> I have some chapters ready and I would love to be published in a book,
>> under the umbrella of Pharo Books:
>>
>> https://github.com/hernanmd/Territorial/raw/master/Territorial.pdf
>> http://biosmalltalk.github.io/web/doc/BioSmalltalk-1.0.pdf
>> https://github.com/PhyloclassTalk/phyloclasstalk.github.io/raw/master/doc/PhyloclassTalk-1.0.pdf
>>
>> What do you think?
>
> Good!
> now I would start simple in plain pillar and avoid as much as possible
> to use specific latex function
> and see if this is really a problem and then we can see if we need to
> extend the latex template or pillar.
>
> Pillar is not latex. We want to keep agnostic about latex.
>
>

Thanks for your comments Stef.

Cheers,

Hernán
>>
>> Cheers
>>
>> Hernán
>>
>>
>> 2017-10-29 17:53 GMT-03:00 Stephane Ducasse :
>>> Hi guys
>>>
>>> I just published a new little booklet on Pharo tips and tricks!
>>> Available at: http://books.pharo.org
>>>
>>> Feedback and contributions are welcome as usual.
>>>
>>> Stef
>>>
>>
>



[Pharo-users] Writing "powerpoint" like presentations in Pharo?

2017-11-01 Thread Tim Mackinnon
Hi - has anyone made anything where you can create a full screen presentation 
in Pharo with slides with some large text, bullet points and embedded pictures 
- but then it’s a facade that lets you evaluate items in the slide or jump to 
any code mentioned?

Sort of like what Alan Kay does in the eToys images?

I need to do a presentation next week and I always loved it when I was fooled 
into thinking I was looking at a static’ish powerpoint and then suddenly 
realised it was a live environment.

It doesn’t sound that hard to do something simple - but I’m not sure if I can 
pull it off in time for my presentation. But am curious if we have something.

(For bonus points, GT-Spotter stuff would work in it over top of the 
presentation to demonstrate simple things)

Tim


Re: [Pharo-users] New Pharo Booklet

2017-11-01 Thread Renaud de Villemeur
Hi Stephane

Your booklet is very usefull, and show stuff that can only be done by code.

However, in your example, you show how to change syntax style, or enable
freetype, which can also be done using the setting framework, so I was
wondering, how would you position Startup Loader with the settings
framework ?

Next, you always use StartupLoader. In my recent Pharo 6.1 image, this
seems to be replaced by class  StartupPreferencesLoader. Not a big deal, I
was able to find the correct class through the message, but quite confusing
if you only read the booklet.

I tend to use raw image, and load everything from scratch, instead of
keeping multiple image around. So I try to clean things, or put things
automatically at startup

How to remove automatically at startup the welcome windows (probably
specific to Pharo 6)
World submorphs
  select: [ :sm | sm isSystemWindow and: [ sm label = ((Character value: 0)
asString, 'Welcome')]]
  thenDo: [ :window | window delete ].
]

Open browser automatically on package specific to my (little) projects
|browser|
browser := Smalltalk tools openClassBrowser.
browser open.
browser ui packageSearchUpdate: 'MyPack'

Cheers
Renaud


2017-10-29 16:53 GMT-04:00 Stephane Ducasse :

> Hi guys
>
> I just published a new little booklet on Pharo tips and tricks!
> Available at: http://books.pharo.org
>
> Feedback and contributions are welcome as usual.
>
> Stef
>
>


Re: [Pharo-users] FYI about Pharo MOOC

2017-11-01 Thread Sanjay Minni
The voice in the background behaved differetly with different players on
windows 10
- in "Films and TV"  and "VLC player" it comes unltil you manually switch
the audio channel (it shows 2 audio channels)
- In Media player it works fine though i could not find 2 audio channels

---
Sanjay Minni

On Fri, Oct 13, 2017 at 6:12 PM, Ben Coman  wrote:

> I played C019SD-W1-S1-EN-V1.mp4
> and as well as the english voice, in the background I can still hear your
> original french voice.
> I'm curious the reasoning for this.
>
> cheers -ben
>
>
> On Fri, Oct 13, 2017 at 3:59 AM, Stephane Ducasse  > wrote:
>
>> I'm about to release the en versions.
>> you can find them unofficially on http://www.stephaneducasse.eu/MOOC/
>>
>> Stef
>>
>> On Tue, Oct 10, 2017 at 10:10 PM, Gour  wrote:
>> > On Tue, 10 Oct 2017 21:31:55 +0200
>> > Stephane Ducasse
>> >  wrote:
>> >
>> > Hello Stef,
>> >
>> >> I will ask one guy thursday and let you know.
>> >
>> > Thanks a lot!
>> >
>> >> We will release Mooc with english voices (not mine else english
>> >> natives would get an heart attack - I have what they call a sexy
>> >> french accents ;)
>> >
>> > I did watch few of your Pharo-related presentations and, although not
>> native,
>> > happily survived. :-)
>> >
>> > Moreover, I'd say that your English is charming! At least, one is sure
>> that the
>> > real human is speaking and not some "robot" put on auto-pilot, so if
>> the new
>> > Mooc is going to be the same as the  current/old one, I'd prefer to
>> download
>> > the current files and watched them along with *.srt subtitles?
>> >
>> > Iow. my point is that the accent is just one part of the talk/teaching,
>> but the
>> > energy behind it is much more imporant - this is, my conviction, based
>> on my
>> > own teaching experiences.
>> >
>> >
>> > Sincerely,
>> > Gour
>> >
>> > --
>> > From anger, complete delusion arises, and from delusion
>> > bewilderment of memory. When memory is bewildered,
>> > intelligence is lost, and when intelligence is lost
>> > one falls down again into the material pool.
>> >
>> >
>> >
>>
>>
>


Re: [Pharo-users] FYI about Pharo MOOC

2017-11-01 Thread Sanjay Minni
There seems to be an issue with the english dubbed version of Week 5 lesson
4 - it has no content
C019SD-W5-S4-EN-V1.mp4

---
Sanjay Minni

On Fri, Oct 13, 2017 at 1:29 AM, Stephane Ducasse 
wrote:

> I'm about to release the en versions.
> you can find them unofficially on http://www.stephaneducasse.eu/MOOC/
>
> Stef
>
> On Tue, Oct 10, 2017 at 10:10 PM, Gour  wrote:
> > On Tue, 10 Oct 2017 21:31:55 +0200
> > Stephane Ducasse
> >  wrote:
> >
> > Hello Stef,
> >
> >> I will ask one guy thursday and let you know.
> >
> > Thanks a lot!
> >
> >> We will release Mooc with english voices (not mine else english
> >> natives would get an heart attack - I have what they call a sexy
> >> french accents ;)
> >
> > I did watch few of your Pharo-related presentations and, although not
> native,
> > happily survived. :-)
> >
> > Moreover, I'd say that your English is charming! At least, one is sure
> that the
> > real human is speaking and not some "robot" put on auto-pilot, so if the
> new
> > Mooc is going to be the same as the  current/old one, I'd prefer to
> download
> > the current files and watched them along with *.srt subtitles?
> >
> > Iow. my point is that the accent is just one part of the talk/teaching,
> but the
> > energy behind it is much more imporant - this is, my conviction, based
> on my
> > own teaching experiences.
> >
> >
> > Sincerely,
> > Gour
> >
> > --
> > From anger, complete delusion arises, and from delusion
> > bewilderment of memory. When memory is bewildered,
> > intelligence is lost, and when intelligence is lost
> > one falls down again into the material pool.
> >
> >
> >
>
>


Re: [Pharo-users] New Pharo Booklet

2017-11-01 Thread Stephane Ducasse
> I wrote documentation for my packages in Markdown + pandoc + LaTeX.
>
> The TeX macros contains syntax colorization for Smalltalk code which
> can be easily added to Pillar (I suppose)
> Would you consider adding the syntax coloring from the TeX macros I sent to 
> you?

Sure now I'm not a latex expert and I want to keep dependencies to a minimum
What you can do is

>
> I have some silly questions about Pillar:
>
> The documents can be integrated with toc through pandoc, can this be
> done in Pillar?

I do not understand what you mean here.

> For tables I use tabu, longtable, booktabs, what to use in Pillar?
In pillar you have

| a column | a column |

> For multiple language suppor I use fontspec and lmodern, what to use in 
> Pillar?

I do not know that. And what are the use. In pillar we have utf-8

> For link I use hyperref, what to use in Pillar?

* *

> I have some chapters ready and I would love to be published in a book,
> under the umbrella of Pharo Books:
>
> https://github.com/hernanmd/Territorial/raw/master/Territorial.pdf
> http://biosmalltalk.github.io/web/doc/BioSmalltalk-1.0.pdf
> https://github.com/PhyloclassTalk/phyloclasstalk.github.io/raw/master/doc/PhyloclassTalk-1.0.pdf
>
> What do you think?

Good!
now I would start simple in plain pillar and avoid as much as possible
to use specific latex function
and see if this is really a problem and then we can see if we need to
extend the latex template or pillar.

Pillar is not latex. We want to keep agnostic about latex.



>
> Cheers
>
> Hernán
>
>
> 2017-10-29 17:53 GMT-03:00 Stephane Ducasse :
>> Hi guys
>>
>> I just published a new little booklet on Pharo tips and tricks!
>> Available at: http://books.pharo.org
>>
>> Feedback and contributions are welcome as usual.
>>
>> Stef
>>
>



Re: [Pharo-users] potentially useful diagrams

2017-11-01 Thread Stephane Ducasse
Thx I will add numbers

On Wed, Nov 1, 2017 at 11:40 AM, Norbert Hartl  wrote:
> I agree with Hernan. If it is a flow of work the sequencing of steps is 
> needed. I didn‘t know where to start
>
> Norbert
>
>> Am 01.11.2017 um 05:20 schrieb Hernán Morales Durand 
>> :
>>
>> Hi Steph,
>>
>> The diagram looks cool.
>> But may I give some positive suggestions?
>>
>> The goal of each diagram is not clear for me, is to understand the
>> connection of tools? or a how to configure github in Pharo?
>> Maybe it could be added into the diagram as a Title.
>>
>> So, what's the purpose of the diagram/workflow?
>> Where I should start?
>> Maybe adding some task ordering with numbers. 1. 2. 3 .4
>>
>> When I should "apply" the workflow?
>> I mean: When saving changes? When cloning a repository?
>> cloning+modification+publishing? etc
>>
>> I know a diagram/tools which explains very well the git nightmare:
>>
>> http://www.ndpsoftware.com/git-cheatsheet.html#loc=local_repo
>>
>> which could give some nice ideas.
>>
>> Cheers,
>>
>> Hernán
>>
>> 2017-10-31 12:36 GMT-03:00 Stephane Ducasse :
>>> Hi
>>>
>>> during the last sprint we were brainstorming how we can help people to
>>> understand the git hub setup.
>>> I produced these two diagrams with christophe.
>>>
>>> Are they useful for you?
>>>
>>> Stef
>



Re: [Pharo-users] potentially useful diagrams

2017-11-01 Thread Norbert Hartl
I agree with Hernan. If it is a flow of work the sequencing of steps is needed. 
I didn‘t know where to start

Norbert

> Am 01.11.2017 um 05:20 schrieb Hernán Morales Durand 
> :
> 
> Hi Steph,
> 
> The diagram looks cool.
> But may I give some positive suggestions?
> 
> The goal of each diagram is not clear for me, is to understand the
> connection of tools? or a how to configure github in Pharo?
> Maybe it could be added into the diagram as a Title.
> 
> So, what's the purpose of the diagram/workflow?
> Where I should start?
> Maybe adding some task ordering with numbers. 1. 2. 3 .4
> 
> When I should "apply" the workflow?
> I mean: When saving changes? When cloning a repository?
> cloning+modification+publishing? etc
> 
> I know a diagram/tools which explains very well the git nightmare:
> 
> http://www.ndpsoftware.com/git-cheatsheet.html#loc=local_repo
> 
> which could give some nice ideas.
> 
> Cheers,
> 
> Hernán
> 
> 2017-10-31 12:36 GMT-03:00 Stephane Ducasse :
>> Hi
>> 
>> during the last sprint we were brainstorming how we can help people to
>> understand the git hub setup.
>> I produced these two diagrams with christophe.
>> 
>> Are they useful for you?
>> 
>> Stef



Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-11-01 Thread Esteban Lorenzano
heh, I made a mistake in the README.md (fixed now)
Correct install is: 

Metacello new 
  repository: 'github://estebanlm/pharo-posix-signal/src';
  baseline: 'POSIXSignal';
  load.

Esteban

> On 1 Nov 2017, at 00:56, Herby Vojčík  wrote:
> 
> Esteban Lorenzano wrote:
>> Hi,
>> 
>> I don’t know if is useful in your case, but you made me remember I made
>> a small tool to trap unix signals within Pharo. I uploaded then to github.
>> 
>> https://github.com/estebanlm/pharo-posix-signal
> 
> Cannot load it.
> 
> See attachment.
> 
> Tried the on the current Pharo6.1-win.
> 
> Herby
>