[Pharo-users] [ANN] Lighthouse (for Pharo Discord server)

2017-02-08 Thread Dimitris Chloupis
Hey guys we have some new features for our online Discord chat server ,
called Pharo, you may find interesting.

I added 2 new bots. The first one goes with the name "Pharo" its basically
Mee6 bot

https://mee6.xyz/

Pharo bot is responsible for many features

1) it offers moderator commands for me and Esteban
2) it offers user commands , these can be used by anyone, which are
convenient ways to bring up links to pharo documentation, pharo website and
my youtube pharo video tutorial playlist
3) it integrates with reddit so we can keep an eye on the smalltalk
subreddit where pharoers post from time to time
4) it integrates with Esteban's rss for getting the latest news for his
work on Pharo
5) it integrates with Pharo rss where news and announcement appear
6) it integrates with twitter for tracking down any new tweet from Pharo
twitter account (probably more accounts will be added in the future)
7) A welcome message for beginners to get you started
8) it also has a level up system , like an rpg , that awards experience
points when people participate.

The lighthouse bot on the other hand is made for more advanced pharo
related features.

First of all the github repo is here for anyone familiar with python and
Discord that is willing to give a helping hand.

https://github.com/kilon/lighthouse

The intention is to add a documentation system that a new user can ask
question and get quick links to specific documentation. I am inspired by
the fsbot in #emacs irc channel at freenode that is heavily used by new and
experienced emacs users. The bot has features to search documentation and
create new documentation directly from the online chat.

I like also to take this opportunity to ask for suggestions , advice ,
desires or curses. If there is anything you would like added to the bot and
you cannot be bothered to learn python or discord api just drop it on the
table and if I find it interesting and easy enough I will implement it.

I am also investigating a python library I found for AI chatbot which
learns the more it chats with you and it could be turned to an online
assistant for newcomers and experienced pharo users. Maybe its a bit far
fetched but I willing to give it a try. So no promises.


[Pharo-users] [Metacello] Adding existing metacello project to my new project

2017-02-08 Thread sergio ruiz

okay, i have finally decided to spend some time figuring out metacello..

for those doing the same, i would say, do this first:

http://sleepycoders.blogspot.com/2013/10/dead-simple-intro-to-metacello.html

then, use the “deep into pharo” chapter as needed..

anyway.. i am having a little bit of trouble doing one thing.

I need to include VoyageMongo in my project. It’s available in the project 
catalog, so i tried doing something like:

baseline01: spec

spec
for: #common
do: [ spec blessing: #baseline.
spec repository: 
'http://smalltalkhub.com/mc/sergio101/InternetRadioRest/main'.
spec package: 'InternetRadioJam'.
spec package: 'VoyageMongo’ ]

but that doesn’t work. i tried several other configurations with no luck..

The website for VoyageMongo shows:

Metacello new  
repository: 'github://pharo-nosql/voyage/mc';
baseline: 'Voyage';
load: 'mongo tests’


but i can’t quite figure out the proper syntax to make this happen..

ideas?

thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] [Metacello] Adding existing metacello project to my new project

2017-02-08 Thread p...@highoctane.be
Check how seaside dependency is done in here:
https://github.com/Pharophile/PechaKucha

Phil

On Wed, Feb 8, 2017 at 4:06 PM, sergio ruiz  wrote:

>
> okay, i have finally decided to spend some time figuring out metacello..
>
> for those doing the same, i would say, do this first:
>
> http://sleepycoders.blogspot.com/2013/10/dead-simple-intro-
> to-metacello.html
>
> then, use the “deep into pharo” chapter as needed..
>
> anyway.. i am having a little bit of trouble doing one thing.
>
> I need to include VoyageMongo in my project. It’s available in the project
> catalog, so i tried doing something like:
>
> baseline01: spec
> 
> spec
> for: #common
> do: [ spec blessing: #baseline.
> spec repository: 'http://smalltalkhub.com/mc/sergio101/InternetRadioRest/
> main'.
> spec package: 'InternetRadioJam'.
> spec package: 'VoyageMongo’ ]
>
> but that doesn’t work. i tried several other configurations with no luck..
>
> The website for VoyageMongo shows:
>
> Metacello new
> repository: 'github://pharo-nosql/voyage/mc';
> baseline: 'Voyage';
> load: 'mongo tests’
>
>
>
> but i can’t quite figure out the proper syntax to make this happen..
>
> ideas?
>
> thanks!
>
>
> 
> peace,
> sergio
> photographer, journalist, visionary
>
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.Village-Buzz.com
> http://www.ThoseOptimizeGuys.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>


Re: [Pharo-users] [Metacello] Adding existing metacello project to my new project

2017-02-08 Thread Gabriel Cotelli
Something like this:

...

spec
baseline: 'Voyage' with: [ spec repository:
'github://pharo-nosql/voyage/mc'; load: #( 'mongo' 'tests') ];
import: 'Voyage'.

spec
package: 'InternetRadioJam' with: [ spec requires: 'Voyage' ]

...

On Wed, Feb 8, 2017 at 12:06 PM, sergio ruiz  wrote:

>
> okay, i have finally decided to spend some time figuring out metacello..
>
> for those doing the same, i would say, do this first:
>
> http://sleepycoders.blogspot.com/2013/10/dead-simple-intro-
> to-metacello.html
>
> then, use the “deep into pharo” chapter as needed..
>
> anyway.. i am having a little bit of trouble doing one thing.
>
> I need to include VoyageMongo in my project. It’s available in the project
> catalog, so i tried doing something like:
>
> baseline01: spec
> 
> spec
> for: #common
> do: [ spec blessing: #baseline.
> spec repository: 'http://smalltalkhub.com/mc/sergio101/InternetRadioRest/
> main'.
> spec package: 'InternetRadioJam'.
> spec package: 'VoyageMongo’ ]
>
> but that doesn’t work. i tried several other configurations with no luck..
>
> The website for VoyageMongo shows:
>
> Metacello new
> repository: 'github://pharo-nosql/voyage/mc';
> baseline: 'Voyage';
> load: 'mongo tests’
>
>
>
> but i can’t quite figure out the proper syntax to make this happen..
>
> ideas?
>
> thanks!
>
>
> 
> peace,
> sergio
> photographer, journalist, visionary
>
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.Village-Buzz.com
> http://www.ThoseOptimizeGuys.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>


[Pharo-users] Book farm working again

2017-02-08 Thread Stephane Ducasse
Hi

https://ci.inria.fr/pharo-contribution/view/Books/
I realised that jenkins dropped the connection to the github repositories
of the books and that they were not updated.
You can find my current evening occupation: Learning OOP with Pharo :)
I fixed some problems in UnifiedFFI and clean a bit before restarting to
work on Pillar.

And we get more green books job.

Stef


Re: [Pharo-users] [Pharo-dev] Book farm working again

2017-02-08 Thread Guillermo Polito
Thanks!

On Wed, Feb 8, 2017 at 6:05 PM, Stephane Ducasse 
wrote:

> Hi
>
> https://ci.inria.fr/pharo-contribution/view/Books/
> I realised that jenkins dropped the connection to the github repositories
> of the books and that they were not updated.
> You can find my current evening occupation: Learning OOP with Pharo :)
> I fixed some problems in UnifiedFFI and clean a bit before restarting to
> work on Pillar.
>
> And we get more green books job.
>
> Stef
>


Re: [Pharo-users] [Metacello] Adding existing metacello project to my new project

2017-02-08 Thread sergio ruiz
I think i’m doing it wrong..

this is all i could find in there..

https://github.com/Pharophile/PechaKucha/blob/master/packages/ConfigurationOfPechaKucha.package/ConfigurationOfPechaKucha.class/instance/version10..st



On February 8, 2017 at 10:22:17 AM, Gabriel Cotelli (g.cote...@gmail.com) wrote:

Check how seaside dependency is done in here: 
https://github.com/Pharophile/PechaKucha

Phil

peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] [Metacello] Adding existing metacello project to my new project

2017-02-08 Thread sergio ruiz
Hmmm.. gonna have to toy with this.. this is giving me other errors.. namely 
that baseline is no longer defined..

On February 8, 2017 at 10:22:17 AM, Gabriel Cotelli (g.cote...@gmail.com) wrote:

spec
        baseline: 'Voyage' with: [ spec repository: 
'github://pharo-nosql/voyage/mc'; load: #( 'mongo' 'tests') ];
import: 'Voyage'.

peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] [Metacello] Adding existing metacello project to my new project

2017-02-08 Thread sergio ruiz
found it.. 

load: #( 'mongo' 'tests') 
should be:

loads: #( 'mongo' 'tests') 

thanks!

On February 8, 2017 at 10:22:17 AM, Gabriel Cotelli (g.cote...@gmail.com) wrote:

spec
        baseline: 'Voyage' with: [ spec repository: 
'github://pharo-nosql/voyage/mc'; load: #( 'mongo' 'tests') ];
import: 'Voyage'.

peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] [Metacello] Adding existing metacello project to my new project

2017-02-08 Thread p...@highoctane.be
https://github.com/Pharophile/PechaKucha/tree/master/packages/BaselineOfPechaKucha.package/BaselineOfPechaKucha.class/instance

ConfigurationOf is for the Catalog

Phil

On Wed, Feb 8, 2017 at 8:29 PM, sergio ruiz  wrote:

> I think i’m doing it wrong..
>
> this is all i could find in there..
>
> https://github.com/Pharophile/PechaKucha/blob/master/packages/
> ConfigurationOfPechaKucha.package/ConfigurationOfPechaKucha.
> class/instance/version10..st
>
>
>
> On February 8, 2017 at 10:22:17 AM, Gabriel Cotelli (g.cote...@gmail.com)
> wrote:
>
> Check how seaside dependency is done in here: https://github.com/
> Pharophile/PechaKucha
>
> Phil
>
> 
> peace,
> sergio
> photographer, journalist, visionary
>
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.Village-Buzz.com
> http://www.ThoseOptimizeGuys.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>


Re: [Pharo-users] SLICE-Issue-18901-Highlight-message-send-selector-on-mouse-over-NicolaiHess.4 introduces new bug?

2017-02-08 Thread Alistair Grant
Hi All,

I've created the issue and associated slice:

https://pharo.fogbugz.com/f/cases/19680/DNU-bug-in-SLICE-18901

Thanks,
Alistair


On 8 February 2017 at 17:25, Nicolai Hess  wrote:
>
>
> Am 08.02.2017 2:12 vorm. schrieb "Alistair Grant" :
>
> Hi Nicolai,
>
> On 7 February 2017 at 18:56, Nicolai Hess  wrote:
>> Hi Alistair,
>> the error messages from Rubric-Components, if there occured an error is
>> often misleading.
>>
>> I added this act-on-move-functionality for highlighting message sends and
>> I
>> forgot to respect to full TextAction hierarchy
>> (I only implemented the
>> actOnMove: anEvent for: target in: aParagraph editor: anEditor
>> method for TextLink and TextMethodLink and not for TextAction)
>>
>> You can solve this by moving the implementation
>> actOnMove: anEvent for: target in: aParagraph editor: anEditor
>> "override in subclasses"
>> ^ false
>>
>> from TextLink, up to TextAction.
>
> Thanks - that fixes the issue!  Thanks also for your quick reply.
>
> Would you like me to submit a bug report and slice to fogbugz?
>
>
> Yes, please.
>
>
>
>
>
>
> Thanks again,
> Alistair
>
>



Re: [Pharo-users] Problems with auto-updating the text of a playground

2017-02-08 Thread Offray Vladimir Luna Cárdenas

Thanks Doru, That solves it! A quick and clean fix :-).

Cheers,

Offray


On 06/02/17 00:41, Tudor Girba wrote:

Hi,

I am not quite sure I understand your problem, but I believe what you want is 
to only react to a change in a text.

This information is placed in the #text port. Here is a basic example of how to 
react to it:
http://ws.stfx.eu/ETEC2JH7363M

Cheers,
Doru



On Feb 6, 2017, at 2:16 AM, Offray Vladimir Luna Cárdenas 
 wrote:

Hi,

For my Grafoscopio notebooks,  I have implemented a way to auto-updating the 
content of a node, so it is automatically saved in the notebook when a node 
content is changed. The problem is that a node contains an embedded playground 
that produces text as output when executed (for example the playground reads a 
file or scraps HTML or calculates a hash), the text of the playground is 
replaced with the executed output. If the playground produces a visualization 
or non-textual output, this doesn't happen.

I imagine that the source of the problem is here:

===

GrafoscopioNotebook >> autoSaveBodyOf: aNode
body body class = TextModel
ifTrue: [ body body whenTextChanged: [ :arg | aNode body: arg ] ].
body body class = GlamourPresentationModel
ifTrue: [ | playground |
playground := body body glmPres.
playground
when: GLMContextChanged
do: [ :ann |
ann property = #text
ifTrue: [ | playgroundText |
playgroundText := (playground pane ports at: 2) 
value.
aNode body: playgroundText ]
]
]

===

as you can see the "when: GLMContextChanged" updates a node body with the 
playgroundText, as intended, so I can capture any change of the playground code, but I 
would like to add some condition to **not** update the body content if the text is the 
result of a playground execution. There is any way to do this?

Thanks,

Offray



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

"If you can't say why something is relevant,
it probably isn't."