Re: [Pharo-users] Using VirtualGPU

2015-05-12 Thread Alain Busser
Hi Serge,

I made some experiments with GPU computing with JavaScript. I understood
that the computings are made forever inside the GPU, so you just throw data
and programs once and you let the GPU compute for you. Yet the problem is
to read the data once they are computed. With webGL it seems impossible,
with webCL it is possible and not easy. Hence the choice of openCL I guess.

I relate here how I could compute the powers of a Markov matrix here:
http://revue.sesamath.net/spip.php?article651 (especially click on "webGL
sans three.js"). I also made some experiments here:
http://irem.univ-reunion.fr/spip.php?article797 (but they use three.js if I
remember well)

Happy readings, and, yes, I feel interersted in these subjects

Alain

On Tue, May 12, 2015 at 7:48 PM, Serge Stinckwich <
serge.stinckw...@gmail.com> wrote:

> Dear all,
>
> just to let you know, Cheikhou (in CC) is starting a student
> internship in my lab.
> He will work on Epidemiology Modelling with KENDRICK:
> http://ummisco.github.io/kendrick/
> the platform that we are developing in order to analyse and visualise
> diseases models behaviours.
>
> We would like first to implement a GPU version of the Gillespie
> Stochastic Simulation Algorithm (GSSA):
> http://en.wikipedia.org/wiki/Gillespie_algorithm and after that also
> implement SPH simulations:
> https://en.wikipedia.org/wiki/Smoothed-particle_hydrodynamics
>
> We are looking at the code of OpenCL and VirtualGPU done by Ronnie.
> What we have understand until now :
> - OpenCL package : low-level stuff to be able to interface OpenCL
> kernels with Pharo
> - VirtualGPU: high-level API on top of OpenCL in order to ease the
> task of people who wants to use OpenCL. VirtualGPU provide high-level
> operations on matrix and image at the moment.
>
> @Ronie: What is not clear at the moment in our mind : when you build a
> VirtualGPU program with the DSL, do you have the overhead of
> communications every time you execute a VirtualGPU instruction or all
> the the instructions are sent at the same time and run on the GPU ?
>
> In our context, for building a GSSA algorithm, I guess we just have to
> combine same VGPU instructions (matrix computations) but for doing SPH
> simulations, we will have to provide our own instructions. Is there
> any documentation in order to add own kernel and instructions ?
>
> I know that others guys at INRIA (Stéphane ?) are interested by GPU.
> Is it possible to join our effort to share what we are doing ?
>
> Regards,
> --
> Serge Stinckwich
> UCBN & UMI UMMISCO 209 (IRD/UPMC)
> Every DSL ends up being Smalltalk
> http://www.doesnotunderstand.org/
>
>


Re: [Pharo-users] New random generator

2015-03-19 Thread Alain Busser
the method from l'Ecuyer is already used in the texas instruments graphic
calculators. But they don't seem to have patented it (I don't know how to
check that).


Anyway I agree to have more RNGs which can be useful for statistics
simulations or kryptography. And I would like to know how one can play with
the bacteria ;-)

Alain

PS did anyone receive the mail that I sent yesterday about syllogisms?

On Fri, Mar 20, 2015 at 12:43 AM, Serge Stinckwich <
serge.stinckw...@gmail.com> wrote:

> On Thu, Mar 19, 2015 at 9:36 PM, stepharo  wrote:
> > Hi guys
> >
> > Konstantin who is a biologist developed for a "bacteria" eating monster
> > simulation system, two new random number generators.
> > I think that this is great because we need more random generators :)
> >
> > - Combined Random Number Generator is based on the algorithm described by
> > PIERRE L'ECUYER in "Efficient and Portable Combined Random Number
> > Generators" [Communications of the ACM, June 19, Volume 31, Number 6, pp.
> > 742-749, references p.774].
> >
> > - ExpInvConGen is an explicit inversive congruential generator,
> constructed
> > according to "Good random number generators are (not so) easy to find"
> by P.
> > Hellekalek (1998) and extended euclidean algorithm.
> >
> > I plan to package them and publish them in SciTalk with their own
> > configuration. But I wanted to know what you think.
>
> Great !
>
> Maybe better to integrate them in Sci-talk with the existing Random
> Number Generator (RNG). We have already 5 RNGs.
> I'm working on refactoring the RNG and distributions in Sci-Talk,
> because there is some redundancy until now:
> https://groups.google.com/forum/#!topic/scismalltalk/zXEyeGvTmJk
>
> Regards,
>
> --
> Serge Stinckwich
> UCBN & UMI UMMISCO 209 (IRD/UPMC)
> Every DSL ends up being Smalltalk
> http://www.doesnotunderstand.org/
>
>


[Pharo-users] Logic in Pharo ?

2015-03-18 Thread Alain Busser
Hello,

I am currently working on mechanical means to solve Aristotle's syllogisms.
My project is here: https://github.com/AlainBusser/LogicGame (programmed in
CoffeeScript for a webApp). When I will present it (in a little more than
two months) I plan to solve the same syllogisms with a software tool which
must be free, of course.

I am thinking about a lightweighted Prolog. Does this exist on Pharo? Or
anything which would be similar (computing in a boolean algebra, something
like alt-ergo etc)...

and, if it runs on Raspbian it will be even better ;-)

Alain


[Pharo-users] a successful success story

2015-02-12 Thread Alain Busser
It is in French so I try to translate some parts. My goal was to teach as
fast as possible the binomial distribution (number of successes when
independently repeating a Bernoulli experiment) to students who, either
have never seen an algorithm, or have seen some algorithmics in math
lessons and don't like it at all. Both categories loved what I did with
them. I precise that almost all of them are allergic to english language.

The assignment was "throwing 10 dices, what is the probability of having at
least 2 times "6" around the 10 results?"

The whole job is related here:
http://irem.univ-reunion.fr/IMG/pdf/binomiale.pdf (but I did only pages 1-5
in one hour)

The first step was to show how one can simulate the throwing of 10 dices. I
can do it without having to make a variable vary (explicitely at least),
thanks to Seymour Papert:

10 timesRepeat: [ Transcript show: (6 atRandom)].

Then I spoke about the usefulness of the Bag object when there are
statistics: Adding the 10 results (small integers) inside a Bag makes it an
object where one can see and count the 6es:

| urn |
urn := #( )  asBag.
10 timesRepeat: [ urn add: (6 atRandom)].
Transcript show: urn.

(Why "urn"? This is the word used by Bernoulli, he was thinking about balls
concealed inside a vase for which the latin word was "urna"; the balls
where called "billets" by Condorcet, so that they could instead be pieces
of paper; whatever they were, a vase was use to conceal them)

Then there remains only one difficulty: How can I automatize the counting
of the 6es inside the bag? There is the most frightening challenge: Use a
block with students who have never seen Pharo before. Very good surprise:
They didn't seem to find this that difficult, I just had to say that

1. The pipe symbol means "such that" like in my lessons
2. The first time I use the letter "x" I have to tell Pharo that it is yet
no variable to evaluate, hence the need to precede it with a colon.

With that in mind, counting the 6es is the same as counting the x-es such x
equals 6:

| urn |
urn := #( )  asBag.
10 timesRepeat: [ urn add: (6 atRandom)].
Transcript show: (urn count: [ :x | x=6]).

Afterwards it remained only to repeat the whole experiment and, instead of
showing the number of 6es, adding it to another bag called "stats", then
displaying this bag. The end was made with a tool which exists only in
mathsOntologie: The displaying of a bar chart in a translucent Morph, so
that the most rapid of the students could compare several bar charts by
superposition and guess the shape of the distribution.

Once again, they all loved it, either because they found Pharo a better
tool than whatever they knew before (and disliked), or because they knew
nothing similar before (one exception: A girl who never learned
algorithmics but just happens to love playing with a computer, here she is:
http://reunion.la1ere.fr/2014/06/04/miss-reunion-muriel-roger-candidate-ndeg-9-158293.html
).

I insist on the fact that they never saw anything like Smalltalk before,
and did not seem to "rtfm": Is it because Smalltalk is a natural language
or because MathsOntologie mimics the french language, I lack elements of
comparison to answer to this. But I insist also to say that these students
seem to dislike probability theory too.

Finally, some stats about these stats: I can rapidly find the bugs when the
text appears in red, and most of the time a point was missing at the end of
a line, or a right bracket was missing or misplaced. Sometimes they add a
space inside a word like asBag which becomes "as Bag".

Alain Busser
IREM La Réunion


Re: [Pharo-users] how do you use scripts?

2014-12-12 Thread Alain Busser
For me, a script is an example for MathsOntologie, which is what I want to
run when copied in the Workspace then Alt-D-ed. I distribute them with
MathsOntologie and they are not versioned.  I have ont script per file, all
the scripts are grouped in an "exeamples" folder on disk, but I can not
always open them because of utf-8 characters which are not correctly
imported. Every file has a name recalling the script. I don't use "example"
objects because I never thought about it (so, thanks for the idea).

But if I knew how to incorporate MathsOntologie inside DrGeo I would use
Hilaire's way of storing the examples of course...

Alain

On Fri, Dec 12, 2014 at 3:14 PM, Tudor Girba  wrote:
>
> Hi,
>
> As input for designing new features that better support scripting in
> Pharo, we would benefit from a bit more input around the role scripts play
> in your development life.
>
> To this end, I would like to invite you to share your scripting
> experience. Here are some questions to start from, but feel free to diverge:
>
> - What kind of actions do you put in scripts?
>
> - Do you rely on script files stored on the disk at all?
>
> - Where do you store your scripts (in one folder, in many folders)?
>
> - Do you version your scripts?
>
> - Do you store them in separate files with dedicated names, or tend to put
> multiple snippets in one larger file?
>
> - Do you rely on the names of the scripts?
>
> - Why do you use a script file and not a class?
>
>
>
> Cheers,
> Doru
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>


Re: [Pharo-users] Pratsch

2014-10-28 Thread Alain Busser
To understand better the Pharo "philosophy", I would advocate Pharo by
example, which helped me a lot to understand how I can display objects in
the transcript with

Transcript show: (8*7)

or to know more of the object with

(8*7) inspect

(actually I know this not from the book because Hilaire tought me this, but
afterwards I found it inside the book
 and there I learned much much more)

Alain

On Wed, Oct 29, 2014 at 12:07 AM, Thierry Goubier  wrote:

> Hi Hans,
>
> I would not hesitate to state that in the Smalltalk vision, we should make
> no difference between a user and a programmer: a user has the right to be a
> programmer.
>
> Today, in academic circles, we call that "end-user programming" if you
> need more references (:)).
>
> If you take some of the best known examples of Pharo, you'll see that they
> are empowerment tools: they are designed to unleash a maximum amount of
> power by helping you reach complex goals a lot faster than usual. Look for
> Moose, Roassal, Seaside.
>
> Still, you can do sample, autonomous applications. For example, Phratch is
> at http://www.phratch.com/; DrGeo is at http://www.drgeo.eu/.
>
> You can start an application by opening it in a window (i.e. look for an
> open method). With a few more lines, you can open it fullscreen to hide the
> IDE (have to get back to work to give you those lines :)). With a bit more
> work, you can have it running from the command line.
>
> But remember, Pharo / Smalltalk is a live environment, not a compile and
> run my app kind of old stuff (and very old, given that Smalltalk itself is
> already old stuff).
>
> Have fun in your journey in Smalltalk :)
>
> Thierry
>
> Le 28/10/2014 13:36, Hans Schueren a écrit :
>
>  Thank you Thierry ,
>>
>>
>> guess i am an user.
>>
>>
>> " I have heared there are Pharo programmers"
>>
>>
>> Can i download such a program to see how good they are ?
>>
>>
>> I dont want to hear anything about coding and IDE and development.
>>
>>
>> I am a user and want to start a example program.
>>
>>
>>
>> Do you have a LINK for me to download ?
>>
>>
>>
>> Hans
>>
>>
>> This sounds strange.
>>
>> However , i have here a huge range of books about smalltalk 80.
>>
>> All the books describe the syntax and system.
>>
>> To write a better and better code and more functions.
>>
>> The only thing that is not describes is to display a running program
>> inside image.
>>
>> The keywords and methods to display and save the own code inside the
>> packages in the
>>
>> form of "image out" a manipulated smalltalk image to run as a user
>> program.
>>
>> The first step is a really really simple program like mathematic
>> calculation etc.
>>
>> But the procedure of end product must be clear.
>>
>> Only one good example perhaps with a transcript display can overcome
>> theese difficulties.
>>
>> Its all unclear :
>>
>> show Transcript
>>
>> openInWorld
>>
>> class new class
>>
>>
>> Theese commands are messages to a object.
>>
>> But the user does not input any program code.  This is automatic running.
>>
>> Anyway , if the Pharo.exe started the image in the program.
>> How , and with what keyword is then the program started fullscreen -
>> which World is invoked to display?
>>
>> This preparation point is unclear when i want to make my "Allready
>> written program" ready to start.
>>
>>
>>
>> However , i make a break with smalltalk now.
>>
>> A few books are still ordered from USA.
>>
>> If this point is unclear i cannot learn further at this point.
>>
>> It makes no sense to write Packages and classes if i cannot invoke the
>> running arrangements
>> No matter if they are objects or others.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>


Re: [Pharo-users] [Ann] Phratch 4.0

2014-10-18 Thread Alain Busser
They are *really* lazy, to the point that nothing can make them work (at
all, for example they never do their homework). But as they never work,
they are often punished and as their teacher I have to give them some extra
work during the punishments so I will give them this kind of "punishment".

Besides, when one of them understands that it is the only way to have a
software in reunionese creole maybe it will give them some energy, we can
still dream...

On Sat, Oct 18, 2014 at 6:53 PM, Hilaire  wrote:

> Le 17/10/2014 14:26, Alain Busser a écrit :
> > they are too lazy to "create the future") I will try to give the job to
> > some who will be punished, as I will have to give them some work...
>
> And what about their names to be published as contributors? Will they
> not be proud of it?
>
> Hilaire
>
> --
> Dr. Geo - http://drgeo.eu
> iStoa - http://istoa.drgeo.eu
>
>
>


Re: [Pharo-users] [Ann] Phratch 4.0

2014-10-17 Thread Alain Busser
great news.

I finally made my little experiment with Scratch 1.4 (the one under Squeak)
and they didn't like to program in Creole just because it is not their
Creole (Reunion Island vs Haiti). As they are too lazy to "create the
future") I will try to give the job to some who will be punished, as I will
have to give them some work...

Alain

On Fri, Oct 17, 2014 at 1:48 PM, jannik laval 
wrote:

> Phratch 4.0 is out of the box !
>
> Phratch 4.0 is cleaner, faster and more stable than phratch 3.0.
>
> After the version 3.0 that was a release for usability and stability,
> phratch 4.0 is released to prepare the future.
>
> The new features are:
>
> - phratch is more modular, eg having a kernel and lots of addons.
> - cleaning a lot the source code
> - customizable environment
> - each block can be made visible or invisible
> - each category can be made visible or invisible
> - it is possible to add translation for addons with the pragma
>  in the class PhratchTranslator. This make the
> translation more modular.
> - first integration of phratch with the pharo environment. Using the
> pragma at the class side of any class in Pharo make the class visible and
> usable in phratch.
> - There is a lot of things to do with phratch, you are welcome to
> contribute ! The documentation for new features will arrive soon.
>
> See you on phratch.com
>
> --
>
> ~~Jannik Laval~~
> École des Mines de Douai
> Enseignant-chercheur
> http://www.jannik-laval.eu
> http://www.phratch.com
> http://www.approchealpes.info
> http://car.mines-douai.fr/
>


Re: [Pharo-users] Scratch in Flash or Phratch?

2014-10-12 Thread Alain Busser
Alas, although I live on Reunion Island since 25 years, I don't speak
Creole. But the creole language in Scratch has been written by people from
Quebec (!). And was incomplete yet funny. I miss it...

Anyway thanks, I can work with Phratch in French without having to install
anything (I don't have the admin rights)

Alain

On Sun, Oct 12, 2014 at 4:01 PM, jannik laval 
wrote:

> Hi Alain,
>
> Yes, Phratch is in french (almost all blocks are translated).
> As I don't speak creole, I cannot do it.
>
> If you can do it, just take te attached file and replace all the french
> sentences by creole ones.
> Then, send me the file, I would be happy to integrate it in the release.
>
> Cheers,
> Jannik
>
>
> 2014-10-12 14:12 GMT+02:00 stepharo :
>
>> ask jannik directly.
>>
>> Stef
>>
>> On 12/10/14 08:03, Alain Busser wrote:
>>
>>> Hello,
>>>
>>> I must present Scratch to my pupils on Tuesday, and I want to show to
>>> them the French and Creole versions. But Scratch is not programmed in
>>> Squeak anymore. Rather, it is in Flash. Hence my question: Is there a
>>> French version of Phratch? And will there be a creole version before
>>> tuesday?
>>>
>>> The advantage of Pharo is that it doesn't need an installation and I can
>>> share it easily with the pupils.
>>>
>>> Alain
>>>
>>
>>
>>
>
>
> --
>
> ~~Jannik Laval~~
> École des Mines de Douai
> Enseignant-chercheur
> http://www.jannik-laval.eu
> http://www.phratch.com
> http://www.approchealpes.info
> http://car.mines-douai.fr/
>


[Pharo-users] Scratch in Flash or Phratch?

2014-10-11 Thread Alain Busser
Hello,

I must present Scratch to my pupils on Tuesday, and I want to show to them
the French and Creole versions. But Scratch is not programmed in Squeak
anymore. Rather, it is in Flash. Hence my question: Is there a French
version of Phratch? And will there be a creole version before tuesday?

The advantage of Pharo is that it doesn't need an installation and I can
share it easily with the pupils.

Alain


Re: [Pharo-users] Strange colour reversal on the Spec site

2014-09-10 Thread Alain Busser
Hi,

I can confirm that this page looks really strange:
http://spec.st/docs/own-model/

At the end, only the word "bindings" appears, the rest is security ink...
Also, all the lines are separated by a darker shade of gray and the script,
if it was visible, would appear as a collection of lines rather than a
single text.

Alain

On Thu, Sep 11, 2014 at 6:18 AM, Johan Fabry  wrote:

>
> We are passionate people with strong opinions. We have to be, otherwise we
> would not be spending our time on this language which is not ‘normal’.
> Sometimes this causes disagreements. Sometimes these disagreements cannot
> be resolved. When the latter happens, this is a sad thing.
>
> I am not interested in judging, determining who was ‘right’ and who was
> ‘wrong’. From his/her point of view everybody is ‘right’ (at least to a
> high degree). I just want to do what, for me, is the best for the overall
> project. I may be ‘wrong’, but I do not know any better. I’m just another
> guy, you know?
>
> All of the above being said, for me, the best action is to give my little
> bit of support to the version of Spec that is in the Pharo distribution
> because I think that this is the best for the project. I would like to keep
> working on the documentation and improving it. Specifically I mean the
> version that Stef linked to below as it corresponds to what’s in Pharo. I
> have had some ideas about missing content as well. So when stuff calms
> down, let’s sync and work on further improving the documentation.
>
> On Sep 10, 2014, at 3:45 PM, stepharo  wrote:
>
> Hello andy
>
> I'm sorry about this story. The pharo board (Tudor Girba, Sven van
> Cackenberghe, Esteban Lorenzano, Marcus Denker and me)
>  will react officially this is problem. I'm in the board but I do not
> want that people think that I'm trying any action that would
> be about personal nature, especially since I personally supported a
> lot Benjamin during all these years - and I do not understand
> his sudden action. Now since this is out of my reach, I prefer to
> focus on making Pharo better and I'm working on that actively :)
>
> I decided as one of Pharo founder to follow the board and let them
> handle this situation. I decided that I will not influence nor act
> because I prefer to be in positive mindset and push Pharo further.
> The board told me that they will clarify the situation, especially
> since there are actions that were not correct.
>  I'm waiting as you for an official statement from the board, and I
> know that it will come and be really clear.
> As you can imagine the board wants to do it right and settle it as an
> example for any future frameworks or part (Zinc, Glamour, Athens, TxText,
> ...)
> that (will) compose Pharo.
> We are setting an industrial consortium to push Pharo for real (As you
> can see in the reporthttp://consortium.pharo.org/web?_s=DiSVVVKk3sFm2ouZ
> Inria put 300 K euros not counting the salary of the permanent members
> of our team) and rules should be clear and followed.
>
> Now the GPL license does not apply to the version of Spec that is
> available in the Pharo distribution since it is MIT from the beginning
> and it will stay forever as it. We did not fork it. We are actively
> improving Spec. Some clean ups got already integrated and others are
> pending.
> We will maintain and improve the Spec documentation too. For example
> we will probably add the part
> written by Stefan Eggermont that was submitted but never integrated.
> I'm waiting just to avoid adding to the confusion.
>
> You can find a version of the Spec documentation as part of the next
> book:
>
> https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccessfulBuild/artifact/Spec/Spec.pier.pdf
> It may be not fully in par with the github repo but we will sync with
> Johan Fabry too in the future.
>
>
>
>
> ---> 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] Math Ontologie on Pharo 3.0

2014-09-09 Thread Alain Busser
Is this a reproducible case?
http://ss3.gemstone.com/ss/MathsOntologie/MathsOntologie-AlainBusser.68.mcz

I hope not :-)

Alain

On Tue, Sep 9, 2014 at 5:43 AM, Clément Bera  wrote:

> What kind of bug do you have with accent ? Do you have a stack trace ?
>
> More importantly, can you give us a reproducible case ? I will investigate
> tomorrow if you have a reproducible case to check if this is due to Opal.
>
> It may also be recent changes related to fonts.
>
> 2014-09-08 21:07 GMT+02:00 Sven Van Caekenberghe :
>
>> I don't think it is related to Opal: I made a test class with an instance
>> variable, accessor and class comment with accents - which I can file out
>> and file in:
>>
>>
>>
>>
>>
>>
>>
>> I tested in 3.0 and 4.0
>>
>> The problem might be with Monticello.
>>
>>
>> On 08 Sep 2014, at 20:05, Hilaire  wrote:
>>
>> > Oh, by the way, it looks like the accents are on the instance variable
>> names.
>> >
>> > I edited the subject to not pollute the original discussion thread.
>> >
>> > Hilaire
>> >
>> > Le 08/09/2014 20:01, Hilaire a écrit :
>> >> Marcus,
>> >>
>> >> Alain's MathOntologie package provide Classes and Messages with French
>> >> accent, to ease the understanding of programming to high school
>> students.
>> >> I am suspecting the new compiler or something related does not accepted
>> >> accented caracters or something different to ASCII.
>> >>
>> >> Alain, in your package I noted the sources is not utf-8 but iso-8859-15
>> >> (8 bits), I converted it to utf-8 and tried to get it loaded in Pharo3,
>> >> but still accent characters caused problem, see screenshot.
>> >>
>> >> Enclosed source file utf-8 converted and improper imported source code
>> >> with accented variable name.
>> >>
>> >> Hilaire
>> >>
>> >> Le 08/09/2014 12:18, Alain Busser a écrit :
>> >>> Hi,
>> >>>
>> >>> I don't know if it is related but I have problems importing french
>> files
>> >>> inside Pharo 3: Anytime when there is an accentuated character there
>> is
>> >>> an error, and the file is not imported. Even if the character is a
>> quote
>> >>> inside double quotes (like in "it don't work") there is an error
>> >>> message. Right now I can't import MathsOntologie
>> >>> (
>> http://ss3.gemstone.com/ss/MathsOntologie/MathsOntologie-AlainBusser.68.mcz
>> )
>> >>>
>> >>> into Pharo 3 and I have to go on developing it in Pharo 1.4...
>> >>>
>> >>> Alain
>> >>>
>> >>
>> >>
>> >
>> >
>> > --
>> > Dr. Geo - http://drgeo.eu
>> > iStoa - http://istao.drgeo.eu
>> >
>> >
>>
>>
>>
>


Re: [Pharo-users] Gettext with pharo 3 and seaside 3.1.2

2014-09-08 Thread Alain Busser
Hi,

I don't know if it is related but I have problems importing french files
inside Pharo 3: Anytime when there is an accentuated character there is an
error, and the file is not imported. Even if the character is a quote
inside double quotes (like in "it don't work") there is an error message.
Right now I can't import MathsOntologie (
http://ss3.gemstone.com/ss/MathsOntologie/MathsOntologie-AlainBusser.68.mcz)
into Pharo 3 and I have to go on developing it in Pharo 1.4...

Alain

On Mon, Sep 8, 2014 at 1:16 PM, Hilaire  wrote:

> What is the purpose of the seaside-gettext package ?
> Is it a relic or is it useful? Gettext is orthogonal to Seaside.
>
> Hilaire
>
> Le 07/09/2014 15:32, Peter Schorsch a écrit :
>
>> But then I had to realize that the seaside-gettext package was not
>> installed; and also no gettext package. I found a gettext package in
>> the repositoryhttp://smalltalkhub.com/mc/PharoExtras/Gettext.
>>
>> I installed the package ConfigurationOfGettext, but the
>> configuraitonof-browser does not show it. So I installed the package
>> Gettext via monticello.
>>
>
>
> --
> Dr. Geo - http://drgeo.eu
> iStoa - http://istao.drgeo.eu
>
>
>


Re: [Pharo-users] The fourth R

2014-09-07 Thread Alain Busser
Strangely, I am preparing a Python session for pupils who are supposed ti
know almost nothing about programming; and I finally came up with the
turtle module! I realized that

*COBOL has been invented so that people who work in banks and do not know
how to program, can program
*Basic was supposed to be usable by beginners (hence the "b" letter); which
imho is false
*LOGO has been invented so that such silly creatures as robots could
program; and of course children could program in LOGO (and even, as I read,
tech programmation at the age of 4)
*Smalltalk has been created to cope with the mice and windows, but thinking
about programmation for children (hence, Etoys and Scratch)
*In France there was a thing called "LSE" which was supposed to help
writing the program in a language neighboring French language. No one
remembers that, but there were other experiments like "execalgo" or
"algobox" (not mentionning MathsOntologie ;-))


Seeing that, I realize that a programming tool especially made for children
is not really a new idea, but Python is cool for that. In France too Python
is heavily used, especially for students. What surprises me is that the
English government choose Python for *children* instead of, say, Scratch. I
would not use xMaxima to teach fractions just because xMaxima is able to
compute integrals!

To conclude, for me, Phratch on Android is the future in that domain ;-)

Alain


On Sun, Sep 7, 2014 at 2:29 PM, kilon alios  wrote:

> Python has no competition. Sure there are languages that are more popular
> than Python for their own reasons. There have been simpler languages before
> python, there have been more popular languages, more cross platform
> languages etc etc but Python fills a gap that no language was able to fill
> before it , easy to use very powerful well documented libraries. Python is
> a language that you can teach to a kid now and make a living later on using
> until his or her old age. Its not because the language is simple , its
> simple enough but not the simplest. Its because the culture surrounding the
> creation of libraries . That culture has a name its called "pythonic"
>
>  Beautiful is better than ugly.
> Explicit is better than implicit.
> Simple is better than complex.
> Complex is better than complicated.
> Flat is better than nested.
> Sparse is better than dense.
> Readability counts.
> Special cases aren't special enough to break the rules.
> Although practicality beats purity.
> Errors should never pass silently.
> Unless explicitly silenced.
> In the face of ambiguity, refuse the temptation to guess.
> There should be one-- and preferably only one --obvious way to do it.
> Although that way may not be obvious at first unless you're Dutch.
> Now is better than never.
> Although never is often better than *right* now.
> If the implementation is hard to explain, it's a bad idea.
> If the implementation is easy to explain, it may be a good idea.
> Namespaces are one honking great idea -- let's do more of those!
>
>
> this kind of ideology is why Python has been so successful. It has also 
> inspired jokes like this
>
>
> http://xkcd.com/353/
>
> it may look funny and it says thinks about overestimating the simplicity of 
> those libraries but python does feel at times as simple as this, as simple as 
> importing antigravity.
>
> So if a kid comes to me and ask me "what language should I learn" , I will 
> recommend a language that is fairly easy to learn , has powerful library , 
> easy to use libraries , well documented and its a language that will able to 
> keep using even if his or her needs change, forever. For that only Python is 
> the language that has been able to succeed and I think its adoption will 
> continue to progress in educational institutions pretty much everywhere on 
> the planet.
>
>
> Referring to the rest of your post I dont agree that we need to separate Data 
> from Code, I think quite opossite that a kid needs to be taught why Code and 
> Data are one and what that means in practice. I also don't agree that OO or 
> functional programming or any other programming paradigm I am aware of are 
> the future. They are simple solutions for simpler times. The coding community 
> at large the way I see it is in denial hoping to apply simple recipes to 
> solve complex problems. We need very complex solutions to very complex 
> problems , we need tools that can interact with the user in many diffirent 
> ways.
>
> Pharo is definitely showing the future, the close integration of IDE , 
> language and environment. But thats is just the start, the next step is 
> powerful tools that can deeply interact with code and solve automagically 
> logical coding problems. Obviously all that has to be wrapped to an easy 
> enough interface for the user even if the solutions is very complex.
>
> Fortunately this where the rest of the coding world is heading. For example 
> iPython is o

Re: [Pharo-users] Number is not accepted by UI

2014-07-16 Thread Alain Busser
Then the browser had helped you, as you would have found that the "-" is a
method for subtraction only. But it takes more time to look inside this
browser... The reward is that you find gold nuggets here and there; for
example, when I saw that there were a "asRomanLitteral" for the integers, I
was astonished and pleased at the same time.


On Wed, Jul 16, 2014 at 1:12 PM, Max Bareis  wrote:

> The misunderstanding her is based in the error message of the ui.
> when you write
> ^ - self width.
> and save, the UI writes this text into the code:
> ^ only numbers may be negated ->- self width.
>
> More helpful would have been something like: „only literals may be negated
> with - use  negated instead“.
>
> I was irritated and on the wrong track because I was absolutely sure that
> self width is a number.
>
> Regards
>
> Max
>
> Am 16.07.2014 um 10:44 schrieb Alain Busser :
>
> That's where the Inspector comes in:
>
> To debug, it is good to insert a self width inspect so that the inspector
> opens up and reveals what exactly the width is. OK, it is a number; then
> open the browser and look at the number's methods; or in the finder, try 2
> . -2 in the examples...
>
> Pharo is excellent at debugging, that is why I choosed it for my Ontology
> project, the browser shows welle what is a number, what kind of numbers
> there are, and why a complex number is not a number...
>
> Alain
>
>
> On Wed, Jul 16, 2014 at 2:59 AM, Verkoster Info 
> wrote:
>
>>  It definitely is,
>>
>>
>>
>> thanks for all your answers…
>>
>> Regards
>>
>> Max
>>
>>  Am 16.07.2014 um 00:56 schrieb Camille Teruel > >:
>>
>>  I've been overtaken :)
>> Isn't that an active mailing list ?
>>
>>
>>  On 16 juil. 2014, at 00:53, Camille Teruel 
>> wrote:
>>
>>  Hi Max,
>>
>> Pharo doesn't have syntax for prefix operator like "-".
>> The parser does accepts a "-" before literal numbers but it's not
>> possible for arbitrary expressions.
>> However you have the message #negated .
>>
>> negatedWidth
>> ^ self width negated
>>
>> Cheers,
>> Camille
>>
>>  On 16 juil. 2014, at 00:16, Verkoster Info  wrote:
>>
>> Hi,
>>
>> I am using latest Pharo 3.0 + vm.
>>
>> I have a method width with
>> width
>>
>> ^ 115 * self ratio.
>> in my understanding it returns a Number.
>>
>> When I try to create a method
>> negatedWidth
>>
>> ^   - (self width).
>>
>> the UI tells me that only Numbers may be negated. I am not able to save
>> the method. Am I on a wrong path or should that work and if how can I avoid
>> the UI error message?
>>
>> Regards
>>
>> Max
>>
>>
>
>


Re: [Pharo-users] Number is not accepted by UI

2014-07-16 Thread Alain Busser
That's where the Inspector comes in:

To debug, it is good to insert a self width inspect so that the inspector
opens up and reveals what exactly the width is. OK, it is a number; then
open the browser and look at the number's methods; or in the finder, try 2
. -2 in the examples...

Pharo is excellent at debugging, that is why I choosed it for my Ontology
project, the browser shows welle what is a number, what kind of numbers
there are, and why a complex number is not a number...

Alain


On Wed, Jul 16, 2014 at 2:59 AM, Verkoster Info 
wrote:

>  It definitely is,
>
>
>
>
> thanks for all your answers…
>
> Regards
>
> Max
>
>  Am 16.07.2014 um 00:56 schrieb Camille Teruel :
>
>  I've been overtaken :)
> Isn't that an active mailing list ?
>
>
>  On 16 juil. 2014, at 00:53, Camille Teruel 
> wrote:
>
>  Hi Max,
>
> Pharo doesn't have syntax for prefix operator like "-".
> The parser does accepts a "-" before literal numbers but it's not possible
> for arbitrary expressions.
> However you have the message #negated .
>
> negatedWidth
> ^ self width negated
>
> Cheers,
> Camille
>
>  On 16 juil. 2014, at 00:16, Verkoster Info  wrote:
>
> Hi,
>
> I am using latest Pharo 3.0 + vm.
>
> I have a method width with
> width
>
> ^ 115 * self ratio.
> in my understanding it returns a Number.
>
> When I try to create a method
> negatedWidth
>
> ^   - (self width).
>
> the UI tells me that only Numbers may be negated. I am not able to save
> the method. Am I on a wrong path or should that work and if how can I avoid
> the UI error message?
>
> Regards
>
> Max
>
>


Re: [Pharo-users] A question about sets

2014-06-28 Thread Alain Busser
oui, c'est ici: http://irem.univ-reunion.fr/spip.php?rubrique140

Avec un lien de téléchargement:
https://dl.dropbox.com/u/10996692/MathsOntologie.zip

btw I still plan to port it to Pharo3...

Alain


On Sat, Jun 28, 2014 at 10:24 AM, p...@highoctane.be 
wrote:

> Fun French Smalltalk.
>
> Il y a une version dispo?
>
> Phil
> Le 25 juin 2014 18:33, "Alain Busser"  a écrit :
>
> About the birthday problem, I already pulished something that I had
>> exeperimented in the classroom, but it is in French:
>> http://irem.univ-reunion.fr/spip.php?article618 (clic on "problème des
>> anniversaires" tab). The idea is that if you add say 30 times a "365
>> atRandom" to a bag (instead of a set) it happens now and then that a number
>> appear more than once. In this classroom, two students actually had the
>> same birthday, and they were eager to know of it happens often, so that
>> they were very active for this exercise.
>>
>> Happy reading ;-)
>>
>> Alain
>>
>>
>> On Wed, Jun 25, 2014 at 12:10 PM, hilaire  wrote:
>>
>>> Alain,
>>>
>>> I love very much your cultural insight and I would like to see more
>>> examples
>>> like this one applied to Dr. Geo scripting or Smalltalk sketches.
>>> Personally, I don't have the time to both develop Dr. Geo *and* to
>>> investigate such examples; contributions like yours are more than
>>> welcome.
>>>
>>> Thanks
>>>
>>> Hilaire
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://forum.world.st/A-question-about-sets-tp4763094p4764640.html
>>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>>
>>>
>>


Re: [Pharo-users] A question about sets

2014-06-27 Thread Alain Busser
You're right but it should not have a fixed length because I want to remove
numbers from it. I guess an SortedCollection is the best way to retrieve
the next prime number. And the exercise is a good way to discover select
and reject...

Alain


On Fri, Jun 27, 2014 at 1:41 PM, hilaire  wrote:

> Why do you need a set for that? An array is enough.
> But please go on.
>
> Hilaire
>
>
>
> --
> View this message in context:
> http://forum.world.st/A-question-about-sets-tp4763094p4765282.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Re: [Pharo-users] A question about sets

2014-06-26 Thread Alain Busser
About the use of sets I found another idea: Eratosthene's sieve.

Basically you create a set containing all integers from 2 to, say, 200.

Then, beginning with 2, you choose remove all multiples of the number you
choose from the set. Then you go to the next number in the set and so on...

The difficulty is to choose the right collection, as a set is not ordered
and it is not easy to loop on the prime divisors...

I made it on this article (near the middle):
http://irem.univ-reunion.fr/spip.php?article742

Of course you can have the set of primes directly under Pharo with isPrime
as we did here: http://www.epi.asso.fr/revue/articles/a1211b.htm (I had
forgotten this)

Alain


On Thu, Jun 26, 2014 at 8:21 PM, Hilaire Fernandes <
hilaire.fernan...@gmail.com> wrote:

> Great!
> Now I wonder how it could be used within Dr. Geo.
>
> Thanks
>
> Hilaire
>
> Le 25/06/2014 18:33, Alain Busser a écrit :
> > About the birthday problem, I already pulished something that I had
> > exeperimented in the classroom, but it is in French:
> > http://irem.univ-reunion.fr/spip.php?article618 (clic on "problème des
> > anniversaires" tab). The idea is that if you add say 30 times a "365
> > atRandom" to a bag (instead of a set) it happens now and then that a
> > number appear more than once. In this classroom, two students actually
> > had the same birthday, and they were eager to know of it happens often,
> > so that they were very active for this exercise.
> >
> > Happy reading ;-)
> >
> > Alain
> >
> >
> > On Wed, Jun 25, 2014 at 12:10 PM, hilaire
> >  > <mailto:hf...@free.fr>> wrote:
> >
> > Alain,
> >
> > I love very much your cultural insight and I would like to see more
> > examples
> > like this one applied to Dr. Geo scripting or Smalltalk sketches.
> > Personally, I don't have the time to both develop Dr. Geo *and* to
> > investigate such examples; contributions like yours are more than
> > welcome.
> >
> > Thanks
> >
> > Hilaire
> >
> >
> >
> > --
> > View this message in context:
> > http://forum.world.st/A-question-about-sets-tp4763094p4764640.html
> > Sent from the Pharo Smalltalk Users mailing list archive at
> Nabble.com.
> >
> >
>
> --
> Dr. Geo http://drgeo.eu
> iStoa - https://launchpad.net/istoa
>
>
>


Re: [Pharo-users] A question about sets

2014-06-25 Thread Alain Busser
About the birthday problem, I already pulished something that I had
exeperimented in the classroom, but it is in French:
http://irem.univ-reunion.fr/spip.php?article618 (clic on "problème des
anniversaires" tab). The idea is that if you add say 30 times a "365
atRandom" to a bag (instead of a set) it happens now and then that a number
appear more than once. In this classroom, two students actually had the
same birthday, and they were eager to know of it happens often, so that
they were very active for this exercise.

Happy reading ;-)

Alain


On Wed, Jun 25, 2014 at 12:10 PM, hilaire  wrote:

> Alain,
>
> I love very much your cultural insight and I would like to see more
> examples
> like this one applied to Dr. Geo scripting or Smalltalk sketches.
> Personally, I don't have the time to both develop Dr. Geo *and* to
> investigate such examples; contributions like yours are more than welcome.
>
> Thanks
>
> Hilaire
>
>
>
> --
> View this message in context:
> http://forum.world.st/A-question-about-sets-tp4763094p4764640.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Re: [Pharo-users] A question about sets

2014-06-15 Thread Alain Busser
Hi Fabien and welcome,

you just discovered this phenomenon:
http://en.wikipedia.org/wiki/Birthday_problem

and you can be proud having discovered it by yourself!

Alain


On Sun, Jun 15, 2014 at 12:12 AM, Hilaire Fernandes <
hilaire.fernan...@gmail.com> wrote:

> Hi Fabien,
>
> As other already explained, you just discovered the marvelous Set
> collection.
>
> Hilaire
>
> Le 14/06/2014 11:48, Fabian Boucsein a écrit :
> > i am new to Smalltalk and Pharo and today, while
> > trying out some examples, i observed an somewhat
> > strange behaviour.
>
> --
> Dr. Geo http://drgeo.eu
> iStoa - https://launchpad.net/istoa
>
>
>


Re: [Pharo-users] Slowness question

2014-06-05 Thread Alain Busser
What does the profiler say?

Alain


On Thu, Jun 5, 2014 at 1:15 AM, Hilaire Fernandes <
hilaire.fernan...@gmail.com> wrote:

> Hi,
>
>
> Programmed sketch in DrGeo can be animated, for example like the script
> bellow.
> The "canvas do:" message forks the block so user is not blocked.
> At #udpate message the items and views (morph) are recomputed and refreshed
> .
> Before porting DrGeo to Athens, the animation was pretty fast, now it is
> very slow.
>
> Any idea from where it could come from?
>
> Thanks
>
>
> ---8<--
> |canvas s stats points|
>
> points :=Array new: 12.
> stats := Array new: 12 withAll: 0.
>
> canvas := DrGeoCanvas new.
> 2 to: 12 do: [:i |
> points at: i put: (canvas point: i@0.1).
> (points at: i) square; color: Color blue.
> s := canvas segment: i@0 to: (points at: i).
> s color: Color red].
>
> canvas do: [
> 1 to: 1 do: [:i|
> s := 6 atRandom + 6 atRandom.
> stats at: s put: ((stats at: s)+1).
> (points at: s)
> name: (stats at: s) asString;
> moveTo: s @ ((stats at: s) / 100).
> canvas update].
> ---8<--
>
>
>
> --
> Dr. Geo http://drgeo.eu
>
>
>


Re: [Pharo-users] a Pharo talk from a ruby conference

2014-04-28 Thread Alain Busser
Also, Ruby is famous for these methods:

*select
*reject
*collect

do these names not remind you something ;-) ?

Alain


On Mon, Apr 28, 2014 at 8:12 PM, Marcus Denker wrote:

> … more a Smalltalk one using Pharo:
>
> MountainWest RubyConf 2014
>
> Noel Rappin: "But Really, You Should Learn Smalltalk”
>
> Smalltalk has mystique. We talk about it more than we use it. It seems
> like it should be so similar to Ruby. It has similar Object-Oriented
> structures, it even has blocks. But everything is so slightly different,
> from the programming environment, to the 1-based arrays, to the simple
> syntax. Using Smalltalk will make you look at familiar constructs with new
> eyes. We’ll show you how to get started on Smalltalk, and walk through some
> sample code. Live coding may be involved. You’ll never look at objects the
> same way again.
>
>
> http://www.confreaks.com/videos/3284-mwrc-but-really-you-should-learn-smalltalk
>


Re: [Pharo-users] Question on style

2014-04-02 Thread Alain Busser
Yes, and if there are no solution, you get an empty set instead of an error
message. I find it more coherent, and simpler to use.


On Wed, Apr 2, 2014 at 9:48 PM, nacho <0800na...@gmail.com> wrote:

> Alain,
> Very good idea. A Set it's much better than an OrderedCollection. Already
> changed that. Now when the solution is in both cases 0, it returns only (0)
> and not (0 0). And also intuitively I agree with you that the solutions of
> an equation are a set.
> Thanks!
> Nacho
>
>
>
>
> -
> Nacho
> Smalltalker apprentice.
> Buenos Aires, Argentina.
> --
> View this message in context:
> http://forum.world.st/Question-on-style-tp4752165p4752386.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Re: [Pharo-users] Question on style

2014-04-02 Thread Alain Busser
As solving an equation is basically giving the set of its solutions, I
prefer to use a set to solve the equation.Instead of the OrederedCollection
of course. It simplifies the algorithm if the discriminant is 0, because
adding two times the same root yields a set with only one element, not the
same element counted twice. The algorithm (much like the one with ordered
collection) goes like this:

*create an empty set with Set new.
*compute the discriminant.
*if it is positive, add to the set the "two" roots.
*you're done!


On Wed, Apr 2, 2014 at 8:45 PM, nacho <0800na...@gmail.com> wrote:

>
> Hi Nacho,
>
> I wouldn't throw an error because otherwise one must know beforehand that
> an
> equation is non-resolvable or must use #on:do: everywhere.
> Since that when you ask to resolve an equation you get back a collection of
> solutions, a non-resolvable equation could just return an empty collection,
> couldn't it?.
> If you really want to consider that asking to resolve a non-resolvable
> equation is an error, another solution would be to provide a #rootsIfNone:
> method. That's a common pattern in Smalltalk.
> I would also rename 'checkNegative' to 'discriminant', because it's not
> obvious to see what that variable represents at first glance.
>
> Very good points. I came up with a third draft. This is evolving good!
> Thanks
> Nacho
>
> "The idea is to have a class to calculate quadratic equations.
> This second third still only calculates real roots (leaving aside imaginary
> roots).
> But thanks to Damien Cassou, and Camille Teruel has a better style.
>
> A QuadraticEquation is a class used to solve Quadratic Equations of the
> form: ax^2 + bx + c = 0, where a is not 0.
>
> You can set the coefficients using the following method
> setQuadraticCoefficient:  linearCoefficient:  constant:"
>
> Object subclass: #QuadraticEquation
> instanceVariableNames: 'quadraticCoefficient linearCoefficient
> constant
> roots'
> classVariableNames: ''
> category: 'IS-Math'
>
> "I create accessors (only getters for each term) and then the following
> method to set the terms"
> setQuadraticCoefficient: aNumber1 linearCoefficient: aNumber2 constant:
> aNumber3
> quadraticCoefficient := aNumber1.
> linearCoefficient := aNumber2.
> constant := aNumber3
>
>
>
> QuadraticEquation>>calculateRoots
> | discriminant |
>  discriminant := linearCoefficient  squared - ( 4 *
> quadraticCoefficient  *
> constant).
>
>  discriminant  >= 0
> ifFalse: [ ^ self rootsIfNone ]
> ifTrue: [ ^ self solveRoots: discriminant]
>
>
> QuadraticEquation>>solveRoots: aTerm
> | rootA rootB |
> roots := OrderedCollection new.
> rootA := (linearCoefficient  negated + aTerm sqrt) / (2 *
> quadraticCoefficient).
> rootB := (linearCoefficient  negated  - aTerm sqrt) / (2 *
> quadraticCoefficient).
> roots add: rootA; add: rootB.
> ^ roots
>
>
> QuadraticEquation>>rootsIfNone
> ^ 'No real solution for the equation'
>
>
> "   Example:  -3x^2+2x+2=0
> an OrderedCollection(-0.5485837703548636 1.2152504370215302)
>
> print(it)
>
> | anEquation |
> anEquation := QuadraticEquation new.
> anEquation setQuadraticCoefficient: -3 linearCoefficient: 2
> constant: 2.
> anEquation calculateRoots."
>
>
>
>
>
>
> -
> Nacho
> Smalltalker apprentice.
> Buenos Aires, Argentina.
> --
> View this message in context:
> http://forum.world.st/Question-on-style-tp4752165p4752369.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Re: [Pharo-users] Calculate angle between two vectors (probably @Igor :)

2014-03-16 Thread Alain Busser
First of all, you could simplify your code with dotProduct, writing

dot2 := p1 dotProduct: p2.

But maybe you just need

((p1 normalized) dotProduct: (p2 normalized)) arcCos ;-)

You can also explore the polar coordinates...

Alain


On Sun, Mar 16, 2014 at 8:01 PM, MartinW  wrote:

> Hello,
> i probably made some embarassing mistake, but as i cannot find it, i ask
> you
> to have a look at this method.
> It should calculate the angle between two vectors. And vectors are
> instances
> of Point (perhaps here is already a misconception?).
> It is used in my flocking simulation PharoBoids
> (http://smalltalkhub.com/#!/~MartinWalk/Boids)
>
> Here is my version of the method:
>
> angleBetween: vector1 and: vector2 onError: aBlock
> | cosinusOfAngle innerProductOfVectors productOfVectorsLengths|
> innerProductOfVectors := (vector1 dotProduct: vector2).
> productOfVectorsLengths := (vector1 r) * (vector2 r).
> productOfVectorsLengths = 0 ifTrue: [ ^ aBlock value ].
> cosinusOfAngle := innerProductOfVectors / productOfVectorsLengths.
> ^ cosinusOfAngle arcCos
>
> But my Boids behave wrong when i use it. I found another implementation of
> the same problem by Igor Stasenko which works and looks like this:
>
> angleBetween: p1 and: p2 ifDegenerate: aBlock
> " Calculate an angle (in radians) between two vectors.
> Evaluate a block, in case if calculation not possible because one of the
> vectors has zero length "
>
> | x1 y1 x2 y2 dot2 n2 |
> x1 := p1 x.
> y1 := p1 y.
> x2 := p2 x.
> y2 := p2 y.
>
> dot2 := x1 * x2 + (y1 * y2).
> dot2 := dot2 * dot2.
>
> n2 := (x1*x1 + (y1*y1)) * (x2*x2 + (y2*y2)).
>
> n2 = 0 ifTrue: [ ^ aBlock value ].
>
> ^ (dot2 / n2) arcCos
>
> Can anybody explain the problem of my method? M.
>
>
>
> --
> View this message in context:
> http://forum.world.st/Calculate-angle-between-two-vectors-probably-Igor-tp4749351.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Re: [Pharo-users] Pharo 3.0 image shrink

2014-03-16 Thread Alain Busser
Welcome to the club ;-)

Alain


On Sun, Mar 16, 2014 at 10:22 PM, Hilaire Fernandes <
hilaire.fernan...@gmail.com> wrote:

> I will, but I need to reiterate because I removed a bit two much.
>
> Hilaire
>
> Le 16/03/2014 11:21, Pharo4Stef a écrit :
> > could you let me know the list of classes you are in the system.
> > This is clear that we should spend some months on that to get progress.
>
> --
> Dr. Geo http://drgeo.eu
>
>
>


Re: [Pharo-users] iStoa, some new

2014-02-02 Thread Alain Busser
Then I guess the simplest way to go, would be to add some ogg files with
pre recorded sentences. In this way the child could have the letters and
the sound at the same time and begin to learn to read while doing some
maths...


On Sun, Feb 2, 2014 at 9:29 PM, Pharo4Stef  wrote:

>
> On 02 Feb 2014, at 17:39, Alain Busser  wrote:
>
> Hi Hilaire,
>
> The instructions are written in small characters, which supposes that the
> child who tries the exercises is rather old; yet before a child is able to
> read complete sentences like this, he/she learns the numbers. So I wonder
> if your application would not benefit from voice synthesis.
>
> Which yields me to an other question: Is there already voice synthesis in
> Pharo?
>
>
> There KlattPlugin but it is prehistorical age and does not work for
> spanish, french.
> I had one student working on bring a tagger.
>
> Stef
>
> If yes, how many languages are implemented?
>
> Hello,
>>
>> Some newer screenshots about iStoa.
>> To try, some instructions there [2]
>>
>> Hilaire
>>
>>
>> [1] https://launchpad.net/istoa
>> [2]
>>
>> http://bazaar.launchpad.net/~hilaire-fernandes/istoa/trunk/view/head:/README
>>
>> --
>> Dr. Geo http://drgeo.eu
>>
>
>
>
>


Re: [Pharo-users] iStoa, some new

2014-02-02 Thread Alain Busser
Hi Hilaire,

The instructions are written in small characters, which supposes that the
child who tries the exercises is rather old; yet before a child is able to
read complete sentences like this, he/she learns the numbers. So I wonder
if your application would not benefit from voice synthesis.

Which yields me to an other question: Is there already voice synthesis in
Pharo? If yes, how many languages are implemented?

Alain


On Sat, Feb 1, 2014 at 11:16 PM, Hilaire Fernandes <
hilaire.fernan...@gmail.com> wrote:

> Hello,
>
> Some newer screenshots about iStoa.
> To try, some instructions there [2]
>
> Hilaire
>
>
> [1] https://launchpad.net/istoa
> [2]
>
> http://bazaar.launchpad.net/~hilaire-fernandes/istoa/trunk/view/head:/README
>
> --
> Dr. Geo http://drgeo.eu
>


Re: [Pharo-users] Life, Ukraine, Developers

2014-01-25 Thread Alain Busser
My first thought was that Ukraine is famous for the beauty of its women (as
sang Ringo Starr "the Ukraine girls really knock me out") and I didn't dare
to write it here, for fear that the women on this list tackle me as sexist.
Then, I realized that there are maybe only men here, am I wrong (that's my
hope)?

Anyway, any time, any place when people are shot just because they want to
be free, there is something really wrong somewhere... It is sad that it can
happen on this planet nowadays, and it happens in several countries...


On Sat, Jan 25, 2014 at 8:16 PM, Camille Teruel wrote:

>
> On 25 janv. 2014, at 16:27, Thomas Worthington 
> wrote:
>
> > Well, good luck. But remember that the enemy of your enemy may not be
> your friend and that no one cares more about your welfare than you do, no
> matter how big a smile they have or how warm a speech they make about
> democracy and free speech.
>
> +1
>
> >
> > On Wed, 22 Jan 2014 18:06:12 -, Yuriy Tymchuk 
> wrote:
> >
> >> My dear Pharo friends,
> >>
> >> I have no idea if you are aware, but now a big country named Ukraine is
> facing a very hard times. People are fighting for their rights while the
> current government tries to convert the country into Somalia - like regime.
> >>
> >> Why should you care? Because you will like Ukrainians. And referring to
> the context: we develop a lot. If you are not familiar:
> https://github.com/fre5h/DoctrineEnumBundle/pull/12
> >>
> >> I don’t want to cry here, but me, Igor Stasenko and some other pharo
> developers are from Ukraine, and we are extremely worried about our Home. I
> just ask you to think about our country for a minute. Tell your friends:
> “You know, there is this nice country called Ukraine, where people are
> being shot just because they want to have a freedom of speech”. And if you
> believe in God, please say a short prayer for Ukraine, I trust that this is
> important.
> >>
> >> Sorry guys for taking your time, but I was touched by this pull request
> and just wanted to share what is happening around.
> >> Cheers!
> >> Uko
> >
> >
> > --
> > Thomas Worthington
> > Tech Nouveau
> >
>
>
>


Re: [Pharo-users] Pharo on Android - is it available?

2013-12-31 Thread Alain Busser
Thank you for making Amber known, but you forgot a link to it: I guess you
talk about this: http://amber-lang.net/

Alain


On Tue, Dec 31, 2013 at 9:35 PM, kilon alios  wrote:

> I have tried squeak on my android devices, it basically runs on android
> yes but it does not behave well with multi touch its practically unusable.
> Basically it does not understand when someone lifts his finger from the
> screen , so it can get clicks but its sticky clicks.So moving windows
> around and clicking on things is a pain and not usable at all.  I suspect
> something similar applies for pharo too.
>
> If you want to develop for mobile devices your best bet right now is
> Amber. Amber tries to be as compatible as possible to pharo and compiles to
> javascript. You should be able to use pharo as a backend if you want to but
> I have not tried to really confirm this, I dont see any reason why this
> wont work. The advantage of amber is that any app you develop with it wont
> be just a mobile app but also a web app.
>
> Using pharo for desktop apps is of course perfectly doable and recommended
> or as a backend to web apps. But if you have a tablet and want to focus on
> this I would say that Amber + Pharo should seal the deal for you and you
> will give you access to loads of stuff you can do because amber will give
> you immediate access to all Javascript libraries and that can only be a
> good thing :)
>
> Also javascript is probably a very good way to develop Android apps that
> also work on iOS.
>
>


Re: [Pharo-users] towards moose in the pharo ide (gtinspector / gtdebugger)

2013-12-31 Thread Alain Busser
OK I understood the message :-D

I plan to test the Moose image with MathsOntologie and you will get plenty
of stupid questions like "how can I do this?" or "why that doesn't work?",
after all this is all that you deserve [?]

This is my peculiar way to wish to you and all the team an happy and
successful year

Alain


On Mon, Dec 30, 2013 at 9:24 AM, Tudor Girba  wrote:

> Hi,
>
> Some of you asked how the GTInspector and GTDebugger are different from
> the existing infrastructure. They are quite different from the norm in
> that: they are tiny, and they are highly extensible. Here are some posts
> that describe what makes them different:
>
>
> http://www.humane-assessment.com/blog/the-moldable-gtinspector-deconstructed/
> http://www.humane-assessment.com/blog/dissecting-the-gtinspector/
>
> http://www.humane-assessment.com/blog/extending-variables-shown-in-gtinspector/
> http://www.humane-assessment.com/blog/moldable-gtdebugger
>
> These tools are already the default development tools in the Moose image.
> As you can see, Moose is reshaping the Pharo IDE. I think this is exciting.
>
> This should be just the beginning. To make it better, we need your energy:
> - Apply and extend these tools for your context (this is what makes them
> unique).
> - Tell us what works and what does not work.
> - Ideally, start working with us on this topic. In particular, I am
> looking for people that would like to spend some time working on Morphic
> widgets.
>
> It's your turn now.
>
> Cheers,
> Doru
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>
<<347.gif>>

Re: [Pharo-users] [ANN] Phratch 1.0beta

2013-12-17 Thread Alain Busser
I think Hilaire could help here, as he knows how to make a Cog work under
Android; and for me, the main advantage Scratch has on other programming
languages, is that the (virtual) keyboard is not used much, so that one
can, at last, program with a tablet...

Alain


On Tue, Dec 17, 2013 at 2:08 PM, jannik laval wrote:

>
>
>
> 2013/12/17 Stéphane Ducasse 
>
>> excellent jannik
>> you should publish it in the metacello repository
>> on squeaksource metacelloRepository
>>
>
> is it still alive ?
>
>
>> on ss3 metaRepoForPharo20
>>
>
> Ok, I will do that asap
>
>
>>
>> and add the catalog metadata.
>>
>
> What is it ?
>
> Jannik
>
>
>>
>> Stef
>>
>> On 16 Dec 2013, at 22:45, jannik.laval  wrote:
>>
>> Hi,
>>
>> I continue to develop Phratch, the port of Scratch in Pharo.
>> Phratch is a visual programming language on top of Pharo.
>>
>> There are lots of new features:
>>
>> - Settings
>> - FileSystems
>> - Metacello
>> - integration of BYOB (allows to build your own blocks)
>> - integration of Color and Files
>> - a lot of new useful blocks
>> - projects saved with Fuel
>> - possibility to implement new features without modifying the core of the
>> system
>> - possibility to customize the environment: add new categories, add new
>> kinds of Sprite, add new blocks.
>>
>> Phratch is available for Pharo2.0 with the following configuration:
>> —
>> Gofer it
>> url: 'http://smalltalkhub.com/mc/JLaval/Phratch/main'
>>  username: ''
>>  password: '';
>> package: 'ConfigurationOfPhratch';
>> load.
>> ((Smalltalk at: #ConfigurationOfPhratch) project version: '1.0') load.
>> (Smalltalk at: #PhratchFrameMorph) open perform:
>> #saveImageForEndUserSilently.
>> —
>>
>> I hope to write documentations about all of the new features asap.
>> You can follow Phratch here:
>> http://car.mines-douai.fr/category/phratch/
>> and here :
>> https://code.google.com/p/phratch/
>>
>> Cheers,
>> Jannik
>>
>>
>>
>
>
> --
>
> ~~Jannik Laval~~
> École des Mines de Douai
> Enseignant-chercheur
> http://www.jannik-laval.eu
> http://car.mines-douai.fr/
>


Re: [Pharo-users] Writing a GUI - Where to start?

2013-11-04 Thread Alain Busser
Hi,

as I have a similar need, I guess what you are aiming at is a tutorial for
absolute beginners in Spec, so the question is more "where could we find
such a tutorial?". And of course I will read it carefully if there exists
one ;-)

Alain


On Tue, Nov 5, 2013 at 9:07 AM, Bahman Movaqar  wrote:

> Hi all,
>
> I need to build a typical GUI application (menus, buttons, modal
> dialogs, ...).  I'd appreciate if you could point me to where should I
> start and what are the choices for a UI framework in Pharo?
>
> TIA,
>
> --
> Bahman Movaqar  (http://BahmanM.com)
>
> ERP Evaluation, Implementation & Deployment Consultant
> PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
>
>
>


Re: [Pharo-users] [ANN] BioSmalltalk published in Bioinformatics Journal

2013-07-19 Thread Alain Busser
That's great, even faster than bioPython, and thanks to Petit Parser.
That's great!

I hope it will be on good place on Pharo's web site...


On Wed, Jul 17, 2013 at 11:14 PM, Hernán Morales Durand <
hernan.mora...@gmail.com> wrote:

> Hi Marcus,
>
> Thank you for the comments, I have been checking the link distribution
> conditions and they say people can access the article only from the Oxford
> Journals website for academic purposes, so here it is:
>
>
> http://bioinformatics.oxfordjournals.org/content/early/2013/07/09/bioinformatics.btt398.full.pdf?keytype=ref&ijkey=Y2j8jNeEKVNl0rD
>
> Sorry for the inconvenience.
> Cheers,
>
> Hernán
>
>
>
> 2013/7/17 Marcus Denker 
>
>>
>> On Jul 16, 2013, at 9:31 PM, Hernán Morales Durand <
>> hernan.mora...@gmail.com> wrote:
>>
>> > Doru, I can access the article through the "Full Text (PDF)" link at
>> the right box titled "This Article". Maybe you have the right columns
>> collapsed? There is an arrow button "Show all columns" if you cannot see
>> the link.
>> > Let me know.
>> >
>>
>> Publishing is the act of making Paper in-accessible to the Public (that's
>> where the name comes from).
>>
>> So what all serious publishers allow you to do is to make the version
>> that you send them (not their version) available from your
>> website and/or an online-archive of your employer,
>>
>> It is very important to do that, as people will not jump through hoops to
>> get your paper (e.g. go to the library?).
>> In the past I send emails to authors to get paper copies, but today I
>> would just *never* do that. If *you* don't make your
>> paper available, why should I bother? i will just not read it and not
>> cite it.
>>
>> The journal publishing is just important for your CV and getting tenure
>> and things like that, the paper the people
>> really *read* is the one they can download from your website.
>>
>> Marcus
>>
>
>


Re: [Pharo-users] SmalltalkWorld chartFrameworks.

2013-05-21 Thread Alain Busser
I didn't *have to* download file by file, I just wanted to try everything
that I could. Doing the Gofer trick still does not allow me to launch a
PPBrowser.

If I try with a fresh image, it works OK, that may prove that Petit works
well on Pharo 2.0, but on my own image it don't work, so there may well be
some competition between Athens and Petit (or MathsOntologie and Petit?)


Next step: I removed, by hand, any package which name begins with "petit",
then to crash Pharo I just have to do

Gofer new
 smalltalkhubUser: 'Moose' project: 'PetitParser';
 package: 'ConfigurationOfPetitParser';
 load.

and that's all!

With a fresh image, I will have to load Athens and MathsOntologie again,
won't I? Plus the changes that I already made to MathsOntologie...


On Tue, May 21, 2013 at 4:56 PM, stephane ducasse
wrote:

>
> On May 21, 2013, at 9:45 AM, Alain Busser  wrote:
>
> Yes, I done it as you wrote with Gofer, then I used Monticello to download
> petit (file by file)
>
>
> why do you have to donwload file by file?
>
> Gofer does it for you.
>
> execute only these two expressions:
>
> Gofer new
>>  smalltalkhubUser: 'Moose' project: 'PetitParser';
>>  package: 'ConfigurationOfPetitParser';
>>  load.
>> (Smalltalk at: #ConfigurationOfPetitParser)
>>  loadDevelopment
>>
>
> Stef
>
>
> , then I done the Gofer trick again, and I still have the same problem: A
> nil as "bottom" which blocks a subtraction...
>
> If I am the only one to encounter the problem, it probably comes from
> somewhere else but where?
>
>
> On Mon, May 20, 2013 at 10:37 PM, Tudor Girba wrote:
>
>> Hi,
>>
>> On May 20, 2013, at 6:05 PM, Alain Busser  wrote:
>>
>> > I dropped the image on Pharo and I still have this illegal subtraction
>> message.
>> >
>> > I don't build anything, I just downloaded Pharo 2.0 "one click" and
>> added MathsOntologie, DrGeo and PetitParser. Plus the (almost) daily
>> updates.
>>
>> How are you downloading PetitParser? If you do not explicitly say what
>> you do, it is hard to say what is wrong :)
>>
>> I gave you detailed instructions for how to load PetitParser. Please
>> follow them and let me know if you still have the problem:
>>
>> - open a workspace in a Pharo 2.0 image
>> - execute (select and invoke do it):
>> Gofer new
>>  smalltalkhubUser: 'Moose' project: 'PetitParser';
>>  package: 'ConfigurationOfPetitParser';
>>  load.
>> (Smalltalk at: #ConfigurationOfPetitParser)
>>  loadDevelopment
>>
>> Cheers,
>> Doru
>>
>>
>> > The debugger says that GLMSystemWindow's "addMorph: fullFrame" method
>> has a subtraction where WindowBorderWidth (which equals 4) is subtracted to
>> bottom; and bottom is nil, so it don't understand the "-" message (I doubt
>> a nil object understands anything).
>> >
>> > So I guess the question is "why is bottom nil?" I see that at the
>> beginning there is bottom := frame bottomOffset. Whereas frame is a
>> LayoutFrame ( (0@0) + (4@4)px corner: (1@1) + (-4@nil)px ) so I imagine
>> the nil comes from this point, no?
>> >
>> >
>> > On Sun, May 19, 2013 at 4:01 PM, Tudor Girba 
>> wrote:
>> > Hi Alain,
>> >
>> > As I said, something does not add up.
>> >
>> > What do you do exactly when you are building your image?
>> >
>> > Also, could you try following the instructions from the previous mail
>> and let me know if it still fails?
>> >
>> > Cheers,
>> > Doru
>> >
>> >
>> > On May 19, 2013, at 1:24 PM, Alain Busser 
>> wrote:
>> >
>> > > in the "world" menu, "tools" then "petitparser";
>> > >
>> > > the browser method is "openWith: aRender" which fails to render
>> anything in GLMMorphicRenderer...
>> > >
>> > >
>> > > On Sun, May 19, 2013 at 12:02 AM, Tudor Girba 
>> wrote:
>> > > Hi,
>> > >
>> > > Something does not add up :). What menu are you talking about?
>> > >
>> > > Here is an image based on Pharo 2.0 that only contains PetitParser:
>> > >
>> https://ci.inria.fr/moose/job/petitparser/lastSuccessfulBuild/artifact/petitparser.zip
>> > >
>> > > If I run "

Re: [Pharo-users] SmalltalkWorld chartFrameworks.

2013-05-21 Thread Alain Busser
Yes, I done it as you wrote with Gofer, then I used Monticello to download
petit (file by file), then I done the Gofer trick again, and I still have
the same problem: A nil as "bottom" which blocks a subtraction...

If I am the only one to encounter the problem, it probably comes from
somewhere else but where?


On Mon, May 20, 2013 at 10:37 PM, Tudor Girba  wrote:

> Hi,
>
> On May 20, 2013, at 6:05 PM, Alain Busser  wrote:
>
> > I dropped the image on Pharo and I still have this illegal subtraction
> message.
> >
> > I don't build anything, I just downloaded Pharo 2.0 "one click" and
> added MathsOntologie, DrGeo and PetitParser. Plus the (almost) daily
> updates.
>
> How are you downloading PetitParser? If you do not explicitly say what you
> do, it is hard to say what is wrong :)
>
> I gave you detailed instructions for how to load PetitParser. Please
> follow them and let me know if you still have the problem:
>
> - open a workspace in a Pharo 2.0 image
> - execute (select and invoke do it):
> Gofer new
>  smalltalkhubUser: 'Moose' project: 'PetitParser';
>  package: 'ConfigurationOfPetitParser';
>  load.
> (Smalltalk at: #ConfigurationOfPetitParser)
>  loadDevelopment
>
> Cheers,
> Doru
>
>
> > The debugger says that GLMSystemWindow's "addMorph: fullFrame" method
> has a subtraction where WindowBorderWidth (which equals 4) is subtracted to
> bottom; and bottom is nil, so it don't understand the "-" message (I doubt
> a nil object understands anything).
> >
> > So I guess the question is "why is bottom nil?" I see that at the
> beginning there is bottom := frame bottomOffset. Whereas frame is a
> LayoutFrame ( (0@0) + (4@4)px corner: (1@1) + (-4@nil)px ) so I imagine
> the nil comes from this point, no?
> >
> >
> > On Sun, May 19, 2013 at 4:01 PM, Tudor Girba 
> wrote:
> > Hi Alain,
> >
> > As I said, something does not add up.
> >
> > What do you do exactly when you are building your image?
> >
> > Also, could you try following the instructions from the previous mail
> and let me know if it still fails?
> >
> > Cheers,
> > Doru
> >
> >
> > On May 19, 2013, at 1:24 PM, Alain Busser 
> wrote:
> >
> > > in the "world" menu, "tools" then "petitparser";
> > >
> > > the browser method is "openWith: aRender" which fails to render
> anything in GLMMorphicRenderer...
> > >
> > >
> > > On Sun, May 19, 2013 at 12:02 AM, Tudor Girba 
> wrote:
> > > Hi,
> > >
> > > Something does not add up :). What menu are you talking about?
> > >
> > > Here is an image based on Pharo 2.0 that only contains PetitParser:
> > >
> https://ci.inria.fr/moose/job/petitparser/lastSuccessfulBuild/artifact/petitparser.zip
> > >
> > > If I run "PPBrowser open", it seems to work just fine.
> > >
> > > Here is how the image was created:
> > > wget --quiet -O - http://get.pharo.org/20+vmLatest | bash
> > > ./pharo Pharo.image save $JOB_NAME
> > > REPO=http://www.smalltalkhub.com/mc/Moose/PetitParser/main
> > > ./pharo $JOB_NAME.image config $REPO ConfigurationOfPetitParser
> --install=development
> > > ./pharo $JOB_NAME.image test --junit-xml-output "Petit.*"
> > > mv ./pharo-vm/PharoV20.sources ./
> > > zip -r $JOB_NAME.zip $JOB_NAME.image $JOB_NAME.changes PharoV20.sources
> > >
> > > Cheers,
> > > Doru
> > >
> > >
> > >
> > > On May 18, 2013, at 7:56 PM, Alain Busser 
> wrote:
> > >
> > > > Done, and when I clicked on the menu entry ... and ... guess what
> ...  Pharo crashed again ...
> > > >
> > > > The last error message was about a labelGraphic (
> aMultistateButton); in case it helps...
> > > >
> > > >
> > > >
> > > >
> > > > On Sat, May 18, 2013 at 9:43 AM, Tudor Girba 
> wrote:
> > > > Hi,
> > > >
> > > > Please load the latest version of PetitParser in Pharo 2.0 from
> SmalltalkHub:
> > > >
> > > > Gofer new
> > > > smalltalkhubUser: 'Moose' project: 'PetitParser';
> > > > package: 'ConfigurationOfPetitParser';
> > > > load.
> > > > (Smalltalk at: #ConfigurationOfPetitParser)
> > > > loadDevelopment
> >

Re: [Pharo-users] SmalltalkWorld chartFrameworks.

2013-05-20 Thread Alain Busser
I dropped the image on Pharo and I still have this illegal subtraction
message.

I don't build anything, I just downloaded Pharo 2.0 "one click" and added
MathsOntologie, DrGeo and PetitParser. Plus the (almost) daily updates.

The debugger says that GLMSystemWindow's "addMorph: fullFrame" method has a
subtraction where WindowBorderWidth (which equals 4) is subtracted to
bottom; and bottom is nil, so it don't understand the "-" message (I doubt
a nil object understands anything).

So I guess the question is "why is bottom nil?" I see that at the beginning
there is bottom := frame bottomOffset. Whereas frame is a LayoutFrame ( (0@0)
+ (4@4)px corner: (1@1) + (-4@nil)px ) so I imagine the nil comes from this
point, no?


On Sun, May 19, 2013 at 4:01 PM, Tudor Girba  wrote:

> Hi Alain,
>
> As I said, something does not add up.
>
> What do you do exactly when you are building your image?
>
> Also, could you try following the instructions from the previous mail and
> let me know if it still fails?
>
> Cheers,
> Doru
>
>
> On May 19, 2013, at 1:24 PM, Alain Busser  wrote:
>
> > in the "world" menu, "tools" then "petitparser";
> >
> > the browser method is "openWith: aRender" which fails to render anything
> in GLMMorphicRenderer...
> >
> >
> > On Sun, May 19, 2013 at 12:02 AM, Tudor Girba 
> wrote:
> > Hi,
> >
> > Something does not add up :). What menu are you talking about?
> >
> > Here is an image based on Pharo 2.0 that only contains PetitParser:
> >
> https://ci.inria.fr/moose/job/petitparser/lastSuccessfulBuild/artifact/petitparser.zip
> >
> > If I run "PPBrowser open", it seems to work just fine.
> >
> > Here is how the image was created:
> > wget --quiet -O - http://get.pharo.org/20+vmLatest | bash
> > ./pharo Pharo.image save $JOB_NAME
> > REPO=http://www.smalltalkhub.com/mc/Moose/PetitParser/main
> > ./pharo $JOB_NAME.image config $REPO ConfigurationOfPetitParser
> --install=development
> > ./pharo $JOB_NAME.image test --junit-xml-output "Petit.*"
> > mv ./pharo-vm/PharoV20.sources ./
> > zip -r $JOB_NAME.zip $JOB_NAME.image $JOB_NAME.changes PharoV20.sources
> >
> > Cheers,
> > Doru
> >
> >
> >
> > On May 18, 2013, at 7:56 PM, Alain Busser 
> wrote:
> >
> > > Done, and when I clicked on the menu entry ... and ... guess what ...
>  Pharo crashed again ...
> > >
> > > The last error message was about a labelGraphic ( aMultistateButton);
> in case it helps...
> > >
> > >
> > >
> > >
> > > On Sat, May 18, 2013 at 9:43 AM, Tudor Girba 
> wrote:
> > > Hi,
> > >
> > > Please load the latest version of PetitParser in Pharo 2.0 from
> SmalltalkHub:
> > >
> > > Gofer new
> > > smalltalkhubUser: 'Moose' project: 'PetitParser';
> > > package: 'ConfigurationOfPetitParser';
> > > load.
> > > (Smalltalk at: #ConfigurationOfPetitParser)
> > > loadDevelopment
> > >
> > > Cheers,
> > > Doru
> > >
> > >
> > > On May 17, 2013, at 7:23 PM, Alain Busser 
> wrote:
> > >
> > > >
> > > > OK, I used Monticello with the Moose address, and downloaded
> petitsmalltalk and PetitParser, as well as configuration files. I made
> > > >
> > > > (Smalltalk at: #ConfigurationOfPetitParser)
> > > > perform: #loadDefault.
> > > >
> > > >
> > > > once again, and clicked on the petit entry in the tools menu ... and
> Pharo crashed!
> > > >
> > > >
> > > > On Fri, May 17, 2013 at 9:11 PM, Alain Busser <
> alain.bus...@gmail.com> wrote:
> > > > I made
> > > >
> > > > Gofer new
> > > > renggli: 'petit';
> > > > package: 'ConfigurationOfPetitParser';
> > > > load.
> > > > (Smalltalk at: #ConfigurationOfPetitParser)
> > > > perform: #loadDefault.
> > > >
> > > >
> > > > The tool is actually loaded but when I try to launch it from the
> system menu I get a
> > > >
> > > > receiver of "-" is nil
> > > >
> > > > Same message if in the workspace I type PPBrowser new open, but not
> if I try PPBrowser new inspect (there, I have an inspector open on the
> PPBrowser)
> > > >
> > > > 

Re: [Pharo-users] SmalltalkWorld chartFrameworks.

2013-05-19 Thread Alain Busser
in the "world" menu, "tools" then "petitparser";

the browser method is "openWith: aRender" which fails to render anything in
GLMMorphicRenderer...


On Sun, May 19, 2013 at 12:02 AM, Tudor Girba  wrote:

> Hi,
>
> Something does not add up :). What menu are you talking about?
>
> Here is an image based on Pharo 2.0 that only contains PetitParser:
>
> https://ci.inria.fr/moose/job/petitparser/lastSuccessfulBuild/artifact/petitparser.zip
>
> If I run "PPBrowser open", it seems to work just fine.
>
> Here is how the image was created:
> wget --quiet -O - http://get.pharo.org/20+vmLatest | bash
> ./pharo Pharo.image save $JOB_NAME
> REPO=http://www.smalltalkhub.com/mc/Moose/PetitParser/main
> ./pharo $JOB_NAME.image config $REPO ConfigurationOfPetitParser
> --install=development
> ./pharo $JOB_NAME.image test --junit-xml-output "Petit.*"
> mv ./pharo-vm/PharoV20.sources ./
> zip -r $JOB_NAME.zip $JOB_NAME.image $JOB_NAME.changes PharoV20.sources
>
> Cheers,
> Doru
>
>
>
> On May 18, 2013, at 7:56 PM, Alain Busser  wrote:
>
> > Done, and when I clicked on the menu entry ... and ... guess what ...
>  Pharo crashed again ...
> >
> > The last error message was about a labelGraphic ( aMultistateButton); in
> case it helps...
> >
> >
> >
> >
> > On Sat, May 18, 2013 at 9:43 AM, Tudor Girba 
> wrote:
> > Hi,
> >
> > Please load the latest version of PetitParser in Pharo 2.0 from
> SmalltalkHub:
> >
> > Gofer new
> > smalltalkhubUser: 'Moose' project: 'PetitParser';
> > package: 'ConfigurationOfPetitParser';
> > load.
> > (Smalltalk at: #ConfigurationOfPetitParser)
> > loadDevelopment
> >
> > Cheers,
> > Doru
> >
> >
> > On May 17, 2013, at 7:23 PM, Alain Busser 
> wrote:
> >
> > >
> > > OK, I used Monticello with the Moose address, and downloaded
> petitsmalltalk and PetitParser, as well as configuration files. I made
> > >
> > > (Smalltalk at: #ConfigurationOfPetitParser)
> > > perform: #loadDefault.
> > >
> > >
> > > once again, and clicked on the petit entry in the tools menu ... and
> Pharo crashed!
> > >
> > >
> > > On Fri, May 17, 2013 at 9:11 PM, Alain Busser 
> wrote:
> > > I made
> > >
> > > Gofer new
> > > renggli: 'petit';
> > > package: 'ConfigurationOfPetitParser';
> > > load.
> > > (Smalltalk at: #ConfigurationOfPetitParser)
> > > perform: #loadDefault.
> > >
> > >
> > > The tool is actually loaded but when I try to launch it from the
> system menu I get a
> > >
> > > receiver of "-" is nil
> > >
> > > Same message if in the workspace I type PPBrowser new open, but not if
> I try PPBrowser new inspect (there, I have an inspector open on the
> PPBrowser)
> > >
> > > I'll switch to smalltalkhub now
> > >
> > > Alain
> > >
> > >
> > > On Fri, May 17, 2013 at 10:44 AM, stephane ducasse <
> stephane.duca...@free.fr> wrote:
> > > ALL*** the moose people are using PetitParser and it loads in 20.
> > > so where you took the code from?
> > >
> > > The official repositories are on SmalltalkHub/Moose
> > >
> > > Stef
> > >
> > > On May 16, 2013, at 8:27 PM, Alain Busser 
> wrote:
> > >
> > >> Hi,
> > >>
> > >> I have a similar problem with PetitParser (loads well under Pharo
> 1.4, not as well under Pharo 2.0)
> > >>
> > >> Alain
> > >>
> > >>
> > >> On Thu, May 16, 2013 at 8:56 PM, Camille Teruel <
> camille.ter...@gmail.com> wrote:
> > >>
> > >> On 16 mai 2013, at 17:59, stephane ducasse wrote:
> > >>
> > >>> yes normally the moose people.
> > >>> This is strange because eyesee is in Moose and we load it daily in
> 2.0.
> > >>
> > >> Maybe the smalltalk hub repo is more up to date?
> > >>
> > >>>
> > >>> Stef
> > >>>
> > >>>> Thanks for your answer Camille!
> > >>>>
> > >>>> I tried it.
> > >>>> It loads well on 1.4 but in 2.0 shows warining about a non
> satisfied blockclosure class.
> > >>>>
> > >>>> Then when I run the test t

Re: [Pharo-users] SmalltalkWorld chartFrameworks.

2013-05-18 Thread Alain Busser
Done, and when I clicked on the menu entry ... and ... guess what ...
Pharo crashed again ...

The last error message was about a labelGraphic ( aMultistateButton); in
case it helps...




On Sat, May 18, 2013 at 9:43 AM, Tudor Girba  wrote:

> Hi,
>
> Please load the latest version of PetitParser in Pharo 2.0 from
> SmalltalkHub:
>
> Gofer new
> smalltalkhubUser: 'Moose' project: 'PetitParser';
> package: 'ConfigurationOfPetitParser';
> load.
> (Smalltalk at: #ConfigurationOfPetitParser)
> loadDevelopment
>
> Cheers,
> Doru
>
>
> On May 17, 2013, at 7:23 PM, Alain Busser  wrote:
>
> >
> > OK, I used Monticello with the Moose address, and downloaded
> petitsmalltalk and PetitParser, as well as configuration files. I made
> >
> > (Smalltalk at: #ConfigurationOfPetitParser)
> > perform: #loadDefault.
> >
> >
> > once again, and clicked on the petit entry in the tools menu ... and
> Pharo crashed!
> >
> >
> > On Fri, May 17, 2013 at 9:11 PM, Alain Busser 
> wrote:
> > I made
> >
> > Gofer new
> > renggli: 'petit';
> > package: 'ConfigurationOfPetitParser';
> > load.
> > (Smalltalk at: #ConfigurationOfPetitParser)
> > perform: #loadDefault.
> >
> >
> > The tool is actually loaded but when I try to launch it from the system
> menu I get a
> >
> > receiver of "-" is nil
> >
> > Same message if in the workspace I type PPBrowser new open, but not if I
> try PPBrowser new inspect (there, I have an inspector open on the PPBrowser)
> >
> > I'll switch to smalltalkhub now
> >
> > Alain
> >
> >
> > On Fri, May 17, 2013 at 10:44 AM, stephane ducasse <
> stephane.duca...@free.fr> wrote:
> > ALL*** the moose people are using PetitParser and it loads in 20.
> > so where you took the code from?
> >
> > The official repositories are on SmalltalkHub/Moose
> >
> > Stef
> >
> > On May 16, 2013, at 8:27 PM, Alain Busser 
> wrote:
> >
> >> Hi,
> >>
> >> I have a similar problem with PetitParser (loads well under Pharo 1.4,
> not as well under Pharo 2.0)
> >>
> >> Alain
> >>
> >>
> >> On Thu, May 16, 2013 at 8:56 PM, Camille Teruel <
> camille.ter...@gmail.com> wrote:
> >>
> >> On 16 mai 2013, at 17:59, stephane ducasse wrote:
> >>
> >>> yes normally the moose people.
> >>> This is strange because eyesee is in Moose and we load it daily in 2.0.
> >>
> >> Maybe the smalltalk hub repo is more up to date?
> >>
> >>>
> >>> Stef
> >>>
> >>>> Thanks for your answer Camille!
> >>>>
> >>>> I tried it.
> >>>> It loads well on 1.4 but in 2.0 shows warining about a non satisfied
> blockclosure class.
> >>>>
> >>>> Then when I run the test there is a faliure with the anouncements,
> which also accured when I tried the examples.
> >>>>
> >>>> Is someone maintaining this?
> >>>>
> >>>> Thanks again,
> >>>> Juan
> >>>>
> >>>>
> >>>> On Thu, May 16, 2013 at 11:27 AM, Camille Teruel <
> camille.ter...@gmail.com> wrote:
> >>>> Hi Juan,
> >>>>
> >>>> You can have a look to eyeSee:
> >>>>
> >>>> Gofer it
> >>>> squeaksource: 'EyeSee';
> >>>> package: 'ConfigurationOfEyeSee';
> >>>> load.
> >>>> (Smalltalk at: #ConfigurationOfEyeSee) loadDefault
> >>>>
> >>>>
> >>>> On 16 mai 2013, at 16:03, Juan Ignacio Vaccarezza wrote:
> >>>>
> >>>>> Hi all,
> >>>>>
> >>>>>   Does anybody know a chart framework? Im looking fo something
> like jfreechart (java chart framework).
> >>>>>   I need bar graph, pie chart, and line chart.
> >>>>>
> >>>>> Thanks,
> >>>>> Juan
> >>>>
> >>>>
> >>>
> >>
> >>
> >
> >
> >
>
> --
> www.tudorgirba.com
>
> "Innovation comes in the least expected form.
> That is, if it is expected, it already happened."
>
>
>


Re: [Pharo-users] SmalltalkWorld chartFrameworks.

2013-05-17 Thread Alain Busser
OK, I used Monticello with the Moose address, and downloaded petitsmalltalk
and PetitParser, as well as configuration files. I made

(Smalltalk at: #ConfigurationOfPetitParser)
perform: #loadDefault.


once again, and clicked on the petit entry in the tools menu ... and Pharo
crashed!


On Fri, May 17, 2013 at 9:11 PM, Alain Busser wrote:

> I made
>
> Gofer new
> renggli: 'petit';
> package: 'ConfigurationOfPetitParser';
> load.
> (Smalltalk at: #ConfigurationOfPetitParser)
> perform: #loadDefault.
>
>
> The tool is actually loaded but when I try to launch it from the system
> menu I get a
>
> receiver of "-" is nil
>
> Same message if in the workspace I type PPBrowser new open, but not if I
> try PPBrowser new inspect (there, I have an inspector open on the PPBrowser)
>
> I'll switch to smalltalkhub now
>
> Alain
>
>
> On Fri, May 17, 2013 at 10:44 AM, stephane ducasse <
> stephane.duca...@free.fr> wrote:
>
>> ALL*** the moose people are using PetitParser and it loads in 20.
>> so where you took the code from?
>>
>> The official repositories are on SmalltalkHub/Moose
>>
>> Stef
>>
>> On May 16, 2013, at 8:27 PM, Alain Busser  wrote:
>>
>> Hi,
>>
>> I have a similar problem with PetitParser (loads well under Pharo 1.4,
>> not as well under Pharo 2.0)
>>
>> Alain
>>
>>
>> On Thu, May 16, 2013 at 8:56 PM, Camille Teruel > > wrote:
>>
>>>
>>> On 16 mai 2013, at 17:59, stephane ducasse wrote:
>>>
>>> yes normally the moose people.
>>> This is strange because eyesee is in Moose and we load it daily in 2.0.
>>>
>>>
>>> Maybe the smalltalk hub repo is more up to date?
>>>
>>>
>>> Stef
>>>
>>> Thanks for your answer Camille!
>>>
>>> I tried it.
>>> It loads well on 1.4 but in 2.0 shows warining about a non satisfied
>>> blockclosure class.
>>>
>>> Then when I run the test there is a faliure with the anouncements, which
>>> also accured when I tried the examples.
>>>
>>> Is someone maintaining this?
>>>
>>> Thanks again,
>>> Juan
>>>
>>>
>>> On Thu, May 16, 2013 at 11:27 AM, Camille Teruel <
>>> camille.ter...@gmail.com> wrote:
>>>
>>>> Hi Juan,
>>>>
>>>> You can have a look to eyeSee:
>>>>
>>>> Gofer it
>>>> squeaksource: 'EyeSee';
>>>> package: 'ConfigurationOfEyeSee';
>>>> load.
>>>> (Smalltalk at: #ConfigurationOfEyeSee) loadDefault
>>>>
>>>>
>>>> On 16 mai 2013, at 16:03, Juan Ignacio Vaccarezza wrote:
>>>>
>>>> Hi all,
>>>>
>>>>   Does anybody know a chart framework? Im looking fo something like
>>>> jfreechart (java chart framework).
>>>>   I need bar graph, pie chart, and line chart.
>>>>
>>>> Thanks,
>>>> Juan
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>


Re: [Pharo-users] SmalltalkWorld chartFrameworks.

2013-05-17 Thread Alain Busser
I made

Gofer new
renggli: 'petit';
package: 'ConfigurationOfPetitParser';
load.
(Smalltalk at: #ConfigurationOfPetitParser)
perform: #loadDefault.


The tool is actually loaded but when I try to launch it from the system
menu I get a

receiver of "-" is nil

Same message if in the workspace I type PPBrowser new open, but not if I
try PPBrowser new inspect (there, I have an inspector open on the PPBrowser)

I'll switch to smalltalkhub now

Alain


On Fri, May 17, 2013 at 10:44 AM, stephane ducasse  wrote:

> ALL*** the moose people are using PetitParser and it loads in 20.
> so where you took the code from?
>
> The official repositories are on SmalltalkHub/Moose
>
> Stef
>
> On May 16, 2013, at 8:27 PM, Alain Busser  wrote:
>
> Hi,
>
> I have a similar problem with PetitParser (loads well under Pharo 1.4, not
> as well under Pharo 2.0)
>
> Alain
>
>
> On Thu, May 16, 2013 at 8:56 PM, Camille Teruel 
> wrote:
>
>>
>> On 16 mai 2013, at 17:59, stephane ducasse wrote:
>>
>> yes normally the moose people.
>> This is strange because eyesee is in Moose and we load it daily in 2.0.
>>
>>
>> Maybe the smalltalk hub repo is more up to date?
>>
>>
>> Stef
>>
>> Thanks for your answer Camille!
>>
>> I tried it.
>> It loads well on 1.4 but in 2.0 shows warining about a non satisfied
>> blockclosure class.
>>
>> Then when I run the test there is a faliure with the anouncements, which
>> also accured when I tried the examples.
>>
>> Is someone maintaining this?
>>
>> Thanks again,
>> Juan
>>
>>
>> On Thu, May 16, 2013 at 11:27 AM, Camille Teruel <
>> camille.ter...@gmail.com> wrote:
>>
>>> Hi Juan,
>>>
>>> You can have a look to eyeSee:
>>>
>>> Gofer it
>>> squeaksource: 'EyeSee';
>>> package: 'ConfigurationOfEyeSee';
>>> load.
>>> (Smalltalk at: #ConfigurationOfEyeSee) loadDefault
>>>
>>>
>>> On 16 mai 2013, at 16:03, Juan Ignacio Vaccarezza wrote:
>>>
>>> Hi all,
>>>
>>>   Does anybody know a chart framework? Im looking fo something like
>>> jfreechart (java chart framework).
>>>   I need bar graph, pie chart, and line chart.
>>>
>>> Thanks,
>>> Juan
>>>
>>>
>>>
>>
>>
>>
>
>


Re: [Pharo-users] SmalltalkWorld chartFrameworks.

2013-05-16 Thread Alain Busser
Hi,

I have a similar problem with PetitParser (loads well under Pharo 1.4, not
as well under Pharo 2.0)

Alain


On Thu, May 16, 2013 at 8:56 PM, Camille Teruel wrote:

>
> On 16 mai 2013, at 17:59, stephane ducasse wrote:
>
> yes normally the moose people.
> This is strange because eyesee is in Moose and we load it daily in 2.0.
>
>
> Maybe the smalltalk hub repo is more up to date?
>
>
> Stef
>
> Thanks for your answer Camille!
>
> I tried it.
> It loads well on 1.4 but in 2.0 shows warining about a non satisfied
> blockclosure class.
>
> Then when I run the test there is a faliure with the anouncements, which
> also accured when I tried the examples.
>
> Is someone maintaining this?
>
> Thanks again,
> Juan
>
>
> On Thu, May 16, 2013 at 11:27 AM, Camille Teruel  > wrote:
>
>> Hi Juan,
>>
>> You can have a look to eyeSee:
>>
>> Gofer it
>> squeaksource: 'EyeSee';
>> package: 'ConfigurationOfEyeSee';
>> load.
>> (Smalltalk at: #ConfigurationOfEyeSee) loadDefault
>>
>>
>> On 16 mai 2013, at 16:03, Juan Ignacio Vaccarezza wrote:
>>
>> Hi all,
>>
>>   Does anybody know a chart framework? Im looking fo something like
>> jfreechart (java chart framework).
>>   I need bar graph, pie chart, and line chart.
>>
>> Thanks,
>> Juan
>>
>>
>>
>
>
>


Re: [Pharo-users] a 'doesNotUnderstand' message that I do not understand...

2013-05-15 Thread Alain Busser
So it was that simple! Thanks alot for these messages, now I will be able
to make *new* and *classy* things instantly :-D

Alain


On Tue, May 14, 2013 at 10:21 PM, Chris  wrote:

>  This method is on the instance side of the class and therefore requires
> TextEditorDialogWindow new newTextEditorMorph. If it were on the class
> side, it would be like you were trying it.
>
>   Hi all,
>
> Exploring the system browser (Pharo 2.0), I see that there exists a class
> called TextEditorDialogWindow; as this name sounds interesting to me, I
> want to test one, and I see that there is only one method in the category
> 'create': this method is called newTextEditorMorph. So, I send the
> message newTextEditorMorph to the class TextEditorDialogWindow, daring a:
>
> TextEditorDialogWindow newTextEditorMorph
>
>  At the 'Do It', I get this error message: 'TextEditorDialogWindow
> class(Object)doesNotUnderstand: #newTextEditorMorph'
>
>  That's what I don't understand: If the class has a method called this
> way, why does it not understand the corresponding message? What did I miss?
>
> Alain
>
>
>


[Pharo-users] a 'doesNotUnderstand' message that I do not understand...

2013-05-14 Thread Alain Busser
Hi all,

Exploring the system browser (Pharo 2.0), I see that there exists a class
called TextEditorDialogWindow; as this name sounds interesting to me, I
want to test one, and I see that there is only one method in the category
'create': this method is called newTextEditorMorph. So, I send the message
newTextEditorMorph to the class TextEditorDialogWindow, daring a:

TextEditorDialogWindow newTextEditorMorph

At the 'Do It', I get this error message: 'TextEditorDialogWindow
class(Object)doesNotUnderstand: #newTextEditorMorph'

That's what I don't understand: If the class has a method called this way,
why does it not understand the corresponding message? What did I miss?

Alain