Re: [Pharo-project] [Vm-dev] Fwd: A question about lookup and message reification

2013-02-14 Thread stephane ducasse
So just run an image with the simulator and stop at any of commonSend, internalFindNewMethod, lookupMethodInClass: and you'll see the call chain form the relevant send bytecode. Here's an expression that loads and runs an image with the StackInterpreter: cool I will see if I can show

[Pharo-project] [update 2.0] #20544

2013-02-14 Thread Marcus Denker
20544 - Issue 7291: Monticello asks for credentials when none are required http://code.google.com/p/pharo/issues/detail?id=7291 Issue 7503: MC Browser System Category Order Changes http://code.google.com/p/pharo/issues/detail?id=7503 Issue 7014:

Re: [Pharo-project] bug metacello toolbox / pharo2

2013-02-14 Thread Camillo Bruni
On 2013-02-13, at 22:45, Christophe Demarey christophe.dema...@inria.fr wrote: Hi, Pharo 2.0 is shipped with Metacello. Metacello version installed is based on the stable version (1.0-beta.31.1.5). This version loads Metacello-ToolBox-dkh.130 but strangely, the Metacello-ToolBox package

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Igor Stasenko
On 14 February 2013 07:35, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: 2013/2/13 Igor Stasenko siguc...@gmail.com: On 14 February 2013 00:15, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: Please use my MessageTally trick above and you'll unfortunately see that

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Igor Stasenko
On 14 February 2013 14:37, Igor Stasenko siguc...@gmail.com wrote: On 14 February 2013 07:35, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: 2013/2/13 Igor Stasenko siguc...@gmail.com: On 14 February 2013 00:15, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: Please use

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Nicolas Cellier
2013/2/14 Igor Stasenko siguc...@gmail.com: On 14 February 2013 07:35, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: 2013/2/13 Igor Stasenko siguc...@gmail.com: On 14 February 2013 00:15, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: Please use my MessageTally trick

[Pharo-project] [update 2.0] #20545

2013-02-14 Thread Marcus Denker
20545 - Issue 7467: SystemReporter should not include SUnit Results http://code.google.com/p/pharo/issues/detail?id=7467 Issue 7495: Failing test: FLCreateTraitSerializationTest#testCreateWithInstance http://code.google.com/p/pharo/issues/detail?id=7495

Re: [Pharo-project] Regex with $? not working?

2013-02-14 Thread Sean P. DeNigris
Mariano Martinez Peck wrote Am I doing something wrong? You have to put what you're trying to match zero or one times first. For example: '.?' asRegex. 'a' matchesRegex: '.?'. true Browse implementor of c:syntax: for more info HTH, Sean -- View this message in context:

[Pharo-project] [update 2.0] #20546

2013-02-14 Thread Marcus Denker
20546 - Issue 7505: do #cleanUpForRelease for every build http://code.google.com/p/pharo/issues/detail?id=7505 Diff information: http://ss3.gemstone.com/ss/Pharo20/UpdateStreamer-Core-MarcusDenker.10.diff

[Pharo-project] Wow... we've closed a lot of issues

2013-02-14 Thread Sean P. DeNigris
I was just doing some housecleaning, deleting some old bug fix images and I was struck by how many important things we've accomplished. I'm still dumbfounded that a community of our size has resolved 1548 issues since 1.4. Cheers, Sean -- View this message in context:

Re: [Pharo-project] Wow... we've closed a lot of issues

2013-02-14 Thread Nicolas Cellier
You must also ask how many issues you have created since 1.4, because I doubt there are 1500 issues applying to 1.4. It's not a critic. It simply reflect the fact that it is necessary to temporarily break things in order to change underlying system (events, text, browser etc...) Especially when

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Igor Stasenko
It is all about intervals.. if you define a rectangle using pair of intervals (2-dimensional): [ a .. b ) then it contains all points between a and b, including a, but not including b and therefore rectangles [ a.. b ) and [b .. c ) (where c b) do not intersect. if rectangle defined as pair of

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Igor Stasenko
Yet another perspective.. is that if we state: Any two points form a rectangle.. Then, by construction it means that Rectangle origin: pt1 corner: pt2 should be equal to: Rectangle origin: pt2 corner: pt1 and here the evil part: if you use [) intervals you not get what you want, because in

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Nicolas Cellier
Yes, I think it is a problem of reasonning as whole number of pixels Interval [ ) is for the case where (0@0 extent: 10@1) is exactly 10 pixels wide, and 1 pixel tall... The mail I cited above is using Rectangle as an abstraction of horizontal/vertical line segment (zero-width), in which case [a

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Nicolas Cellier
That means you probably need to change some graphics primitives. If you want to go this way (have mathematical geometric objects), then I think you're on the step off Juan Morphic 3... Nicolas 2013/2/14 Igor Stasenko siguc...@gmail.com: Yet another perspective.. is that if we state: Any two

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Igor Stasenko
On 14 February 2013 18:10, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: That means you probably need to change some graphics primitives. If you want to go this way (have mathematical geometric objects), then I think you're on the step off Juan Morphic 3... well, how you can

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Frank Shearar
On 14 February 2013 17:22, Igor Stasenko siguc...@gmail.com wrote: On 14 February 2013 18:10, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: That means you probably need to change some graphics primitives. If you want to go this way (have mathematical geometric objects), then I

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Nicolas Cellier
I don't want nothing, but you inherit from very specialized class historically used to draw on pixel boundaries... A rectangle that you cannot even rotate, common ;) Nicolas 2013/2/14 Igor Stasenko siguc...@gmail.com: On 14 February 2013 18:10, Nicolas Cellier

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Igor Stasenko
On 14 February 2013 18:27, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: I don't want nothing, but you inherit from very specialized class historically used to draw on pixel boundaries... A rectangle that you cannot even rotate, common ;) Well, from that perspective, then we

Re: [Pharo-project] OneClick for 2.0 available again

2013-02-14 Thread H. Hirzel
Yes, Marcus, it is Pharo 2.0 now starts fine in MSWindows when double-clicking on NBCog.exe. What now remains to be updated is the README.txt [1] Replace CogVM.exe -- NBCog.exe And probably remove 'Pharo 1.0' --Hannes [1] Current version or README.txt Pharo 1.0 - Mac: launch

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Frank Shearar
On 14 February 2013 17:27, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: I don't want nothing, but you inherit from very specialized class historically used to draw on pixel boundaries... A rectangle that you cannot even rotate, common ;) You can't define a unique rectangle with

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Nicolas Cellier
2013/2/14 Igor Stasenko siguc...@gmail.com: On 14 February 2013 18:27, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: I don't want nothing, but you inherit from very specialized class historically used to draw on pixel boundaries... A rectangle that you cannot even rotate, common

Re: [Pharo-project] Rectangleintersects: change Rationale

2013-02-14 Thread Nicolas Cellier
Sure, any other point on the circle defined by this diameter would be a valid vertex... Nicolas 2013/2/14 Frank Shearar frank.shea...@gmail.com: On 14 February 2013 17:27, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: I don't want nothing, but you inherit from very specialized

Re: [Pharo-project] OneClick for 2.0 available again

2013-02-14 Thread Marcus Denker
Thanks, I changed the template and script - correct .exe mentioned - 2.0 instead of 1.0 The name of the .exe will change once again to Pharo.exe before we release. (We should then remember to update the README) On Feb 14, 2013, at 6:41 PM, H. Hirzel hannes.hir...@gmail.com

Re: [Pharo-project] Wow... we've closed a lot of issues

2013-02-14 Thread Esteban Lorenzano
yeah we opened a lot. IMO, as you say, that's a good thing... you need to break things to create new things but there were at least 500 issues opened since the beginning of times that we have closed in this release. so, 500 historical issuesplus all the issues we created (most of them non

Re: [Pharo-project] PetitParser in 2.0

2013-02-14 Thread Esteban Lorenzano
hi, something like: Gofer it renggli: 'petit'; package: 'ConfigurationOfPetitParser'; load. (ConfigurationOfPetitParser project version: '1.5') load: #(Core PetitXml PetitJson PetitXPath PetitCSV) UI will not load in 2.0 right now because it uses glamour who

Re: [Pharo-project] Wow... we've closed a lot of issues

2013-02-14 Thread Nicolas Cellier
Though i bet some of the 500 were closed for lack of activity rather than for resolution ;) It's not a bad thing, letting them rot has no much value and prevent progress (it's stupid to repeatedly loose time in analyzing issues that nobody cares of). After all, what counts is that Pharo has

Re: [Pharo-project] Wow... we've closed a lot of issues

2013-02-14 Thread Sean P. DeNigris
Nicolas Cellier wrote Though i bet some of the 500 were closed for lack of activity rather than for resolution ;) While I agree that closing to prevent rot would be okay too, 1275 were definitely integrated (and tagged as such). Of the 134 that are marked closed, if you go through those, some

[Pharo-project] Another stupid question

2013-02-14 Thread Benjamin
Hi guys, I know it sounds stupid but how do I convert numbers from one base to another ? I found 3 printStringBase: 2 - '11' But I would like something like 11 convertFromBase: 2 to: 10 - 3 The Finder did help me about this one so I ask here :) Thanks in advance, Ben

Re: [Pharo-project] Another stupid question

2013-02-14 Thread jannik.laval
Hi Ben, use that: 2r11 printStringBase: 10 - 3 16r11 printStringBase: 10 -17 Cheers, Jannik On Feb 14, 2013, at 10:05 PM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: Hi guys, I know it sounds stupid but how do I convert numbers from one base to another ? I found 3

Re: [Pharo-project] Wow... we've closed a lot of issues

2013-02-14 Thread Igor Stasenko
On 14 February 2013 20:45, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: Though i bet some of the 500 were closed for lack of activity rather than for resolution ;) It's not a bad thing, letting them rot has no much value and prevent progress (it's stupid to repeatedly loose time

[Pharo-project] Another stupid question

2013-02-14 Thread Torsten Bergmann
Hi Benjamin, from your example I guess you know how to convert from decimal (base 10) to binary (base 2): 9 printStringBase: 2 gives you the binary representation/bit string: '1001'. If I understand your post correctly you want the other way around and you want to get the decimal value

[Pharo-project] Another stupid question

2013-02-14 Thread Torsten Bergmann
Add this method to String class: convertFromBase: sourceBase to: targetBase Convert the receiver (who has to represent a number string) from the given source base to the given target base '' convertFromBase: 16 to: 2

Re: [Pharo-project] Another stupid question

2013-02-14 Thread Sven Van Caekenberghe
On 14 Feb 2013, at 22:05, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: Hi guys, I know it sounds stupid but how do I convert numbers from one base to another ? I found 3 printStringBase: 2 - '11' But I would like something like 11 convertFromBase: 2 to: 10 - 3 The

Re: [Pharo-project] Another stupid question

2013-02-14 Thread Sven Van Caekenberghe
On 15 Feb 2013, at 00:09, Torsten Bergmann asta...@gmx.de wrote: convertFromBase: sourceBase to: targetBase Convert the receiver (who has to represent a number string) from the given source base to the given target base '' convertFromBase:

[Pharo-project] Another stupid question

2013-02-14 Thread Torsten Bergmann
Sven wrote: So something like this should work: (Integer readFrom: 'FF' base: 16) printStringBase: 2 Integer readFrom: 'FF' will not work since #readFrom: expects a string in decimal representation and 'FF' is hexadecimal. It also wont work for large numbers due to sending it to Integer.

Re: [Pharo-project] TxTextMorph based on new text model

2013-02-14 Thread Sean P. DeNigris
Thanks again for tackling this! I'm definitely available to collaborate :) Denis Kudriashov wrote Do you think that presenting any letter with real object (not just character) is sufficient for modern computers? I think not. Of course such model significantly simplified all logic around text

Re: [Pharo-project] Another stupid question

2013-02-14 Thread Sven Van Caekenberghe
Euh, sure this works: (Number readFrom: 'FF' base: 16) printStringBase: 2 Number class#readFrom:base: Integer class#readFrom:base: On 15 Feb 2013, at 00:26, Torsten Bergmann asta...@gmx.de wrote: Sven wrote: So something like this should work: (Integer readFrom: 'FF' base: 16)

Re: [Pharo-project] TxTextMorph based on new text model

2013-02-14 Thread Fernando Olivero
Hi, this is really interesting! To have a simpler text model and UI. I recall Safara, in squeaksource. Lukas and a student worked on a nice text model. Worth checking it out. Fernando On Fri, Feb 15, 2013 at 12:29 AM, Sean P. DeNigris s...@clipperadams.comwrote: Thanks again for tackling

[Pharo-project] Another stupid question

2013-02-14 Thread Torsten Bergmann
Euh, sure this works: (Number readFrom: 'FF' base: 16) printStringBase: 2 Yes, one has to use Number instead of Integer and #readFrom:base: #readFrom: works too if you already have the string in source base representation, e.g. '16rFF'. The timing is good - currently work on the literal

Re: [Pharo-project] Another stupid question

2013-02-14 Thread Benjamin
Thank you guys :) I feel a little less dumb :) (even if it's not really natural for me to have this behaviour on string but ^^) Ben On Feb 15, 2013, at 12:33 AM, Sven Van Caekenberghe s...@stfx.eu wrote: Euh, sure this works: (Number readFrom: 'FF' base: 16) printStringBase: 2 Number

[Pharo-project] Another stupid question

2013-02-14 Thread Torsten Bergmann
This was just an example to play with since you asked for a #convertFromBase:to: method in your original mail and one cant provide such a method on Number. Your original request 11 convertFromBase: 2 to: 10 may work - but it wont work for hex values: FF convertFromBase: 16 to: 10 then FF

Re: [Pharo-project] Another stupid question

2013-02-14 Thread Benjamin
On Feb 15, 2013, at 1:40 AM, Torsten Bergmann asta...@gmx.de wrote: This was just an example to play with since you asked for a #convertFromBase:to: method in your original mail and one cant provide such a method on Number. Your original request 11 convertFromBase: 2 to: 10 may work

[Pharo-project] Opening a webbrowser (using NB on non-Windows)

2013-02-14 Thread Torsten Bergmann
In Pharo 2.0 one can now use NBWin32Shell shellBrowse: 'http://www.pharo-project.org' which will open an external webbrowser on the given URL. This is currently limited to Windows. Anyone able to implement/call appropriate NB functions for Mac and Linux? I would like to see a unified

[Pharo-project] [update 2.0] #20547

2013-02-14 Thread Marcus Denker
20547 - Issue 7511: Nautilus highlight issue Issue 7511: Nautilus highlight issue Diff information: http://ss3.gemstone.com/ss/Pharo20/Nautilus-MarcusDenker.421.diff