Re: [Pharo-users] Exploring Pier

2015-09-23 Thread Jimmie Houchin

On 09/23/2015 02:59 AM, Damien Cassou wrote:

Jimmie Houchin  writes:

I definitely want to learn Pillar as it is required if at some point I
want to contribute to any of the documentation. And it looks like a
pretty powerful tool.

indeed

I do not have any clearly defined goals which make Pier a requirement.
The blog and cms like features are possibly reasonably implementable
in the more currently supported options. And those are simply things I
am exploring not requiring.

you might want to use Pillar directly to generate a static website and
add some dynamic plugins (such as Disqus for the comments). Ecstatic
(https://github.com/guillep/ecstatic) goes in that direction.


Thanks for the information. I briefly had that thought about static 
generation yesterday. But did not have any thoughts for comments.


I give that a look.

Thanks.

Jimmie




Re: [Pharo-users] A keyboard controlled code editor, how difficult would that be?

2015-09-23 Thread Stephan Eggermont

On 23-09-15 03:21, Peter Uhnák wrote:

 aMorph passenger do: [ :each |
 each isClass ifTrue: [
 each methods do: [ :method |
self addMorph: (CodeCard class: method methodClass
selector: method selector)
]
 ].
 each isCompiledMethod ifTrue: [
 self addMorph: (CodeCard class: each methodClass
selector: each selector)
 ]
 ]


Takes 14 seconds with Morph, and the result is not exactly usable.
For the method category, I suppose I can ask the TransferMorph for the
dragSource which I can ask for the currrent selection to find out which 
class is meant.


Stephan




Re: [Pharo-users] A keyboard controlled code editor, how difficult would that be?

2015-09-23 Thread Stephan Eggermont

On 23-09-15 11:04, Peter Uhnák wrote:

On Wed, Sep 23, 2015 at 4:21 AM, Alexandre Bergel
 wrote:

I have not tried, but can you compile methods?


Not yet.


Would be great if someone would take a look.
I'm probably doing something silly.

Added support for mouse based column manipulation
When navigating, I opens a spotter on implementors
(not yet the right one) and adds a card (not yet in the right position)

Stephan



Re: [Pharo-users] Problem Loading Roassal 2 development in Pharo 4

2015-09-23 Thread Johan Fabry
Sadly, it does not load here (see below). Plus you can use package: 
'Roassal2Spec' with: 'Roassal2Spec-johanfabry.10’; that loads in Pharo4 as well.

This package depends on the following classes:
  RTExampleSelection
You must resolve these dependencies before you will be able to load these 
definitions: 
  gtExampleAtRandom
  gtExampleFlags
  gtDisplaySourceIn:
  gtInspectorViewIn:

> On Sep 21, 2015, at 22:01, Alexandre Bergel  wrote:
> 
> hi!
> 
> I have create the last version before the braking change:
> 
> Gofer it
>smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
>configurationOf: 'Roassal2';
>loadVersion: '1.15’.
> 
> In Pharo 4 this loads well. But the examples are not browsable…
> 
> Let me know how it goes
> 
> Alexandre
> 
> 
>> On Sep 21, 2015, at 5:35 PM, Johan Fabry  wrote:
>> 
>> 
>> I understand the problem, but could you update the development version so 
>> that it loads the latest version that does work in Pharo 4? Switching to 
>> Pharo 5 is not an option for me right now, and I fear the stable version of 
>> Roassal2 is much too old to be useful for me.


---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of 
Chile




Re: [Pharo-users] UI Question

2015-09-23 Thread Fabian Boucsein via Pharo-users
--- Begin Message ---
By the way. Is "Smalltalk ui theme" a better place
to start GUI programming in Pharo?

Cheers
Fabian


2015-09-23 14:17 GMT+02:00 Fabian Boucsein :

> Hi Nicolai,
>
> thanks for your reply. I was scrolling through the list of
> packages. Searching for the class UITheme showed me
> that the class is still there. :-)
>
> Cheers
> Fabian
>
>
> 2015-09-23 14:00 GMT+02:00 Nicolai Hess :
>
>>
>>
>> 2015-09-23 12:53 GMT+02:00 Fabian Boucsein via Pharo-users <
>> pharo-users@lists.pharo.org>:
>>
>>>
>>>
>>> -- Weitergeleitete Nachricht --
>>> From: Fabian Boucsein 
>>> To: pharo-users@lists.pharo.org
>>> Cc:
>>> Date: Wed, 23 Sep 2015 11:59:00 +0200
>>> Subject: UI Question
>>> Hello Pharo Hackers,
>>>
>>> i am working my way through the wonderful pharocast videos
>>> and came across a video about UI building with polymorph.
>>> In this video a class UITheme ist used. Looking around in the
>>> system browser of Pharo 4.0 i can not find this class. Is this
>>> class renamed or is some other class used for this purpose
>>> now?
>>>
>>> I am working on a dvd database and a connection to the
>>> sqlite database is working with read and write access. I now
>>> need a GUI for my Application. I am thinking about documenting
>>> my steps. Maybe ot could help others finding there way.
>>>
>>
>> This hasn't changed AFAIK,
>> the class UITheme is still there.
>> and you can use
>>
>> "Smalltalk ui theme"
>>
>>
>>
>>
>>
>>>
>>> Yours sincerely,
>>> Fabian
>>>
>>>
>>>
>>
>
--- End Message ---


Re: [Pharo-users] UI Question

2015-09-23 Thread Fabian Boucsein via Pharo-users
--- Begin Message ---
Hi Nicolai,

thanks for your reply. I was scrolling through the list of
packages. Searching for the class UITheme showed me
that the class is still there. :-)

Cheers
Fabian


2015-09-23 14:00 GMT+02:00 Nicolai Hess :

>
>
> 2015-09-23 12:53 GMT+02:00 Fabian Boucsein via Pharo-users <
> pharo-users@lists.pharo.org>:
>
>>
>>
>> -- Weitergeleitete Nachricht --
>> From: Fabian Boucsein 
>> To: pharo-users@lists.pharo.org
>> Cc:
>> Date: Wed, 23 Sep 2015 11:59:00 +0200
>> Subject: UI Question
>> Hello Pharo Hackers,
>>
>> i am working my way through the wonderful pharocast videos
>> and came across a video about UI building with polymorph.
>> In this video a class UITheme ist used. Looking around in the
>> system browser of Pharo 4.0 i can not find this class. Is this
>> class renamed or is some other class used for this purpose
>> now?
>>
>> I am working on a dvd database and a connection to the
>> sqlite database is working with read and write access. I now
>> need a GUI for my Application. I am thinking about documenting
>> my steps. Maybe ot could help others finding there way.
>>
>
> This hasn't changed AFAIK,
> the class UITheme is still there.
> and you can use
>
> "Smalltalk ui theme"
>
>
>
>
>
>>
>> Yours sincerely,
>> Fabian
>>
>>
>>
>
--- End Message ---


Re: [Pharo-users] Integrating a custom spotter, reusing current code

2015-09-23 Thread Alexandre Bergel
It would be great to have this accessible from the Help Browser. It is easy to 
write helps and really useful!

Alexandre

> On Sep 23, 2015, at 6:30 AM, Andrei Chis  wrote:
> 
> Hi Stephan,
> 
> Right now you can just filter processors in spotter:
> 
> GTSpotterMorph new
>   extent: 600@700;
>   spotterModel: (GTSpotter 
>   on: Object>>#printString
>   withProcessors: {
>   CompiledMethod>>#spotterForImplementorsFor:});
>   openCenteredInWorld.
> 
> However this does not work if you need to override properties of a search, 
> like actLogic.
> 
> An alternative would be also add a way to override properties of a search, 
> like for example:
> 
> GTSpotterMorph new
>   extent: 600@700;
>   spotterModel: (GTSpotter 
>   on: Object>>#printString
>   withProcessor: {
>   CompiledMethod>>#spotterForImplementorsFor:}
>   initializedWith: [:aProcessor | aProcessor 
>   candidatesLimit: 100;
>   actLogic: [""] ]);
>   openCenteredInWorld
> 
> 
> 
> Cheers,
> Andrei
> 
> On Tue, Sep 22, 2015 at 2:15 PM, Stephan Eggermont  wrote:
> On 22-09-15 14:02, Peter Uhnák wrote:
> Also, how do I get to a list
> of the implementers/senders/references/etc of the method/class?
> What is the improved and approved way to do this :) ?
> 
> do you mean sending them #senders and #implementors? Or am I missing 
> something?
> 
> No, how do I get a spotter morph showing the implementors so I can choose 
> one. Without duplicating too much.
> 
> Stephan
> 
> 
> 
> 

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






Re: [Pharo-users] A keyboard controlled code editor, how difficult would that be?

2015-09-23 Thread Alexandre Bergel
Looks like an important step in my opinion.
Keep pushing:-)

Cheers,
Alexandre


> On Sep 23, 2015, at 6:04 AM, Peter Uhnák  wrote:
> 
> On Wed, Sep 23, 2015 at 4:21 AM, Alexandre Bergel
>  wrote:
>> I have not tried, but can you compile methods?
> 
> Not yet.
> 

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






Re: [Pharo-users] UI Question

2015-09-23 Thread Nicolai Hess
2015-09-23 12:53 GMT+02:00 Fabian Boucsein via Pharo-users <
pharo-users@lists.pharo.org>:

>
>
> -- Weitergeleitete Nachricht --
> From: Fabian Boucsein 
> To: pharo-users@lists.pharo.org
> Cc:
> Date: Wed, 23 Sep 2015 11:59:00 +0200
> Subject: UI Question
> Hello Pharo Hackers,
>
> i am working my way through the wonderful pharocast videos
> and came across a video about UI building with polymorph.
> In this video a class UITheme ist used. Looking around in the
> system browser of Pharo 4.0 i can not find this class. Is this
> class renamed or is some other class used for this purpose
> now?
>
> I am working on a dvd database and a connection to the
> sqlite database is working with read and write access. I now
> need a GUI for my Application. I am thinking about documenting
> my steps. Maybe ot could help others finding there way.
>

This hasn't changed AFAIK,
the class UITheme is still there.
and you can use

"Smalltalk ui theme"





>
> Yours sincerely,
> Fabian
>
>
>


[Pharo-users] FM(Null)(Multi)MultivalueLink has confusing printOn:

2015-09-23 Thread Peter Uhnák
Hi,

FM*MultivalueLink has a very confusing printOn: method

~~~
FM*MultivalueLink>>printOn: aStream

self asArray printOn: aStream
~~~

Converting it to array means that when I see a variable in the inspector it
describes itself as array which is quite confusing.

Maybe it should be wrapped?

printOn: aStream

self printNameOn: aStream.
aStream nextPut: $(.
self asArray printOn: aStream.
aStream nextPut: $)

Thanks,
Peter


Re: [Pharo-users] Integrating a custom spotter, reusing current code

2015-09-23 Thread Stephan Eggermont

On 23-09-15 11:30, Andrei Chis wrote:

Hi Stephan,

Right now you can just filter processors in spotter:

GTSpotterMorph new
extent: 600@700;
spotterModel: (GTSpotter
on: Object>>#printString
withProcessors: {
CompiledMethod>>#spotterForImplementorsFor:});
openCenteredInWorld.

However this does not work if you need to override properties of a search,
like actLogic.

An alternative would be also add a way to override properties of a search,
like for example:

GTSpotterMorph new
extent: 600@700;
spotterModel: (GTSpotter
on: Object>>#printString
withProcessor: {
CompiledMethod>>#spotterForImplementorsFor:}
initializedWith: [:aProcessor | aProcessor
candidatesLimit: 100;
actLogic: [""] ]);
openCenteredInWorld


Thanks, that provides me with the right hooks.

Stephan





[Pharo-users] UI Question

2015-09-23 Thread Fabian Boucsein via Pharo-users
--- Begin Message ---
Hello Pharo Hackers,

i am working my way through the wonderful pharocast videos
and came across a video about UI building with polymorph.
In this video a class UITheme ist used. Looking around in the
system browser of Pharo 4.0 i can not find this class. Is this
class renamed or is some other class used for this purpose
now?

I am working on a dvd database and a connection to the
sqlite database is working with read and write access. I now
need a GUI for my Application. I am thinking about documenting
my steps. Maybe ot could help others finding there way.

Yours sincerely,
Fabian
--- End Message ---


Re: [Pharo-users] Trying DynaCASE in Pharo 5

2015-09-23 Thread Peter Uhnák
> Do you plan to add a code generator?

Unfortunately right now I am fully focusing on UML Class Diagrams, and
I have limited resources (my time), and has only 26 hours.
I will start writing a code generator for UML next month, but that has
somewhat different semantics to FSM.

> I am writing a Code Generator (not in public state for now) and we could join 
> forces. I've seen a few Smalltalk FSM implementations out there, but I am 
> thinking about generation of this kind of code 
> http://smalltalkhub.com/#!/~MasashiUmezawa/SState

I'd be very happy to collaborate!

The MesashiUmezawa/SState looks quite good; the semantics seem closer
to UML StateMachine than FSM, but that's fine, because it's more
powerful.
Also using model maintained by someone else would free my hands to
focus on the application itself.

So while I currently don't have the time to implement this myself, I
would be very happy to help you in any way (documentation, examples,
explanations, etc.) if you are up for the task.

> I just re-checked the DynaCASE video and it has its own textual FSM way :)

FSM has just a Smallltalk DSL (shown in the beginning).

The textual representation (at the end of the video) is related to
BORM, which is quite a different beast. (Also I rewrote it since then,
because what's in the video was just a proof-of-concept.)

But then again creating a better Smalltalk DSL or a textual DSL (with
the help of PetitParser) is quite easy and fun. :-)

>
> A little thing that could be added is to generate an empty FSM after
> creating the project

I'm assuming you created the project from the "DynaCASE" world entry;
I don't think that it should create FSM by default because there are
two more models (UML Class diagram and BORM), so it doesn't now which
one to pick.
What I can do is add a button or something where you can select what
kind of initial diagram you want.

However right now you can click on the "DC Finite State Machine" world
entry (it has a submenu with examples, but don't click on the
examples, click on the entry itself) --- this opens a new empty FSM
diagram.

Peter



Re: [Pharo-users] Integrating a custom spotter, reusing current code

2015-09-23 Thread Andrei Chis
Hi Stephan,

Right now you can just filter processors in spotter:

GTSpotterMorph new
extent: 600@700;
spotterModel: (GTSpotter
on: Object>>#printString
withProcessors: {
CompiledMethod>>#spotterForImplementorsFor:});
openCenteredInWorld.

However this does not work if you need to override properties of a search,
like actLogic.

An alternative would be also add a way to override properties of a search,
like for example:

GTSpotterMorph new
extent: 600@700;
spotterModel: (GTSpotter
on: Object>>#printString
withProcessor: {
CompiledMethod>>#spotterForImplementorsFor:}
initializedWith: [:aProcessor | aProcessor
candidatesLimit: 100;
actLogic: [""] ]);
openCenteredInWorld



Cheers,
Andrei

On Tue, Sep 22, 2015 at 2:15 PM, Stephan Eggermont  wrote:

> On 22-09-15 14:02, Peter Uhnák wrote:
>
>> Also, how do I get to a list
>>> of the implementers/senders/references/etc of the method/class?
>>> What is the improved and approved way to do this :) ?
>>>
>>
>> do you mean sending them #senders and #implementors? Or am I missing
>> something?
>>
>
> No, how do I get a spotter morph showing the implementors so I can choose
> one. Without duplicating too much.
>
> Stephan
>
>
>
>


Re: [Pharo-users] A keyboard controlled code editor, how difficult would that be?

2015-09-23 Thread Peter Uhnák
On Wed, Sep 23, 2015 at 4:21 AM, Alexandre Bergel
 wrote:
> I have not tried, but can you compile methods?

Not yet.



[Pharo-users] shout styler and rubric segment morph

2015-09-23 Thread Miguel Campusano
Hello,

I want to style smalltalk code inside a rubric text model (such as the one
being used Nautilus in Pharo 5) but I want to extend this styling with
underlines and highlighting. I notice that rubric added this kind of
styling to the text morph and not to the text itself so I think it's not
straightforward to modify the styling if I do not have access to the morph
or the model from the shout instance (correct me if I'm wrong).

Is there a way to extend the classic shout styling to support this kind of
styling? maybe extending the RubShoutStylerDecorator?

Bests,
Miguel


Re: [Pharo-users] Exploring Pier

2015-09-23 Thread Damien Cassou

Jimmie Houchin  writes:

> I definitely want to learn Pillar as it is required if at some point I 
> want to contribute to any of the documentation. And it looks like a 
> pretty powerful tool.


indeed


> I do not have any clearly defined goals which make Pier a requirement.
> The blog and cms like features are possibly reasonably implementable
> in the more currently supported options. And those are simply things I
> am exploring not requiring.


you might want to use Pillar directly to generate a static website and
add some dynamic plugins (such as Disqus for the comments). Ecstatic
(https://github.com/guillep/ecstatic) goes in that direction.

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill