Re: [Pharo-project] How to open a file with external app

2013-03-28 Thread jannik.laval
I just see that it is not integrated in Pharo2.0.
Where can I find it ?

Jannik

On Mar 28, 2013, at 6:49 AM, jannik.laval jannik.la...@gmail.com wrote:

 Do you have an example of code ?
 
 Jannik
 
 On Mar 27, 2013, at 11:26 PM, Camillo Bruni camillobr...@gmail.com wrote:
 
 The only solution currently is to use OSProcess and
 - open under OSX
 - gnome-open under linux
 
 
 On 2013-03-27, at 23:05, jannik.laval jannik.la...@gmail.com wrote:
 
 Hi pharoers,
 
 Is it possible to select a file and open it with an external application ?
 For example, I need to open a pdf file.
 
 How can I do that ?
 
 Thank you for the help,
 Jannik
 
 
 
 




Re: [Pharo-project] How to open a file with external app

2013-03-28 Thread Max Leske

On 27.03.2013, at 23:26, Camillo Bruni camillobr...@gmail.com wrote:

 The only solution currently is to use OSProcess and
 - open under OSX
 - gnome-open under linux

Or use NativeBoost (e.g. run C code that does what you want). But Camillo's 
solution is certainly easier to implement.

 
 
 On 2013-03-27, at 23:05, jannik.laval jannik.la...@gmail.com wrote:
 
 Hi pharoers,
 
 Is it possible to select a file and open it with an external application ?
 For example, I need to open a pdf file.
 
 How can I do that ?
 
 Thank you for the help,
 Jannik
 
 
 




Re: [Pharo-project] strange problem in CompiledMethod=

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 6:59 AM, Tudor Girba tu...@tudorgirba.com wrote:

 Hi,
 
 One of the Moose test runs a visualization that manipulates CompiledMethods, 
 and it runs into an error when trying to find an entry inside a dictionary 
 that has compiled methods as keys. In the end, I managed to isolate the 
 problem that can be reproduced by:
 
 1. Download the moose image:
 https://ci.inria.fr/moose/job/moose-latest-dev-4.8/lastSuccessfulBuild/artifact/moose-latest-dev-4.8.zip
 
 2. Execute:
 (MooseIncomingQueryResult#selectDependencies:) = 
 (MooseOutgoingInvocationQueryResult#selectDependencies:).
 
 
 It seems it is a Pharo problem, or something related to these particular 
 methods. Would anyone be interested in looking into this?
 
Yes, equality just check that the byte code is the same. Historically this is 
the behavior as methods did not know
their class nor their selector, at some point they where then including this 
information for #=, but the latest does
not.

We should change it, Methods now contain the information in which class they 
are installed in and it should be
taken into account for =

There is already a case:

https://pharo.fogbugz.com/f/cases/7222

Marcus




Re: [Pharo-project] in anybody out there? who uses 2.0?

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 4:56 AM, Yanni Chiu ya...@rogers.com wrote:
 
 
 I had noticed that package loading seemed extremely slow, but did not look 
 further into it. I think I saw mention that it's due to some usage of 
 #become:, during the compiling of code. Based on build times (of just loading 
 the rough equivalent code), it seems about 3 times slower to do a build on a 
 Pharo-2.0 vs. Pharo-1.4.
 
Yes, this is known and we should analyze it… one thing we need to get rid of os 
the #become: when updating the source pointer. There seems to be something slow 
with announcing changes, too.

 
 Another thing I've noticed is occasional sluggishness in the UI. It's hard to 
 pinpoint, I often feel like my clicks are being lost.
 
I have not seen that one.

 The behaviour of the TestRunner was odd. Eventually I discovered running 
 tests via the Nautilus browser, but the UI feedback is extremely confusing 
 for abstract test cases. I still don't quite understand the results I see 
 there, so I do a final run of the tests in the TestRunner.
 
Odd in which sense? related to the progress bar?

 Another strange issue I had with test cases was to do with the interaction of 
 the deprecation warnings. In by build script, I run:
  Deprecation raiseWarning: false.
  Deprecation showWarning: false.
 so the build can run headless. It took me a few hours, and a careful single 
 stepping, to find that the deprecation exceptions were being swallowed. I'm 
 sure the TestRunner did not behave this way before. If you ran a test, you 
 would still see the deprecation exceptions. It was really frustrating to see 
 your test fail, but have the stack cleared out before you could debug the 
 exception that caused the test failure.
 
Can you add a bug tracker entry for that one?

Marcus




[Pharo-project] Fwd: How to open a file with external app

2013-03-28 Thread Max Leske
forwarding...

Begin forwarded message:

 From: Philippe Back philippe.b...@gmail.com
 Subject: RE : Re: [Pharo-project] How to open a file with external app
 Date: 28. März 2013 08:07:54 MEZ
 To: Max Leske maxle...@gmail.com
 
 There is an example in the dic/help server that uses nb to open a web browser 
 that way (NB)
 
 
 Philippe Back
 
 
 
 Max Leske maxle...@gmail.com a écrit :
 
 
 
 On 27.03.2013, at 23:26, Camillo Bruni camillobr...@gmail.com wrote:
 
  The only solution currently is to use OSProcess and
  - open under OSX
  - gnome-open under linux
 
 Or use NativeBoost (e.g. run C code that does what you want). But Camillo's 
 solution is certainly easier to implement.
 
 
 
  On 2013-03-27, at 23:05, jannik.laval jannik.la...@gmail.com wrote:
 
  Hi pharoers,
 
  Is it possible to select a file and open it with an external application ?
  For example, I need to open a pdf file.
 
  How can I do that ?
 
  Thank you for the help,
  Jannik
 
 
 
 
 



[Pharo-project] Nautilus: Class Side vs. Instance Side

2013-03-28 Thread Mircea Filip Lungu
Hi people,

I've installed Pharo 2.0 to give it a try. All good until now!

Looking at Nautilus I see that where there used to be two buttons for
switching between class-side and instance-side methods, now there is a
checkbox.

As I was slowly trying to get used to it... it occurred to me that I would
have liked even more if I would not have to switch at all. In fact it would
be so much nicer to see everything about a class at once. One solution
might be splitting the protocols panel in two for instance and class side.

Just my 2C.

Cheers,
M.


-- 
Dr. Mircea Lungu
Researcher
Software Composition Group
University of Bern


Re: [Pharo-project] in anybody out there? who uses 2.0?

2013-03-28 Thread p...@highoctane.be
Yep, seems BlockContext is gone. Ran into that as well. No idea on how
to fix tough. Throwing in BlockClosure instead makes me feel like
playing russian roulette.

Maybe Lukas repository has updates (as for Seaside)

Phil

2013/3/28 Esteban A. Maringolo emaring...@gmail.com:
 Did anybody manage to load Magritte 2 at least?

 When running this:
 Gofer it
  squeaksource: 'MetacelloRepository';
  package: 'ConfigurationOfMagritte2';
  load.

 (ConfigurationOfMagritte2 project version: '2.0.6') load: 
 #('Magritte-Seaside')

 I get the following error:
 This package depends on the following classes:
   BlockContext
 You must resolve these dependencies before you will be able to load
 these definitions:
   magritteDynamicObject

 Esteban A. Maringolo


 2013/3/27 Sean P. DeNigris s...@clipperadams.com:
 EstebanLM wrote
 So... I wonder... is that because we made a really cool release, or just
 because nobody is using it?

 I've ported most of my projects to 2.0, but I've been on holidays for a few
 weeks, so I haven't updated to the released version. I'll know better this
 week, but IIRC most of the bugs I noticed have been fixed.



 -
 Cheers,
 Sean
 --
 View this message in context: 
 http://forum.world.st/in-anybody-out-there-who-uses-2-0-tp4678552p4678640.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.





Re: [Pharo-project] in anybody out there? who uses 2.0?

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 9:39 AM, p...@highoctane.be wrote:

 Yep, seems BlockContext is gone

Yes, it is not used since Pharo 1.0… it's dead code. Of course we can keep it 
for
and build a nice Museum of dead code.

Marcus


Re: [Pharo-project] How to open a file with external app

2013-03-28 Thread Holger Hans Peter Freyther
On Wed, Mar 27, 2013 at 11:26:21PM +0100, Camillo Bruni wrote:
 The only solution currently is to use OSProcess and
 - open under OSX
 - gnome-open under linux

Please use xdg-open to work on all free desktop implementations.



[Pharo-project] [update 3.0] #30015

2013-03-28 Thread Marcus Denker
30015
-

6371 make Growl position configurable by preferences
https://pharo.fogbugz.com/f/cases/6371

6881 FileSystemStore permissions: should not return false
https://pharo.fogbugz.com/f/cases/6881

10061 add String#urldecoded and String#urlencoded
https://pharo.fogbugz.com/f/cases/10061

10131 Remove unsent deprecated method
https://pharo.fogbugz.com/f/cases/10131

10135 Remove old HierarchyBrowser
https://pharo.fogbugz.com/f/cases/10135/


Diff information:
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Zinc-Character-Encoding-Tests-MarcusDenker.6
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Zinc-Character-Encoding-Core-MarcusDenker.8
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Tools-MarcusDenker.1070
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/System-Support-MarcusDenker.799
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Settings-Polymorph-MarcusDenker.49
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Refactoring-Core-MarcusDenker.172
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Polymorph-Widgets-MarcusDenker.785
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/NautilusCommon-MarcusDenker.122
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Nautilus-MarcusDenker.438
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Morphic-MarcusDenker.1386
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Metacello-ToolBox-MarcusDenker.137
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Metacello-Core-MarcusDenker.496
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Kernel-MarcusDenker.1349
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Growl-MarcusDenker.15
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Gofer-Core-MarcusDenker.193
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/FileSystem-Zip-MarcusDenker.9
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/FileSystem-Memory-MarcusDenker.23
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/FileSystem-Disk-MarcusDenker.51
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/FileSystem-Core-MarcusDenker.68
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Compatibility-MarcusDenker.14
http://smalltalkhub.com/#!/~Pharo/Pharo30/diff/Collections-Strings-MarcusDenker.247




Re: [Pharo-project] Looking for a Seaside 3.1 Configuration for Pharo 2.0

2013-03-28 Thread stephane ducasse
Excellent!
I really want to demo Seaside with 2.0 


 I'm merging mine and Paul's configuration for Seaside 3.0.7 into Diego's and 
 Stefan's work.
 
 Of course, there's always stuff that gets in the way of finishing that (like 
 moving our offices ;-).
 
 I hope to have one by end of the week for Seaside 3.0.7. The intention is 
 that we merge this into the Seaside3.1 configuration.
 
 Stef wrote:
 we would like to use seaside to validate the VM and also make sure that 
 Seaside31. works perfectly in Pharo2.0.
 I saw that some of you have a working configuration. Where can we find it 
 because we would like to publish it in the 
 MetaRepoForPharo20.
 
 We have it working, but it does not have the Seaside Panel ( browser). At 
 last Esug Seaside sprint I started redoing 
 them in Spec, but never managed to spend more time on them. They are in the 
 Seaside31 repository 
 on squeaksource: Seaside-Pharo-Tools-Spec (might need renaming to Pharo20).
 
 Stephan
 
 
 
 
 
 




Re: [Pharo-project] Looking for a Seaside 3.1 Configuration for Pharo 2.0

2013-03-28 Thread stephane ducasse
thanks Paul.

I should say that I would have love not to have 
3.0.1.
3.0.2
so I'm really eager to get seaside 3.1 out
but at least something that can be marketed as movement.

Stef
On Mar 27, 2013, at 11:29 PM, Paul DeBruicker pdebr...@gmail.com wrote:

 Stéphane Ducasse wrote
 Hi guys
 
 we would like to use seaside to validate the VM and also make sure that
 Seaside31. works perfectly in Pharo2.0.
 I saw that some of you have a working configuration. Where can we find it
 because we would like to publish it in the 
 MetaRepoForPharo20.
 
 Stef
 
 
 3.1 is not released.  That being said see if this set of packages works for
 you
 
 http://dl.dropbox.com/u/4460862/seaside31Config.zip
 
 but they are also not official versions of anything and the official ones
 will likely be different.  they are just something I cobbled together that
 seemed to work at the beginning of the month.
 
 
 
 
 
 
 --
 View this message in context: 
 http://forum.world.st/Looking-for-a-Seaside-3-1-Configuration-for-Pharo-2-0-tp4678580p4678638.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 




Re: [Pharo-project] Nautilus: Class Side vs. Instance Side

2013-03-28 Thread stephane ducasse
did you see that when there is no class methods the checkbox tell it to you ;)


 Hi people,
 
 I've installed Pharo 2.0 to give it a try. All good until now!
 
 Looking at Nautilus I see that where there used to be two buttons for 
 switching between class-side and instance-side methods, now there is a 
 checkbox. 
 
 As I was slowly trying to get used to it... it occurred to me that I would 
 have liked even more if I would not have to switch at all. In fact it would 
 be so much nicer to see everything about a class at once. One solution might 
 be splitting the protocols panel in two for instance and class side. 

do you imagine newbies?
I do not think that this is a suitable approch.


Stef





Re: [Pharo-project] in anybody out there? who uses 2.0?

2013-03-28 Thread stephane ducasse
we should plit that in bug entries and take actions collectively :)

On Mar 28, 2013, at 4:56 AM, Yanni Chiu ya...@rogers.com wrote:

 On 27/03/13 10:24 AM, Esteban Lorenzano wrote:
 
 Here in Pharo headquarters we are shock that there are just 10 new bugs 
 reported for 2.0 after the release...
 So... I wonder... is that because we made a really cool release, or just 
 because nobody is using it?
 
 Just before the release I loaded up my project, and did a quick check to find 
 that everything looked fine - except that I would have to migrate to Fuel-1.9.
 
 I had noticed that package loading seemed extremely slow, but did not look 
 further into it. I think I saw mention that it's due to some usage of 
 #become:, during the compiling of code. Based on build times (of just loading 
 the rough equivalent code), it seems about 3 times slower to do a build on a 
 Pharo-2.0 vs. Pharo-1.4.
 
 The slowness is not just an annoyance, because I actually compile code in my 
 application - it's just compiling getters and setters. I've not got enough 
 working yet to see whether it's going to adversely affect the usability (it 
 could make startup time too slow).
 
 Another thing I've noticed is occasional sluggishness in the UI. It's hard to 
 pinpoint, I often feel like my clicks are being lost.
 
 The behaviour of the TestRunner was odd. Eventually I discovered running 
 tests via the Nautilus browser, but the UI feedback is extremely confusing 
 for abstract test cases. I still don't quite understand the results I see 
 there, so I do a final run of the tests in the TestRunner.
 
 Another strange issue I had with test cases was to do with the interaction of 
 the deprecation warnings. In by build script, I run:
  Deprecation raiseWarning: false.
  Deprecation showWarning: false.
 so the build can run headless. It took me a few hours, and a careful single 
 stepping, to find that the deprecation exceptions were being swallowed. I'm 
 sure the TestRunner did not behave this way before. If you ran a test, you 
 would still see the deprecation exceptions. It was really frustrating to see 
 your test fail, but have the stack cleared out before you could debug the 
 exception that caused the test failure.
 
 Are these bugs, or just me getting used to the new release?
 
 




Re: [Pharo-project] Looking for a Seaside 3.1 Configuration for Pharo 2.0

2013-03-28 Thread Johan Brichau
I think it's not a good idea to dump the 3.0.x branch 

Many people are using that + 3.1 is still in development

On 28 Mar 2013, at 10:32, stephane ducasse stephane.duca...@free.fr wrote:

 thanks Paul.
 
 I should say that I would have love not to have 
   3.0.1.
   3.0.2
   so I'm really eager to get seaside 3.1 out
   but at least something that can be marketed as movement.
 
 Stef
 On Mar 27, 2013, at 11:29 PM, Paul DeBruicker pdebr...@gmail.com wrote:
 
 Stéphane Ducasse wrote
 Hi guys
 
 we would like to use seaside to validate the VM and also make sure that
 Seaside31. works perfectly in Pharo2.0.
 I saw that some of you have a working configuration. Where can we find it
 because we would like to publish it in the 
 MetaRepoForPharo20.
 
 Stef
 
 
 3.1 is not released.  That being said see if this set of packages works for
 you
 
 http://dl.dropbox.com/u/4460862/seaside31Config.zip
 
 but they are also not official versions of anything and the official ones
 will likely be different.  they are just something I cobbled together that
 seemed to work at the beginning of the month.
 
 
 
 
 
 
 --
 View this message in context: 
 http://forum.world.st/Looking-for-a-Seaside-3-1-Configuration-for-Pharo-2-0-tp4678580p4678638.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 
 
 




[Pharo-project] Versionner in pharo 2.0

2013-03-28 Thread Norbert Hartl
Is there work in progress to make Versionner work in pharo 2.0? The problems I 
see are at first related to the removal SystemChangeNotifier. 
If nobody is working on it is there any reading material about the changes from 
SystemChangeNotifier to Announcements? I could fix it myself then but I don't 
know nothing about this system internal.

thanks,

Norbert


[Pharo-project] Multiselect in method pane

2013-03-28 Thread Norbert Hartl
What is the rationale for having the method pane as multi-select list? I don't 
think it is of greater use when editing code. I could imagine that some 
refactoring tasks could be easier having multi-select lists.

Anyway, if I try to rename a method without using the refactoring engine I just 
change the selector, save and delete the method with the old selector. In pharo 
2.0 when you rename a method and then click on the old selector both methods 
are selected and shortcut invocation for deleting deletes both. Which is quite 
annoying. In my opinion there is no reason for two methods being selected. If 
you agree I'll happily enter a bug.

Norbert


Re: [Pharo-project] Looking for a Seaside 3.1 Configuration for Pharo 2.0

2013-03-28 Thread stephane ducasse

On Mar 28, 2013, at 11:00 AM, Johan Brichau jo...@inceptive.be wrote:

 I think it's not a good idea to dump the 3.0.x branch 

this is not what I meant.
I was talking about marketing = name of the release ( I prefer to use a soft 
that is 3.3 and 3.0.0.0.2.alpha - even if semantic versionning is cool).

 Many people are using that + 3.1 is still in development



Re: [Pharo-project] Versionner in pharo 2.0

2013-03-28 Thread stephane ducasse
Christophe is…
and will probably reply.

We want this tool.

On Mar 28, 2013, at 11:17 AM, Norbert Hartl norb...@hartl.name wrote:

 Is there work in progress to make Versionner work in pharo 2.0? The problems 
 I see are at first related to the removal SystemChangeNotifier. 
 If nobody is working on it is there any reading material about the changes 
 from SystemChangeNotifier to Announcements? I could fix it myself then but I 
 don't know nothing about this system internal.
 
 thanks,
 
 Norbert




[Pharo-project] about a new pharo site

2013-03-28 Thread Esteban Lorenzano
Hi,

I would like to discuss something about a complete redesign of the site because 
right now, while it was good some years ago, now is old and confusing...  
I would like something clean and easy, more or less like the ruby on rails 
site: http://rubyonrails.org

ideas?

Esteban

ps: this is a brainstorm for a change that will take time, do not expect too 
much too soon :)


Re: [Pharo-project] Multiselect in method pane

2013-03-28 Thread stephane ducasse

On Mar 28, 2013, at 11:21 AM, Norbert Hartl norb...@hartl.name wrote:

 What is the rationale for having the method pane as multi-select list? I 
 don't think it is of greater use when editing code. I could imagine that some 
 refactoring tasks could be easier having multi-select lists.
 
 Anyway, if I try to rename a method without using the refactoring engine I 
 just change the selector, save and delete the method with the old selector. 
 In pharo 2.0 when you rename a method and then click on the old selector both 
 methods are selected and shortcut invocation for deleting deletes both. Which 
 is quite annoying. In my opinion there is no reason for two methods being 
 selected. If you agree I'll happily enter a bug.


The problem is not a nautilus bug but a compiled method one if I remember 
correctly.
because two methods with the same body are equal.

 Norbert




Re: [Pharo-project] Versionner in pharo 2.0

2013-03-28 Thread Esteban Lorenzano
there is work in progress... a bit slow because my times (and Christoph's) are 
a bit... overcharged :) 

On Mar 28, 2013, at 11:17 AM, Norbert Hartl norb...@hartl.name wrote:

 Is there work in progress to make Versionner work in pharo 2.0? The problems 
 I see are at first related to the removal SystemChangeNotifier. 
 If nobody is working on it is there any reading material about the changes 
 from SystemChangeNotifier to Announcements? I could fix it myself then but I 
 don't know nothing about this system internal.
 
 thanks,
 
 Norbert




Re: [Pharo-project] about a new pharo site

2013-03-28 Thread Camillo Bruni
I like this
http://vagrantup.com

and I think you have to immediately address the users by letting them chose

I am new = show how to download details and everything
I am pro = directly show raw links / discussions ...
I am a company? :D

of course one should not exclude the other, but we should optimize for the
targeted audience

On 2013-03-28, at 11:49, Esteban Lorenzano esteba...@gmail.com wrote:

 Hi,
 
 I would like to discuss something about a complete redesign of the site 
 because right now, while it was good some years ago, now is old and 
 confusing...  
 I would like something clean and easy, more or less like the ruby on rails 
 site: http://rubyonrails.org
 
 ideas?
 
 Esteban
 
 ps: this is a brainstorm for a change that will take time, do not expect too 
 much too soon :)




Re: [Pharo-project] Multiselect in method pane

2013-03-28 Thread Norbert Hartl

Am 28.03.2013 um 11:51 schrieb stephane ducasse stephane.duca...@free.fr:

 
 On Mar 28, 2013, at 11:21 AM, Norbert Hartl norb...@hartl.name wrote:
 
 What is the rationale for having the method pane as multi-select list? I 
 don't think it is of greater use when editing code. I could imagine that 
 some refactoring tasks could be easier having multi-select lists.
 
 Anyway, if I try to rename a method without using the refactoring engine I 
 just change the selector, save and delete the method with the old selector. 
 In pharo 2.0 when you rename a method and then click on the old selector 
 both methods are selected and shortcut invocation for deleting deletes both. 
 Which is quite annoying. In my opinion there is no reason for two methods 
 being selected. If you agree I'll happily enter a bug.
 
 
 The problem is not a nautilus bug but a compiled method one if I remember 
 correctly.
 because two methods with the same body are equal.


Ok, so my case is an edge case which usually doesn't happen. But what is the 
rationale for selecting based on equality instead of identity?

Norbert





Re: [Pharo-project] Multiselect in method pane

2013-03-28 Thread Benjamin
Two compiled methods with same byte code, even with different selectors are 
equals
(and people laughed at me when I found that disturbing)

Ben

On Mar 28, 2013, at 11:51 AM, stephane ducasse stephane.duca...@free.fr wrote:

 
 On Mar 28, 2013, at 11:21 AM, Norbert Hartl norb...@hartl.name wrote:
 
 What is the rationale for having the method pane as multi-select list? I 
 don't think it is of greater use when editing code. I could imagine that 
 some refactoring tasks could be easier having multi-select lists.
 
 Anyway, if I try to rename a method without using the refactoring engine I 
 just change the selector, save and delete the method with the old selector. 
 In pharo 2.0 when you rename a method and then click on the old selector 
 both methods are selected and shortcut invocation for deleting deletes both. 
 Which is quite annoying. In my opinion there is no reason for two methods 
 being selected. If you agree I'll happily enter a bug.
 
 
 The problem is not a nautilus bug but a compiled method one if I remember 
 correctly.
 because two methods with the same body are equal.
 
 Norbert
 
 



[Pharo-project] How to redraw only a part of a morph

2013-03-28 Thread Tristan Bourgois
Hi!

I try to optimize the graphic framework I'm porting.
I have good performance but I have some problem to reDraw the morph of my view.

When I reDraw my morph I use 'invalidRect:' with the bound of the part
I want to reDraw but every step my morph is entirely reDraw.

Does I have to use another method? Or someone can explain me how pharo
manage the repaint of morph?

Thanks :)

I will ask today if I can make a video of my work because is very
impressive of what we can do on Pharo with the framework!

And if the reDraw is functional we certainly have the same performance
with Pharo!

So good news :)

Tristan



[Pharo-project] one-click restored for pharo 3.0, renamed as portable

2013-03-28 Thread Esteban Lorenzano
Hi, 

I created a portable version of Pharo 3.0, for those power users who still 
need it :) 

check it at: 
http://files.pharo.org/platform

Cheers, 
Esteban


Re: [Pharo-project] How to redraw only a part of a morph

2013-03-28 Thread Igor Stasenko
On 28 March 2013 12:05, Tristan Bourgois tristan.bourg...@gmail.com wrote:
 Hi!

 I try to optimize the graphic framework I'm porting.
 I have good performance but I have some problem to reDraw the morph of my 
 view.

 When I reDraw my morph I use 'invalidRect:' with the bound of the part
 I want to reDraw but every step my morph is entirely reDraw.

 Does I have to use another method? Or someone can explain me how pharo
 manage the repaint of morph?

The thing you looking for called clipping.
Usually (and if possible) morph should try and detect what parts of his drawing
needs to be updated and update only minimum part covered by clipping region.
But that implies some internal knowledge about morph's geometry etc..
and that's why a default implementation simply (re)draws everything.

 Thanks :)

 I will ask today if I can make a video of my work because is very
 impressive of what we can do on Pharo with the framework!

Please do.

 And if the reDraw is functional we certainly have the same performance
 with Pharo!

Come to see me and we will look how we can optimize it :)

 So good news :)

 Tristan




-- 
Best regards,
Igor Stasenko.



[Pharo-project] [update 2.0] #20594

2013-03-28 Thread Esteban Lorenzano
20594
-

10123 Bug in warning in CriticBrowser
https://pharo.fogbugz.com/f/cases/10123

Diff information:
http://ss3.gemstone.com/ss/Pharo20/Manifest-CriticBrowser-EstebanLorenzano.64.diff

(yep, 2.0 keeps going... for sometime)


[Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Esteban Lorenzano
Hi,

I backported the 3.0 publish mechanism to Pharo 2.0.
I suppose the 2.0 Summer will be like this then :)

http://files.pharo.org/platform/

Cheers,
Esteban



Re: [Pharo-project] Versionner in pharo 2.0

2013-03-28 Thread Norbert Hartl
Can you tell me what an equivalent to a SystemChangeNotifier call would be 
today? I can derive Announcement class names from the message sends to 
SystemChangeNotifier. But I don't know e.g. where is the announcer in the 
system where you would register for class change, method modified etc. 
announcements.

Norbert

Am 28.03.2013 um 11:51 schrieb Esteban Lorenzano esteba...@gmail.com:

 there is work in progress... a bit slow because my times (and Christoph's) 
 are a bit... overcharged :) 
 
 On Mar 28, 2013, at 11:17 AM, Norbert Hartl norb...@hartl.name wrote:
 
 Is there work in progress to make Versionner work in pharo 2.0? The problems 
 I see are at first related to the removal SystemChangeNotifier. 
 If nobody is working on it is there any reading material about the changes 
 from SystemChangeNotifier to Announcements? I could fix it myself then but I 
 don't know nothing about this system internal.
 
 thanks,
 
 Norbert
 
 




Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Guillermo Polito
Cool! :)

On Thu, Mar 28, 2013 at 12:34 PM, Esteban Lorenzano esteba...@gmail.comwrote:

 Hi,

 I backported the 3.0 publish mechanism to Pharo 2.0.
 I suppose the 2.0 Summer will be like this then :)

 http://files.pharo.org/platform/

 Cheers,
 Esteban




Re: [Pharo-project] one-click restored for pharo 3.0, renamed as portable

2013-03-28 Thread Sean P. DeNigris
EstebanLM wrote
 I created a portable version of Pharo 3.0, for those power users who
 still need it :) 

Cool, Thanks :)



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/one-click-restored-for-pharo-3-0-renamed-as-portable-tp4678719p4678723.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Fwd: Some question and request for Athens

2013-03-28 Thread Igor Stasenko
On 27 March 2013 14:44, Tristan Bourgois tristan.bourg...@gmail.com wrote:
 2013/3/26 Igor Stasenko siguc...@gmail.com:
 On 26 March 2013 11:29, Tristan Bourgois tristan.bourg...@gmail.com wrote:
 2013/3/25 Stéphane Ducasse stephane.duca...@inria.fr:


 Begin forwarded message:

 From: Igor Stasenko siguc...@gmail.com
 Subject: Re: Some question and request for Athens
 Date: March 25, 2013 2:57:33 PM GMT+01:00
 To: Tristan Bourgois tristan.bourg...@gmail.com
 Cc: Stéphane Ducasse stephane.duca...@inria.fr, LE PORS Eric
 eric.lep...@fr.thalesgroup.com

 On 25 March 2013 11:45, Tristan Bourgois tristan.bourg...@gmail.com 
 wrote:

 Hi Igor!

 I have some questions and request for Athens :)

 1 Do exist a possibility in Athens to draw a Surface on a Surface?
 For example :
 aSurf drawSurface: anOtherSurface at: aPosition
 (I need it for draw image on a surface)


 yes. You can use Forms or surfaces as paints so they act like 2D textures:

 canvas setPaint: someSurface.
 canvas drawShape: myRect.

 Thanks that's works fine :)


 2 About my first question, I try to draw a png image on a Surface and
 I get some strange behavior. When nothing is applied on my first
 surface and draw the image in a rectangle path I crash the VM!
 This an example I tried and crash my VM:

 |surf pharoLogo ref path patternPaint|
 surf := AthensCairoSurface extent: 600@600.

 ref := 'pharo.png' asFileReference.
 pharoLogo := AthensCairoSurface createFromFile: ref fullName 
 ifFailed:[nil].

 surf drawDuring: [:can|
surf clear.
patternPaint := can setPaint: pharoLogo.
patternPaint setExtend: #None.
can drawShape: (0@0 extent: pharoLogo extent).
 ].
 Display getCanvas drawImage: surf asForm at: 0@0.

 Did this code work fine on your image or other machine? (I'm working
 on a Windows XP pro)

could be a problem. we should check.
To workaround this, you can try to load .png into a form:
Form fromBynaryStream: (ref ... readStream)

 If you need more information about the crash and my environment ask it :)

 weird... it should be working fine.

 I try it on a new clean image and again get a VM crash.

 okay, then i need more information :)

 I send the report of the crash in the mail.


yes, i see there's some problem.. but cannot tell anything why it happens.

 Tristan

 --
 Best regards,
 Igor Stasenko.




-- 
Best regards,
Igor Stasenko.



Re: [Pharo-project] Versionner in pharo 2.0

2013-03-28 Thread Esteban Lorenzano
Hi Norbert, 

Check around SystemAnnouncer :)

Esteban

On Mar 28, 2013, at 12:37 PM, Norbert Hartl norb...@hartl.name wrote:

 Can you tell me what an equivalent to a SystemChangeNotifier call would be 
 today? I can derive Announcement class names from the message sends to 
 SystemChangeNotifier. But I don't know e.g. where is the announcer in the 
 system where you would register for class change, method modified etc. 
 announcements.
 
 Norbert
 
 Am 28.03.2013 um 11:51 schrieb Esteban Lorenzano esteba...@gmail.com:
 
 there is work in progress... a bit slow because my times (and Christoph's) 
 are a bit... overcharged :) 
 
 On Mar 28, 2013, at 11:17 AM, Norbert Hartl norb...@hartl.name wrote:
 
 Is there work in progress to make Versionner work in pharo 2.0? The 
 problems I see are at first related to the removal SystemChangeNotifier. 
 If nobody is working on it is there any reading material about the changes 
 from SystemChangeNotifier to Announcements? I could fix it myself then but 
 I don't know nothing about this system internal.
 
 thanks,
 
 Norbert
 
 
 
 




Re: [Pharo-project] Multiselect in method pane

2013-03-28 Thread Norbert Hartl

Am 28.03.2013 um 11:51 schrieb stephane ducasse stephane.duca...@free.fr:

 
 On Mar 28, 2013, at 11:21 AM, Norbert Hartl norb...@hartl.name wrote:
 
 What is the rationale for having the method pane as multi-select list? I 
 don't think it is of greater use when editing code. I could imagine that 
 some refactoring tasks could be easier having multi-select lists.
 
 Anyway, if I try to rename a method without using the refactoring engine I 
 just change the selector, save and delete the method with the old selector. 
 In pharo 2.0 when you rename a method and then click on the old selector 
 both methods are selected and shortcut invocation for deleting deletes both. 
 Which is quite annoying. In my opinion there is no reason for two methods 
 being selected. If you agree I'll happily enter a bug.
 
 
 The problem is not a nautilus bug but a compiled method one if I remember 
 correctly.
 because two methods with the same body are equal.
 
It happens in MethodWidget#methodSelectionAt:put. When PluggableIconListMorph 
updates the list selection it calls the MethodWidget to set true on the new 
method selected. But MethodWidget uses a Dictionary for instVar methodSelection 
and finds the old method being equal and enables this.
As I don't see a reason why a selection should be done by equality this 
behavior can be fixed by using an IdentityDictionary.

Fix:

MethodWidget#initialize

super initialize.
methodsSelection := IdentityDictionary new.

Any arguments?

Norbert


Re: [Pharo-project] Multiselect in method pane

2013-03-28 Thread Benjamin
Honestly, I do not remember 

Ben

On Mar 28, 2013, at 11:58 AM, Norbert Hartl norb...@hartl.name wrote:

 
 Am 28.03.2013 um 11:51 schrieb stephane ducasse stephane.duca...@free.fr:
 
 
 On Mar 28, 2013, at 11:21 AM, Norbert Hartl norb...@hartl.name wrote:
 
 What is the rationale for having the method pane as multi-select list? I 
 don't think it is of greater use when editing code. I could imagine that 
 some refactoring tasks could be easier having multi-select lists.
 
 Anyway, if I try to rename a method without using the refactoring engine I 
 just change the selector, save and delete the method with the old selector. 
 In pharo 2.0 when you rename a method and then click on the old selector 
 both methods are selected and shortcut invocation for deleting deletes 
 both. Which is quite annoying. In my opinion there is no reason for two 
 methods being selected. If you agree I'll happily enter a bug.
 
 
 The problem is not a nautilus bug but a compiled method one if I remember 
 correctly.
 because two methods with the same body are equal.
 
 
 Ok, so my case is an edge case which usually doesn't happen. But what is the 
 rationale for selecting based on equality instead of identity?
 
 Norbert
 
 
 



Re: [Pharo-project] Multiselect in method pane

2013-03-28 Thread Benjamin
if it works go ahead ;)

Ben

On Mar 28, 2013, at 12:48 PM, Norbert Hartl norb...@hartl.name wrote:

 
 Am 28.03.2013 um 11:51 schrieb stephane ducasse stephane.duca...@free.fr:
 
 
 On Mar 28, 2013, at 11:21 AM, Norbert Hartl norb...@hartl.name wrote:
 
 What is the rationale for having the method pane as multi-select list? I 
 don't think it is of greater use when editing code. I could imagine that 
 some refactoring tasks could be easier having multi-select lists.
 
 Anyway, if I try to rename a method without using the refactoring engine I 
 just change the selector, save and delete the method with the old selector. 
 In pharo 2.0 when you rename a method and then click on the old selector 
 both methods are selected and shortcut invocation for deleting deletes 
 both. Which is quite annoying. In my opinion there is no reason for two 
 methods being selected. If you agree I'll happily enter a bug.
 
 
 The problem is not a nautilus bug but a compiled method one if I remember 
 correctly.
 because two methods with the same body are equal.
 
 It happens in MethodWidget#methodSelectionAt:put. When 
 PluggableIconListMorph updates the list selection it calls the MethodWidget 
 to set true on the new method selected. But MethodWidget uses a Dictionary 
 for instVar methodSelection and finds the old method being equal and enables 
 this.
 As I don't see a reason why a selection should be done by equality this 
 behavior can be fixed by using an IdentityDictionary.
 
 Fix:
 
 MethodWidget#initialize
 
   super initialize.
   methodsSelection := IdentityDictionary new.
 
 Any arguments?
 
 Norbert



Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Sean P. DeNigris
EstebanLM wrote
 I backported the 3.0 publish mechanism to Pharo 2.0.
 ...
 http://files.pharo.org/platform/

I updated http://www.pharo-project.org/pharo-download/release-2-0 to the
Portable terminology, with an updated description, and put the platform
versions at the top, as the first choice.



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Platform-and-portable-versions-for-Pharo-2-0-too-tp4678722p4678734.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



[Pharo-project] bump: pharo wikipedia page sucks

2013-03-28 Thread Esteban Lorenzano
Hi,

have you seen it?

http://en.wikipedia.org/wiki/Pharo

it is old, small, non-accurate and well... it could receive a lot of love :)
(the weird thing is that the image is actually a 2.0 image, he)

Can anyone adopt the page and update it?

thanks,
Esteban

ps: also... we have a lot of spanish speakers in this list (including myself). 
It is a shame that we do not have a spanish version :)


Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Esteban Lorenzano
mmm... the problem is that the platform versions are not the release, are 
nightly builds (it lacks the welcome workspace).

Esteban

On Mar 28, 2013, at 12:59 PM, Sean P. DeNigris s...@clipperadams.com wrote:

 EstebanLM wrote
 I backported the 3.0 publish mechanism to Pharo 2.0.
 ...
 http://files.pharo.org/platform/
 
 I updated http://www.pharo-project.org/pharo-download/release-2-0 to the
 Portable terminology, with an updated description, and put the platform
 versions at the top, as the first choice.
 
 
 
 -
 Cheers,
 Sean
 --
 View this message in context: 
 http://forum.world.st/Platform-and-portable-versions-for-Pharo-2-0-too-tp4678722p4678734.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 




Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 1:06 PM, Esteban Lorenzano esteba...@gmail.com wrote:

 mmm... the problem is that the platform versions are not the release, are 
 nightly builds (it lacks the welcome workspace).
 

yes, we should take care… if it is for power users, it should not be on the 
website.
We need to take care that the idea was not to complicate everything but to 
simplify.

The whole how-we-distribute Pharo is work in Progress. It will change over the 
next Months.

We should control very much the officially released image, else all the work 
last monday was
for nothing.


Marcus

 Esteban
 
 On Mar 28, 2013, at 12:59 PM, Sean P. DeNigris s...@clipperadams.com 
 wrote:
 
 EstebanLM wrote
 I backported the 3.0 publish mechanism to Pharo 2.0.
 ...
 http://files.pharo.org/platform/
 
 I updated http://www.pharo-project.org/pharo-download/release-2-0 to the
 Portable terminology, with an updated description, and put the platform
 versions at the top, as the first choice.
 
 
 
 -
 Cheers,
 Sean
 --
 View this message in context: 
 http://forum.world.st/Platform-and-portable-versions-for-Pharo-2-0-too-tp4678722p4678734.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 
 
 




Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Sean P. DeNigris
EstebanLM wrote
 mmm... the problem is that the platform versions are not the release,
 are nightly builds (it lacks the welcome workspace).

Oops. Can we have save platform release versions somewhere? Since new users
are having trouble with the one-click/portable version, I'd hate to lose the
next year before we have something easy for them...



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Platform-and-portable-versions-for-Pharo-2-0-too-tp4678722p4678739.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 1:12 PM, Sean P. DeNigris s...@clipperadams.com wrote:

 EstebanLM wrote
 mmm... the problem is that the platform versions are not the release,
 are nightly builds (it lacks the welcome workspace).
 
 Oops. Can we have save platform release versions somewhere? Since new users
 are having trouble with the one-click/portable version, I'd hate to lose the
 next year before we have something easy for them…
 
Sorry… we are working already on too many things and there has to be a boundary
somewhere.

Marcus




Re: [Pharo-project] Pharo inbox changed

2013-03-28 Thread Sean P. DeNigris
EstebanLM wrote
 the bad news: since sthub still does not accepts open commits, you need to
 be added to the repository to commit slices (sorry about that)

WTF! This seems totally wrong and bad and evil and... ;) I know we love
StHub, but this is unsustainable. Unless StHub is adding open commits today,
why not put the inbox on ss3 temporarily. I feel we will lose a /lot/ of
help this way. Not everyone is willing to go through/knows about the
communication process of being added...

p.s. please add me :)



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Pharo-inbox-changed-tp4677312p4678741.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Sean P. DeNigris
Marcus Denker-4 wrote
 Sorry… we are working already on too many things and there has to be a
 boundary
 somewhere.

I don't think this is the right place to draw it. I'm going to work now, but
I'll do it later. I guess I could just take the nightly ones and manually
stick in the release image, right?



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Platform-and-portable-versions-for-Pharo-2-0-too-tp4678722p4678742.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 1:14 PM, Marcus Denker marcus.den...@inria.fr wrote:

 
 On Mar 28, 2013, at 1:12 PM, Sean P. DeNigris s...@clipperadams.com wrote:
 
 EstebanLM wrote
 mmm... the problem is that the platform versions are not the release,
 are nightly builds (it lacks the welcome workspace).
 
 Oops. Can we have save platform release versions somewhere? Since new users
 are having trouble with the one-click/portable version, I'd hate to lose the
 next year before we have something easy for them…
 
 Sorry… we are working already on too many things and there has to be a 
 boundary
 somewhere.
 
   

People don't realize just how much work was in the release last week…

We can do things, but we need to control what we do. Changing the relase
files one week after randomly where we are in the situation that the 
build files are *not* yet the relased files (we are working on that, there is
a tracker entry…) is deadly.

Please let it like it is and we move *controlled* forward.



Marcus


Re: [Pharo-project] Pharo inbox changed

2013-03-28 Thread Camille Teruel

On 28 mars 2013, at 13:15, Sean P. DeNigris wrote:

 EstebanLM wrote
 the bad news: since sthub still does not accepts open commits, you need to
 be added to the repository to commit slices (sorry about that)
 
 WTF! This seems totally wrong and bad and evil and... ;) I know we love
 StHub, but this is unsustainable. Unless StHub is adding open commits today,
 why not put the inbox on ss3 temporarily. I feel we will lose a /lot/ of
 help this way. Not everyone is willing to go through/knows about the
 communication process of being added...
 
 p.s. please add me :)

You are already in Pharo team group so you can commit.

 
 
 -
 Cheers,
 Sean
 --
 View this message in context: 
 http://forum.world.st/Pharo-inbox-changed-tp4677312p4678741.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 




Re: [Pharo-project] Pharo inbox changed

2013-03-28 Thread Esteban Lorenzano
yes, I agree with everything... we will fix it soon :)

Sean, you are part of Pharo team members, you should be able to upload to inbox 
anyway 

cheers,
Esteban

On Mar 28, 2013, at 1:15 PM, Sean P. DeNigris s...@clipperadams.com wrote:

 EstebanLM wrote
 the bad news: since sthub still does not accepts open commits, you need to
 be added to the repository to commit slices (sorry about that)
 
 WTF! This seems totally wrong and bad and evil and... ;) I know we love
 StHub, but this is unsustainable. Unless StHub is adding open commits today,
 why not put the inbox on ss3 temporarily. I feel we will lose a /lot/ of
 help this way. Not everyone is willing to go through/knows about the
 communication process of being added...
 
 p.s. please add me :)
 
 
 
 -
 Cheers,
 Sean
 --
 View this message in context: 
 http://forum.world.st/Pharo-inbox-changed-tp4677312p4678741.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 




Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 1:17 PM, Sean P. DeNigris s...@clipperadams.com wrote:

 Marcus Denker-4 wrote
 Sorry… we are working already on too many things and there has to be a
 boundary
 somewhere.
 
 I don't think this is the right place to draw it. I'm going to work now, but
 I'll do it later. I guess I could just take the nightly ones and manually
 stick in the release image, right?

Please… this now does *not* need to be done. Please. Please. Please…

(I am dead)

Marcus


Re: [Pharo-project] Pharo inbox changed

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 1:15 PM, Sean P. DeNigris s...@clipperadams.com wrote:

 EstebanLM wrote
 the bad news: since sthub still does not accepts open commits, you need to
 be added to the repository to commit slices (sorry about that)
 
 WTF! This seems totally wrong and bad and evil and... ;) I know we love
 StHub, but this is unsustainable. Unless StHub is adding open commits today,
 why not put the inbox on ss3 temporarily. I feel we will lose a /lot/ of
 help this way. Not everyone is willing to go through/knows about the
 communication process of being added...
 
 p.s. please add me :)
 

yes, and we would like to have fixed that last week, too, but…..

Marcus


Re: [Pharo-project] bump: pharo wikipedia page sucks

2013-03-28 Thread stephane ducasse
I could but I do not want people bash me if I focus on Pharo on that page.

Stef

On Mar 28, 2013, at 1:03 PM, Esteban Lorenzano esteba...@gmail.com wrote:

 Hi,
 
 have you seen it?
 
 http://en.wikipedia.org/wiki/Pharo
 
 it is old, small, non-accurate and well... it could receive a lot of love :)
 (the weird thing is that the image is actually a 2.0 image, he)
 
 Can anyone adopt the page and update it?
 
 thanks,
 Esteban
 
 ps: also... we have a lot of spanish speakers in this list (including 
 myself). It is a shame that we do not have a spanish version :)




Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Sean P. DeNigris
Marcus Denker-4 wrote
 Please… this now does *not* need to be done. Please. Please. Please…

I totally understand that we're all exhausted. This is an investment in our
future relaxation :) If the users need it, it needs to be done. The reason
we have to do so much work is that the community is the size it is. If there
is not an influx of new users, the situation will not change.



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Platform-and-portable-versions-for-Pharo-2-0-too-tp4678722p4678749.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Pharo inbox changed

2013-03-28 Thread Sean P. DeNigris
EstebanLM wrote
 yes, I agree with everything... we will fix it soon :)

Great, I know everyone is working hard. I like the progress even if it hurts
sometimes :)


EstebanLM wrote
 Sean, you are part of Pharo team members, you should be able to upload to
 inbox anyway 

I don't know. I keep getting 403s. I wanted to try to manually upload it
from the StHub web interface, but don't see how...



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Pharo-inbox-changed-tp4677312p4678751.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Pharo inbox changed

2013-03-28 Thread Benjamin
And as Nico like to say, smalltalkhub is open source :)
So maybe it's also the role of a community :)

Ben

On Mar 28, 2013, at 1:29 PM, Sean P. DeNigris s...@clipperadams.com wrote:

 EstebanLM wrote
 yes, I agree with everything... we will fix it soon :)
 
 Great, I know everyone is working hard. I like the progress even if it hurts
 sometimes :)
 
 
 EstebanLM wrote
 Sean, you are part of Pharo team members, you should be able to upload to
 inbox anyway 
 
 I don't know. I keep getting 403s. I wanted to try to manually upload it
 from the StHub web interface, but don't see how...
 
 
 
 -
 Cheers,
 Sean
 --
 View this message in context: 
 http://forum.world.st/Pharo-inbox-changed-tp4677312p4678751.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 



Re: [Pharo-project] Pharo inbox changed

2013-03-28 Thread Camillo Bruni

On 2013-03-28, at 13:29, Sean P. DeNigris s...@clipperadams.com wrote:

 EstebanLM wrote
 yes, I agree with everything... we will fix it soon :)
 
 Great, I know everyone is working hard. I like the progress even if it hurts
 sometimes :)
 
 
 EstebanLM wrote
 Sean, you are part of Pharo team members, you should be able to upload to
 inbox anyway 
 
 I don't know. I keep getting 403s. I wanted to try to manually upload it
 from the StHub web interface, but don't see how...

the slice-maker does not copy the repository :/ so you have to
go an make sure all the repositories have your credentials :(


Re: [Pharo-project] bump: pharo wikipedia page sucks

2013-03-28 Thread Frank Shearar
You mean in the sense of the conflict of interest that Wikipedians
love to throw around? (Ron Teitelbaum had to deal with lots of pain
when writing up Andreas' page.)

frank

On 28 March 2013 12:21, stephane ducasse stephane.duca...@free.fr wrote:
 I could but I do not want people bash me if I focus on Pharo on that page.

 Stef

 On Mar 28, 2013, at 1:03 PM, Esteban Lorenzano esteba...@gmail.com wrote:

 Hi,

 have you seen it?

 http://en.wikipedia.org/wiki/Pharo

 it is old, small, non-accurate and well... it could receive a lot of love :)
 (the weird thing is that the image is actually a 2.0 image, he)

 Can anyone adopt the page and update it?

 thanks,
 Esteban

 ps: also... we have a lot of spanish speakers in this list (including 
 myself). It is a shame that we do not have a spanish version :)





Re: [Pharo-project] bump: pharo wikipedia page sucks

2013-03-28 Thread Esteban Lorenzano
lol

On Mar 28, 2013, at 1:21 PM, stephane ducasse stephane.duca...@free.fr wrote:

 I could but I do not want people bash me if I focus on Pharo on that page.
 
 Stef
 
 On Mar 28, 2013, at 1:03 PM, Esteban Lorenzano esteba...@gmail.com wrote:
 
 Hi,
 
 have you seen it?
 
 http://en.wikipedia.org/wiki/Pharo
 
 it is old, small, non-accurate and well... it could receive a lot of love :)
 (the weird thing is that the image is actually a 2.0 image, he)
 
 Can anyone adopt the page and update it?
 
 thanks,
 Esteban
 
 ps: also... we have a lot of spanish speakers in this list (including 
 myself). It is a shame that we do not have a spanish version :)
 
 




Re: [Pharo-project] Pharo inbox changed

2013-03-28 Thread stephane ducasse
Ah we will have to address this.

 EstebanLM wrote
 yes, I agree with everything... we will fix it soon :)
 
 Great, I know everyone is working hard. I like the progress even if it hurts
 sometimes :)
 
 
 EstebanLM wrote
 Sean, you are part of Pharo team members, you should be able to upload to
 inbox anyway 
 
 I don't know. I keep getting 403s. I wanted to try to manually upload it
 from the StHub web interface, but don't see how...
 
 the slice-maker does not copy the repository :/ so you have to
 go an make sure all the repositories have your credentials :(




[Pharo-project] … and I updated the platform builder for windows

2013-03-28 Thread Esteban Lorenzano
so, windows users can save as... and enjoy the ability of choose an image 
instead open always the same. 

enjoy,
Esteban

ps: working on a slightly better linux script now


Re: [Pharo-project] bump: pharo wikipedia page sucks

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 1:50 PM, stephane ducasse stephane.duca...@free.fr wrote:

 Yes but also I do not want that people think that I want to have less Squeak 
 on the pharo page.
 To me a Pharo page should be about: all the history about the squeak fork is 
 now history for me.
 As a newbie I wante to get excited by pharo not understand the history of ant 
 fighting while 
 elephants are running around. The license story is also a pain. 
 I would move all that into history.
 
Yes. 

Marcus




Re: [Pharo-project] Multiselect in method pane

2013-03-28 Thread Norbert Hartl
https://pharo.fogbugz.com/f/cases/10162/multiple-selection-of-methods-in-method-pane-if-CompiledMethods-are-equal

Norbert

Am 28.03.2013 um 13:02 schrieb Camillo Bruni camillobr...@gmail.com:

 please! :) that would save some major pain here and there ;)
 
 On 2013-03-28, at 12:57, Benjamin benjamin.vanryseghem.ph...@gmail.com 
 wrote:
 
 if it works go ahead ;)
 
 Ben
 
 On Mar 28, 2013, at 12:48 PM, Norbert Hartl norb...@hartl.name wrote:
 
 
 Am 28.03.2013 um 11:51 schrieb stephane ducasse stephane.duca...@free.fr:
 
 
 On Mar 28, 2013, at 11:21 AM, Norbert Hartl norb...@hartl.name wrote:
 
 What is the rationale for having the method pane as multi-select list? I 
 don't think it is of greater use when editing code. I could imagine that 
 some refactoring tasks could be easier having multi-select lists.
 
 Anyway, if I try to rename a method without using the refactoring engine 
 I just change the selector, save and delete the method with the old 
 selector. In pharo 2.0 when you rename a method and then click on the old 
 selector both methods are selected and shortcut invocation for deleting 
 deletes both. Which is quite annoying. In my opinion there is no reason 
 for two methods being selected. If you agree I'll happily enter a bug.
 
 
 The problem is not a nautilus bug but a compiled method one if I remember 
 correctly.
 because two methods with the same body are equal.
 
 It happens in MethodWidget#methodSelectionAt:put. When 
 PluggableIconListMorph updates the list selection it calls the MethodWidget 
 to set true on the new method selected. But MethodWidget uses a Dictionary 
 for instVar methodSelection and finds the old method being equal and 
 enables this.
 As I don't see a reason why a selection should be done by equality this 
 behavior can be fixed by using an IdentityDictionary.
 
 Fix:
 
 MethodWidget#initialize
 
 super initialize.
 methodsSelection := IdentityDictionary new.
 
 Any arguments?
 
 Norbert
 
 
 



Re: [Pharo-project] Versionner in pharo 2.0

2013-03-28 Thread Esteban Lorenzano
btw... why is there a ConfigurationOfVersionner in verified repo for 2.0 if it 
is not working (and therefore, it is not verified)?

Esteban

On Mar 28, 2013, at 1:58 PM, Christophe Demarey christophe.dema...@inria.fr 
wrote:

 Hi Norbert,
 
 Here is a patch for announcements (and some other things) for Versionner on 
 Pharo2. Unzip, add this folder as repository in Monticello and load latest 
 packages versions.
 After that, I'm not sure it will help you because there are issues with 
 MetacelloToolbox.
 I'm working on that and I hope to have good news soon.
 
 Regards,
 Christophe.
 
 
 pharo2-port.zip
 
 Le 28 mars 2013 à 12:44, Esteban Lorenzano a écrit :
 
 Hi Norbert, 
 
 Check around SystemAnnouncer :)
 
 Esteban
 
 On Mar 28, 2013, at 12:37 PM, Norbert Hartl norb...@hartl.name wrote:
 
 Can you tell me what an equivalent to a SystemChangeNotifier call would be 
 today? I can derive Announcement class names from the message sends to 
 SystemChangeNotifier. But I don't know e.g. where is the announcer in the 
 system where you would register for class change, method modified etc. 
 announcements.
 
 Norbert
 
 Am 28.03.2013 um 11:51 schrieb Esteban Lorenzano esteba...@gmail.com:
 
 there is work in progress... a bit slow because my times (and Christoph's) 
 are a bit... overcharged :) 
 
 On Mar 28, 2013, at 11:17 AM, Norbert Hartl norb...@hartl.name wrote:
 
 Is there work in progress to make Versionner work in pharo 2.0? The 
 problems I see are at first related to the removal SystemChangeNotifier. 
 If nobody is working on it is there any reading material about the 
 changes from SystemChangeNotifier to Announcements? I could fix it myself 
 then but I don't know nothing about this system internal.
 
 thanks,
 
 Norbert
 
 
 
 
 
 
 




Re: [Pharo-project] How to redraw only a part of a morph

2013-03-28 Thread Tristan Bourgois
2013/3/28 Igor Stasenko siguc...@gmail.com:
 On 28 March 2013 12:05, Tristan Bourgois tristan.bourg...@gmail.com wrote:
 Hi!

 I try to optimize the graphic framework I'm porting.
 I have good performance but I have some problem to reDraw the morph of my 
 view.

 When I reDraw my morph I use 'invalidRect:' with the bound of the part
 I want to reDraw but every step my morph is entirely reDraw.

 Does I have to use another method? Or someone can explain me how pharo
 manage the repaint of morph?

 The thing you looking for called clipping.
 Usually (and if possible) morph should try and detect what parts of his 
 drawing
 needs to be updated and update only minimum part covered by clipping region.
 But that implies some internal knowledge about morph's geometry etc..
 and that's why a default implementation simply (re)draws everything.

Ok I simulate the clip in updating my canvas with 'copyClipRect: myClip'
This is functional and improve a LOT the performance :)

I juste have to make some refactoring with some event and animation
which have some bad behavior for the redrawing
and I have to see if copyClipRect: is not a bad method to use.

 Thanks :)

 I will ask today if I can make a video of my work because is very
 impressive of what we can do on Pharo with the framework!

 Please do.

 And if the reDraw is functional we certainly have the same performance
 with Pharo!

 Come to see me and we will look how we can optimize it :)

For the moment it's a bit difficult to ask help for the framework
because it's a Thalès license...
I work with my tutor to make a part of the framework as open-source
and add it to Pharo but I need to show that Pharo it's so cool and
performant and actually it's work ;)

I'm optimist :)

 So good news :)

 Tristan




 --
 Best regards,
 Igor Stasenko.




Re: [Pharo-project] Pharo inbox changed

2013-03-28 Thread p...@highoctane.be
Same here

2013/3/28 Sean P. DeNigris s...@clipperadams.com:
 EstebanLM wrote
 the bad news: since sthub still does not accepts open commits, you need to
 be added to the repository to commit slices (sorry about that)

 WTF! This seems totally wrong and bad and evil and... ;) I know we love
 StHub, but this is unsustainable. Unless StHub is adding open commits today,
 why not put the inbox on ss3 temporarily. I feel we will lose a /lot/ of
 help this way. Not everyone is willing to go through/knows about the
 communication process of being added...

 p.s. please add me :)



 -
 Cheers,
 Sean
 --
 View this message in context: 
 http://forum.world.st/Pharo-inbox-changed-tp4677312p4678741.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




[Pharo-project] obtaining a FileUrl through StringasUrl

2013-03-28 Thread Tudor Girba
Hi,

I am trying to get to a FileUrl via the polymorphic asUrl call, but it
seems I am doing something wrong.

I do:
'file:d:\' asUrl

but the problem seems that $: and $\ are mangled, because when I print, I
get:
file:///d%3A%5C

Furthermore:
'file:d:\' asUrl asFileReference exists == false

but, at the same time:
'd:\' asFileReference exists == true

Can anyone tell me where is the mistake?

Btw, the reason I am looking for this is that I would like to use the
ZeroConf support to load a configuration from a directory Monticello
repository and to do that I have to pass a url to the command line.

Cheers,
Doru

-- 
www.tudorgirba.com

Every thing has its own flow


Re: [Pharo-project] obtaining a FileUrl through StringasUrl

2013-03-28 Thread Camillo Bruni

On 2013-03-28, at 14:44, Tudor Girba tu...@tudorgirba.com wrote:

 Hi,
 
 I am trying to get to a FileUrl via the polymorphic asUrl call, but it
 seems I am doing something wrong.
 
 I do:
 'file:d:\' asUrl
 
 but the problem seems that $: and $\ are mangled, because when I print, I
 get:
 file:///d%3A%5C
 
 Furthermore:
 'file:d:\' asUrl asFileReference exists == false
 
 but, at the same time:
 'd:\' asFileReference exists == true
 
 Can anyone tell me where is the mistake?
 
 Btw, the reason I am looking for this is that I would like to use the
 ZeroConf support to load a configuration from a directory Monticello
 repository and to do that I have to pass a url to the command line.


I guess that will work out of the box under linux.
I think the URL parsing with the directory letter under windows is broken.
And I bet there is no test catching that either.

Did you try the following?
'file://d:/' asUrl
'file:d:/' asUrl



Re: [Pharo-project] [Pharo-users] More GSoC ideas wanted, 3 days left ....

2013-03-28 Thread Andrei Vasile Chis
A short idea for a GSoC project to improve the debugger.

Cheers,
Andrei


---

Title: Improving the inspection of expressions in the debugger

Level: beginner/intermediate

 Possible mentor: Andrei Chis

 Possible second mentor: Nicolas Passerini, Tudor Girba

 Description:

The debugger is a central tool in any programming language, as it
helps developers understand the dynamic behaviour of applications.
Furthermore, in Smalltalk, it can also be used to write code and thus
extend applications while they are running.

One important aspect that is missing in the current Pharo debugger, is
the ability to view the value of intermediate expressions involved in
method calls. For example consider the call:
^ self doSomething: (anArray at: 2) with: aStream next onlyIf:
aCondition isValid.
In order to view the values of the expressions  (anArray at: 2),
(aStream next) and  (aCondition isValid) we have to directly go into
the actual method call. Furthermore, viewing the return value can be
more difficult, if we do not store it into a variable.

The goal of this project is to add support for exploring these kind of
expressions by using dedicated widgets. For example, one alternative
might be adding pseudo variables into inspectors, while another might
consist in using popups that display these values for any expression
selected in the editor.

Technical Details:
The student will have to understand how the debugger works, and will
have to familiarise himself with the new debugging infrastructure.
Also, he'll have to look into at least a framework for building UIs
(Spec/Glamour).

Benefits to the Student:
He will get a deep understanding of how debugging is done, on how the
debugger works and he'll also interact with a framework for building
UIs.

Benefits to the Community:
The community will bet a better debugger,  in which values passed and
returned by methods could be easily explored using different widgets.

---

On Tue, Mar 26, 2013 at 12:36 PM, Janko Mivšek janko.miv...@eranova.si wrote:
 Dear Pharoers,

 Ideas are slowly coming, 14 so far, but this is way below the 30+ in
 previous years. So, stretch your brain, come with some more ideas, which
 will be interesting for potential students and of course useful for our
 community. Students you are again welcome to propose such idea by your
 own. One student idea for now!

 Ideas so far: http://gsoc2013.esug.org/ideas

 To propose an idea just respond to this post by fulfilling this idea
 template:

   Title:

   Level: (beginner, intermediate, advanced)

   Possible mentor: (if already known)

   Possible second mentor: (if already known)

   Description

   Technical Details

   Benefits to the Student

   Benefits to the Community

 Best regards
 Serge and Janko,
 your this year GSoC admins


 --
 Janko Mivšek
 Aida/Web
 Smalltalk Web Application Server
 http://www.aidaweb.si




Re: [Pharo-project] How to redraw only a part of a morph

2013-03-28 Thread Igor Stasenko
On 28 March 2013 14:28, Tristan Bourgois tristan.bourg...@gmail.com wrote:
 2013/3/28 Igor Stasenko siguc...@gmail.com:
 On 28 March 2013 12:05, Tristan Bourgois tristan.bourg...@gmail.com wrote:
 Hi!

 I try to optimize the graphic framework I'm porting.
 I have good performance but I have some problem to reDraw the morph of my 
 view.

 When I reDraw my morph I use 'invalidRect:' with the bound of the part
 I want to reDraw but every step my morph is entirely reDraw.

 Does I have to use another method? Or someone can explain me how pharo
 manage the repaint of morph?

 The thing you looking for called clipping.
 Usually (and if possible) morph should try and detect what parts of his 
 drawing
 needs to be updated and update only minimum part covered by clipping region.
 But that implies some internal knowledge about morph's geometry etc..
 and that's why a default implementation simply (re)draws everything.

 Ok I simulate the clip in updating my canvas with 'copyClipRect: myClip'
 This is functional and improve a LOT the performance :)

 I juste have to make some refactoring with some event and animation
 which have some bad behavior for the redrawing
 and I have to see if copyClipRect: is not a bad method to use.

 Thanks :)

 I will ask today if I can make a video of my work because is very
 impressive of what we can do on Pharo with the framework!

 Please do.

 And if the reDraw is functional we certainly have the same performance
 with Pharo!

 Come to see me and we will look how we can optimize it :)

 For the moment it's a bit difficult to ask help for the framework
 because it's a Thalès license...

i just offering my help. you (or your boss) are free to reject it , of
course.. for whatever reason :)

 I work with my tutor to make a part of the framework as open-source
 and add it to Pharo but I need to show that Pharo it's so cool and
 performant and actually it's work ;)

 I'm optimist :)





-- 
Best regards,
Igor Stasenko.



Re: [Pharo-project] obtaining a FileUrl through StringasUrl

2013-03-28 Thread Tudor Girba
'file:d:/' asUrl == file:///d%3A/
'file://d:/' asUrl == file://d:/

The second looks nice, but:
'file://d:/' asUrl asFileReference ==  File @

The problem seems to be that:
'file://d:/' asUrl pathString == ''

:(

Cheers,
Doru

On Thu, Mar 28, 2013 at 2:50 PM, Camillo Bruni camillobr...@gmail.comwrote:


 On 2013-03-28, at 14:44, Tudor Girba tu...@tudorgirba.com wrote:

  Hi,
 
  I am trying to get to a FileUrl via the polymorphic asUrl call, but it
  seems I am doing something wrong.
 
  I do:
  'file:d:\' asUrl
 
  but the problem seems that $: and $\ are mangled, because when I print, I
  get:
  file:///d%3A%5C
 
  Furthermore:
  'file:d:\' asUrl asFileReference exists == false
 
  but, at the same time:
  'd:\' asFileReference exists == true
 
  Can anyone tell me where is the mistake?
 
  Btw, the reason I am looking for this is that I would like to use the
  ZeroConf support to load a configuration from a directory Monticello
  repository and to do that I have to pass a url to the command line.


 I guess that will work out of the box under linux.
 I think the URL parsing with the directory letter under windows is broken.
 And I bet there is no test catching that either.

 Did you try the following?
 'file://d:/' asUrl
 'file:d:/' asUrl




-- 
www.tudorgirba.com

Every thing has its own flow


Re: [Pharo-project] obtaining a FileUrl through StringasUrl

2013-03-28 Thread Camillo Bruni
ok that IS broken then :/
could you open an issue? 

On 2013-03-28, at 15:08, Tudor Girba tu...@tudorgirba.com wrote:
 'file:d:/' asUrl == file:///d%3A/
 'file://d:/' asUrl == file://d:/
 
 The second looks nice, but:
 'file://d:/' asUrl asFileReference ==  File @
 
 The problem seems to be that:
 'file://d:/' asUrl pathString == ''
 
 :(
 
 Cheers,
 Doru
 
 On Thu, Mar 28, 2013 at 2:50 PM, Camillo Bruni camillobr...@gmail.comwrote:
 
 
 On 2013-03-28, at 14:44, Tudor Girba tu...@tudorgirba.com wrote:
 
 Hi,
 
 I am trying to get to a FileUrl via the polymorphic asUrl call, but it
 seems I am doing something wrong.
 
 I do:
 'file:d:\' asUrl
 
 but the problem seems that $: and $\ are mangled, because when I print, I
 get:
 file:///d%3A%5C
 
 Furthermore:
 'file:d:\' asUrl asFileReference exists == false
 
 but, at the same time:
 'd:\' asFileReference exists == true
 
 Can anyone tell me where is the mistake?
 
 Btw, the reason I am looking for this is that I would like to use the
 ZeroConf support to load a configuration from a directory Monticello
 repository and to do that I have to pass a url to the command line.
 
 
 I guess that will work out of the box under linux.
 I think the URL parsing with the directory letter under windows is broken.
 And I bet there is no test catching that either.
 
 Did you try the following?
 'file://d:/' asUrl
 'file:d:/' asUrl
 
 
 
 
 -- 
 www.tudorgirba.com
 
 Every thing has its own flow




[Pharo-project] Project Show Tell - LEKtrek

2013-03-28 Thread Ben Coman
LEKtrek is a software development platform for electrical power 
applications.  This is my masters project to provide the GUI for 
modeling electrical power networks, into which researchers can plug 
calculations. 

These video presentations are still a work in progress, but just in case 
you needed some filler for the Show Us Your Project sessions at 
PharoConf/MooseDay, please feel free to use any portion of the three 
videos listed below.  These can be viewed using VLC.  Note that the 020 
video was the first I ever produced and suffers a little for quality 
until I can fix it after writing up my dissertation.  Quality gets 
better in the later videos 010 and 030. 


http://files.openinworld.com/LEKtrek/
* LEKtrek 010 Introduction 2013-02-25.mp4 - 6min - background context 
for the project
* LEKtrek 020 Explorer User 2013-02-28.mp4 - 8min30 - a tool to explore 
the IEC 61970 Common Information Model (of electrical power networks)
* LEKtrek 030 Modeller User 2013-03-19.mp4 - 9min - a tool for modeling 
an electrical power network, and executing calculations on that model.


The project is based on top of Roassal, Glamour  Magritte 3. It will 
released open-source, but I am still musing over the finer points of 
several licenses, which waits on completion of my dissertation.


Any and all feedback on contents and aesthetics are welcome.

cheers -ben



Re: [Pharo-project] about a new pharo site

2013-03-28 Thread Esteban A. Maringolo
The Vagrant site is cool. The RoR is nice too, but a little old these days.
But I agree the Pharo site needs to be better, and modern.

You don't have to leave the Smalltalk community to find a simple site:
Amber-lang.net
It has all, what I think, a newcomer would expect: an intro, a few
FAQs, a code snippet, links to download it or to its Github repo. The
same goes for the Node.js webiste.

Python and Django on the other hand have more complex websites.

Regards!

Esteban A. Maringolo


2013/3/28 Camillo Bruni camillobr...@gmail.com:
 I like this
 http://vagrantup.com

 and I think you have to immediately address the users by letting them chose

 I am new = show how to download details and everything
 I am pro = directly show raw links / discussions ...
 I am a company? :D

 of course one should not exclude the other, but we should optimize for the
 targeted audience

 On 2013-03-28, at 11:49, Esteban Lorenzano esteba...@gmail.com wrote:

 Hi,

 I would like to discuss something about a complete redesign of the site 
 because right now, while it was good some years ago, now is old and 
 confusing...
 I would like something clean and easy, more or less like the ruby on rails 
 site: http://rubyonrails.org

 ideas?

 Esteban

 ps: this is a brainstorm for a change that will take time, do not expect too 
 much too soon :)





Re: [Pharo-project] in anybody out there? who uses 2.0?

2013-03-28 Thread Esteban A. Maringolo
Any hints on how to load the Magritte-Seaside package?

Regards,

Esteban A. Maringolo


2013/3/28 Tudor Girba tu...@tudorgirba.com:
 Magritte2 is a bit old. Magritte3 loads fine (we are using it in Moose).

 Doru


 On Mar 28, 2013, at 3:11 AM, Esteban A. Maringolo emaring...@gmail.com 
 wrote:

 Did anybody manage to load Magritte 2 at least?

 When running this:
 Gofer it
 squeaksource: 'MetacelloRepository';
 package: 'ConfigurationOfMagritte2';
 load.

 (ConfigurationOfMagritte2 project version: '2.0.6') load: 
 #('Magritte-Seaside')

 I get the following error:
 This package depends on the following classes:
  BlockContext
 You must resolve these dependencies before you will be able to load
 these definitions:
  magritteDynamicObject

 Esteban A. Maringolo


 2013/3/27 Sean P. DeNigris s...@clipperadams.com:
 EstebanLM wrote
 So... I wonder... is that because we made a really cool release, or just
 because nobody is using it?

 I've ported most of my projects to 2.0, but I've been on holidays for a few
 weeks, so I haven't updated to the released version. I'll know better this
 week, but IIRC most of the bugs I noticed have been fixed.



 -
 Cheers,
 Sean
 --
 View this message in context: 
 http://forum.world.st/in-anybody-out-there-who-uses-2-0-tp4678552p4678640.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



 --
 www.tudorgirba.com

 What we can governs what we wish.







Re: [Pharo-project] about a new pharo site

2013-03-28 Thread p...@highoctane.be
https://lastpass.com/
http://www.atlassian.com/
http://belighted.com/

A common fixture is at the bottom with the footer including a ton of
links under the fold.

And a call to action just in the face of visitors (get it, download it etc)


And a damn product packshot. (screen shot for non ad junkies).

FWIW, notice that there is a ton of social proof in there in the form
of logos, testimonials etc.


http://en.wikipedia.org/wiki/Social_proof

Social proof is the best thing ever for us humans, we do have a herd
mentality, even if the ST community still evades this somewhat.

Phil

2013/3/28 Esteban A. Maringolo emaring...@gmail.com:
 The Vagrant site is cool. The RoR is nice too, but a little old these days.
 But I agree the Pharo site needs to be better, and modern.

 You don't have to leave the Smalltalk community to find a simple site:
 Amber-lang.net
 It has all, what I think, a newcomer would expect: an intro, a few
 FAQs, a code snippet, links to download it or to its Github repo. The
 same goes for the Node.js webiste.

 Python and Django on the other hand have more complex websites.

 Regards!

 Esteban A. Maringolo


 2013/3/28 Camillo Bruni camillobr...@gmail.com:
 I like this
 http://vagrantup.com

 and I think you have to immediately address the users by letting them chose

 I am new = show how to download details and everything
 I am pro = directly show raw links / discussions ...
 I am a company? :D

 of course one should not exclude the other, but we should optimize for the
 targeted audience

 On 2013-03-28, at 11:49, Esteban Lorenzano esteba...@gmail.com wrote:

 Hi,

 I would like to discuss something about a complete redesign of the site 
 because right now, while it was good some years ago, now is old and 
 confusing...
 I would like something clean and easy, more or less like the ruby on rails 
 site: http://rubyonrails.org

 ideas?

 Esteban

 ps: this is a brainstorm for a change that will take time, do not expect 
 too much too soon :)






[Pharo-project] Ring namespaces

2013-03-28 Thread Ben Coman


I see in a few scattered bits and pieces that Ring will support 
namespaces.  So that presumably that will assist in porting VW code to 
Pharo?

How near is that functionality?

cheers -ben



[Pharo-project] One more project for GSoc 2012

2013-03-28 Thread Serge Stinckwich
One more project idea for Smalltalk GSoC 2013.

--

Title: Phratch, a port of Scratch to Pharo 2.0

Level: intermediate

Possible mentor: Jannick Laval

Possible second mentor: Serge Stinckwich

Description: Phratch (https://code.google.com/p/phratch/) is an
ongoing port of Scratch and BYOB on Pharo 2.0. The current prototype
is still suffering from a lot of bugs. Part of the work will be to add
unit tests to the existing project. Even if this is a port to Pharo,
we will try to build a new version that is flavor-independent.
The long term objective of Phratch is to be able to use it for
teaching software engineering and robotics.

Technical Details: Pharo and some knowledge of Squeak

Benefits to the Student: Student will participate to a very cool project.

Benefits to the Community: Scratch will be rebuild on top of a modern
Smalltalk version and will benefit from lastest development in the
core library and VM.

--

--
Serge Stinckwich
UCBN  UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://doesnotunderstand.org/



Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Marcus Denker

On Mar 28, 2013, at 1:19 PM, Marcus Denker marcus.den...@inria.fr wrote:

 
 On Mar 28, 2013, at 1:17 PM, Sean P. DeNigris s...@clipperadams.com wrote:
 
 Marcus Denker-4 wrote
 Sorry… we are working already on too many things and there has to be a
 boundary
 somewhere.
 
 I don't think this is the right place to draw it. I'm going to work now, but
 I'll do it later. I guess I could just take the nightly ones and manually
 stick in the release image, right?
 
 Please… this now does *not* need to be done. Please. Please. Please…
 
 (I am dead)
 

- the images are carefully hand prepared (yes, this is shitty, we will fix 
that eventually).
- the files are served from gforge so that we count the downloads (politically 
important).
- now the download and the download 2.0 pages are out of sync.

The thing is that I have not Time and no Energy to work on this now. 

The problem is that every change has as a result work to be done. We should be 
careful
to not waste our energy.

Marcus




Re: [Pharo-project] bump: pharo wikipedia page sucks

2013-03-28 Thread Clément Bera
I tried to write some more stuff on the French Pharo wiki page :
http://fr.wikipedia.org/wiki/Pharo .

I moved all the reference to history (birth of smalltalk, relation with
companies, forking) in the history section. I tried to focus the page on
How to use Pharo and Who uses Pharo. I would like the add a part 'Why Pharo
is so great' with all its nice features, which are kind of already in the
introduction of the page but I don't know how to present it well and what
to focus on. Right now it is more like 'It is smalltalk so it is great' but
not 'This is Pharo and these are the reasons why it is great' like they
have on Amber web page.

Tell me if you like the way I made the French Pharo wiki page I will
translate it in English.

If you have somewhere a list of great features of Pharo to inspire me so I
can write it down in a section.

Some more reference on how to learn Smalltalk would be nice too (Adding to
Pharo by example 1  2)

2013/3/28 Marcus Denker marcus.den...@inria.fr


 On Mar 28, 2013, at 1:50 PM, stephane ducasse stephane.duca...@free.fr
 wrote:

  Yes but also I do not want that people think that I want to have less
 Squeak on the pharo page.
  To me a Pharo page should be about: all the history about the squeak
 fork is now history for me.
  As a newbie I wante to get excited by pharo not understand the history
 of ant fighting while
  elephants are running around. The license story is also a pain.
  I would move all that into history.
 
 Yes.

 Marcus





Re: [Pharo-project] Project Show Tell - LEKtrek

2013-03-28 Thread Tudor Girba
I only had a brief look. Exciting :)

Doru


On Thu, Mar 28, 2013 at 3:24 PM, Ben Coman b...@openinworld.com wrote:

 LEKtrek is a software development platform for electrical power
 applications.  This is my masters project to provide the GUI for modeling
 electrical power networks, into which researchers can plug calculations.
 These video presentations are still a work in progress, but just in case
 you needed some filler for the Show Us Your Project sessions at
 PharoConf/MooseDay, please feel free to use any portion of the three videos
 listed below.  These can be viewed using VLC.  Note that the 020 video was
 the first I ever produced and suffers a little for quality until I can fix
 it after writing up my dissertation.  Quality gets better in the later
 videos 010 and 030.
 http://files.openinworld.com/**LEKtrek/http://files.openinworld.com/LEKtrek/
 * LEKtrek 010 Introduction 2013-02-25.mp4 - 6min - background context for
 the project
 * LEKtrek 020 Explorer User 2013-02-28.mp4 - 8min30 - a tool to explore
 the IEC 61970 Common Information Model (of electrical power networks)
 * LEKtrek 030 Modeller User 2013-03-19.mp4 - 9min - a tool for modeling an
 electrical power network, and executing calculations on that model.

 The project is based on top of Roassal, Glamour  Magritte 3. It will
 released open-source, but I am still musing over the finer points of
 several licenses, which waits on completion of my dissertation.

 Any and all feedback on contents and aesthetics are welcome.

 cheers -ben




-- 
www.tudorgirba.com

Every thing has its own flow


Re: [Pharo-project] bump: pharo wikipedia page sucks

2013-03-28 Thread Serge Stinckwich
On Thu, Mar 28, 2013 at 4:40 PM, Clément Bera bera.clem...@gmail.com wrote:
 I tried to write some more stuff on the French Pharo wiki page :
 http://fr.wikipedia.org/wiki/Pharo .

 I moved all the reference to history (birth of smalltalk, relation with
 companies, forking) in the history section. I tried to focus the page on How
 to use Pharo and Who uses Pharo. I would like the add a part 'Why Pharo is
 so great' with all its nice features, which are kind of already in the
 introduction of the page but I don't know how to present it well and what to
 focus on. Right now it is more like 'It is smalltalk so it is great' but not
 'This is Pharo and these are the reasons why it is great' like they have on
 Amber web page.

 Tell me if you like the way I made the French Pharo wiki page I will
 translate it in English.

 If you have somewhere a list of great features of Pharo to inspire me so I
 can write it down in a section.

 Some more reference on how to learn Smalltalk would be nice too (Adding to
 Pharo by example 1  2)

Thank you Clement for your work. I agree with you that the Pharo
should be redesign massively ;-)

Maybe we should talk on the french Smalltalk mailing-list how we
redesign the page ?

Regards,

--
Serge Stinckwich
UCBN  UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://doesnotunderstand.org/



Re: [Pharo-project] [Pharo-users] More GSoC ideas wanted, 3 days left ....

2013-03-28 Thread S Krish
There was a work with Tiny Core Linux, that could easily be adapted for
this.

Depends on the details of what features needs to work though for
appropriate additional libraries to be integrated in TCL .



On Wed, Mar 27, 2013 at 3:00 PM, Clément Bera bera.clem...@gmail.comwrote:

  Title: A Pharo Image running on top of VirtualBox with the help of a
 Linux micro kernel

   Level: intermediate

   Possible mentor: Clement Bera

   Possible second mentor: Marcus Denker, Camillo Bruni

   Description
 Archiving Pharo / Squeak Image is not easy : it depends on a VM, that
 depends on a processor and an OS. Sometimes, we find old Pharo / Squeak
 Image that we cannot run because we have lost the appropriate VM. This is
 even more relevant when the project rely on a specifically built VM.
 Moreover, sometimes we have also lost the Pharo / Squeak Image sources from
 that image and we cannot read easily the code. I propose then to save the
 working image with its sources, changes file and VM into a virtual box
 image in order to have it working on top of virtual box easily forever.
 This way the archived image will only depends on the computer processor,
 and not on VM, OS, computer processor, source file, change file

   Technical Details
 The student would have to identify a minimum linux kernel in order to run
 Pharo. Then, he would have to implement some Pharo code so that by entering
 'Smalltalk saveAsVirtualBoxImage' in workspace it would create a virtual
 box image in the same folder, with the current VM, source file, change
 file, image and the minimum linux kernel. This command will probably go get
 some part of the virtual box image (for instance the linux micro kernel) or
 some external tool as Vagrant (http://www.vagrantup.com) somewhere on the
 internet. Running the virtual box image would directly run the Pharo image
 on the Pharo VM through a start-up process. Lastly, the student would have
 to set up a Jenkins job on the Pharo-contribution continuous integration
 server that create a Pharo virtual box image. If some time is remaining,
 the student would have to find a solution to manage the Pharo image crashes
 in virtual box.

   Benefits to the Student
 The student will learn some smalltalk (networking, commandLineHandler),
 how to set up a build in a Jenkins continuous integration server and some
 linux command line. He will also have a nice impressive open source tool to
 show.

   Benefits to the Community
 The community will benefit from the archiving tool. The Pharo virtual box
 image could also be interesting for some experiments.

 2013/3/26 stephane ducasse stephane.duca...@free.fr


 On Mar 26, 2013, at 2:36 PM, Janko Mivšek janko.miv...@eranova.si
 wrote:

  Hi Stef,
 
  Dne 26. 03. 2013 13:35, piše stephane ducasse:
  Janko
 
  Can you put andrei chis and nicolas passerini for Debugger improvment
 projects.
 
  Put where? As mentors?

 Yes they are more into it.

 
  I know that alexandre should propose a couple of topics around roassal.
 
  I could come up with a couple of other topics.
  Here is one:
 
  Added
 
  Best regards
  Janko
 
 
  Ideas so far: http://gsoc2013.esug.org/ideas
 
  To propose an idea just respond to this post by fulfilling this idea
  template:
 
  Title:
   Better rewriting rule tool
 
 
  Level: (beginner, intermediate, advanced)
   Intermediate
 
  Possible mentor: (if already known)
   Stephane Ducasse
 
  Possible second mentor: (if already known)
   Andre Hora
 
  Description
   The refactoring browser is based on a powerful rewrite engine
 which transforms AST.
   However it is quite cumbersome to write rewrite rules. There is a
 need to build a tool to help
   programmers defining their own transformation.
 
  Technical Details
 
  Benefits to the Student
   learning AST
   learning AST transofrmation
   learning AST pattern matching
   User interface definition
 
  Benefits to the Community
   A tool that is cruelly missing.
 
 
 
  Best regards
  Serge and Janko,
  your this year GSoC admins
 
 
  --
  Janko Mivšek
  Aida/Web
  Smalltalk Web Application Server
  http://www.aidaweb.si
 
 
 
 
 
  --
  Janko Mivšek
  Aida/Web
  Smalltalk Web Application Server
  http://www.aidaweb.si
 






Re: [Pharo-project] obtaining a FileUrl through StringasUrl

2013-03-28 Thread Sven Van Caekenberghe
Hi Doru,

On 28 Mar 2013, at 15:08, Tudor Girba tu...@tudorgirba.com wrote:

 'file:d:/' asUrl == file:///d%3A/
 'file://d:/' asUrl == file://d:/ 
 
 The second looks nice, but:
 'file://d:/' asUrl asFileReference ==  File @ 
 
 The problem seems to be that:
 'file://d:/' asUrl pathString == ''
 
 :(

You could try a bit with the extension methods in the package 
Zinc-Resource-Meta-FileSystem in Pharo 2.0

'file:///c:/' asZnUrl asFileReference  == File @ /c:

But Windows File URLs are a big mess ;-)

So, any help is greatly appreciated, but do also check specifications.

Sven

 Cheers,
 Doru
 
 On Thu, Mar 28, 2013 at 2:50 PM, Camillo Bruni camillobr...@gmail.com wrote:
 
 On 2013-03-28, at 14:44, Tudor Girba tu...@tudorgirba.com wrote:
 
  Hi,
 
  I am trying to get to a FileUrl via the polymorphic asUrl call, but it
  seems I am doing something wrong.
 
  I do:
  'file:d:\' asUrl
 
  but the problem seems that $: and $\ are mangled, because when I print, I
  get:
  file:///d%3A%5C
 
  Furthermore:
  'file:d:\' asUrl asFileReference exists == false
 
  but, at the same time:
  'd:\' asFileReference exists == true
 
  Can anyone tell me where is the mistake?
 
  Btw, the reason I am looking for this is that I would like to use the
  ZeroConf support to load a configuration from a directory Monticello
  repository and to do that I have to pass a url to the command line.
 
 
 I guess that will work out of the box under linux.
 I think the URL parsing with the directory letter under windows is broken.
 And I bet there is no test catching that either.
 
 Did you try the following?
 'file://d:/' asUrl
 'file:d:/' asUrl
 
 
 
 
 -- 
 www.tudorgirba.com
 
 Every thing has its own flow



--
Sven Van Caekenberghe
http://stfx.eu
Smalltalk is the Red Pill




Re: [Pharo-project] Non-Smalltalk content in Pharo and Nautilus

2013-03-28 Thread S Krish
I would love to have one for Groovy..!

On Thu, Mar 28, 2013 at 1:48 AM, Torsten Bergmann asta...@gmx.de wrote:

 When working with Seaside (or other frameworks) one often works with
 non-Smalltalk resources
 stored within the image (CSS styles, images, ...) often stored as strings
 within
 methods:


 myCss
^'body {
background-color: #ce;
 }'

 or

 script
^'alert(hello from Javascript);'


 I also often see Base64 encoded images, or when working with XML a method
 might return XML content.

 With things like Helvetia [1], the reworked autocompletion/syntax
 highlighting and new
 browsers like Nautilus in mind I wonder if (may be in the not so far
 future) I can:

- click on a Smalltalk method to get ST styling and edit functionality
- click on a CSS content method to do CSS styling and completion
- click on a method with a form content to display the picture (and not
 the Base64 encoded string)
- click on an XML content to browse the XML tree
- click on an HTML providing method to edit HTML and maybe preview
- click on a method with CSV to edit the tabular data within a grid
- click on a primitive method to see Slang or C/C++ code
- ...

 Internally the content can be distinguished using pragmas:


 myCss
mime-type: text/css
^'body {
background-color: #ce;
 }'


 Are there any plans to move Pharo into this not only Smalltalk in
 methods direction?

 Is it already possible to easily extend Nautilus with pluggable custom
 panes depending on the
 method content.

 I see that there are buttons on the Nautilus side. Wouldnt it be better to
 have Tabs
 with Source as default and where I can add my own custom tabs?

 Would be a lot of work to provide editors and stylers for all the
 mime-types or autocompletion
 for JavaScript, SQL, ... whatever. But the question is more do we have
 the groundwork so
 people can built up on it.

 Any comments?

 Thx
 T.

 [1] http://scg.unibe.ch/research/helvetia





[Pharo-project] [ANN] Fuel Release Version 1.9

2013-03-28 Thread Martin Dias
Hi all,

We are happy to announce Fuel 1.9.

Fuel is an open-source general-purpose object serialization
framework developed in Pharo. You can find more information on our website
[1].

The default set of packages of this version already comes in Pharo 2.0, so
you it's not necessary to install it there. However, Fuel also works
out-of-the-box in Pharo from 1.1 up to 2.0, as well as in Squeak 4.1 up to
4.4. You can see our documentation [2] for complete installation and use
guides.

Changes:

- (feature) DoIt and not-installed CompiledMethods are fully serialized by
default.
- (fix) Date  DateAndTime (thanks Cami and Marcus) (already included in
Fuel 1.8.1 and 1.8.2).
- (feature) New hooks methods #fuelNew and #fuelNew: for custom
instantiation (see Hooking instance creation in Customizing the Graph).
- Globals:
   - Added #globalEnvironment: to specify where the globals are looked-up.
(see Changing the environment in Managing Globals).
   - Explicit references to Smalltalk globals changed to self class
environment.
   - A SystemDictionary instance is not treated as global when it is not
Smalltalk globals.
- Documentation:
   - General update
   - New Format Migration section.
   - New Built-in Header Support section.
- (feature) Put back FLSerializeron:.
- (optimization) New clusters for SmallInteger.
- (optimization) New clusters for most common collections.
- (feature) Built-in support for header (See Built-in Header Support):
   - pre and post materialization actions (clean closures).
   - attach additional objects.
   - materialize only the header.
- (fix) Safer substitutions (see
FLPluggableSubstitutionTesttestPrivateExcluded).
- (feature) Materialize .fuel files when dragdropped in the image.
- (cleanup) Removed unneeded cluster: FLWellKnownObjectsCluster.

[1]: http://rmod.lille.inria.fr/web/pier/software/Fuel
[2]:
http://rmod.lille.inria.fr/web/pier/software/Fuel/Version1.9/Documentationhttp://rmod.lille.inria.fr/web/pier/software/Fuel/Version1.8/Documentation

We want to thank developers of the community that enrich the project with
code, issue reports and ideas.

Have fun!

Martin (on behalf of Mariano and Max, who worked a lot on this version)


Re: [Pharo-project] More GSoC ideas wanted, 3 days left ....

2013-03-28 Thread Vanessa Peña Araya

Hi,

I hope it is not too late :) We have some ideas we will like to do:

*

-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-

Title: Improving Roassal Scalability


Level: Intermediate


Possible mentor: Vanessa Peña-Araya


Possible second mentor:Alexandre Bergel


Description:

The Roassal visualization engine is getting more users in the Smalltalk 
community every day. This means more complex visualizations are created 
using Roassal, and the amount of data the user wants to represent is 
larger. However Roassal is still behind to answer this demands as it 
lacks from scalability for big visualizations, resulting in very slow 
displaying and events answering.



In this project we plan to fix this problem and allow Roassal to become 
a efficient tool



Technical Details:

In this project the student will define and implement a strategy for 
faster displaying for the visualizations and events reaction. This 
includes understanding the techniques currently used in other 
visualization tools.



Benefits to the Student:

- Learn and understand Roassal, including its structure and design

- Learn graphical tools techniques mainly for rendering and event responding


Benefits to the Community:

Allowing the community to have a faster and efficient visualization 
tool, making Roassal a powerful visualization engine and answering to 
the demand to render large amount of data.



-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-



Title:Composing layouts on Roassal


Level:Begginer


Possible mentor:Vanessa Peña-Araya


Possible second mentor:Alexandre Bergel


Description:

Roassal includes a set of layouts to automatically arrange visual 
elements on a view, however this feature is very limited. When two 
different set of elements requires to be arranged in different way, a 
manual translation must be done to one of the set the particular layouts 
are applied, to avoid overlapping. There is also no way to compose 
layouts to create more complex distributions. For example, it is not 
possible to arrange a set of elements in a circle layout around a 
particular element, which it’s arranged in a grid with other elements.




Technical Details:

- Create a layout composer, allowing a view to organize its elements in 
different layouts easily and without arranging the elements “by hand”. 
Example: a view with the first 5 elements as a grid and the following 5 
as a horizontal line, without manual translation.


- Allow to compose layout not only for views but also for element, as 
the example described in the description.


- Create an expressive command for use it in Roassal and its 
corresponding equivalent for the Mondrian DSL



Benefits to the Student:

- Learn and understand Roassal, including its structure and design

- Understand Roassal and Mondrian expressive commands


Benefits to the Community:

The community will have a better way to create visualizations in 
Roassal. This will removing the need of unnecessary manual translation 
of elements, allowing to arrange visual elements in more complex 
distribution automatically.




-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-


Title: Improve the Roassal animation “engine”


Level:Beginner/Intermediate


Possible mentor:Vanessa Peña-Araya


Possible second mentor:Alexandre Bergel


Description:

Roassal allows to create animations with simple scripting. However to 
execute an animation after another, it is necessary to set a block 
containing the second animation to be executed once the first is 
finished. This means that for creating sequential animations a lot of 
work and scripting needs to be done.



This project will provide a better way to create and display animations.


Technical Details:

The student will:

- Create an animation composer, changing the need to define sequential 
animations by defining a block to be executed after an animation is 
finished.


- Allow to set the amount of time an animation needs to be finished, 
instead of only allowing the number of cycles to do it. This allows for 
an animation to be completed in the same amount of time, in all the 
different platforms (Pharo, VW, VA, Amber) works.


- Allow the possibility of stop an animation. If there is an animation 
sequence in which this one is included, start the following animation in 
the queue in a smooth manner.


- Create an expressive command for use it in Roassal and its 
corresponding equivalent for the Mondrian DSL



Benefits to the Student:

- Learn and understand Roassal, including its structure and design

- Learn about how animations are created in Roassal and other 
visualizations engines


- Understand Roassal and Mondrian expressive commands


Benefits to the Community:

The community will have a better animations engine included in Roassal.


-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-



Cheers and 

Re: [Pharo-project] Suggestion about Phexample and StateSpecs(Mocketry) integration

2013-03-28 Thread Denis Kudriashov
Ok. I can do this.
I think showing examples from project wiki page is enough. Plus demo of how
extend syntax sugar and how to use stubs.
What people really want to see about mock objects framework?


2013/3/27 Yuriy Tymchuk yuriy.tymc...@me.com

 If you can write step by step instruction what to show, I can do it. Right
 now all my time is used to prepare my own presentation, so I can't do it
 myself.

 uko



 On 27 бер. 2013, at 18:41, Denis Kudriashov dionisi...@gmail.com wrote:

 2013/3/27 Tudor Girba tu...@tudorgirba.com

 Perhaps Mocketry would be a good topic for a Show us your projects
 session. Then we can try to go into a couple of more details.


 Unfortunately I can't participate conference this year


 Cheers,
 Doru


 On Mar 27, 2013, at 12:42 AM, Yuriy Tymchuk yuriy.tymc...@me.com wrote:

  Sounds good to me.
 
  On 26 бер. 2013, at 23:00, Camillo Bruni camillobr...@gmail.com
 wrote:
 
 
  On 2013-03-26, at 19:45, Denis Kudriashov dionisi...@gmail.com
 wrote:
 
  2013/3/26 Yuriy Tymchuk yuriy.tymc...@me.com
 
  Ok, and what if we will change behavior a bit so if no definitions
 were
  found it will send the incoming message to enclosed object? This way
 it
  will work like phexample but will also allow to define some fancy
 DSL.
 
 
  We can copy all phexample syntax methods into single class inside
  StateSpecs package but replace implementation with pragmas approach.
 So
  anybody can browse implementors like usual and it will not required
 any
  special cases.
 
  How I can influence your interest, guys? I can provide cleaning,
 comments,
  improvements to StateSpecs. I opened for your requirements.
  Phexample become quite popular and can be part of Pharo sometimes.
  Mocketry/StateSpecs used by people too.
  It would be bad if this packages can't be used together.
 
  sorry for starting the whole rant :) I am veery busy at least until
 tomorrow
 
  Yuriy we can discuss that after tomorrow?
  I would as well appreciate some common solution to avoid the selector
 clash.
 
 
 
  On 26 бер. 2013, at 07:46, Denis Kudriashov dionisi...@gmail.com
 wrote:
 
  Hello
  2013/3/26 Camillo Bruni camillobr...@gmail.com
 
  Definitely StateSpec looks more mature and can be used in a more
 flexible
  way.
  But I am not a big fan of the pragma magic. Why?
  It breaks all tools for me :/. If I see a message send I want to be
 able
  to:
  - browse it, so I can see who implements it?
  - debug it directly to get to the real method.
 
  SateSpec does indeed help writing readable code by allowing almost
  grammatically
  correct sentences. However I don't think this is the way to
 program. I am
  a big
  fan of stupid english:
 
  `foo should isKindOf: Bar` vs. `foo should be an instance of: Bar`
 
  If I want to figure out how the first one works, I can simply
 browse the
  implementors of #should and/or #isKindOf: where is the StateSpec
 version
  I am
  lost. I have to rely on contains string literal to get the
 sources, for
  me
  that is very strange.
 
 
  I think main thing you want is easilly explore all available should
  syntax. And StateSpecs can be easilly adopted for such task. We can
 just
  move all methods with syntax pragmas to single class. So you can
 open this
  class and see what available.
 
  To get implementors of some should expression you should use
 senders
  search of syntax words instead of implementors. Syntax words in
 StateSpecs
  is just method literals ( syntax: #(be an instance of:), #() is
 just
  array of symbols).
 
  Interesting that StateSpecs has more explicit syntax system. How you
 can
  explore in Phexample expression:
 
  object should be true
  ?
 
  You have separate PheMatcherbe and PheMatchertrue methods and
 there is
  no places in code where you can see that this messages can and
 should be
  used together.
  But with StateSpecs you should put pragma with explicit expression
 like:
 
  Equaltrue: anObject
   syntax: #(be true)
   ^self return: (IdentitySpec pattern: true)
 
  So with StateSpecs you have full syntax expression at one place
 which can
  be easy explored.
  And for example to support Phexample mesage #beTrue you should just
 add
  another pragma:
 
  Equaltrue: anObject
   syntax: #(be true)
   syntax: #(beTrue)
   ^self return: (IdentitySpec pattern: true)
 
  So with Phexample you can browse implementors of single word should
  expressions. But with Phexample if you browse implementors of #be
 like
  messages you have no idea how it can be used.
  In StateSpecs you should use senders. And with StateSpecs if you
 browse
  any syntax word implementors by senders seach you will see all
 possible
  usage cases. And if I move all methods with syntax pragmas to single
 class
  you can easilly see all possible expressions in one place.
 
  `foo should isKindOf: Bar` vs. `foo should be an instance of: Bar`
 
 
  With StateSpecs it should be
 
  foo should be a kind of: Bar
 
  And as I said before It is simple task to support all Phexample
  

[Pharo-project] Request write access to PharoInbox

2013-03-28 Thread Nicolas Cellier
Hello,
can someone give me write access to PharoInbox?

Nicolas Cellier



Re: [Pharo-project] Versionner in pharo 2.0

2013-03-28 Thread Christophe Demarey

Le 28 mars 2013 à 14:13, Esteban Lorenzano a écrit :

 btw... why is there a ConfigurationOfVersionner in verified repo for 2.0 if 
 it is not working (and therefore, it is not verified)?


What do you mean by verified repo for 2.0 ?

smime.p7s
Description: S/MIME cryptographic signature


[Pharo-project] TxText progress and discussion

2013-03-28 Thread Denis Kudriashov
Hello.

I implement positioning text for new TxTextMorph. You can now see blinking
cursor, move it right, left, up and down, position it by mouse click.
I make new version 0.4 which restore jenkins builds
https://ci.inria.fr/rmod/job/TxText/, You can try TxTextMorph class side
example methods.

Details:

Cursor position at visual text presented by TxTextLayoutPosition.
TxTextLayoutPosition has state:

   - textLayout
   - span - TxLayoutSpan (introduced by Igor suggestion)
   - spanPosition - index inside TxLayoutSpan
   - desiredOffset - desired x offset from start of visual line. It can
   differ from actual (x,y) position
   - xyValue - actual (x,y) position inside visual text box.

TxTextLayoutPosition implements moveRight. moveLeft, moveUp and moveDown
methods. Desired offset allow moving up and down with remember of first
offset. Example:
123456
123
123456
Cursor moves from up to bottom. Position of cursor at each line will be
after red char.
It is common behaviour of text editors. But our current text morph not
works such way. And current text morph implements move up and move down in
terms of index from start line. So it is visually incorrect up or down
movement for no mono fonts. Try this to check it:
WW - 6 W-characters, move from 6-th W-char down and try same at pharo.
1234567890

TxLayoutSpan present part of text span which placed at some line and has
offset, extent and font. It was created by layout builder to fit text
layout restrictions. When text span wrapped by max line width restriction
It splitted for two or more LayoutSpan's. TxLayoutSpan has span interval
(TxInterval).

Igor was suggest removing explicit font attribute from text model and
replace it with small font parts like family name, bold, underlined and
others. He said it's should be responsibillity of view system to select
appropriate font by this attributes. I don't know is it good idea. But I
have some user cases where it is needed.
So TxLayoutSpan allows such design decision. That's why it has font
instance. TxLayoutSpan is created by layout builder which can select
appropriate font for underlying spans. Now it just extracts font from span
attributes like before.

There is TxCursorMorph which presents blinking cursor (basic morph stepping
logic). So visual text cursor is just submorph of TextMorph.
I not yet implement any communication level between TxTextLayout,
TxTextLayoutPosition and morphs. It is for future.
Now morphs implemented to show what already works.

I needs help with namings. All ideas are welcome.

For example we have too much different position names:
- TxPosition with vars linePosition, spanPosition - indexes
- TxTextLayoutPosition with vars spanPosition (index of char),
desiredOffset (x coordinate of offset inside line), xyValue
(x@ycoordinates inside text box)
- TxCharactersSpan methods: #isLastPosition: , #lastInsertPosition - indexes
- TxLayoutSpan methods: #charPositionAtOffset: (char index at offset).
#computeXYPositionAt:, #containsXPosition:, #endPosition (TxPosition).
I want easily understand what kind of position method means. In
TxLayoutSpan I try to distinct it by charPosition and xyPosition. I
dont sure it is nice.

And I don't like name of TxLayoutSpan. (too many spans).

Small tasks which I have in mind:
- more cursor movement actions
- make settings for shortcuts at TxTextMorph
- make cursor actions dynamically connected to shortcut settings. Each
cursor action (method) should automatically creates shortcut setting for it.

There is strange problem with TxTextMorph when it is transparent. Try
change  #drawOn: method to see it (remove rectangle filling).

Next I will implement events logic to update TxLayoutPosition when layout
changed. And text selection stuff.

Best regards,
Denis


Re: [Pharo-project] [Moose-dev] Project Show Tell - LEKtrek

2013-03-28 Thread Alexandre Bergel
Looks like to be an excellent piece of work. Do you have a website or 
something? We would like to advertise this.

Cheers,
Alexandre


On Mar 28, 2013, at 10:24 AM, Ben Coman b...@openinworld.com wrote:

 LEKtrek is a software development platform for electrical power 
 applications.  This is my masters project to provide the GUI for modeling 
 electrical power networks, into which researchers can plug calculations. 
 These video presentations are still a work in progress, but just in case you 
 needed some filler for the Show Us Your Project sessions at 
 PharoConf/MooseDay, please feel free to use any portion of the three videos 
 listed below.  These can be viewed using VLC.  Note that the 020 video was 
 the first I ever produced and suffers a little for quality until I can fix it 
 after writing up my dissertation.  Quality gets better in the later videos 
 010 and 030. 
 http://files.openinworld.com/LEKtrek/
 * LEKtrek 010 Introduction 2013-02-25.mp4 - 6min - background context for the 
 project
 * LEKtrek 020 Explorer User 2013-02-28.mp4 - 8min30 - a tool to explore the 
 IEC 61970 Common Information Model (of electrical power networks)
 * LEKtrek 030 Modeller User 2013-03-19.mp4 - 9min - a tool for modeling an 
 electrical power network, and executing calculations on that model.
 
 The project is based on top of Roassal, Glamour  Magritte 3. It will 
 released open-source, but I am still musing over the finer points of several 
 licenses, which waits on completion of my dissertation.
 
 Any and all feedback on contents and aesthetics are welcome.
 
 cheers -ben
 ___
 Moose-dev mailing list
 moose-...@iam.unibe.ch
 https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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






Re: [Pharo-project] Platform and portable versions for Pharo 2.0 too

2013-03-28 Thread Sean P. DeNigris
Marcus Denker-4 wrote
 Please let it like it is and we move *controlled* forward.

Okay I removed the links to the platform files from the download page for
now.



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Platform-and-portable-versions-for-Pharo-2-0-too-tp4678722p4678826.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Re: [Pharo-project] Request write access to PharoInbox

2013-03-28 Thread Frank Shearar
On 28 March 2013 20:41, Nicolas Cellier
nicolas.cellier.aka.n...@gmail.com wrote:
 Hello,
 can someone give me write access to PharoInbox?

Me too, please.

frank

 Nicolas Cellier



Re: [Pharo-project] [Moose-dev] Project Show Tell - LEKtrek

2013-03-28 Thread Ben Coman




Thanks.
A web site is planned, with discussion forum and issue tracker. I have
the domain already. Just waiting on completing everything that needs
to be submitted for marking.

Alexandre Bergel wrote:

  Looks like to be an excellent piece of work. Do you have a website or something? We would like to advertise this.

Cheers,
Alexandre


On Mar 28, 2013, at 10:24 AM, Ben Coman b...@openinworld.com wrote:

  
  
LEKtrek is "a software development platform for electrical power applications".  This is my masters project to provide the GUI for modeling electrical power networks, into which researchers can plug calculations. 
These video presentations are still a work in progress, but just in case you needed some filler for the Show Us Your Project sessions at PharoConf/MooseDay, please feel free to use any portion of the three videos listed below.  These can be viewed using VLC.  Note that the 020 video was the first I ever produced and suffers a little for quality until I can fix it after writing up my dissertation.  Quality gets better in the later videos 010 and 030. 
http://files.openinworld.com/LEKtrek/
* LEKtrek 010 Introduction 2013-02-25.mp4 - 6min - background context for the project
* LEKtrek 020 Explorer User 2013-02-28.mp4 - 8min30 - a tool to explore the IEC 61970 Common Information Model (of electrical power networks)
* LEKtrek 030 Modeller User 2013-03-19.mp4 - 9min - a tool for modeling an electrical power network, and executing calculations on that model.

The project is based on top of Roassal, Glamour  Magritte 3. It will released open-source, but I am still musing over the finer points of several licenses, which waits on completion of my dissertation.

Any and all feedback on contents and aesthetics are welcome.

cheers -ben
___
Moose-dev mailing list
moose-...@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev