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

2018-02-19 Thread Guillermo Polito
On Sun, Feb 18, 2018 at 9:01 PM, Stephane Ducasse 
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] Pharo and Moose lectures in Serbia

2018-02-19 Thread Tudor Girba
Excellent!

Doru

> On Feb 18, 2018, at 9:26 PM, Stephane Ducasse  wrote:
> 
> Hi
> 
> just a little mail to announce that next week I will give some
> lectures at the University of Novi sad on Pharo and Moose.
> I hope that we will have some serbian pharoers soon.
> 
> Stef
> 

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

"Being happy is a matter of choice."







[Pharo-users] [JOB][Research] 3 Year Advanced Research Position

2018-02-19 Thread Marcus Denker
Inria opended a call for experienced researchers. This is a three year 
contract, with in total 8 research positions.

REQUIREMENTS

- Have a French doctorate or an equivalent international degree
- Be able to prove at least eight years of research and/or 
post-doctoral academic or industrial experience;
- No age or nationality conditions.
- Deadline: April 3rd, 2018

Before writing their research program, the applicants are strongly encouraged 
to contact the teams 
or project(s)-teams leaders concerned by their applications. More information 
on the official website:
https://www.inria.fr/en/institute/recruitment/offers/advanced-research-positions/presentation

MISSION

Join one of our two lines of research: Tools for Software Maintenance or New 
Programming 
Language Constructs for Software Evolution.

THE REGION

Lille is strategically located in Northern Europe with train connections to 
Paris (1h), London (1h30)
 and Brussels (30 min.) The Nord Pas de Calais region is a dynamic area in both 
industry and research
 for computer science with companies that are european leaders in their branch. 
Lille, the capital of
 northern France is an attractive metropolis of over 1 million inhabitants. 
Cost of living in Lille is lower 
than that of very big cities such as Paris and London.

THE TEAM

RMoD is an Inria research project team. It consists of 5 permant researchers 
(Inria CR and DR, as 
well as University Assistant Professors) and Engineers, postdocs and students 
(Master and PhD). 
RMoD is an international team with more than 20 members from six countries.

LINKS:

RMoD: http://rmod.lille.inria.fr
INRIA Lille: http://www.inria.fr/lille/
INRIA in General: http://www.inria.fr
Lille: 
http://en.wikipedia.org/wiki/Lille
http://wikitravel.org/en/Lille

Please contact the head of the research team: stephane.duca...@inria.fr or one 
of the following group members: nicolas.anque...@inria.fr, 
marcus.den...@inria.fr

Permanent Link: https://rmod.inria.fr/web/blog/2018-02-17


Re: [Pharo-users] [ANN] PI

2018-02-19 Thread Esteban A. Maringolo
Hi Hernan,

It's not clear to me where the install happens. In the first available
image file at the same working directory where you executed the pi
command?

Also, I'd make it case-insensitive, and only complain if there is an
ambiguity in some name (which I think there isn't).

Thanks again!

Esteban A. Maringolo


2018-02-18 17:12 GMT-03:00 Hernán Morales Durand :
> Thanks, please let me know issues or ideas for enhacements.
>
> I just uploaded a new version adding a search packages feature,
> supporting both GitHub and SmalltalkHub repositories.
>
> Cheers,
>
> Hernán
>
>
> 2018-02-18 5:12 GMT-03:00 john pfersich :
>> Congrats! Looks really useful. Can’t wait to try it out.
>>
>> Sent from my iPhone
>> Encrypted email at jgpfers...@protonmail.com
>>
>>> On Feb 17, 2018, at 23:23, Hernán Morales Durand  
>>> wrote:
>>>
>>> Hi,
>>>
>>> PI is a MIT-pip-like command line program for Pharo Smalltalk. PI
>>> stands for Pharo Install. It is written in bash and tested
>>> successfully under MSYS and GNU/Linux.
>>>
>>> Look for details in the GitHub repository:
>>>
>>> https://github.com/hernanmd/pi
>>>
>>> Try and play around, if you found any bugs or want to integrate new
>>> feature, feel free to submit PR.
>>>
>>> Cheers,
>>>
>>> Hernán
>>>
>>
>



Re: [Pharo-users] [ANN] PI

2018-02-19 Thread Esteban Lorenzano
hi,
this is also a good moment to remember all that you have the command “get” in 
Pharo.

./pharo Pharo.image get Seaside3

will install into the image the Seaside3 configuration from the catalog.

cheers!
Esteban

> On 19 Feb 2018, at 13:44, Esteban A. Maringolo  wrote:
> 
> Hi Hernan,
> 
> It's not clear to me where the install happens. In the first available
> image file at the same working directory where you executed the pi
> command?
> 
> Also, I'd make it case-insensitive, and only complain if there is an
> ambiguity in some name (which I think there isn't).
> 
> Thanks again!
> 
> Esteban A. Maringolo
> 
> 
> 2018-02-18 17:12 GMT-03:00 Hernán Morales Durand :
>> Thanks, please let me know issues or ideas for enhacements.
>> 
>> I just uploaded a new version adding a search packages feature,
>> supporting both GitHub and SmalltalkHub repositories.
>> 
>> Cheers,
>> 
>> Hernán
>> 
>> 
>> 2018-02-18 5:12 GMT-03:00 john pfersich :
>>> Congrats! Looks really useful. Can’t wait to try it out.
>>> 
>>> Sent from my iPhone
>>> Encrypted email at jgpfers...@protonmail.com
>>> 
 On Feb 17, 2018, at 23:23, Hernán Morales Durand 
  wrote:
 
 Hi,
 
 PI is a MIT-pip-like command line program for Pharo Smalltalk. PI
 stands for Pharo Install. It is written in bash and tested
 successfully under MSYS and GNU/Linux.
 
 Look for details in the GitHub repository:
 
 https://github.com/hernanmd/pi
 
 Try and play around, if you found any bugs or want to integrate new
 feature, feel free to submit PR.
 
 Cheers,
 
 Hernán
 
>>> 
>> 
> 




Re: [Pharo-users] [ANN] PI

2018-02-19 Thread Hernán Morales Durand
Hi Esteban,

2018-02-19 9:44 GMT-03:00 Esteban A. Maringolo :
> Hi Hernan,
>
> It's not clear to me where the install happens. In the first available
> image file at the same working directory where you executed the pi
> command?
>

The tool assumes now one image per directory, and the image located in
the same directory where the script is run.
Maybe I could add some interactivity if there is more than one image.

> Also, I'd make it case-insensitive, and only complain if there is an
> ambiguity in some name (which I think there isn't).
>

I tried but the problem was Metacello was expecting the case-sensitive
name to find the package to fetch.
Didn't look too much at it, but will open an issue.

Thank you for the feedback.

Hernán

> Thanks again!
>
> Esteban A. Maringolo
>
>
> 2018-02-18 17:12 GMT-03:00 Hernán Morales Durand :
>> Thanks, please let me know issues or ideas for enhacements.
>>
>> I just uploaded a new version adding a search packages feature,
>> supporting both GitHub and SmalltalkHub repositories.
>>
>> Cheers,
>>
>> Hernán
>>
>>
>> 2018-02-18 5:12 GMT-03:00 john pfersich :
>>> Congrats! Looks really useful. Can’t wait to try it out.
>>>
>>> Sent from my iPhone
>>> Encrypted email at jgpfers...@protonmail.com
>>>
 On Feb 17, 2018, at 23:23, Hernán Morales Durand 
  wrote:

 Hi,

 PI is a MIT-pip-like command line program for Pharo Smalltalk. PI
 stands for Pharo Install. It is written in bash and tested
 successfully under MSYS and GNU/Linux.

 Look for details in the GitHub repository:

 https://github.com/hernanmd/pi

 Try and play around, if you found any bugs or want to integrate new
 feature, feel free to submit PR.

 Cheers,

 Hernán

>>>
>>
>



[Pharo-users] [ANN] ba-st Web Stack new versions available

2018-02-19 Thread Gabriel Cotelli
Hi,

We're happy to announce a new version of the Web Stack hosted at
https://github.com/ba-st/. This is a multi-release announcement of the
following related project versions:

   - Willow  v6.0.0. Changes since latest
   announcement:
   - Added interaction on document load
  - Improved temporarily disabling command
  - Added identification support to unordered lists
  - Improved new location opening commands
  - Improved interaction fuctions to always include the event as a
  parameter
  - Improved asynchronic links to auto-configure a script doing
  preventDefault
  - Refactored the link support
  - Willow-Bootstrap  v6.0.0
   - Updated Willow base support to v6.0.0
  - Improved Split Button support to allow triggering actions on the
  main button only
  - Willow-JQueryUI  v5.0.0
  - Updated Willow base support to v6.0.0
  - Willow-SpinKit  v3.0.0
  - Updated Willow base support to v6.0.0
  - Willow-Playground 
   v2.0.0
   - Updated dependencies to the latest versions
  - RenoirSt  v4.0.0
  - Removed Pharo 4 support
  - Updated dependencies

SemanticUI  integration is
still a work in progress. There's a new Materialize CSS
 integration being
worked on by Francisco Ortiz.
Find a more detailed changelog and migration instructions on the release
pages of each repository.

Anyone interested in joining our ba-st projects 
is welcomed, and you can also start following our new tech blog @ mercap
 for Smalltalk and Pharo related posts
and experience reports.

Regards,
Gabriel Cotelli, Maxi Tabacman and all the contributors.


[Pharo-users] Seaside and Ajax/JQuery

2018-02-19 Thread Dominique Dartois
Hello All.
I try to use Ajax/JQuery to update a value in a HTML table by clicking on
the table heading.
The new value (the update) is not written in the tabledata I associated an
id with, but before the table.

The code :

renderContentOn: html

html table: [

html tableHead: [

html tableRow: [

html tableHeading: [ html anchor url: 'javascript:void(0)'; onClick:

((html jQuery: #changeMe) load html: 'BBB'); with: 'Update'].

]

].

html tableBody: [

html span id: #changeMe; with: [html tableData: [html render: 'AAA']].

]

]

The debugger in Firefox displays clearly that the "span id: #changeMe" is
not written at the correct place in the generated javascript.

[image: Images intégrées 1]

What am I doing wrong?
Regards
-- 
Dominique


Re: [Pharo-users] Seaside and Ajax/JQuery

2018-02-19 Thread Cyril Ferlicot D.
Le 19/02/2018 à 21:56, Dominique Dartois a écrit :
> Hello All.
> I try to use Ajax/JQuery to update a value in a HTML table by clicking
> on the table heading.
> The new value (the update) is not written in the tabledata I associated
> an id with, but before the table.
> 
> The code :
> 
> renderContentOn: html
> 
> html table: [
> 
> html tableHead: [
> 
> html tableRow: [
> 
> html tableHeading: [ html anchor url: 'javascript:void(0)'; onClick:
> 
> ((html jQuery: #changeMe) load html: 'BBB'); with: 'Update'].
> 
> ]
> 
> ].
> 
> html tableBody: [
> 
> html span id: #changeMe; with: [html tableData: [html render: 'AAA']].
> 
> ]
> 
> ]
> 
> 
> The debugger in Firefox displays clearly that the "span id: #changeMe"
> is not written at the correct place in the generated javascript.
> 
> Images intégrées 1
> 
> What am I doing wrong?
> Regards
> -- 
> Dominique

Hi,

This is possibly because in HTML5 a table element can only contains:
- tr
- th
- td
- caption
- col
- colgroup
- thead
- tbody
- tfoot

It should not contains span to be valid. Maybe your browser make this
change to make the HTML valid.

-- 
Cyril Ferlicot
https://ferlicot.fr



signature.asc
Description: OpenPGP digital signature


Re: [Pharo-users] Seaside and Ajax/JQuery

2018-02-19 Thread Dominique Dartois
2018-02-19 22:02 GMT+01:00 Cyril Ferlicot D. :

> Le 19/02/2018 à 21:56, Dominique Dartois a écrit :
> > Hello All.
> > I try to use Ajax/JQuery to update a value in a HTML table by clicking
> > on the table heading.
> > The new value (the update) is not written in the tabledata I associated
> > an id with, but before the table.
> >
> > The code :
> >
> > renderContentOn: html
> >
> > html table: [
> >
> > html tableHead: [
> >
> > html tableRow: [
> >
> > html tableHeading: [ html anchor url: 'javascript:void(0)'; onClick:
> >
> > ((html jQuery: #changeMe) load html: 'BBB'); with: 'Update'].
> >
> > ]
> >
> > ].
> >
> > html tableBody: [
> >
> > html span id: #changeMe; with: [html tableData: [html render: 'AAA']].
> >
> > ]
> >
> > ]
> >
> >
> > The debugger in Firefox displays clearly that the "span id: #changeMe"
> > is not written at the correct place in the generated javascript.
> >
> > Images intégrées 1
> >
> > What am I doing wrong?
> > Regards
> > --
> > Dominique
>
> Hi,
>
> This is possibly because in HTML5 a table element can only contains:
> - tr
> - th
> - td
> - caption
> - col
> - colgroup
> - thead
> - tbody
> - tfoot
>
> It should not contains span to be valid. Maybe your browser make this
> change to make the HTML valid.
>
> --
> Cyril Ferlicot
> https://ferlicot.fr
>
>
Thank you so much Cyril.

The right code is :
html tableData id: #changeMe ; with: [html render: 'AAA'].
and not :
html span id: #changeMe; with: [html tableData: [html render: 'AAA']].

Thanks again Regards


-- 
Dominique


[Pharo-users] [ANN] Pharo Sprint Feb 23

2018-02-19 Thread Marcus Denker
Pharo Sprint Feb 23
https://association.pharo.org/event-2789568


For a list of all future Pharo Event, have a look at: 
https://association.pharo.org/events
(you can get iCal entries and subsribe to an event specific mailinglist bu 
registering)

Marcus


Re: [Pharo-users] Pharo and Moose lectures in Serbia

2018-02-19 Thread Stephane Ducasse
I hope :)
Because this is a lot of energy spent

On Mon, Feb 19, 2018 at 10:50 AM, Tudor Girba  wrote:
> Excellent!
>
> Doru
>
>> On Feb 18, 2018, at 9:26 PM, Stephane Ducasse  
>> wrote:
>>
>> Hi
>>
>> just a little mail to announce that next week I will give some
>> lectures at the University of Novi sad on Pharo and Moose.
>> I hope that we will have some serbian pharoers soon.
>>
>> Stef
>>
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> "Being happy is a matter of choice."
>
>
>
>
>