Re: [Pharo-users] Pharo Sound of Silence

2015-01-28 Thread Xavier MESSNER
Hi,


Nicolai Hess wrote
> 
> But I don't understand why we do not use the pulse plugin with pharo.
> ( vm-sound-OSS is working too, and the source is already in the source
> tree)

OSS is just a pain to use today. Some apps doesn't even support it anymore.
And if we want to use it with Alsa, an emulation layer must be installed.
But it's not the point.


Nicolai Hess wrote
> "Hey, if you want to use pharo sound on linux, you have to change your
> sound config
> and kill the sound server"
> 
> No, this isn't better :)

I'm agree, it's not that way it should be done. But it's for me better than
downloading another component to make it work, we could not know if it's
fully supported or buggy.

In fact, there is a good way. Having a third part of drivers that are
validated with Pharo. In that way, Pharo comes with just basic drivers to
make it work and in another package we could have drivers that are validated
with the stable version. If they don't work, we just have to email the
contributor.

Pulse plugin will be in that last repo and if one day someone have some
times to spend to include it in the source tree it will be great :)

We could have a documentation that explain how to include others drivers and
let the user choice what is best for him. It's a good start to make Pharo
even better :)

Xavier.




--
View this message in context: 
http://forum.world.st/Pharo-Sound-of-Silence-tp4801562p4802112.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Pharo Sound of Silence

2015-01-28 Thread Xavier MESSNER
Sean P. DeNigris wrote
> 
> Evan Donahue wrote
>> I'm trying to get sounds working in Pharo
> If it helps, I started a minimal wrapper of the cross-platform FMOD
> library at http://smalltalkhub.com/#!/~SeanDeNigris/FMOD . I did enough to
> play mp3s.

Really great ! i will try this on my linux box, thanks !

Xavier.



--
View this message in context: 
http://forum.world.st/Pharo-Sound-of-Silence-tp4801562p4802113.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Pharo Sound of Silence

2015-01-28 Thread Ignacio Sniechowski
Sean,
Could please indicate me how I have to do to play a mp3 inside Pharo?
I loaded FMOD from your repo, but I don't know if I have to install
something else, or where the mp3 file has to be or what class use.
I'm running Pharo 3 and 4 under Win 8.1
Thanks in advance!
best
Nacho


*Lic. Ignacio Sniechowski, MBA*
*Prosavic SRL*

*Tel: (011) 4542-6714*





















On Wed, Jan 28, 2015 at 6:12 AM, Xavier MESSNER  wrote:

> Sean P. DeNigris wrote
> >
> > Evan Donahue wrote
> >> I'm trying to get sounds working in Pharo
> > If it helps, I started a minimal wrapper of the cross-platform FMOD
> > library at http://smalltalkhub.com/#!/~SeanDeNigris/FMOD . I did enough
> to
> > play mp3s.
>
> Really great ! i will try this on my linux box, thanks !
>
> Xavier.
>
>
>
> --
> View this message in context:
> http://forum.world.st/Pharo-Sound-of-Silence-tp4801562p4802113.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


[Pharo-users] Supporting Start up around Pharo

2015-01-28 Thread stepharo

Hi guys

if you are considering to create a start up around Pharo, we could find 
one year financial support
if this is serious and that you would like to come to work around Lille 
or France.


Stef



Re: [Pharo-users] Supporting Start up around Pharo

2015-01-28 Thread Sebastian Sastre
<3

Awesome initiative! 

Looking forward to see what comes from this!


> On Jan 28, 2015, at 8:51 AM, stepharo  wrote:
> 
> Hi guys
> 
> if you are considering to create a start up around Pharo, we could find one 
> year financial support
> if this is serious and that you would like to come to work around Lille or 
> France.
> 
> Stef
> 




[Pharo-users] HTTP Token Based authentication server?

2015-01-28 Thread Esteban A. Maringolo
Is it there any implementation for token based authentication over HTTP?

I know there is a OAuth client, but do we have an OAuth server?

I'm migrating the authentication of our mobile apps from standard HTTP
digest (user/pass base64 encoded) to token based auth, and could find very
useful to have something already done to use or to build on top of.

Regards!

Esteban A. Maringolo


[Pharo-users] Building 3D shapes in Roassal with interaction. Unexpected behaviour?

2015-01-28 Thread Nicolas Lusa
Hello everyone,

It has been a while since I started working with Woden and Roassal and I 
recently figured out that something is behaving unexpectedly (at least from my 
point of view).

Assume we create 3 shapes (all the same kind) with Roassal (i.e. 3 RWPyramid) 
and we associate an eventListener to see when someone click on the object. In 
such case we change the color of the shape. Here is the code:

v := RWView new.

e := (RWPyramid new) element.
e on: RWMouseButtonDown do: [ :ev |
ev element shape color: WDColor blue.
ev element changed.
].
v add: e.

g := (RWPyramid new) element.
g on: RWMouseButtonDown do: [ :ev |
ev element shape color: WDColor green.
ev element changed.
].
g translateBy:(WDVector3 newX: 4.0 y: 0.0 z: 0.0).
v add: g .

f := (RWPyramid new) element.
f on: RWMouseButtonDown do: [ :ev |
ev element shape color: WDColor red.
ev element changed.
].
f translateBy:(WDVector3 newX: 2.0 y: 0.0 z: 0.0).
v add: f.

v addInteraction: RWMouseKeyControl.
v camera position: (WDVector3 x: 0.0 y: 0.0 z: 3.0).
v open.

So far, so good. But now, let's try to change some objects type, (i.e. let's 
put a Pyramid a Cube and a Cylinder). Here is the code:

v := RWView new.

e := (RWPyramid new) element.
e on: RWMouseButtonDown do: [ :ev |
ev element shape color: WDColor blue.
ev element changed.
].
v add: e.

g := (RWCube new) element.
g on: RWMouseButtonDown do: [ :ev |
ev element shape color: WDColor green.
ev element changed.
].
g translateBy:(WDVector3 newX: 4.0 y: 0.0 z: 0.0).
v add: g .

f := (RWCylinder new) element.
f on: RWMouseButtonDown do: [ :ev |
ev element shape color: WDColor red.
ev element changed.
].
f translateBy:(WDVector3 newX: 2.0 y: 0.0 z: 0.0).
v add: f.

v addInteraction: RWMouseKeyControl.
v camera position: (WDVector3 x: 0.0 y: 0.0 z: 3.0).
v open.

Now if you try this, and you'll try to click on the Pyramid, you will see that 
the cube is the one that gets to change color but not the Pyramid. Same if you 
click on the Cylinder.
I think the code that I wrote is correct, but I might be wrong.
Does anyone know what is the problem due?

Cheers,
Nicolas





[Pharo-users] SmaCC: First steps

2015-01-28 Thread kilon alios
Ok I have read a few times of the tutorial of Smacc in here
http://www.refactoryworkers.com/SmaCC/ASTs.html

and I am also following the help tool documentation inside pharo for SmaCC
and I have to say I am very confused. Please bare with me because I am
extremely noob when it comes to parsing, this is my first effort.

Now the way I understand it so far, is that SmaCC uses a syntax similar to
regex expressions to define parsers and scanners. Scanners evaluate a
string to see that it contains a valid form and parser divide to parts
named as "tokens" and help in the creating of ASTs which are basically
hierarchy tree containing the syntax elements of a language.

Now in order to make SmaCC work I need to use the SmaCC tool that comes
with pharo . The smacc tool takes two inputs a scanner and a parser class.
Does that mean I need to create that parser and scanner class ? I thought
since I define the syntax that those things would be generated by the tool.

What I need to define exactly ?

Why when I select the PythonScanner2 and PythonParser2 and click then
Compile LR it gives a MNU receiver of method is nil ?

I am using latest Pharo 4 image.

My goal is to parse python types to similar pharo objects. I get those
python types as strings and my main focus in lists, dictionaries and tuples
. The tricky part is that one can contain the other inside in every
imagined way.

The way I understand it I will need something called "transformations" to
convert those python types to OrderedCollections, Arrays etc and anything
would make more sense for a pharo coder.

Additionally what is the meaning of the vertibal bar ?   --> |
eg.
| Number

Are there any other tutorials that can help a beginner like me to
understand these concepts ?

I am not looking for someone to give me the solution to the plate, I would
love to learn and understand parsing because I am very interested into
making Pharo easy to mix with Python code and allow Pharo to use Python
libraries without the user having to learn or code Python :)

As you may imagine this is a crucial ingredient for my project Ephestos
which tries to use Pharo to script Blender by either replacing or
cooperating with blender python. So learning a good way to parse pharo code
to python code and vice versa is extremely important for me.


Re: [Pharo-users] SmaCC: First steps

2015-01-28 Thread Johan Fabry
Hi Kilon,

I think it’s better that you take a look at PetitParser (e.g. 
http://www.themoosebook.org/book/internals/petit-parser 
 ) I have found 
PetitParser more user friendly than SmaCC.


> On Jan 28, 2015, at 14:53, kilon alios  wrote:
> 
> Ok I have read a few times of the tutorial of Smacc in here 
> http://www.refactoryworkers.com/SmaCC/ASTs.html 
> 
> 
> and I am also following the help tool documentation inside pharo for SmaCC 
> and I have to say I am very confused. Please bare with me because I am 
> extremely noob when it comes to parsing, this is my first effort. 
> 
> Now the way I understand it so far, is that SmaCC uses a syntax similar to 
> regex expressions to define parsers and scanners. Scanners evaluate a string 
> to see that it contains a valid form and parser divide to parts named as 
> "tokens" and help in the creating of ASTs which are basically hierarchy tree 
> containing the syntax elements of a language. 
> 
> Now in order to make SmaCC work I need to use the SmaCC tool that comes with 
> pharo . The smacc tool takes two inputs a scanner and a parser class. Does 
> that mean I need to create that parser and scanner class ? I thought since I 
> define the syntax that those things would be generated by the tool.
> 
> What I need to define exactly ?
> 
> Why when I select the PythonScanner2 and PythonParser2 and click then Compile 
> LR it gives a MNU receiver of method is nil ?
> 
> I am using latest Pharo 4 image. 
> 
> My goal is to parse python types to similar pharo objects. I get those python 
> types as strings and my main focus in lists, dictionaries and tuples . The 
> tricky part is that one can contain the other inside in every imagined way. 
> 
> The way I understand it I will need something called "transformations" to 
> convert those python types to OrderedCollections, Arrays etc and anything 
> would make more sense for a pharo coder. 
> 
> Additionally what is the meaning of the vertibal bar ?   --> | 
> eg. 
> | Number 
> 
> Are there any other tutorials that can help a beginner like me to understand 
> these concepts ? 
> 
> I am not looking for someone to give me the solution to the plate, I would 
> love to learn and understand parsing because I am very interested into making 
> Pharo easy to mix with Python code and allow Pharo to use Python libraries 
> without the user having to learn or code Python :) 
> 
> As you may imagine this is a crucial ingredient for my project Ephestos which 
> tries to use Pharo to script Blender by either replacing or cooperating with 
> blender python. So learning a good way to parse pharo code to python code and 
> vice versa is extremely important for me. 



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

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



Re: [Pharo-users] SmaCC: First steps

2015-01-28 Thread Thierry Goubier
2015-01-28 14:53 GMT+01:00 kilon alios :

> Ok I have read a few times of the tutorial of Smacc in here
> http://www.refactoryworkers.com/SmaCC/ASTs.html
>
> and I am also following the help tool documentation inside pharo for SmaCC
> and I have to say I am very confused. Please bare with me because I am
> extremely noob when it comes to parsing, this is my first effort.
>

Ok. I made sure the help was up to date with the current SmaCC; the online
tutorial may differ a bit (GUI, some of the class creation commands).


>
> Now the way I understand it so far, is that SmaCC uses a syntax similar to
> regex expressions to define parsers and scanners. Scanners evaluate a
> string to see that it contains a valid form and parser divide to parts
> named as "tokens" and help in the creating of ASTs which are basically
> hierarchy tree containing the syntax elements of a language.
>

Scanners divide the input stream in tokens with regular expressions.

Parsers builds (sort of: at least they follow the steps) a tree (a parse
tree) out of the tokens, parse tree which is reduced and simplified as an
AST. And the AST represent the structure of the source code (as per the
language definition in the grammar)


>
> Now in order to make SmaCC work I need to use the SmaCC tool that comes
> with pharo . The smacc tool takes two inputs a scanner and a parser class.
> Does that mean I need to create that parser and scanner class ? I thought
> since I define the syntax that those things would be generated by the tool.
>

If you give new classes, it will create them. If you give existing classes,
it will reuse them.


> What I need to define exactly ?
>
> Why when I select the PythonScanner2 and PythonParser2 and click then
> Compile LR it gives a MNU receiver of method is nil ?
>

This is the issue I told you about in Pharo 4. The fix is waiting for
review before integration (https://pharo.fogbugz.com/default.asp?14730).


>
> I am using latest Pharo 4 image.
>
> My goal is to parse python types to similar pharo objects. I get those
> python types as strings and my main focus in lists, dictionaries and tuples
> . The tricky part is that one can contain the other inside in every
> imagined way.
>
> The way I understand it I will need something called "transformations" to
> convert those python types to OrderedCollections, Arrays etc and anything
> would make more sense for a pharo coder.
>

With the PythonParser, you get a visitor generated, so you can subclass it
and visit the ast produced by the parser and generate the relevant
OrderedCollections.


>
> Additionally what is the meaning of the vertibal bar ?   --> |
> eg.
> | Number
>

It means or. For example,

Atom:
| Number
;

Would mean that Atom is either empty or a number.


>
> Are there any other tutorials that can help a beginner like me to
> understand these concepts ?
>

I don't have any at hand: I teach that at the moment, so I'm not delegating
to a tutorial for my students ;)


>
> I am not looking for someone to give me the solution to the plate, I would
> love to learn and understand parsing because I am very interested into
> making Pharo easy to mix with Python code and allow Pharo to use Python
> libraries without the user having to learn or code Python :)
>
> As you may imagine this is a crucial ingredient for my project Ephestos
> which tries to use Pharo to script Blender by either replacing or
> cooperating with blender python. So learning a good way to parse pharo code
> to python code and vice versa is extremely important for me.
>

The way it is set should support you well for doing what you want, so keep
doing it :)

Thierry


Re: [Pharo-users] SmaCC: First steps

2015-01-28 Thread kilon alios
Yes I am aware of PettitParser but the one thing that made me very
interested into SmaCC is that it already supports Python syntax parsing ,
though I think is for Python 2 but if its 2.7 it wont be much issue for me
that use Python 3.4 syntax.

>From a first look it looks PettitParser easier to use but Thiery told me
SmaCC is also fairly easy and personally I dont care so much I only want
something that gets the job done as fast as possible. Having an existing
python parser certainly makes things faster for me.

But yes I have played around with pettitparser and I really liked it.

On Wed, Jan 28, 2015 at 4:22 PM, Johan Fabry  wrote:

> Hi Kilon,
>
> I think it’s better that you take a look at PetitParser (e.g.
> http://www.themoosebook.org/book/internals/petit-parser ) I have found
> PetitParser more user friendly than SmaCC.
>
>
> On Jan 28, 2015, at 14:53, kilon alios  wrote:
>
> Ok I have read a few times of the tutorial of Smacc in here
> http://www.refactoryworkers.com/SmaCC/ASTs.html
>
> and I am also following the help tool documentation inside pharo for SmaCC
> and I have to say I am very confused. Please bare with me because I am
> extremely noob when it comes to parsing, this is my first effort.
>
> Now the way I understand it so far, is that SmaCC uses a syntax similar to
> regex expressions to define parsers and scanners. Scanners evaluate a
> string to see that it contains a valid form and parser divide to parts
> named as "tokens" and help in the creating of ASTs which are basically
> hierarchy tree containing the syntax elements of a language.
>
> Now in order to make SmaCC work I need to use the SmaCC tool that comes
> with pharo . The smacc tool takes two inputs a scanner and a parser class.
> Does that mean I need to create that parser and scanner class ? I thought
> since I define the syntax that those things would be generated by the tool.
>
> What I need to define exactly ?
>
> Why when I select the PythonScanner2 and PythonParser2 and click then
> Compile LR it gives a MNU receiver of method is nil ?
>
> I am using latest Pharo 4 image.
>
> My goal is to parse python types to similar pharo objects. I get those
> python types as strings and my main focus in lists, dictionaries and tuples
> . The tricky part is that one can contain the other inside in every
> imagined way.
>
> The way I understand it I will need something called "transformations" to
> convert those python types to OrderedCollections, Arrays etc and anything
> would make more sense for a pharo coder.
>
> Additionally what is the meaning of the vertibal bar ?   --> |
> eg.
> | Number
>
> Are there any other tutorials that can help a beginner like me to
> understand these concepts ?
>
> I am not looking for someone to give me the solution to the plate, I would
> love to learn and understand parsing because I am very interested into
> making Pharo easy to mix with Python code and allow Pharo to use Python
> libraries without the user having to learn or code Python :)
>
> As you may imagine this is a crucial ingredient for my project Ephestos
> which tries to use Pharo to script Blender by either replacing or
> cooperating with blender python. So learning a good way to parse pharo code
> to python code and vice versa is extremely important for me.
>
>
>
>
> ---> Save our in-boxes! http://emailcharter.org <---
>
> Johan Fabry   -   http://pleiad.cl/~jfabry
> PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile
>
>


Re: [Pharo-users] SmaCC: First steps

2015-01-28 Thread kilon alios
"Ok. I made sure the help was up to date with the current SmaCC; the online
tutorial may differ a bit (GUI, some of the class creation commands)."

Yes I am not complaining about your effort. I am just new with parsing and
everything looks alien to me :D

I am mostly following your documentation inside pharo but I dont mind
reading anything available.

"Scanners divide the input stream in tokens with regular expressions."

ok so regular expressions are used, good I am familiar with them because
already used them to parse pharo messages to python method calls. At least
I know something useful :)

"If you give new classes, it will create them. If you give existing
classes, it will reuse them."

Ok so creating classes for parser an scanner is only optional. That mean
that those classes can do some extra work that is not defined with the
SmaCC syntax.

"This is the issue I told you about in Pharo 4. The fix is waiting for
review before integration (https://pharo.fogbugz.com/default.asp?14730)."

Ah yes now I remember, I could review it I am a member of pharo fogbuz but
I am clueless of how it works and what it affects so maybe I am not a good
reviewer in this case.

"With the PythonParser, you get a visitor generated, so you can subclass it
and visit the ast produced by the parser and generate the relevant
OrderedCollections."

Roger so that means I will have to take a deep look into PythonParser class
and try to figure things out.

"It means or."

I assumed so , but I wanted to make sure.

"I don't have any at hand: I teach that at the moment, so I'm not
delegating to a tutorial for my students ;)"

I was not aware that you are a teacher and that you teach SmaCC , cool. So
I think I will try to put more effort to reading the tutorial and
experimenting with Pharo 3 till Pharo 4 is fixed.

"The way it is set should support you well for doing what you want, so keep
doing it :)"

Great if you say I can do this , this is already great news for me. The
effort is not a problem , no pain no gain. I will be back with more
questions.


Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Hi Mark,

that works! Thanks!

But I still hava a problem here.

First the svg does not resive properly while resizing the window. The 
svg is part of a ComposibleModel
How can I also introduce an animated SVG? Like an svg that changes color 
during a mouse click?
Are there any particular Models that could be used as a container for 
this SVGMorphAdapter?


I saw a project that added such funktionalities to SVGs like animations 
within Pharo, but I can't find it anymore. I assume that's why it wasn't 
continued?


Thanks
Sebastian


Am 27.01.2015 um 08:02 schrieb Mark Rizun:

Hi,

Not sure if it helps but for morphs you have next "transformation to 
model":


||  morph|
 
 morph  :=  CalendarMorph  on:  Date  today.

 ^  morph  asSpecAdapter|

Please read details here:
http://spec.st/docs/insert-morph/

Mark

2015-01-27 16:57 GMT+01:00 Sebastian Heidbrink >:


Hi!

Okay so I am currently trying Spec out and I need some advice.

Which is the Model to use for a ASVGMorph ("AthensSvgMorph")?

Is there an example availabel somewhere?

Thanks
Sebastian






Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Mark Rizun
>
> First the svg does not resive properly while resizing the window.
>

What do you mean by this?


> How can I also introduce an animated SVG? Like an svg that changes color
> during a mouse click?
>

To work with events that are implemented in AthensSvgMorph you have to (as
far as I know) access this morph.
You can do it by sending #widget message to your model to times like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a mouse click".


> Are there any particular Models that could be used as a container for this
> SVGMorphAdapter?
>

 SVGMorphAdapter is a class that represents a layer betwen SVGMorph and
model of svg in spec.
It allows model and morph to "communicate" with each other.

Mark


[Pharo-users] Compatibility of Cypress, FileTree, STIG ?

2015-01-28 Thread Damien Pollet
Hi all,

I'm trying to exchange code between VW and Pharo, but STIG does not seem to
generate the same properties, and puts comment at the start of method files
instead of the method category name, which confuses FileTree on the Pharo
end.

Any suggestions?

-- 
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet


Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing the window.


What do you mean by this?


Well, I implemented the example window from spec.st and added a 
ASVGMorph to it.
When I now resize the window, then the button changes his size correctly 
but the svg somhow just seems to be put into the background.
I then implemented a SVGMorpModel that includes a ASVGMorpAdapter and 
adde dthis one to my example window but the result is that the SVG 
resizes just half the speed...




How can I also introduce an animated SVG? Like an svg that changes
color during a mouse click?


To work with events that are implemented in AthensSvgMorph you have to 
(as far as I know) access this morph.

You can do it by sending #widget message to your model to times like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a mouse click".

Are there any particular Models that could be used as a container
for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen SVGMorph 
and model of svg in spec.

It allows model and morph to "communicate" with each other.

Mark




Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Mark Rizun
I have the same problem with PolygonMorph. It does not resize properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me know.

Mark

2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink :

>  Am 28.01.2015 um 07:07 schrieb Mark Rizun:
>
>First the svg does not resive properly while resizing the window.
>>
>
>  What do you mean by this?
>
>
> Well, I implemented the example window from spec.st and added a ASVGMorph
> to it.
> When I now resize the window, then the button changes his size correctly
> but the svg somhow just seems to be put into the background.
> I then implemented a SVGMorpModel that includes a ASVGMorpAdapter and adde
> dthis one to my example window but the result is that the SVG resizes just
> half the speed...
>
>
>
>
>>  How can I also introduce an animated SVG? Like an svg that changes
>> color during a mouse click?
>>
>
>  To work with events that are implemented in AthensSvgMorph you have to
> (as far as I know) access this morph.
> You can do it by sending #widget message to your model to times like this:
>
>  svgModel widget widget ==> svgMorph
>
>  Than morph can handle events like "changes color during a mouse click".
>
>
>>  Are there any particular Models that could be used as a container for
>> this SVGMorphAdapter?
>>
>
>   SVGMorphAdapter is a class that represents a layer betwen SVGMorph and
> model of svg in spec.
> It allows model and morph to "communicate" with each other.
>
>  Mark
>
>
>


Re: [Pharo-users] Waiting object

2015-01-28 Thread Laura Risani
Hi Ben ,
#fork let me implement the overall functionality i wanted, but i had to
introduce some minor changes into the design to reflect the concurrent
nature of the msg. So i still feel curious about how one could implement
this msg

Waiting>> wait : seconds
"i take the flow control during 'seconds' without halting image morphs and
only then return to the sender "

Best,
Laura

On Tue, Jan 27, 2015 at 7:00 PM, Ben Coman  wrote:

> Hi Laura, Can you provide some more context by pasting code for how you
> expect both your UI and calculation methods to interact? What is the
> application?
>
> cheers -ben
>
> On Wed, Jan 28, 2015 at 5:49 AM, Laura Risani 
> wrote:
>
>> Hi all,
>> Thank you for your answers.
>>
>> But i yet can't see how to implement the method i wanted, because #fork
>> schedules the process and immediately returns but i'd like to wait and only
>> then return the answer.
>>
>>
>> Best,
>> Laura
>>
>> On Tue, Jan 27, 2015 at 3:46 PM, Laura Risani 
>> wrote:
>>
>>> Hi all,
>>>
>>> I need an object/method like this one
>>>
>>> Waiting>> wait : seconds
>>> "i take the flow control during 'seconds' without halting image morphs
>>> stepping/handling (as Delay>>wait: does) and then return to the sender "
>>>
>>> How can i implement it?
>>> Where can i borrow for reuse an existing one from?
>>>
>>>
>>> Best,
>>> Laura
>>>
>>
>>
>


Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Welcome to the world of Smalltalk!


Am 28.01.2015 um 07:27 schrieb Mark Rizun:

I have the same problem with PolygonMorph. It does not resize properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me know.

Mark

2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink >:


Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing the window.


What do you mean by this?


Well, I implemented the example window from spec.st
 and added a ASVGMorph to it.
When I now resize the window, then the button changes his size
correctly but the svg somhow just seems to be put into the background.
I then implemented a SVGMorpModel that includes a ASVGMorpAdapter
and adde dthis one to my example window but the result is that the
SVG resizes just half the speed...



How can I also introduce an animated SVG? Like an svg that
changes color during a mouse click?


To work with events that are implemented in AthensSvgMorph you
have to (as far as I know) access this morph.
You can do it by sending #widget message to your model to times
like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a mouse
click".

Are there any particular Models that could be used as a
container for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen
SVGMorph and model of svg in spec.
It allows model and morph to "communicate" with each other.

Mark







[Pharo-users] Why single inheritance?

2015-01-28 Thread Laura Risani
Hi all,

What is the explanation why Smalltalk designers preferred single
inheritance+traits to multiple inheritance? Why is the former better than
the latter?
Do traits let you share state also or only behavior?

Best,
Laura


[Pharo-users] dirty packages

2015-01-28 Thread Usman Bhatti
Hello,

I have two packages MyPackage and MyPackage-Ext. When I load MyPackge-Ext,
MyPackage becomes dirty and do not have any clue why. When I try to see
changes in MyPackage in Monticello Browser, the package becomes clean again.

There are two possibilities why MyPackage-Ext makes MyPackage dirty:
-> There are names conflict of some sort (MyPackage-Ext can be seen as a
category for MyPackage).
-> Overriding of the extension methods introduced on the third package. Now
I wrote a small script to verify it:
firstCollection := (RPackage organizer packageNamed: 'MyPackage')
extensionMethods values flatten.
secondCollection := (RPackage organizer packageNamed: 'MyPackage-Ext')
extensionMethods values flatten.
(secondCollection intersection: firstCollection)
The above script gives empty result so there are no overriding selectors.

Any ideas how can I hack into Monticello to see what is causing MyPackage
to become dirty while I load the second one manually. May be by logging the
override load definitions on Transcript?

In general, will it be possible to see overriding without these
disappearing when doing changes on a dirty package?


tx in advance.

Usman


Re: [Pharo-users] Why single inheritance?

2015-01-28 Thread Clément Bera
2015-01-28 16:41 GMT+01:00 Laura Risani :

> Hi all,
>
> What is the explanation why Smalltalk designers preferred single
> inheritance+traits to multiple inheritance? Why is the former better than
> the latter?
> Do traits let you share state also or only behavior?
>

Traits only share behaviors.

As you guessed, it is still questionable to many people if multiple
inheritance is good because state can be inherited multiple times. For
example, what do happen if C inherits from A and B and that both A and B
have a field name i. There are existing solutions for this problem but
they're all not perfect.

Traits were implemented language-side only. If you want you can implement
multiple inheritance language side only too (as for traits, you'll have to
add virtual copies of methods and if state is shared too you'll have
virtual copies of instance variables to run on our current VM), and see
which one you prefer. I'd be glad to hear your feedback on that.


> Best,
> Laura
>


Re: [Pharo-users] dirty packages

2015-01-28 Thread Esteban Lorenzano
You can try rebuilding the rpackage structure. 

1) close all browsers
2) execute RPackageOrganizer default initializeFromMC

Esteban

> On 28 Jan 2015, at 16:50, Usman Bhatti  wrote:
> 
> Hello,
> 
> I have two packages MyPackage and MyPackage-Ext. When I load MyPackge-Ext, 
> MyPackage becomes dirty and do not have any clue why. When I try to see 
> changes in MyPackage in Monticello Browser, the package becomes clean again.
> 
> There are two possibilities why MyPackage-Ext makes MyPackage dirty:
> -> There are names conflict of some sort (MyPackage-Ext can be seen as a 
> category for MyPackage).
> -> Overriding of the extension methods introduced on the third package. Now I 
> wrote a small script to verify it:
> firstCollection := (RPackage organizer packageNamed: 'MyPackage') 
> extensionMethods values flatten.
> secondCollection := (RPackage organizer packageNamed: 'MyPackage-Ext') 
> extensionMethods values flatten.
> (secondCollection intersection: firstCollection) 
> The above script gives empty result so there are no overriding selectors.
> 
> Any ideas how can I hack into Monticello to see what is causing MyPackage to 
> become dirty while I load the second one manually. May be by logging the 
> override load definitions on Transcript?
> 
> In general, will it be possible to see overriding without these disappearing 
> when doing changes on a dirty package?
> 
> 
> tx in advance.
> 
> Usman
> 
> 




[Pharo-users] PostGIS in Pharo

2015-01-28 Thread Esteban A. Maringolo
Is there anybody using PostGIS in Pharo?

Regards!

Esteban A. Maringolo


Re: [Pharo-users] Waiting object

2015-01-28 Thread Ben Coman
On Wed, Jan 28, 2015 at 11:31 PM, Laura Risani 
wrote:

> Hi Ben ,
> #fork let me implement the overall functionality i wanted, but i had to
> introduce some minor changes into the design to reflect the concurrent
> nature of the msg. So i still feel curious about how one could implement
> this msg
>
> Waiting>> wait : seconds
> "i take the flow control during 'seconds' without halting image morphs and
> only then return to the sender "
>

There is only one Morphic UI loop process which repetitively cycles for
Morph stepping and the main interactive UI.  Use "Tools > Process Browser"
to take a look at that process (priority=40) and its stack and you'll
WorldMorph>>doOnceCycle.  If you are curious, you can put a "self haltOnce"
in that method and invoke it using  "System > Enable halt/inspect once" and
it will spawn that fault in that cycle off to another process you can trace
through, while the main process continues to cycle.

However if you perform a non-concurrent #wait or busy calculation, then the
UI loop is prevented from looping at its usual speed (see #interCyclePause).

cheers -ben


>
> Best,
> Laura
>
> On Tue, Jan 27, 2015 at 7:00 PM, Ben Coman  wrote:
>
>> Hi Laura, Can you provide some more context by pasting code for how you
>> expect both your UI and calculation methods to interact? What is the
>> application?
>>
>> cheers -ben
>>
>> On Wed, Jan 28, 2015 at 5:49 AM, Laura Risani 
>> wrote:
>>
>>> Hi all,
>>> Thank you for your answers.
>>>
>>> But i yet can't see how to implement the method i wanted, because #fork
>>> schedules the process and immediately returns but i'd like to wait and only
>>> then return the answer.
>>>
>>>
>>> Best,
>>> Laura
>>>
>>> On Tue, Jan 27, 2015 at 3:46 PM, Laura Risani 
>>> wrote:
>>>
 Hi all,

 I need an object/method like this one

 Waiting>> wait : seconds
 "i take the flow control during 'seconds' without halting image morphs
 stepping/handling (as Delay>>wait: does) and then return to the sender "

 How can i implement it?
 Where can i borrow for reuse an existing one from?


 Best,
 Laura

>>>
>>>
>>
>


[Pharo-users] New book for Pharo :)

2015-01-28 Thread stepharo
Didier Besset offered his great book "Object-Oriented Implementation of 
Numerical Methods

An Introduction with Smalltalk and Java" to the community.

We would like to thank Didier Besset for his great book and for his gift 
of the source and implementation to the community.



You can find
• Archive of the original book, with code in both Java and 
Smalltalk 
https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods


 
https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods/blob/master/NumericalMethods/2015-Jan-WholeBookST-Java.pdf


• An abridged version of Didier’s book, without the Java 
implementation and reference; our goal is to make the book slimmer and 
easier to read. The implementation presented in this book is part of the 
SciSmalltalk library.


https://github.com/SquareBracketAssociates/NumericalMethods

 
https://github.com/SquareBracketAssociates/NumericalMethods/blob/master/2015-Jan-WholeBook.pdf


• SciSmalltalk library https://github.com/SergeStinckwich/SciSmalltalk.

 Both book versions are maintained by St ́ephane Ducasse and Serge 
Stinckwich.


 27 Janvier 2015




Re: [Pharo-users] Supporting Start up around Pharo

2015-01-28 Thread stepharo

This includes one year salary.
But it requires building a case and being motivated :)

Le 28/1/15 11:51, stepharo a écrit :

Hi guys

if you are considering to create a start up around Pharo, we could 
find one year financial support
if this is serious and that you would like to come to work around 
Lille or France.


Stef







Re: [Pharo-users] Why single inheritance?

2015-01-28 Thread Damien Pollet
Mostly, multiple inheritance is difficult to implement well in a simple
enough form.

The only language I know of that has a reasonably usable version of it is
Eiffel (probably Nit too, but I don't know enough about it
http://nitlanguage.org). There is the diamond inheritance problem, the
problem that inheritance (even in Smalltalk) mixes subtyping (interface
extension) and reuse of implementation, problems of how to linearize method
lookup, etc.


On 28 January 2015 at 16:41, Laura Risani  wrote:

> Hi all,
>
> What is the explanation why Smalltalk designers preferred single
> inheritance+traits to multiple inheritance? Why is the former better than
> the latter?
> Do traits let you share state also or only behavior?
>
> Best,
> Laura
>


Re: [Pharo-users] Why single inheritance?

2015-01-28 Thread Cameron Sanders via Pharo-users
--- Begin Message ---
Because smalltalk methods require so little code that overt-delegation is
both easy to author and to understand.

If on the other hand, one needs to repeatedly tell the compiler what types
of data shall be used used, and then insert numerous delimiters, such
delegation becomes onerous... and ... then one would beg for a compiler
solution.

-cam

On Wed, Jan 28, 2015 at 10:41 AM, Laura Risani 
wrote:

> Hi all,
>
> What is the explanation why Smalltalk designers preferred single
> inheritance+traits to multiple inheritance? Why is the former better than
> the latter?
> Do traits let you share state also or only behavior?
>
> Best,
> Laura
>
--- End Message ---


Re: [Pharo-users] Why single inheritance?

2015-01-28 Thread Cameron Sanders via Pharo-users
--- Begin Message ---
Laura,

Obviously, I should have let the experts answer, and I did not answer all
of your questions in that last quick-off-the-cuff
diss-the-strongly-typed-languages answer. My apologies.

For me, i like to keep the namespace clean. And one must admit, with
multiple inheritance, things can get confusing, and in some cases, the
wrong methods come into play. If one breaks free of inheritance as a means
to gain polymorphism, code re-usability can grow considerably, and the
ability to substitute classes to be used by a 3rd party libraries grows
with it.

I generally prefer delegation(/decoration) approaches to inheritance, in
part just to control the namespace and "interface" of a class.

Traits are still not widely available in different smalltalks, are they?

-Cam

On Wed, Jan 28, 2015 at 10:41 AM, Laura Risani 
wrote:

> Hi all,
>
> What is the explanation why Smalltalk designers preferred single
> inheritance+traits to multiple inheritance? Why is the former better than
> the latter?
> Do traits let you share state also or only behavior?
>
> Best,
> Laura
>
--- End Message ---


Re: [Pharo-users] Building 3D shapes in Roassal with interaction. Unexpected behaviour?

2015-01-28 Thread Ronie Salgado
Hello Nicolas,

Thanks for pointing this bug. I just fixed it in Woden-Core-RonieSalgado.64
. Can you try again?

Greetings,
Ronie

2015-01-28 10:40 GMT-03:00 Nicolas Lusa :

> v := RWView new.
>
> e := (RWPyramid new) element.
> e on: RWMouseButtonDown do: [ :ev |
> ev element shape color: WDColor blue.
> ev element changed.
> ].
> v add: e.
>
> g := (RWCube new) element.
> g on: RWMouseButtonDown do: [ :ev |
> ev element shape color: WDColor green.
> ev element changed.
> ].
> g translateBy:(WDVector3 newX: 4.0 y: 0.0 z: 0.0).
> v add: g .
>
> f := (RWCylinder new) element.
> f on: RWMouseButtonDown do: [ :ev |
> ev element shape color: WDColor red.
> ev element changed.
> ].
> f translateBy:(WDVector3 newX: 2.0 y: 0.0 z: 0.0).
> v add: f.
>
> v addInteraction: RWMouseKeyControl.
> v camera position: (WDVector3 x: 0.0 y: 0.0 z: 3.0).
> v open.
>


Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Hernán Morales Durand
2015-01-28 14:21 GMT-03:00 stepharo :

> Didier Besset offered his great book "Object-Oriented Implementation of
> Numerical Methods
> An Introduction with Smalltalk and Java" to the community.
>
> We would like to thank Didier Besset for his great book and for his gift
> of the source and implementation to the community.
>
>
This is indeed, great news.


>
> You can find
> • Archive of the original book, with code in both Java and Smalltalk
> https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods
>
>  https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods/
> blob/master/NumericalMethods/2015-Jan-WholeBookST-Java.pdf
>
>
> • An abridged version of Didier’s book, without the Java
> implementation and reference; our goal is to make the book slimmer and
> easier to read. The implementation presented in this book is part of the
> SciSmalltalk library.
>
>
The implementation presented in his book is part of the NumericalMethods
library.

You want to promote SciSmalltalk, then first respect others.
NumericalMethods could be part of SciSmalltalk, but it is the library where
code was originally released.

Cheers,

Hernán


Re: [Pharo-users] PostGIS in Pharo

2015-01-28 Thread Hernán Morales Durand
Can you comment what are you trying to do?

Hernán


2015-01-28 13:10 GMT-03:00 Esteban A. Maringolo :

> Is there anybody using PostGIS in Pharo?
>
> Regards!
>
> Esteban A. Maringolo
>


Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread stepharo

Hernan

This is 8 months that I push didier to release it. I spent my week-end 
to edit it.

So when you talk about respect use your energy th right way.

Stef



2015-01-28 14:21 GMT-03:00 stepharo >:


Didier Besset offered his great book "Object-Oriented
Implementation of Numerical Methods
An Introduction with Smalltalk and Java" to the community.

We would like to thank Didier Besset for his great book and for
his gift of the source and implementation to the community.


This is indeed, great news.


You can find
• Archive of the original book, with code in both Java and
Smalltalk
https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods


https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods/blob/master/NumericalMethods/2015-Jan-WholeBookST-Java.pdf


• An abridged version of Didier’s book, without the Java
implementation and reference; our goal is to make the book slimmer
and easier to read. The implementation presented in this book is
part of the SciSmalltalk library.


The implementation presented in his book is part of the 
NumericalMethods library.


You want to promote SciSmalltalk, then first respect others. 
NumericalMethods could be part of SciSmalltalk, but it is the library 
where code was originally released.


Cheers,

Hernán





Re: [Pharo-users] PostGIS in Pharo

2015-01-28 Thread Esteban A. Maringolo
Sure,

I'll collect georeferenced data in a mobile app, which I'll later have to
group each one according to whether they fall inside a certain polygon
(geopolitcal boundaries, like city, district, province, etc.).
I could also geocode the coordinate and store all that data (city,
district, province, etc.), and then just group by each of these. And then
I'll have to plot that data on a choropleth map.

But I'm asking to know if somebody has somehow mapped smalltalk geometry
objects to the typical geometry object of PostGIS. Something like PGPoint,
PGPolygon, that can "translate" themselves from/to string literals.

I'm trying to avoid writing everything by hand in SQL.

Regards!

pd: I'm also considering using something like CartoDB for this task, which
is a few levels of abstraction higher.


Esteban A. Maringolo

2015-01-28 16:07 GMT-03:00 Hernán Morales Durand :

> Can you comment what are you trying to do?
>
> Hernán
>
>
> 2015-01-28 13:10 GMT-03:00 Esteban A. Maringolo :
>
>> Is there anybody using PostGIS in Pharo?
>>
>> Regards!
>>
>> Esteban A. Maringolo
>>
>
>


Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Hernán Morales Durand
I see and appreciate your effort really, but there is no reason to hide
NumericalMethods from the book announcement.
I am trying to avoid what the Python community did with NumPy and SciPy
which is a mess.

Hernán


2015-01-28 16:16 GMT-03:00 stepharo :

>  Hernan
>
> This is 8 months that I push didier to release it. I spent my week-end to
> edit it.
> So when you talk about respect use your energy th right way.
>
> Stef
>
>
>
> 2015-01-28 14:21 GMT-03:00 stepharo :
>
>> Didier Besset offered his great book "Object-Oriented Implementation of
>> Numerical Methods
>> An Introduction with Smalltalk and Java" to the community.
>>
>> We would like to thank Didier Besset for his great book and for his gift
>> of the source and implementation to the community.
>>
>>
>  This is indeed, great news.
>
>
>>
>> You can find
>> • Archive of the original book, with code in both Java and Smalltalk
>> https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods
>>
>>
>> https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods/blob/master/NumericalMethods/2015-Jan-WholeBookST-Java.pdf
>>
>>
>> • An abridged version of Didier’s book, without the Java
>> implementation and reference; our goal is to make the book slimmer and
>> easier to read. The implementation presented in this book is part of the
>> SciSmalltalk library.
>>
>>
>  The implementation presented in his book is part of the NumericalMethods
> library.
>
>  You want to promote SciSmalltalk, then first respect others.
> NumericalMethods could be part of SciSmalltalk, but it is the library where
> code was originally released.
>
>  Cheers,
>
> Hernán
>
>
>


Re: [Pharo-users] PostGIS in Pharo

2015-01-28 Thread Hernán Morales Durand
2015-01-28 16:18 GMT-03:00 Esteban A. Maringolo :

> Sure,
>
> I'll collect georeferenced data in a mobile app, which I'll later have to
> group each one according to whether they fall inside a certain polygon
> (geopolitcal boundaries, like city, district, province, etc.).
> I could also geocode the coordinate and store all that data (city,
> district, province, etc.), and then just group by each of these. And then
> I'll have to plot that data on a choropleth map.
>
> But I'm asking to know if somebody has somehow mapped smalltalk geometry
> objects to the typical geometry object of PostGIS. Something like PGPoint,
> PGPolygon, that can "translate" themselves from/to string literals.
>
>
I don't know about PostGIS, but if you need boundary datasets there is GADM
or GeoNames which may cover your needs.
Recently I did a ST script to read from GADM using a dBase package. And you
could query throug SPARQL too.

Hernán


Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread p...@highoctane.be
Excellent news!​


Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread stepharo


I see and appreciate your effort really, but there is no reason to 
hide NumericalMethods from the book announcement.
I do not know NumericalMethods. I vaguely recall that you were no happy 
that serge wants to change the code

because it would not be in sync with the book. Now we can co-evolve them.
Every I do is open-source and freely accessible so position yourself and 
join effort (I do not like SciSmalltalk as a name).

Now we have the possibility to make on nice library but you need to sync.
I am trying to avoid what the Python community did with NumPy and 
SciPy which is a mess.


Ah you see you have to sync with Serge. I think that Serge was not aware 
about that you publish the code in your repository.
Now we want to rename the acronym (because DHB is not good) and probably 
improve the code
of the library while keeping the book in sync (like using String 
streamContents for printing).
I personally hate to see all the comment with a copyright and a commit 
dates.


Stef


Hernán


2015-01-28 16:16 GMT-03:00 stepharo >:


Hernan

This is 8 months that I push didier to release it. I spent my
week-end to edit it.
So when you talk about respect use your energy th right way.

Stef




2015-01-28 14:21 GMT-03:00 stepharo mailto:steph...@free.fr>>:

Didier Besset offered his great book "Object-Oriented
Implementation of Numerical Methods
An Introduction with Smalltalk and Java" to the community.

We would like to thank Didier Besset for his great book and
for his gift of the source and implementation to the community.


This is indeed, great news.


You can find
• Archive of the original book, with code in both Java
and Smalltalk
https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods


https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods/blob/master/NumericalMethods/2015-Jan-WholeBookST-Java.pdf


• An abridged version of Didier’s book, without the Java
implementation and reference; our goal is to make the book
slimmer and easier to read. The implementation presented in
this book is part of the SciSmalltalk library.


The implementation presented in his book is part of the
NumericalMethods library.

You want to promote SciSmalltalk, then first respect others.
NumericalMethods could be part of SciSmalltalk, but it is the
library where code was originally released.

Cheers,

Hernán








Re: [Pharo-users] PostGIS in Pharo

2015-01-28 Thread stepharo

Why would you have to do that in SQL?
Why you cannot import PGPoint and PGPolygon in Pharo?

Sure,

I'll collect georeferenced data in a mobile app, which I'll later have 
to group each one according to whether they fall inside a certain 
polygon (geopolitcal boundaries, like city, district, province, etc.).
I could also geocode the coordinate and store all that data (city, 
district, province, etc.), and then just group by each of these. And 
then I'll have to plot that data on a choropleth map.


But I'm asking to know if somebody has somehow mapped smalltalk 
geometry objects to the typical geometry object of PostGIS. Something 
like PGPoint, PGPolygon, that can "translate" themselves from/to 
string literals.


I'm trying to avoid writing everything by hand in SQL.

Regards!

pd: I'm also considering using something like CartoDB for this task, 
which is a few levels of abstraction higher.



Esteban A. Maringolo

2015-01-28 16:07 GMT-03:00 Hernán Morales Durand 
mailto:hernan.mora...@gmail.com>>:


Can you comment what are you trying to do?

Hernán


2015-01-28 13:10 GMT-03:00 Esteban A. Maringolo
mailto:emaring...@gmail.com>>:

Is there anybody using PostGIS in Pharo?

Regards!

Esteban A. Maringolo







Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Tudor Girba
Great news indeed!

Thanks,
Doru

On Wed, Jan 28, 2015 at 6:21 PM, stepharo  wrote:

> Didier Besset offered his great book "Object-Oriented Implementation of
> Numerical Methods
> An Introduction with Smalltalk and Java" to the community.
>
> We would like to thank Didier Besset for his great book and for his gift
> of the source and implementation to the community.
>
>
> You can find
> • Archive of the original book, with code in both Java and Smalltalk
> https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods
>
>  https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods/
> blob/master/NumericalMethods/2015-Jan-WholeBookST-Java.pdf
>
>
> • An abridged version of Didier’s book, without the Java
> implementation and reference; our goal is to make the book slimmer and
> easier to read. The implementation presented in this book is part of the
> SciSmalltalk library.
>
> https://github.com/SquareBracketAssociates/NumericalMethods
>
>  https://github.com/SquareBracketAssociates/NumericalMethods/blob/master/
> 2015-Jan-WholeBook.pdf
>
>
> • SciSmalltalk library https://github.com/SergeStinckwich/SciSmalltalk
> .
>
>  Both book versions are maintained by St ́ephane Ducasse and Serge
> Stinckwich.
>
>  27 Janvier 2015
>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-users] PostGIS in Pharo

2015-01-28 Thread Esteban A. Maringolo
2015-01-28 17:01 GMT-03:00 Hernán Morales Durand :

>
>
> 2015-01-28 16:18 GMT-03:00 Esteban A. Maringolo :
>
>>
>> I don't know about PostGIS, but if you need boundary datasets there is
> GADM or GeoNames which may cover your needs.
> Recently I did a ST script to read from GADM using a dBase package. And
> you could query throug SPARQL too.
>
>
GADM is EXACTLY the database I was looking for.

I didn't understand the dbase package part, but I was able to download a
KMZ file with all needed.

Thank you SO MUCH!


Esteban A. Maringolo


Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread stepharo

It was a bit easy to say that.
You can get frustrated by the state of certain libraries and I can tell 
you that we are fighting daily
to improve the system (writing doc, fighting to get funds for engineers, 
coding).

Now you should ask yourself how you can help pharo.

Stef

Welcome to the world of Smalltalk!


Am 28.01.2015 um 07:27 schrieb Mark Rizun:

I have the same problem with PolygonMorph. It does not resize properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me know.

Mark

2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink >:


Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing the
window.


What do you mean by this?


Well, I implemented the example window from spec.st
 and added a ASVGMorph to it.
When I now resize the window, then the button changes his size
correctly but the svg somhow just seems to be put into the
background.
I then implemented a SVGMorpModel that includes a ASVGMorpAdapter
and adde dthis one to my example window but the result is that
the SVG resizes just half the speed...



How can I also introduce an animated SVG? Like an svg that
changes color during a mouse click?


To work with events that are implemented in AthensSvgMorph you
have to (as far as I know) access this morph.
You can do it by sending #widget message to your model to times
like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a mouse
click".

Are there any particular Models that could be used as a
container for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen
SVGMorph and model of svg in spec.
It allows model and morph to "communicate" with each other.

Mark









Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Hi Mark,

can you send me an example implementation on this?

I'll try to find a solution that might work for both of us. It is easier 
to find the reason with a second reference implementation, I guess.


Sebastian



Am 28.01.2015 um 07:27 schrieb Mark Rizun:

I have the same problem with PolygonMorph. It does not resize properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me know.

Mark

2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink >:


Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing the window.


What do you mean by this?


Well, I implemented the example window from spec.st
 and added a ASVGMorph to it.
When I now resize the window, then the button changes his size
correctly but the svg somhow just seems to be put into the background.
I then implemented a SVGMorpModel that includes a ASVGMorpAdapter
and adde dthis one to my example window but the result is that the
SVG resizes just half the speed...



How can I also introduce an animated SVG? Like an svg that
changes color during a mouse click?


To work with events that are implemented in AthensSvgMorph you
have to (as far as I know) access this morph.
You can do it by sending #widget message to your model to times
like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a mouse
click".

Are there any particular Models that could be used as a
container for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen
SVGMorph and model of svg in spec.
It allows model and morph to "communicate" with each other.

Mark







Re: [Pharo-users] Pharo Sound of Silence

2015-01-28 Thread stepharo

Could you add a bug report so that we add that to the list of esteban.

Stef

Le 25/1/15 22:43, Nicolai Hess a écrit :
I don't know exaclty why we don't build the pulse audio plugin for 
pharo. But you can

take a squeak vm (Squeak-4.3-all-in-one) for example and copy the
Squeak-4.3-All-in-One/Contents/Linux-i686/lib/squeak/4.4.7-2357/so.vm-sound-pulse
in your pharo-vm directory
pharo-vm/vm-sound-pulse

after that, sound works at least on ubuntu 14.04 with latest pharo vm 
and image and pharoextras/sound package





2015-01-25 19:11 GMT+01:00 Evan Donahue >:


64-bit Arch linux 3.17.6-1-ARCH

I seem to be running pulse-audio with alsa, and I believe I have
all the
32-compadibility libraries installed, but my experience with linux
sound is
limited. What is Pharo expecting?

Thanks,
Evan



--
View this message in context:
http://forum.world.st/Pharo-Sound-of-Silence-tp4801562p4801584.html
Sent from the Pharo Smalltalk Users mailing list archive at
Nabble.com.






Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Mark Rizun
It is in rewrite tool that I'm developing.
You can download it here:

http://smalltalkhub.com/#!/~MarkRizun/RewriteTool

The morph is used, for example, in RewriteRuleBuilder>>#statusBarForMatch

Mark

2015-01-28 21:24 GMT+01:00 Sebastian Heidbrink :

>  Hi Mark,
>
> can you send me an example implementation on this?
>
> I'll try to find a solution that might work for both of us. It is easier
> to find the reason with a second reference implementation, I guess.
>
> Sebastian
>
>
>
> Am 28.01.2015 um 07:27 schrieb Mark Rizun:
>
> I have the same problem with PolygonMorph. It does not resize properly.
> Also I couldn't find any event related with window resizing.
> If you find a solution please let me know.
>
>  Mark
>
> 2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink :
>
>>  Am 28.01.2015 um 07:07 schrieb Mark Rizun:
>>
>>First the svg does not resive properly while resizing the window.
>>>
>>
>>  What do you mean by this?
>>
>>
>>  Well, I implemented the example window from spec.st and added a
>> ASVGMorph to it.
>> When I now resize the window, then the button changes his size correctly
>> but the svg somhow just seems to be put into the background.
>> I then implemented a SVGMorpModel that includes a ASVGMorpAdapter and
>> adde dthis one to my example window but the result is that the SVG resizes
>> just half the speed...
>>
>>
>>
>>
>>>  How can I also introduce an animated SVG? Like an svg that changes
>>> color during a mouse click?
>>>
>>
>>  To work with events that are implemented in AthensSvgMorph you have to
>> (as far as I know) access this morph.
>> You can do it by sending #widget message to your model to times like this:
>>
>>  svgModel widget widget ==> svgMorph
>>
>>  Than morph can handle events like "changes color during a mouse click".
>>
>>
>>>  Are there any particular Models that could be used as a container for
>>> this SVGMorphAdapter?
>>>
>>
>>   SVGMorphAdapter is a class that represents a layer betwen SVGMorph and
>> model of svg in spec.
>> It allows model and morph to "communicate" with each other.
>>
>>  Mark
>>
>>
>>
>
>


Re: [Pharo-users] Pharo Sound of Silence

2015-01-28 Thread stepharo




But I don't understand why we do not use the pulse plugin with pharo.
(vm-sound-OSS is working too, and the source is already in the source 
tree)




I do not know either.

Stef



Re: [Pharo-users] PostGIS in Pharo

2015-01-28 Thread Esteban A. Maringolo
2015-01-28 17:17 GMT-03:00 stepharo :

>  Why would you have to do that in SQL?
>

PostGIS is a little more than SQL, SQL enables you to query it, but it
provides you with a lot of GIS functionality.
I woudn't load a million rows into Pharo memory to search nearby locations
to a coordinate, or group results based on whether they are inside of a
certain boundary.

Why you cannot import PGPoint and PGPolygon in Pharo?
>
>
Right now there is no PGPoint nor any of the PostGIS geometry objects in
Pharo. Mainly because of that.
If its worth, I might end up creating those abstractions. So I can also
create the proper "converter" to map back and forth using GLORP.

Regards,

Esteban A. Maringolo


Re: [Pharo-users] dirty packages

2015-01-28 Thread Usman Bhatti
Esteban,

I tried your script in my image. I did not help i.e. dirty packages are
still present in Monticello browser ( and I still do not know why).

On Wed, Jan 28, 2015 at 5:05 PM, Esteban Lorenzano 
wrote:

> You can try rebuilding the rpackage structure.
>
> 1) close all browsers
> 2) execute RPackageOrganizer default initializeFromMC
>
> Esteban
>
> > On 28 Jan 2015, at 16:50, Usman Bhatti  wrote:
> >
> > Hello,
> >
> > I have two packages MyPackage and MyPackage-Ext. When I load
> MyPackge-Ext, MyPackage becomes dirty and do not have any clue why. When I
> try to see changes in MyPackage in Monticello Browser, the package becomes
> clean again.
> >
> > There are two possibilities why MyPackage-Ext makes MyPackage dirty:
> > -> There are names conflict of some sort (MyPackage-Ext can be seen as a
> category for MyPackage).
> > -> Overriding of the extension methods introduced on the third package.
> Now I wrote a small script to verify it:
> > firstCollection := (RPackage organizer packageNamed: 'MyPackage')
> extensionMethods values flatten.
> > secondCollection := (RPackage organizer packageNamed: 'MyPackage-Ext')
> extensionMethods values flatten.
> > (secondCollection intersection: firstCollection)
> > The above script gives empty result so there are no overriding selectors.
> >
> > Any ideas how can I hack into Monticello to see what is causing
> MyPackage to become dirty while I load the second one manually. May be by
> logging the override load definitions on Transcript?
> >
> > In general, will it be possible to see overriding without these
> disappearing when doing changes on a dirty package?
> >
> >
> > tx in advance.
> >
> > Usman
> >
> >
>
>
>


Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Seems we wrote at the same time...

Well, Steph here is what I do.

- I attend, organize Smalltalk meet ups.
- I contribute to the open source community of Gemstone, Amber and VAST
- I attend conferences like ESUG and STIC and burn funds to make the 
community look bigger

- I host Smalltalk Inspect
- I organized the VanIsle CampSmalltalk last October
- I provide feedback and write open source boards
- I started a Software Group here in town that meets weekly and 
Smalltalk is always part of it. We didn't promote it yet, but are about to.


For all these actions I need to prepare for questions that I might 
encounter like:

- "Where do I get started?"
- "Is there an example for"
- "Which Smalltalk distribution shall I start with?"
- "Why does the Pharo 3.0 distribution not work with Moose 3.0 even 
though it is advertised?"
- "How can I add more flavour to an application, which framework shall I 
use?"


So what does Pharo community currently do for me?
I report bugs and ask for help and fixes, introductions, examples.
The answers I get is "load the most current 4.0 development. There it 
should work", "I don't know that doesn't work for me either..."


Am I supposed to advertise Pharo the same way? To a beginner?

I find it very strange that after 30 years one can not easily implement 
a modern looking GUI without too much hassle.
Even the tool support for Pharo is inconsitant and unstable. I reported 
that several times.

Unit tests are great, but UI tests are needed too.

I can only tell you that a beginner in Smalltalk is not conditioned like 
us and he suffers much more problems as we do and even think of.
e.g. it is difficult enough for them to understand what tools are 
available and how to navigate the code. But searching for a simple menu 
like "browse implementors" can even be challenging.

I know 3 different implementations/spots in one release...

There are so many developers out there that already heard of Smalltalk 
and would love to try it out.

The only problem is there is no real support for them.
Once you outgrow the Pharo tutorial it is extreemly difficult to go on 
with more serious stuff.
Why do stable Configuration oftern not work and dev has to be loaded? 
That does not make sense in a One-Click-Image...


I tried the experiement and started an application from scratch and it 
is really not easy to get started. First question was "Which UI 
framework do I actually have to use? There are "MANY" out there"


But I have to tell all contributers here in the forum. The support and 
will to help is great! I realized that past months some of the questions 
I had had already been answered several times.

I still got helpful answeres again and was able to go on.

There should be a collection of useful tutorials that are maintained and 
tested before every release.
I found several great tutorial that I can point Beginners at, but many 
of them do not work anymore.


What you, board and the community currently built is a great eco sytem 
for tools and it is getting better every month.

That is something that one can really tell.
Please do not forget to take care of the upcoming Smalltalkers and their 
problems.


There should be a timechart on Pharo.org that shows when (during which 
Pharo release) which framework was/is supported or considert feasable.
Is BLoc old, or new? Is is deprecated or upcoming? Do the Pharo 
maintainers consider it usable with the current release and if not with 
which?


"Welcome to the world of Smalltalk!"
You don't like that reaction? Well this is the reaction I get, and 
well, what should I reply then? "If you don't like it, then contribute?"
A beginner is shy and insecure,... they simply give up and download 
information on SWIFT...


I propose that the community collects information on what Pharo is used 
for. What are it's strength and what kind of application is it the 
perfect abse for.
This would help guys like me to advertise it with less surprise for the 
interested


I am sorry, I won't currently be able to contribute code to the Pharo 
community since it is not part of my current stack.
But I release chucnk of thought useful implementations that I encounter 
in my other dialects.
The only thing that I can provide you with are critical questions that I 
encounter.

That might change, but it is all I can do so far.

Go on! But don't forget the beiggner and the basic ui.
Sebastian



Am 28.01.2015 um 12:23 schrieb stepharo:

It was a bit easy to say that.
You can get frustrated by the state of certain libraries and I can 
tell you that we are fighting daily
to improve the system (writing doc, fighting to get funds for 
engineers, coding).

Now you should ask yourself how you can help pharo.

Stef

Welcome to the world of Smalltalk!


Am 28.01.2015 um 07:27 schrieb Mark Rizun:

I have the same problem with PolygonMorph. It does not resize properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me k

Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Ignacio Sniechowski
I think SciTalk is a nice name :p

*Lic. Ignacio Sniechowski, MBA*
*Prosavic SRL*

*Tel: (011) 4542-6714*





















On Wed, Jan 28, 2015 at 5:14 PM, stepharo  wrote:

>
>   I see and appreciate your effort really, but there is no reason to hide
> NumericalMethods from the book announcement.
>
> I do not know NumericalMethods. I vaguely recall that you were no happy
> that serge wants to change the code
> because it would not be in sync with the book. Now we can co-evolve them.
> Every I do is open-source and freely accessible so position yourself and
> join effort (I do not like SciSmalltalk as a name).
> Now we have the possibility to make on nice library but you need to sync.
>
>  I am trying to avoid what the Python community did with NumPy and SciPy
> which is a mess.
>
>   Ah you see you have to sync with Serge. I think that Serge was not
> aware about that you publish the code in your repository.
> Now we want to rename the acronym (because DHB is not good) and probably
> improve the code
> of the library while keeping the book in sync (like using String
> streamContents for printing).
> I personally hate to see all the comment with a copyright and a commit
> dates.
>
> Stef
>
>  Hernán
>
>
> 2015-01-28 16:16 GMT-03:00 stepharo :
>
>>  Hernan
>>
>> This is 8 months that I push didier to release it. I spent my week-end to
>> edit it.
>> So when you talk about respect use your energy th right way.
>>
>> Stef
>>
>>
>>
>> 2015-01-28 14:21 GMT-03:00 stepharo :
>>
>>> Didier Besset offered his great book "Object-Oriented Implementation of
>>> Numerical Methods
>>> An Introduction with Smalltalk and Java" to the community.
>>>
>>> We would like to thank Didier Besset for his great book and for his gift
>>> of the source and implementation to the community.
>>>
>>>
>>  This is indeed, great news.
>>
>>
>>>
>>> You can find
>>> • Archive of the original book, with code in both Java and Smalltalk
>>> https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods
>>>
>>>
>>> https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods/blob/master/NumericalMethods/2015-Jan-WholeBookST-Java.pdf
>>>
>>>
>>> • An abridged version of Didier’s book, without the Java
>>> implementation and reference; our goal is to make the book slimmer and
>>> easier to read. The implementation presented in this book is part of the
>>> SciSmalltalk library.
>>>
>>>
>>  The implementation presented in his book is part of the
>> NumericalMethods library.
>>
>>  You want to promote SciSmalltalk, then first respect others.
>> NumericalMethods could be part of SciSmalltalk, but it is the library where
>> code was originally released.
>>
>>  Cheers,
>>
>> Hernán
>>
>>
>>
>
>


Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread kilon alios
"Am I supposed to advertise Pharo the same way? To a beginner?"

yes, as they say "truth will set you free". Don't try to lie to a beginner,
dont try to exaggerate , dont try to make Pharo into a holy grail. Be
sincere , be accurate. The begineer may not like Pharo but at least will
respect it and the community.

The community and include myself in it have been working hard to improve
the situation for beginners. I think things are in the right road.
Pharo-users mailing list has exploded lately and that shows that people
care about Pharo. Still a ton can be done but things are always way harder
than they look and this why they always take time.

And no you cannot replace Pharo with Swift, Pharo is irreplaceable really .
There is no software out there that does what Pharo does and does it
better, so Pharo is unique. The question is that if you care about what
Pharo offers, if not then obviously you will choose another languages and
other tools. Pharo comes with its own set of disadvantages as well as all
solutions out there.  In the end it comes down to making a choice.

I love the Pharo workflow , I decided to stick around. But someone else
will chose something else, thats fine.

I think what Stef is trying to say is that if the user really loves Pharo ,
then he will want Pharo to improve and contributing is the best way to
ensure a better future for Pharo. Personally I dont think we need to be
reminded of this, I think its dead obvious if someone falls in love with an
open source software he or she will contribute to it sooner or later, in a
small or big way.

This is why afterall open source has been so extremely succesfull.


Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread kilon alios
No idea what the problem really is, and what is that "mess" that concerns
Numpy/SciPy but I welcome the new book , more documentation is always a
cause of celebration, thank you for your hard work :)

"I think SciTalk is a nice name :p"

Way cooler than SciPy if you ask me ;)


Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Hernán Morales Durand
2015-01-28 17:14 GMT-03:00 stepharo :

>
>   I see and appreciate your effort really, but there is no reason to hide
> NumericalMethods from the book announcement.
>
> I do not know NumericalMethods. I vaguely recall that you were no happy
> that serge wants to change the code
> because it would not be in sync with the book. Now we can co-evolve them.
> Every I do is open-source and freely accessible so position yourself and
> join effort (I do not like SciSmalltalk as a name).
> Now we have the possibility to make on nice library but you need to sync.
>

We have to get better at communication. It doesn't work if all of us fork
libraries.

Let's get started with this.
I agree with NumericalMethods being freezed in the Configuration Browser.
But I don't want to be forced to load the whole SciSmalltalk to use 3
methods in NumericalMethods.

Do you agree Serge?
Can you import the ConfigurationOfNumericalMethod from a common repository
in SciSmalltalk?


>  I am trying to avoid what the Python community did with NumPy and SciPy
> which is a mess.
>
>   Ah you see you have to sync with Serge. I think that Serge was not
> aware about that you publish the code in your repository.
> Now we want to rename the acronym (because DHB is not good) and probably
> improve the code of the library while keeping the book in sync (like using
> String streamContents for printing).
>

DHB prefix is ugly of course.


> I personally hate to see all the comment with a copyright and a commit
> dates.
>
>
Me too.


Hernán



> Stef
>
>  Hernán
>
>
> 2015-01-28 16:16 GMT-03:00 stepharo :
>
>>  Hernan
>>
>> This is 8 months that I push didier to release it. I spent my week-end to
>> edit it.
>> So when you talk about respect use your energy th right way.
>>
>> Stef
>>
>>
>>
>> 2015-01-28 14:21 GMT-03:00 stepharo :
>>
>>> Didier Besset offered his great book "Object-Oriented Implementation of
>>> Numerical Methods
>>> An Introduction with Smalltalk and Java" to the community.
>>>
>>> We would like to thank Didier Besset for his great book and for his gift
>>> of the source and implementation to the community.
>>>
>>>
>>  This is indeed, great news.
>>
>>
>>>
>>> You can find
>>> • Archive of the original book, with code in both Java and Smalltalk
>>> https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods
>>>
>>>
>>> https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods/blob/master/NumericalMethods/2015-Jan-WholeBookST-Java.pdf
>>>
>>>
>>> • An abridged version of Didier’s book, without the Java
>>> implementation and reference; our goal is to make the book slimmer and
>>> easier to read. The implementation presented in this book is part of the
>>> SciSmalltalk library.
>>>
>>>
>>  The implementation presented in his book is part of the
>> NumericalMethods library.
>>
>>  You want to promote SciSmalltalk, then first respect others.
>> NumericalMethods could be part of SciSmalltalk, but it is the library where
>> code was originally released.
>>
>>  Cheers,
>>
>> Hernán
>>
>>
>>
>
>


[Pharo-users] dirty packages

2015-01-28 Thread Torsten Bergmann
Because "MyPackage" and "MyPackage-Ext" fall into the same 
class categories. The name "MyPackage" is part of the string
"MyPackage-Ext".

Packages and class categories are mixed to provide Pharo packages 
and with this you are also still able to use old code or 
import code from other Smalltalks.

use: "MyPackage-Core" and "MyPackage-Ext" or
 "MyPackage-Core" and "MyPackage-Ext-Core"

and you wont have this problem.

If you follow a proper naming scheme (like Seaside and mainly 
also Pharo) you wont get this problem.

Bye
T.




Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Werner Kassens

Hi Stéphane,

thanks to Msr Besset, to you and to the other people who made this 
possible. it's a fascinating book.


werner



Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Werner Kassens

Hi Hernán,

>We have to get better at communication. It doesn't work if all of us 
fork libraries.


i guess i disagree, the occasional fork  can be freshening.

>But I don't want to be forced to load the whole SciSmalltalk to use 3 
methods in NumericalMethods.


that's not really necessary. assuming that you want to also use the 
dhb-extensions, you can eg do something like:
(ConfigurationOfSciSmalltalk project version:#stable)load: 
#('Math-DHB-NumericalExtensions' 'Math-Tests-DHB-Numerical').  "a 
MetacelloFetchingMCSpecLoader(linear load :

linear load : 0.16 [ConfigurationOfSciSmalltalk]
linear load : 1.0 [ConfigurationOfArbitraryPrecisionFloat]
load : ArbitraryPrecisionFloat-nice.38
load : ArbitraryPrecisionFloatTests-nice.16
load : ExtendedNumberParser-nice.1
load : Math-DHB-Numerical-wernerkassens.30
load : Math-Tests-DHB-Numerical-wernerkassens.9
load : Math-DHB-NumericalExtensions-WernerKassens.5)"
this loads additionally ArbitraryPrecisionFloat, but this is, i'd say, 
an unimportant bug in the config, that should get repaired occasionally. 
and ArbitraryPrecisionFloat is not that big. it's not really a problem.


>Can you import the ConfigurationOfNumericalMethod from a common 
repository in SciSmalltalk?


there could eventually be a little difficulty. you cant load both 
versions. of course one could work around that problem in the config, but
1. the config of scismalltalk is already complicated enough, that hardly 
anyone changing it can get things right there at their first attempt.
2.it would also complicate the _use_ of the config for the user, a big 
drawback imo.
of course one could simply throw away the fork. but then one would need 
to throw away also some other packages.
a third possibility would be to put all changes in the fork in an extra 
package that can be loaded on top of the original dhb. but that looks 
like a sizable enough task, that i at least will not do it.


what do you think?

werner



Re: [Pharo-users] Waiting object

2015-01-28 Thread Laura Risani
Thank you Ben, i will take a look at that loop process.

On Wed, Jan 28, 2015 at 1:49 PM, Ben Coman  wrote:

>
>
> On Wed, Jan 28, 2015 at 11:31 PM, Laura Risani 
> wrote:
>
>> Hi Ben ,
>> #fork let me implement the overall functionality i wanted, but i had to
>> introduce some minor changes into the design to reflect the concurrent
>> nature of the msg. So i still feel curious about how one could implement
>> this msg
>>
>> Waiting>> wait : seconds
>> "i take the flow control during 'seconds' without halting image morphs
>> and only then return to the sender "
>>
>
> There is only one Morphic UI loop process which repetitively cycles for
> Morph stepping and the main interactive UI.  Use "Tools > Process Browser"
> to take a look at that process (priority=40) and its stack and you'll
> WorldMorph>>doOnceCycle.  If you are curious, you can put a "self haltOnce"
> in that method and invoke it using  "System > Enable halt/inspect once" and
> it will spawn that fault in that cycle off to another process you can trace
> through, while the main process continues to cycle.
>
> However if you perform a non-concurrent #wait or busy calculation, then
> the UI loop is prevented from looping at its usual speed (see
> #interCyclePause).
>
> cheers -ben
>
>
>>
>> Best,
>> Laura
>>
>> On Tue, Jan 27, 2015 at 7:00 PM, Ben Coman  wrote:
>>
>>> Hi Laura, Can you provide some more context by pasting code for how you
>>> expect both your UI and calculation methods to interact? What is the
>>> application?
>>>
>>> cheers -ben
>>>
>>> On Wed, Jan 28, 2015 at 5:49 AM, Laura Risani 
>>> wrote:
>>>
 Hi all,
 Thank you for your answers.

 But i yet can't see how to implement the method i wanted, because #fork
 schedules the process and immediately returns but i'd like to wait and only
 then return the answer.


 Best,
 Laura

 On Tue, Jan 27, 2015 at 3:46 PM, Laura Risani 
 wrote:

> Hi all,
>
> I need an object/method like this one
>
> Waiting>> wait : seconds
> "i take the flow control during 'seconds' without halting image morphs
> stepping/handling (as Delay>>wait: does) and then return to the sender "
>
> How can i implement it?
> Where can i borrow for reuse an existing one from?
>
>
> Best,
> Laura
>


>>>
>>
>


[Pharo-users] any OCR library for Pharo (Free or Commercial)

2015-01-28 Thread Sanjay Minni
Hi

is there any OCR library which has been interfaced with Pharo 
(may be Free or Commercial library licence).

I need a robust one preferably without deployment licence fee

Regards
Sanjay  



-
---
Regards, Sanjay
--
View this message in context: 
http://forum.world.st/any-OCR-library-for-Pharo-Free-or-Commercial-tp4802376.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] any OCR library for Pharo (Free or Commercial)

2015-01-28 Thread Paul DeBruicker
I don't know for sure but I don't think so.  See this thread, about halfway
down, for some ideas about how to interface with 3rd party libs:

http://forum.world.st/Polymorph-improvements-tp3712781.html

tesseract is a 3rd partly lib that may meet your needs:

http://en.wikipedia.org/wiki/Tesseract_%28software%29



Sanjay Minni wrote
> Hi
> 
> is there any OCR library which has been interfaced with Pharo 
> (may be Free or Commercial library licence).
> 
> I need a robust one preferably without deployment licence fee
> 
> Regards
> Sanjay





--
View this message in context: 
http://forum.world.st/any-OCR-library-for-Pharo-Free-or-Commercial-tp4802376p4802377.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



[Pharo-users] smalltalk workshops (building a webserver) after code-in

2015-01-28 Thread Martin Bähr
hi,

Google Code-In is over (i'll probably write more about that later)
and there are a few students who have started their path to smalltalk.

because there was interest among the students to continue learning, we have
started a series of workshops to learn the elements of building a webserver.

i have created a screencast for the first topic: FileSystem

you can read more about the workshop and find the screencast here:
http://societyserver.org/mbaehr/training/Using-the-FileSystem-class-in-Pharo-Smalltalk

being new to smalltalk myself, there are probably some mistakes, and things
that could be done better, however i believe the screencast is usable for
learning. 

i recorded this mostly without interruption except for a few times where i was
lost and had to stop and look up what i was going to do.

i am open to feedback and criticism of any kind, from pointing out redundant
()s or ways to improve the code to tips for debugging and testing.

the next workshop will be saturday the 

greetings, martin.

-- 
eKita   -   the online platform for your entire academic life
-- 
chief engineer   eKita.co
pike programmer  pike.lysator.liu.secaudium.net societyserver.org
secretary  beijinglug.org
mentor   fossasia.org
foresight developer  foresightlinux.orgrealss.com
unix sysadmin
Martin Bähr  working in chinahttp://societyserver.org/mbaehr/



[Pharo-users] how to debug zinc server errors from tests

2015-01-28 Thread Martin Bähr
hi,

when debugging a zinc server with tests structured as in
http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/
i am wondering how to best debug errors in the server while running tests.

one test makes a ZnClient connection to a testserver started from the same test.
the test fails with the server returning a 500 error.

next i get an opportunity to debug the test, but what i really want is to to
debug the server itself.

one way is to run the client request manually from the browser, while the real
server is in debug mode. that works most of the time, but sometimes it doesn't
because there is a difference between the test-server and the real server.

i found that i can set the test server into debug mode too, but that is not
very satisfying because it causes the test to hang and lock until a timeout is
reached and only then the debugger pops up. i'd like the debugger pop up
immediately, let me debug and fix the error, and then have the tests proceed.

is there a way to do that?

greetings, eMBee.

-- 
eKita   -   the online platform for your entire academic life
-- 
chief engineer   eKita.co
pike programmer  pike.lysator.liu.secaudium.net societyserver.org
secretary  beijinglug.org
mentor   fossasia.org
foresight developer  foresightlinux.orgrealss.com
unix sysadmin
Martin Bähr  working in chinahttp://societyserver.org/mbaehr/



Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Hernán Morales Durand
Hi Werner

2015-01-28 21:11 GMT-03:00 Werner Kassens :

> Hi Hernán,
>
> >We have to get better at communication. It doesn't work if all of us fork
> libraries.
>
> i guess i disagree, the occasional fork  can be freshening.
>
> >But I don't want to be forced to load the whole SciSmalltalk to use 3
> methods in NumericalMethods.
>
> that's not really necessary. assuming that you want to also use the
> dhb-extensions, you can eg do something like:
> (ConfigurationOfSciSmalltalk project version:#stable)load: 
> #('Math-DHB-NumericalExtensions'
> 'Math-Tests-DHB-Numerical').


Thank you for the tip. But that also means now I should change my
configurations to stay updated because you (doesn't matter who) just
couldn't resist copying all NumericalMethods packages to your own
repository.

This is like if I get 5 mathematicians, fork SciSmalltalk, push cool new
features, and then make all you loose them if you don't update. And I could
do it for fun 1000 times. You get the idea.

But I am not against SciSmalltalk, I don't like forks without a good reason.


> "a MetacelloFetchingMCSpecLoader(linear load :
> linear load : 0.16 [ConfigurationOfSciSmalltalk]
> linear load : 1.0 [ConfigurationOfArbitraryPrecisionFloat]
> load : ArbitraryPrecisionFloat-nice.38
> load : ArbitraryPrecisionFloatTests-nice.16
> load : ExtendedNumberParser-nice.1
> load : Math-DHB-Numerical-wernerkassens.30
> load : Math-Tests-DHB-Numerical-wernerkassens.9
> load : Math-DHB-NumericalExtensions-WernerKassens.5)"
> this loads additionally ArbitraryPrecisionFloat, but this is, i'd say, an
> unimportant bug in the config, that should get repaired occasionally. and
> ArbitraryPrecisionFloat is not that big. it's not really a problem.
>
> >Can you import the ConfigurationOfNumericalMethod from a common
> repository in SciSmalltalk?
>
> there could eventually be a little difficulty. you cant load both
> versions.


I am saying there should be one version.



> of course one could work around that problem in the config, but
> 1. the config of scismalltalk is already complicated enough, that hardly
> anyone changing it can get things right there at their first attempt.
>

Then the project is badly organized?
Because Metacello supposedly should help things to become easier.


> 2.it would also complicate the _use_ of the config for the user, a big
> drawback imo.
> of course one could simply throw away the fork. but then one would need to
> throw away also some other packages.
> a third possibility would be to put all changes in the fork in an extra
> package that can be loaded on top of the original dhb. but that looks like
> a sizable enough task, that i at least will not do it.
>

what do you think?
>

What's done is done. I doubt you could retract your changes.
I don't like this situation but it seems to be the Smalltalk way.


Hernán


> werner
>
>


Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Hernán Morales Durand
2015-01-28 18:51 GMT-03:00 kilon alios :

> No idea what the problem really is, and what is that "mess" that concerns
> Numpy/SciPy
>

This is an example of how wasted they are:

http://stackoverflow.com/questions/6200910/relationship-between-scipy-and-numpy

Cheers,

Hernán


Re: [Pharo-users] gt poster

2015-01-28 Thread Sven Van Caekenberghe
Thanks, Doru.

(It won't be on paper though, they are already printed)

> On 28 Jan 2015, at 23:29, Tudor Girba  wrote:
> 
> Hi,
> 
> Here is a poster for GT.
> 
> Cheers,
> Doru
> 
> 
> -- 
> www.tudorgirba.com
> 
> "Every thing has its own flow"
> 




Re: [Pharo-users] Removal from list

2015-01-28 Thread Stephan Eggermont

On 28/01/15 07:56, Torsten Bergmann wrote:

The way I do it:
I first subscribe, then disable the mail receiving and use the archive
http://lists.pharo.org to go through the topics I'm interested.
As one is still subscribed one can still post to the list but does
not get all the mail traffic in the inbox. Works fine!


Craig showed me a way to read the lists that I like better
than using the archive. Mozilla Thunderbird has a newsgroup
reading and posting interface, and the pharo lists are available
as a newsgroup on news.gmane.org.

Stephan




Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread stepharo



Let's get started with this.
I agree with NumericalMethods being freezed in the Configuration Browser.
But I don't want to be forced to load the whole SciSmalltalk to use 3 
methods in NumericalMethods.


Do you agree Serge?


I agree with you that having a nice modular structure is important.
Can you import the ConfigurationOfNumericalMethod from a common 
repository in SciSmalltalk?





I am trying to avoid what the Python community did with NumPy and
SciPy which is a mess.


Ah you see you have to sync with Serge. I think that Serge was not
aware about that you publish the code in your repository.
Now we want to rename the acronym (because DHB is not good) and
probably improve the code of the library while keeping the book in
sync (like using String streamContents for printing).


DHB prefix is ugly of course.


so let us rename it


I personally hate to see all the comment with a copyright and a
commit dates.


Me too.


let us fix that too.
We can put a simple copyright notice on the class side.



Hernán

Stef


Hernán


2015-01-28 16:16 GMT-03:00 stepharo mailto:steph...@free.fr>>:

Hernan

This is 8 months that I push didier to release it. I spent my
week-end to edit it.
So when you talk about respect use your energy th right way.

Stef




2015-01-28 14:21 GMT-03:00 stepharo mailto:steph...@free.fr>>:

Didier Besset offered his great book "Object-Oriented
Implementation of Numerical Methods
An Introduction with Smalltalk and Java" to the community.

We would like to thank Didier Besset for his great book
and for his gift of the source and implementation to the
community.


This is indeed, great news.


You can find
• Archive of the original book, with code in both
Java and Smalltalk
https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods


https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods/blob/master/NumericalMethods/2015-Jan-WholeBookST-Java.pdf


• An abridged version of Didier’s book, without the
Java implementation and reference; our goal is to make
the book slimmer and easier to read. The implementation
presented in this book is part of the SciSmalltalk library.


The implementation presented in his book is part of the
NumericalMethods library.

You want to promote SciSmalltalk, then first respect others.
NumericalMethods could be part of SciSmalltalk, but it is
the library where code was originally released.

Cheers,

Hernán











Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread stepharo


Le 29/1/15 01:08, Werner Kassens a écrit :

Hi Stéphane,

thanks to Msr Besset, to you and to the other people who made this 
possible. it's a fascinating book.


We really want to have new library.



werner







Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread stepharo

So hernan
how do we make progress?




Re: [Pharo-users] smalltalk workshops (building a webserver) after code-in

2015-01-28 Thread stepharo

This is excellent
I'm working on new teaching material and I would love to have a simple 
chat app in a couple of lines :)


Stef

Le 29/1/15 05:52, Martin Bähr a écrit :

hi,

Google Code-In is over (i'll probably write more about that later)
and there are a few students who have started their path to smalltalk.

because there was interest among the students to continue learning, we have
started a series of workshops to learn the elements of building a webserver.

i have created a screencast for the first topic: FileSystem

you can read more about the workshop and find the screencast here:
http://societyserver.org/mbaehr/training/Using-the-FileSystem-class-in-Pharo-Smalltalk

being new to smalltalk myself, there are probably some mistakes, and things
that could be done better, however i believe the screencast is usable for
learning.

i recorded this mostly without interruption except for a few times where i was
lost and had to stop and look up what i was going to do.

i am open to feedback and criticism of any kind, from pointing out redundant
()s or ways to improve the code to tips for debugging and testing.

the next workshop will be saturday the

greetings, martin.






Re: [Pharo-users] any OCR library for Pharo (Free or Commercial)

2015-01-28 Thread stepharo
I do not know the ones that use pinesoft but they made it for real and 
sell products


Stef

Le 29/1/15 05:32, Sanjay Minni a écrit :

Hi

is there any OCR library which has been interfaced with Pharo
(may be Free or Commercial library licence).

I need a robust one preferably without deployment licence fee

Regards
Sanjay



-
---
Regards, Sanjay
--
View this message in context: 
http://forum.world.st/any-OCR-library-for-Pharo-Free-or-Commercial-tp4802376.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.







Re: [Pharo-users] SPEC and Athens

2015-01-28 Thread Sebastian Heidbrink

Okay,

I had a short look and it seems one needs to either subclass the 
GenericAdapter, or configure it upon initializtion.


One will need to add handlers upon resize and maybe even implement some 
kind of Form around the polymorph...
but I have no idea if there is something like a form in Spec... I do not 
know it enough yet.


Try this and see. It is part of the RewriteRuleBuilder

statusBarForMatch
| morph |
morph := TransformationRule arrowMorph: ActivePolygonMorph.
morph
rotationDegrees: 90;
scale: 0.6;
color: self matchColor;
infoText: self matchLabel;
yourself.
^ morph asSpecAdapter
   vSpaceFill;
yourself

Sebastian




On 2015-01-28 12:26 PM, Mark Rizun wrote:

It is in rewrite tool that I'm developing.
You can download it here:

http://smalltalkhub.com/#!/~MarkRizun/RewriteTool 



The morph is used, for example, in RewriteRuleBuilder>>#statusBarForMatch

Mark

2015-01-28 21:24 GMT+01:00 Sebastian Heidbrink >:


Hi Mark,

can you send me an example implementation on this?

I'll try to find a solution that might work for both of us. It is
easier to find the reason with a second reference implementation,
I guess.

Sebastian



Am 28.01.2015 um 07:27 schrieb Mark Rizun:

I have the same problem with PolygonMorph. It does not resize
properly.
Also I couldn't find any event related with window resizing.
If you find a solution please let me know.

Mark

2015-01-28 16:19 GMT+01:00 Sebastian Heidbrink mailto:shei...@yahoo.de>>:

Am 28.01.2015 um 07:07 schrieb Mark Rizun:


First the svg does not resive properly while resizing
the window.


What do you mean by this?


Well, I implemented the example window from spec.st
 and added a ASVGMorph to it.
When I now resize the window, then the button changes his
size correctly but the svg somhow just seems to be put into
the background.
I then implemented a SVGMorpModel that includes a
ASVGMorpAdapter and adde dthis one to my example window but
the result is that the SVG resizes just half the speed...



How can I also introduce an animated SVG? Like an svg
that changes color during a mouse click?


To work with events that are implemented in
AthensSvgMorph you have to (as far as I know) access this morph.
You can do it by sending #widget message to your model to
times like this:

svgModel widget widget ==> svgMorph

Than morph can handle events like "changes color during a
mouse click".

Are there any particular Models that could be used as a
container for this SVGMorphAdapter?


 SVGMorphAdapter is a class that represents a layer betwen
SVGMorph and model of svg in spec.
It allows model and morph to "communicate" with each other.

Mark










Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Hernán Morales Durand
We could probably start with

RBClassRegexRefactoring new
  renameClasses;
  replace: '^Dhb(.*)$' with: 'NM$1' ignoreCase: false;
  execute.

or whatever prefix you prefer :)

I wrote some DHB extensions for easier building of matrices,
if anyone give me access to the SciSmalltalk repository I could push them
for review.

Hernán





2015-01-29 4:05 GMT-03:00 stepharo :

> So hernan
> how do we make progress?
>
>
>