Re: [Pharo-users] when iterating over a collection how to determine the current objects index

2015-03-13 Thread Marcus Denker

> On 13 Mar 2015, at 21:44, stepharo  wrote:
> 
> 
> 
> Le 10/3/15 14:40, Joachim Tuchel a écrit :
>> Marcus
>>  
>> So sorry for this false accusation. It is proprietary in Squeak.
>> And even if it was Dan's idea to rename it, I'd like to learn more about the 
>> reasoning.
>> My understanding would be:
>>  
>> #do: iterates over a collection
>> #doWithIndex: iterates over a collection and also keeps track of the current 
>> index.
>>  
>> Sounds very consistent to me. the most important thing I want the machine to 
>> do is iterate over the collection, and the index thing is just a variant 
>> thereof.
>>  
>> #do: iterates over a collection
>> #withIndexDo: keeps track of the index while iterating over a collection
>>   
>> Sounds clumsy to me. Introduces incompatibilities for not much value. If 
>> people complained about #do: as not intentioon revealing and opted to rename 
>> it to something like #withEachDo: , then I c
> +1 
> 

I think the reason was that there are withIndexCollect: , reverseWithIndexDo:, 

And of course the real thing we learn: if you do something, do it for real and 
finish. 

Now we have the problem: which version do we pick? We should pick one, rename 
the callers
and deprecate the other. In Pharo5. (#gather: is already on my list for that, 
too).

Marcus




Re: [Pharo-users] when iterating over a collection how to determine the current objects index

2015-03-13 Thread Sean P. DeNigris
NorbertHartl wrote
> anObject = aCollection last

Of course the above and #indexOf: will only work if there are no duplicates
in the collection and #indexOf: will require a lot of extra iterations. If
you need the indices associated to the objects, maybe you should wrap them
e.g. "indexedObjects := objects collectWithIndex: [ :e :i | IndexedObject
object: e index: i ]". Then you can cleanly access the indices whenever you
want.



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/when-iterating-over-a-collection-how-to-determine-the-current-objects-index-tp4810920p4811815.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



[Pharo-users] Group external method under custom tag

2015-03-13 Thread Laura Risani
Hi all,

I have a 'package1' that defines methods in other packages (in a method
group with its name). If while at a class browser i select 'package1' these
methods are shown but not if i select any of the package's tags. Is it
possible to show them under a custom package1's tag? (instead of defining
an additional package named 'package1-customTag')

Love,
Laura


Re: [Pharo-users] [ANN] RProjectConnector V1.0

2015-03-13 Thread Juan Pablo Sandoval Alcocer
Hi,

I was trying to use RProjectConnector in my Mac (1.9.1) and i have some
issues :(.

I have copied the dynamic libraries of R to /usr/lib directory (.i.e.
libR.dylib). But PharoVM does not find the libraries. For instance, this
line of code returns always nil.

  self nbGetSymbolAddress: 'Rf_initEmbeddedR' module: #R
  "copied from the project"

I also tried copying the libraries to folder
Pharo.app/Contents/MacOS/Plugins. or passing the library name as parameter
like:

  self nbGetSymbolAddress: 'Rf_initEmbeddedR' module: 'libR.dylib'
or

  self nbGetSymbolAddress: 'Rf_initEmbeddedR' module:
'/usr/lib/libR.dylib'

But i had not success. Could someone help me? I am doing something wrong?

Thanks,
Juampi






2014-12-08 11:10 GMT-03:00 Blondeau Vincent 
:

>  Hello everyone,
>
>
>
> I am glad to announce the first version of the RProjectConnector, a
> binding between Pharo and R using NativeBoost.
>
>
>
> You can now call directly your R methods from Pharo:
>
> data := (1 to: 1000) collect: #yourself.
>
> res := (#acf asRFunctionWith: {data}) eval
>
>
>
> To use it, you should copy the R libraries near the Pharo VM (see the
> documentation on SmalltalkHub to see how to proceed) and
>
> Gofer it
>
> smalltalkhubUser: 'VincentBlondeau' project: 'RProjectConnector';
>
> configuration;
>
> loadStable
>
> Don’t forget to relaunch Pharo after the installation to be able to use
> the connector.
>
>
>
> The sources are available on Smalltalkhub:
>
> http://smalltalkhub.com/#!/~VincentBlondeau/RProjectConnector
>
>
>
> if you want to participate, just ask me!
>
>
>
> Cheers,
>
>
>
> Vincent BLONDEAU
>
> --
>
> Ce message et les pièces jointes sont confidentiels et réservés à l'usage
> exclusif de ses destinataires. Il peut également être protégé par le secret
> professionnel. Si vous recevez ce message par erreur, merci d'en avertir
> immédiatement l'expéditeur et de le détruire. L'intégrité du message ne
> pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra
> être recherchée quant au contenu de ce message. Bien que les meilleurs
> efforts soient faits pour maintenir cette transmission exempte de tout
> virus, l'expéditeur ne donne aucune garantie à cet égard et sa
> responsabilité ne saurait être recherchée pour tout dommage résultant d'un
> virus transmis.
>
> This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive this
> e-mail in error, please notify the sender immediately and destroy it. As
> its integrity cannot be secured on the Internet, the Worldline liability
> cannot be triggered for the message content. Although the sender endeavours
> to maintain a computer virus-free network, the sender does not warrant that
> this transmission is virus-free and will not be liable for any damages
> resulting from any virus transmitted.
>



-- 
Saludos,
Juan Pablo


Re: [Pharo-users] Cleaning changes file?

2015-03-13 Thread Sven Van Caekenberghe

> On 13 Mar 2015, at 21:24, stepharo  wrote:
> 
> 
>>> I do not understand your stress. If we produce a condense change files what 
>>> is the problem.
>>> You are talking about the problem of having multiple .sources?
>> 
>> yes. we download always *all* sources files with the VM.
>> 
> 
> I do not get it. I only download once the source file and after only the vm.
> So do you mena that if we would generate several 4.0.1, 4.0.2 , 40.3 sources 
> it would be a mess?

When you download the VM, you get V1 V2 & V3 sources, only V3 is currently 
needed.




Re: [Pharo-users] Searching package for comment content

2015-03-13 Thread stepharo
you can even use a nautilus plugin that shows you the list of all the 
flag: method in a package.



Le 9/3/15 15:51, Marcus Denker a écrit :

On 09 Mar 2015, at 15:44, sergio_101  wrote:

Hi, all.

Does anyone have any ideas on this?

I would like to be able to do a quick text search in all classes and methods in 
a package for text.

for instance, when i see an opportunity for a refactor, i put a comment 
something like:

"TODO: break this method apart here"

and move on..

it would be great if i could quickly find all methods in my package that contain the text 
"TODO" in a comment somewhere.


You can just add

self flag: #TODO. “do this complex thing later…"

search for senders of TODO -> list of everything.

Or add the description as the argument to #flag:

self flag ‘TODO: break this method apart here’.



Marcus








Re: [Pharo-users] when iterating over a collection how to determine the current objects index

2015-03-13 Thread stepharo



Le 10/3/15 14:40, Joachim Tuchel a écrit :

Marcus
So sorry for this false accusation. It is proprietary in Squeak.
And even if it was Dan's idea to rename it, I'd like to learn more 
about the reasoning.

My understanding would be:
#do: iterates over a collection
#doWithIndex: iterates over a collection and also keeps track of the 
current index.
Sounds very consistent to me. the most important thing I want the 
machine to do is iterate over the collection, and the index thing is 
just a variant thereof.

#do: iterates over a collection
#withIndexDo: keeps track of the index while iterating over a collection

Sounds clumsy to me. Introduces incompatibilities for not much value. 
If people complained about #do: as not intentioon revealing and opted 
to rename it to something like #withEachDo: , then I c

+1


ould understand it. The variant could be #withEachDoIndexed:
But not that one ;-)
... but this is completely off-topic of course...
Joachim
Marcus Denker  hat am 10. März 2015 um 14:32 
geschrieben:



On 10 Mar 2015, at 14:25, Joachim Tuchel < jtuc...@objektfabrik.de 
> wrote:


Sounds like a bad naming to me. I don't see why withIndexDo is any 
better. It even contradicts the order of the arguments. And it is 
Proprietary to Pharo.

No, if you look a the timeStamp it was done in 1997 by Dan.


Joachim


Am 10.03.2015 um 13:39 schrieb Sanjay Minni < s...@planage.com 
>:


Yes usually I have to open the code and see, use intuition or write 
a sample code to find out
incidentally here I also have to figure out which is the current 
and which is the deprecated version ... well thats it

sanjay

---
Sanjay Minni
+91-9900-902902
http://in.linkedin.com/in/sanjayminni

On Tue, Mar 10, 2015 at 5:57 PM, Thierry Goubier [via Smalltalk] 
<[hidden email]> wrote:


And one has to guess that elementAndIndexBlock means
[:each :i | ... ] ? (and of course not [:i :each | ... ] )
I'm allways looking for senders with that type of code ;)
arguments to blocks are usually not documented.
Thierry

2015-03-10 13:27 GMT+01:00 Peter Uhnák <[hidden email]
>:

On Tue, Mar 10, 2015 at 1:23 PM, Joachim Tuchel <[hidden
email]
> wrote:

#doWithIndex: ? 


doWithIndex: elementAndIndexBlock
"Use the new version with consistent naming"
^ self withIndexDo: elementAndIndexBlock




If you reply to this email, your message will be added to the
discussion below:

http://forum.world.st/when-iterating-over-a-collection-how-to-determine-the-current-objects-index-tp4810920p4810931.html

To unsubscribe from when iterating over a collection how to
determine the current objects index, click here.
NAML




---
Regards, Sanjay


View this message in context: Re: when iterating over a collection 
how to determine the current objects index 
 

Sent from the Pharo Smalltalk Users mailing list archive 
 at 
Nabble.com .






Re: [Pharo-users] Cleaning changes file?

2015-03-13 Thread stepharo


I do not understand your stress. If we produce a condense change 
files what is the problem.

You are talking about the problem of having multiple .sources?


yes. we download always *all* sources files with the VM.



I do not get it. I only download once the source file and after only the vm.
So do you mena that if we would generate several 4.0.1, 4.0.2 , 40.3 
sources it would be a mess?




Re: [Pharo-users] Tide

2015-03-13 Thread stepharo

Am 13.03.2015 um 14:51 schrieb Esteban Lorenzano :

As one of the authors of Tide, I wouldn’t recommend to use it today… unless you 
are planning to maintain it too, because atm I do not have time to do it and 
Nico (the other/main author is not working on smalltalk anymore… nor amber or 
pharo).
Instead, I would use Seaside+Reef :P


Is Reef better maintained than Tide? :P


Yes and we should get a documentation.


Norbert


Esteban


On 12 Mar 2015, at 15:27, Norbert Hartl  wrote:

For an upcoming project I'm thinking about what technology to use. I think it 
will be seaside or amber+tide. For the latter I would like to have some 
experience reports.

Is anyone of you using tide and what is your experience with it?

thanks,

Norbert












Re: [Pharo-users] pillar source import

2015-03-13 Thread stepharo

Hi peter

I do not think that this is possible.
We should probably add support for it.

Stef


is it currently possible to import file contents into pillar?

For example I have a script stored in my-script.st 
 and I would like to do something like


[[[source=my-script.st 
]]]
or
{import 'my-another-pillar-file.pillar'}
or something like that.

I can overcome this with some bash preprocessing, but is there some 
syntax, or plan for it directly in Pillar?


Thanks,
Peter




[Pharo-users] pillar source import

2015-03-13 Thread Peter Uhnák
Hi,

is it currently possible to import file contents into pillar?

For example I have a script stored in my-script.st and I would like to do
something like

[[[source=my-script.st
]]]
or
{import 'my-another-pillar-file.pillar'}
or something like that.

I can overcome this with some bash preprocessing, but is there some syntax,
or plan for it directly in Pillar?

Thanks,
Peter


Re: [Pharo-users] pharo headless and without gui. Seaside app

2015-03-13 Thread Pablo R. Digonzelli
Esteban, i am trying to deploy a Seaside app in Windows. I want pharo running 
headless and i will want to implement it as Windows Service. 

But does not matter. Trying start pharo4 last image last vm ( 
https://ci.inria.fr/pharo/) in headless . 

pharo -vm-display-null -vm-sound-null imagefile.image --no-quit. It does not 
work. Abort 

pharo -vm-sound-null imagefile .image --no-quit. I works but with gui. 

I hope it will help you to understand the situation. 



Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
San Miguel de Tucumán 
Email: pdigonze...@softsargentina.com 
pdigonze...@gmail.com 
Cel: 5493815982714 


De: "Esteban Lorenzano"  
Para: "Any question about pharo is welcome"  
Enviados: Viernes, 13 de Marzo 2015 14:00:52 
Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app 

squeak vm info is for squeak vm, not for pharo vm (which has some differences… 
for example). 

I will ask you again to give us more information about your command line, what 
you are trying to do, etc. 

otherwise you will stay flipping around, because people will answer in general… 
not very useful for you. 

Esteban 




On 13 Mar 2015, at 16:21, Pablo R. Digonzelli < pdigonze...@gmail.com > wrote: 

I understand , wher can i get Andrea's command line info? 
TIA 

Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
San Miguel de Tucumán 
Email: pdigonze...@softsargentina.com 
pdigonze...@gmail.com 
Cel: 5493815982714 

- Mensaje original - 
De: "David T. Lewis" < le...@mail.msen.com > 
Para: "Any question about pharo is welcome" < pharo-users@lists.pharo.org > 
Enviados: Jueves, 12 de Marzo 2015 20:54:20 
Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app 

On Thu, Mar 12, 2015 at 06:23:28PM -0300, Pablo R. Digonzelli wrote: 

BQ_BEGIN
I think phil is right. -vm-display-null is the question . it aborts the 
process. 
Does not matter wich vm and image are you using. 
For example i am trying pharo4 latest image latest vm. 



The -vm-display-null parameter is specific to Ian Piumarta's unix VM. It is 
part of the loadable VM module system that he made for sound and displays. 
You will find this in the various VMs that run on top of Ian platform code. 
The Windows VMs originate from Andreas Raab's code base, which has different 
VM command line parameters. 

For common things like starting a headless VM, it would be a good idea to 
make the command line parameters consistent across VMs. Maybe that could be 
done most easily in the start scripts, as opposed to the VM executables. 

Dave 



BQ_BEGIN


TIA 


Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
San Miguel de Tucum??n 
Email: pdigonze...@softsargentina.com 
pdigonze...@gmail.com 
Cel: 5493815982714 


De: "Esteban Lorenzano" < esteba...@gmail.com > 
Para: "Any question about pharo is welcome" < pharo-users@lists.pharo.org > 
Enviados: Jueves, 12 de Marzo 2015 17:42:55 
Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app 





On 12 Mar 2015, at 21:23, p...@highoctane.be wrote: 



Headless on windows is not working I think. 



that???s not related, ???no-quit should be working (and ???headless should be 
letting a window in the try). 

can you provide more information? 

vm version? 
image version? 
anything relevant? 

just asking without information is like going to the doctor and just say ???it 
hurts me?? not much we can do to help. 

Esteban 


BQ_BEGIN 



There is code in the VM but it looks more dead than alive. There is a console 
version of Squeak and we may want to revive that. There us even code for a 
Windows service in there... 

Phil 
Le 12 mars 2015 20:41, "Pablo R. Digonzelli" < pdigonze...@gmail.com > a ??crit 
: 

BQ_BEGIN 

Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit 
does not work . 
Any suggestion? 


TIA 


Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
San Miguel de Tucum??n 
Email: pdigonze...@softsargentina.com 
pdigonze...@gmail.com 
Cel: 5493815982714 


De: "Pablo Digonzelli" < pdigonze...@gmail.com > 
Para: "Any question about pharo is welcome" < pharo-users@lists.pharo.org > 
Enviados: Jueves, 12 de Marzo 2015 16:20:08 
Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app 

Hi, i solve the problem! 

./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm 
--encoding utf8 imagefile.image --no-quit 

works very well 

TIA 


Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
San Miguel de Tucum??n 
Email: pdigonze...@softsargentina.com 
pdigonze...@gmail.com 
Cel: 5493815982714 


De: "pablo digonzelli" < pdigonze...@softsargentina.dyndns.biz > 
Para: "Any question about pharo is welcome" < pharo-users@lists.pharo.org > 
Enviados: Jueves, 12 de Marzo 2015 15:47:49 
Asunto: pharo headless and witho

Re: [Pharo-users] pharo headless and without gui. Seaside app

2015-03-13 Thread Esteban Lorenzano
squeak vm info is for squeak vm, not for pharo vm (which has some differences… 
for example).

I will ask you again to give us more information about your command line, what 
you are trying to do, etc. 

otherwise you will stay flipping around, because people will answer in general… 
not very useful for you.

Esteban

> On 13 Mar 2015, at 16:21, Pablo R. Digonzelli  wrote:
> 
> I understand , wher can i get Andrea's command line info?
> TIA
> 
> Ing. Pablo Digonzelli 
> Software Solutions 
> IP-Solutiones SRL 
> Metrotec SRL 
> 25 de Mayo 521 
> San Miguel de Tucumán 
> Email: pdigonze...@softsargentina.com  
> pdigonze...@gmail.com  
> Cel: 5493815982714
> 
> - Mensaje original -
> De: "David T. Lewis" mailto:le...@mail.msen.com>>
> Para: "Any question about pharo is welcome"  >
> Enviados: Jueves, 12 de Marzo 2015 20:54:20
> Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app
> 
> On Thu, Mar 12, 2015 at 06:23:28PM -0300, Pablo R. Digonzelli wrote:
>> I think phil is right. -vm-display-null is the question . it aborts the 
>> process. 
>> Does not matter wich vm and image are you using. 
>> For example i am trying pharo4 latest image latest vm. 
> 
> The -vm-display-null parameter is specific to Ian Piumarta's unix VM. It is
> part of the loadable VM module system that he made for sound and displays.
> You will find this in the various VMs that run on top of Ian platform code.
> The Windows VMs originate from Andreas Raab's code base, which has different
> VM command line parameters.
> 
> For common things like starting a headless VM, it would be a good idea to
> make the command line parameters consistent across VMs. Maybe that could be
> done most easily in the start scripts, as opposed to the VM executables.
> 
> Dave
> 
> 
>> 
>> 
>> TIA 
>> 
>> 
>> Ing. Pablo Digonzelli 
>> Software Solutions 
>> IP-Solutiones SRL 
>> Metrotec SRL 
>> 25 de Mayo 521 
>> San Miguel de Tucum??n 
>> Email: pdigonze...@softsargentina.com 
>>  
>> pdigonze...@gmail.com  
>> Cel: 5493815982714 
>> 
>> 
>> De: "Esteban Lorenzano" mailto:esteba...@gmail.com>> 
>> Para: "Any question about pharo is welcome" > > 
>> Enviados: Jueves, 12 de Marzo 2015 17:42:55 
>> Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app 
>> 
>> 
>> 
>> 
>> 
>> On 12 Mar 2015, at 21:23, p...@highoctane.be wrote: 
>> 
>> 
>> 
>> Headless on windows is not working I think. 
>> 
>> 
>> 
>> that???s not related, ???no-quit should be working (and ???headless should 
>> be letting a window in the try). 
>> 
>> can you provide more information? 
>> 
>> vm version? 
>> image version? 
>> anything relevant? 
>> 
>> just asking without information is like going to the doctor and just say 
>> ???it hurts me?? not much we can do to help. 
>> 
>> Esteban 
>> 
>> 
>> BQ_BEGIN
>> 
>> 
>> 
>> There is code in the VM but it looks more dead than alive. There is a 
>> console version of Squeak and we may want to revive that. There us even code 
>> for a Windows service in there... 
>> 
>> Phil 
>> Le 12 mars 2015 20:41, "Pablo R. Digonzelli" < pdigonze...@gmail.com 
>>  > a ??crit : 
>> 
>> BQ_BEGIN
>> 
>> Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit 
>> does not work . 
>> Any suggestion? 
>> 
>> 
>> TIA 
>> 
>> 
>> Ing. Pablo Digonzelli 
>> Software Solutions 
>> IP-Solutiones SRL 
>> Metrotec SRL 
>> 25 de Mayo 521 
>> San Miguel de Tucum??n 
>> Email: pdigonze...@softsargentina.com 
>>  
>> pdigonze...@gmail.com  
>> Cel: 5493815982714 
>> 
>> 
>> De: "Pablo Digonzelli" < pdigonze...@gmail.com 
>>  > 
>> Para: "Any question about pharo is welcome" < pharo-users@lists.pharo.org 
>>  > 
>> Enviados: Jueves, 12 de Marzo 2015 16:20:08 
>> Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app 
>> 
>> Hi, i solve the problem! 
>> 
>> ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm 
>> --encoding utf8 imagefile.image --no-quit 
>> 
>> works very well 
>> 
>> TIA 
>> 
>> 
>> Ing. Pablo Digonzelli 
>> Software Solutions 
>> IP-Solutiones SRL 
>> Metrotec SRL 
>> 25 de Mayo 521 
>> San Miguel de Tucum??n 
>> Email: pdigonze...@softsargentina.com 
>>  
>> pdigonze...@gmail.com  
>> Cel: 5493815982714 
>> 
>> 
>> De: "pablo digonzelli" < pdigonze...@softsargentina.dyndns.biz 
>>  > 
>> Para: "Any question about pharo is welcome" < pharo-users@lists.pharo.org 
>>  > 
>> Enviados: Jueves, 12 de Marzo 2015 15:47:49 
>> Asunto: pharo headless and wi

Re: [Pharo-users] [OT] DB Open Data-Train Challenge in Germany

2015-03-13 Thread Alexandre Bergel
We can help!

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



> On Mar 13, 2015, at 7:49 AM, Torsten Bergmann  wrote:
> 
> Similar to the Dataton in Paris 
> (http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/2015-March/017444.html)
> with data from Africa to visualize possible with Roassal there is in germany 
> next friday (20.3.2015) a day in 
> Frankfurt organized by german railway, also with open data (timetables, train 
> data, ...):
> 
> https://www.eventbrite.com/e/db-open-data-train-challenge-tickets-16026244930
> 
> So if one might be interested to visit the event.
> 
> 
> BTW: German railway is using Smalltalk applications a lot to do all their
> timetable planning and train simulations (see 
> http://www.uic.org/html/it/e-business_2005/docs/woelfle.pdf
> for some screenshots)
> 
> Maybe this is a good chance to demo Pharo or use Roassal to visualize data.
> 
> 
> 



[Pharo-users] configuration browser descriptions

2015-03-13 Thread Torsten Bergmann
Sebastian wrote:
>One should discuss if it might be useful and easy to implement to have a 
>configuration browser 
>that includes descriptions for the offered configurations.

I guess I'm knowledgable enough to answer this:

a) it is useful

b) if it is easy depends on where you get the description info from

c) Do not dicusss, stop lamenting and help coding  :)
   
When I wrote the config browser there was no central way to find out which 
packages/configs are
working for which Pharo version. The easiest thing that could possibly work was 
to create 
a MetaRepoForPharoXXX repo for each version XXX of Pharo and copy the working 
configs 
into it. 

The tool just queries the list of available file names and displays them. 
For the initial step this was enough and still good enough that the tool opens 
quick enough.

If you would LOAD ALL the configs in such a meta repo BEFORE OPENING into the
Pharo image to extract more informations (like descriptions or dependencies) 
the config browser would be unusable due to bad performance of such operations.

This could be solved by caching, but so far there was no time.

Additionally as it makes sense to store such descriptions with the config Stef 
implemented
Catalog. Some ConfigurationOfYYY classes have such meta data for Catalog and 
the 
project currently produces an HTML report:

   https://ci.inria.fr/pharo-contribution/job/PharoProjectCatalog/HTML_Report/

One must know about this. Not ideal - but a step forward to at least make it
visible somehow. 

Several options:

1. Implement a solution to load all the config in the meta repo into the image,
   extract the data the first time and write this info to a cache. Update the
   cache on request. It MUST be cached, otherwise it will burn CPU cycles.

   Although this cache can be shared between Pharo image with the same version
   I think this is not ideal.

2. Using Stefs "Catalog" project one could (beside the HTML report) provide 
   something that is easy to parse from the tool so we can load the contents 
   of the displayed list from the web quickly When the CI runs often it 
   should be up to date always - but we must make sure such a job is never 
broken.
 
   Would be a better option - but also needs someone to do that.

3. In the long term:
   Implement a better online mechanism to register Pharo related stuff. Some 
kind of
   PharoStore where you can register and share Packages but also other things 
like 
   tutorials, articles, video, wallpapers, ...

   Then the client can query for this info (maybe using Spotter) and just load.

Feel free to shape/code on improving this.

There is something in the pipe for 3. from my side already, but only slowly 
progressing
maybe too much work for one person. If you want to help and know Pharo and 
Seaside 
very well then contact me offline.




Re: [Pharo-users] pharo headless and without gui. Seaside app

2015-03-13 Thread Pablo R. Digonzelli
I understand , wher can i get Andrea's command line info?
TIA

Ing. Pablo Digonzelli 
Software Solutions 
IP-Solutiones SRL 
Metrotec SRL 
25 de Mayo 521 
San Miguel de Tucumán 
Email: pdigonze...@softsargentina.com 
pdigonze...@gmail.com 
Cel: 5493815982714

- Mensaje original -
De: "David T. Lewis" 
Para: "Any question about pharo is welcome" 
Enviados: Jueves, 12 de Marzo 2015 20:54:20
Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app

On Thu, Mar 12, 2015 at 06:23:28PM -0300, Pablo R. Digonzelli wrote:
> I think phil is right. -vm-display-null is the question . it aborts the 
> process. 
> Does not matter wich vm and image are you using. 
> For example i am trying pharo4 latest image latest vm. 

The -vm-display-null parameter is specific to Ian Piumarta's unix VM. It is
part of the loadable VM module system that he made for sound and displays.
You will find this in the various VMs that run on top of Ian platform code.
The Windows VMs originate from Andreas Raab's code base, which has different
VM command line parameters.

For common things like starting a headless VM, it would be a good idea to
make the command line parameters consistent across VMs. Maybe that could be
done most easily in the start scripts, as opposed to the VM executables.

Dave


> 
> 
> TIA 
> 
> 
> Ing. Pablo Digonzelli 
> Software Solutions 
> IP-Solutiones SRL 
> Metrotec SRL 
> 25 de Mayo 521 
> San Miguel de Tucum??n 
> Email: pdigonze...@softsargentina.com 
> pdigonze...@gmail.com 
> Cel: 5493815982714 
> 
> 
> De: "Esteban Lorenzano"  
> Para: "Any question about pharo is welcome"  
> Enviados: Jueves, 12 de Marzo 2015 17:42:55 
> Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app 
> 
> 
> 
> 
> 
> On 12 Mar 2015, at 21:23, p...@highoctane.be wrote: 
> 
> 
> 
> Headless on windows is not working I think. 
> 
> 
> 
> that???s not related, ???no-quit should be working (and ???headless should be 
> letting a window in the try). 
> 
> can you provide more information? 
> 
> vm version? 
> image version? 
> anything relevant? 
> 
> just asking without information is like going to the doctor and just say 
> ???it hurts me?? not much we can do to help. 
> 
> Esteban 
> 
> 
> BQ_BEGIN
> 
> 
> 
> There is code in the VM but it looks more dead than alive. There is a console 
> version of Squeak and we may want to revive that. There us even code for a 
> Windows service in there... 
> 
> Phil 
> Le 12 mars 2015 20:41, "Pablo R. Digonzelli" < pdigonze...@gmail.com > a 
> ??crit : 
> 
> BQ_BEGIN
> 
> Hi again, i cannot do it work for a windows 2012 server. it seems --no-quit 
> does not work . 
> Any suggestion? 
> 
> 
> TIA 
> 
> 
> Ing. Pablo Digonzelli 
> Software Solutions 
> IP-Solutiones SRL 
> Metrotec SRL 
> 25 de Mayo 521 
> San Miguel de Tucum??n 
> Email: pdigonze...@softsargentina.com 
> pdigonze...@gmail.com 
> Cel: 5493815982714 
> 
> 
> De: "Pablo Digonzelli" < pdigonze...@gmail.com > 
> Para: "Any question about pharo is welcome" < pharo-users@lists.pharo.org > 
> Enviados: Jueves, 12 de Marzo 2015 16:20:08 
> Asunto: Re: [Pharo-users] pharo headless and without gui. Seaside app 
> 
> Hi, i solve the problem! 
> 
> ./pharo-vm/pharo -vm-display-null -vm-sound-null --plugins ./pharo-vm 
> --encoding utf8 imagefile.image --no-quit 
> 
> works very well 
> 
> TIA 
> 
> 
> Ing. Pablo Digonzelli 
> Software Solutions 
> IP-Solutiones SRL 
> Metrotec SRL 
> 25 de Mayo 521 
> San Miguel de Tucum??n 
> Email: pdigonze...@softsargentina.com 
> pdigonze...@gmail.com 
> Cel: 5493815982714 
> 
> 
> De: "pablo digonzelli" < pdigonze...@softsargentina.dyndns.biz > 
> Para: "Any question about pharo is welcome" < pharo-users@lists.pharo.org > 
> Enviados: Jueves, 12 de Marzo 2015 15:47:49 
> Asunto: pharo headless and without gui. Seaside app 
> 
> I need to run pharo headless and without gui for a Seaside app i am working 
> on. 
> I user pharo -vm-display-null --headless imagefile and does not work. 
> May be someone can help me. 
> TIA 
> 
> 
> Ing. Pablo Digonzelli 
> Software Solutions 
> IP-Solutiones SRL 
> Metrotec SRL 
> 25 de Mayo 521 
> San Miguel de Tucum??n 
> Email: pdigonze...@softsargentina.com 
> pdigonze...@gmail.com 
> Cel: 5493815982714 
> 
> 
> BQ_END
> 
> 
> BQ_END
> 
> 
>



Re: [Pharo-users] Datathon for development in Paris

2015-03-13 Thread Serge Stinckwich
On Thu, Mar 12, 2015 at 1:43 PM, Bernat Romagosa
 wrote:
> Hi Serge,
>
> Do you know if these data will stay open and public after the event? At the
> Citilab we're working a lot with open data and we're constantly looking for
> new sources. I don't think we'll be able to come to Paris though...

I dunno.
Actually there will be a meetup March 24th in order to have more
information about the data.

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



Re: [Pharo-users] Tide

2015-03-13 Thread Norbert Hartl

> Am 13.03.2015 um 15:13 schrieb Tommaso Dal Sasso :
> 
> As one of the few (maybe the only user) of Tide, I can say that it is 
> powerful but painful ;-)
> Amber is changing (quite) fast, and the current version of Tide is not usable 
> with the default version. I made some small changes to make Tide work with 
> the current setup of Amber, but still there are a couple of "gotchas" that 
> are needed to make it work.
> 
> I wanted to write something about that, but I am still in deep development 
> phase. If you are really interested, I may help you setup an example project.
> However, as Esteban said, think twice if this is what you need. Tide is quite 
> powerful, but unless you don't need strong integration with javascript 
> libraries Seaside is probably easier.
> 
Thanks. That's something I (don't) wanted to hear. :) Maybe it is because there 
aren't that much amber users and there are (of course) even less users of 
amber+tide. I personally loved the idea when first encountering tide. But I 
know as well there are gotchas. 

thanks,

Norbert

> Tommaso
> 
> 
> On 13/03/15 14:51, Esteban Lorenzano wrote:
>> As one of the authors of Tide, I wouldn’t recommend to use it today… unless 
>> you are planning to maintain it too, because atm I do not have time to do it 
>> and Nico (the other/main author is not working on smalltalk anymore… nor 
>> amber or pharo).
>> Instead, I would use Seaside+Reef :P
>> 
>> Esteban
>> 
>>> On 12 Mar 2015, at 15:27, Norbert Hartl  wrote:
>>> 
>>> For an upcoming project I'm thinking about what technology to use. I think 
>>> it will be seaside or amber+tide. For the latter I would like to have some 
>>> experience reports.
>>> 
>>> Is anyone of you using tide and what is your experience with it?
>>> 
>>> thanks,
>>> 
>>> Norbert
>>> 
>>> 
>> 
> 
> 




Re: [Pharo-users] Tide

2015-03-13 Thread Norbert Hartl

> Am 13.03.2015 um 14:51 schrieb Esteban Lorenzano :
> 
> As one of the authors of Tide, I wouldn’t recommend to use it today… unless 
> you are planning to maintain it too, because atm I do not have time to do it 
> and Nico (the other/main author is not working on smalltalk anymore… nor 
> amber or pharo). 
> Instead, I would use Seaside+Reef :P
> 
Is Reef better maintained than Tide? :P

Norbert

> Esteban
> 
>> On 12 Mar 2015, at 15:27, Norbert Hartl  wrote:
>> 
>> For an upcoming project I'm thinking about what technology to use. I think 
>> it will be seaside or amber+tide. For the latter I would like to have some 
>> experience reports. 
>> 
>> Is anyone of you using tide and what is your experience with it?
>> 
>> thanks,
>> 
>> Norbert
>> 
>> 
> 
> 




Re: [Pharo-users] Tide

2015-03-13 Thread Tommaso Dal Sasso
As one of the few (maybe the only user) of Tide, I can say that it is 
powerful but painful ;-)
Amber is changing (quite) fast, and the current version of Tide is not 
usable with the default version. I made some small changes to make Tide 
work with the current setup of Amber, but still there are a couple of 
"gotchas" that are needed to make it work.


I wanted to write something about that, but I am still in deep 
development phase. If you are really interested, I may help you setup an 
example project.
However, as Esteban said, think twice if this is what you need. Tide is 
quite powerful, but unless you don't need strong integration with 
javascript libraries Seaside is probably easier.


Tommaso


On 13/03/15 14:51, Esteban Lorenzano wrote:

As one of the authors of Tide, I wouldn’t recommend to use it today… unless you 
are planning to maintain it too, because atm I do not have time to do it and 
Nico (the other/main author is not working on smalltalk anymore… nor amber or 
pharo).
Instead, I would use Seaside+Reef :P

Esteban


On 12 Mar 2015, at 15:27, Norbert Hartl  wrote:

For an upcoming project I'm thinking about what technology to use. I think it 
will be seaside or amber+tide. For the latter I would like to have some 
experience reports.

Is anyone of you using tide and what is your experience with it?

thanks,

Norbert









Re: [Pharo-users] configuration browser descriptions

2015-03-13 Thread Johan Fabry

+1

> On Mar 13, 2015, at 01:25, Sebastian Heidbrink  wrote:
> 
> Hi!
> 
> Here is another information based on my last beginners session.
> 
> One should discuss if it might be useful and easy to implement to have a 
> configuration browser that includes descriptions for the offered 
> configurations.
> Beginners have no idea what Seaside,  AltBrowser, Artefact,... stand for.
> 
> Cheers!
> Sebastian
> 
> 



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

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




Re: [Pharo-users] Tide

2015-03-13 Thread Esteban Lorenzano
As one of the authors of Tide, I wouldn’t recommend to use it today… unless you 
are planning to maintain it too, because atm I do not have time to do it and 
Nico (the other/main author is not working on smalltalk anymore… nor amber or 
pharo). 
Instead, I would use Seaside+Reef :P

Esteban

> On 12 Mar 2015, at 15:27, Norbert Hartl  wrote:
> 
> For an upcoming project I'm thinking about what technology to use. I think it 
> will be seaside or amber+tide. For the latter I would like to have some 
> experience reports. 
> 
> Is anyone of you using tide and what is your experience with it?
> 
> thanks,
> 
> Norbert
> 
> 




Re: [Pharo-users] Question about NeoJSON

2015-03-13 Thread Mariano Martinez Peck
On Thu, Mar 12, 2015 at 6:19 PM, Esteban A. Maringolo 
wrote:

> 2015-03-12 17:22 GMT-03:00 Mariano Martinez Peck :
> > On Thu, Mar 12, 2015 at 5:16 PM, Esteban A. Maringolo <
> emaring...@gmail.com>
> > wrote:
>
> >> Assuming you store the original JSON string as a String object in an
> >> instance variable named "json" you could map it as any other string.
>
> > But how do I get the JSON string associated to the TestObject instance?
> In
> > other words...
>
> Why doesn't this work?
>
> mapper for: TestObject do: [ :mapping |
>  "..."
> (mapping mapInstVar: #jsonOriginalString)
> ].
>
>
Because that would do nothing..that would let jsonOriginalString in nil.



> That would make sense if the jsonOriginalString is an immutable object
> (from the application standpoint) that you keep in order to preserve
> some sort of logging of how/where the object was created.
>
>

Yes, exactly. This is one of the reasons.

Cheers,

-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-users] Question about NeoJSON

2015-03-13 Thread Mariano Martinez Peck
On Thu, Mar 12, 2015 at 6:09 PM, Sven Van Caekenberghe  wrote:

> I don't really understand why you want to keep the original JSON. It is a
> bit like you don't trust the parsing and/or mapping. Now, the mapping I
> understand (somewhat).
>
>
Yes, there are a few domain-specific reasons, but let me outline a few:

1) Imagine that from this JSON I have a list of objects that I build.
Imagine for a minute these are "InvestmentTransactions". The way I build
these objects from JSON could be quite complex. And can even have different
kind of JSONs that I receive to build same type of objects. So
sometimes..it is very handy to have the original JSON string to see why an
object was built that way, why it has certain state, etc.

2) The app user could later MODIFY the created instances of
InvestmentTransactions. However, it is nice to see which was the original
values in case of the transactions that were imported via JSON.

3) These JSON I receive may have some query / API limits (queries per
second etc). And I may need to replicate this to multiple other apps of
mine. If all my apps were all calling the API I may likely reach limits. So
one possibility was to implement our own REST / JSON server for our local
apps. In that case, having the original JSON would allow me a "repeater
server" very easily. BTW...note that having a cache in each server does not
solve the ratio limit problem.

4) Imagine that so far the InvestmentTransction object have 20 instVars but
the JSON element of a transaction brings 50 fields. I don't want to right
now store everything...just the 20 instVars I need. In addition, the server
that sends the JSON may send you only a time-window..say..the transactions
of the last month. So..maybe.. in the future, my app has more features and
then suddenly I need other properties I was not yet mapping. But the server
only sends me the last month. Therefore, if I store the whole response
string, I can have access to all data even later.

Ok..these were a few reasons. Not all scenarios are like that, and maybe
storing the original string is not the best solution either. I am just
explaining why I find useful to store it.


> So I would parse once without mapping, which would give you pure Arrays
> and Dictionaries that you are guaranteed can be used to reproduce the full
> original input. Pick the second level in that structure and use it.
>
>
Indeed, that was what I was thinking too. Thanks for the alternative.


> > On 12 Mar 2015, at 21:47, Mariano Martinez Peck 
> wrote:
> >
> >
> >
> > On Thu, Mar 12, 2015 at 5:32 PM, Sven Van Caekenberghe 
> wrote:
> > Mariano,
> >
> > I assume you what this while reading JSON. That won't be possible.
> NeoJSON is designed as an efficient stream parser, working as it goes. So
> it never knows the whole JSON expression.
> >
> > U I imagined that :(
> >
> >
> > I would do it manually, but that can only be done at the top level.
> >
> > Well...my list of TestObject is not at the root, but second level.
> > But in any case... how would you do that?
> >
> > Thanks!
> >
> >
> > Sven
> >
> > > On 12 Mar 2015, at 21:22, Mariano Martinez Peck 
> wrote:
> > >
> > >
> > >
> > > On Thu, Mar 12, 2015 at 5:16 PM, Esteban A. Maringolo <
> emaring...@gmail.com> wrote:
> > > Assuming you store the original JSON string as a String object in an
> > > instance variable named "json" you could map it as any other string.
> > >
> > >
> > > But how do I get the JSON string associated to the TestObject
> instance?  In other words...
> > >
> > > mapper for: TestObject do: [ :mapping |
> > >
> > > "HERE how do I get the JSON string of TestObject in order to map it to
> 'jsonOriginalString'  ?  "
> > >
> > > ]
> > >
> > >
> > > Or are you planning to store it as JSON object itself?
> > >
> > > no, a string is OK.
> > >
> > > Thanks in advance,
> > >
> > >
> > >
> > > Esteban A. Maringolo
> > >
> > >
> > > 2015-03-12 16:50 GMT-03:00 Mariano Martinez Peck <
> marianop...@gmail.com>:
> > > > Hi,
> > > >
> > > > In this link:
> > > > https://github.com/svenvc/docs/blob/master/neo/neo-json-paper.md
> > > >
> > > > I see an example of a custom mapping like this one:
> > > >
> > > > mapper for: TestObject do: [ :mapping |
> > > > mapping mapInstVars: #(id name).
> > > > (mapping mapInstVar: #timestamp to: 'created-at') valueSchema:
> > > > DateAndTime.
> > > > (mapping mapInstVar: #points) valueSchema: #ArrayOfPoints.
> > > > (mapping mapInstVar: #bytes) valueSchema: ByteArray ].
> > > >
> > > >
> > > > I need something similar, but I need to store the original JSON
> string that
> > > > was used to build a particular TestObject instance, in an instance
> variable
> > > > of TestObject too. In other words, I need an instVar
> "originalResponse" in
> > > > TestObject that would be set with the original JSON string.
> > > >
> > > > Any ideas how can I implement this?
> > > >
> > > > Thanks in advance,
> > > >
> > > > --
> > > > Mariano
> > > > http://marianopeck.wordpress.com

Re: [Pharo-users] When to use a stream for concatenating text..

2015-03-13 Thread Sven Van Caekenberghe
The breaking point seems to be around 5 concatenations:

str:= Character alphabet.
[ str, str, str, str, str ] bench. 

  "'1,020,043 per second'"

[ String new: str size * 5 streamContents: [ :out | 5 timesRepeat: [ out 
nextPutAll: str ] ] ] bench.

  "'949,738 per second'"

> On 13 Mar 2015, at 08:52, Marcus Denker  wrote:
> 
>> 
>> On 13 Mar 2015, at 08:41, stepharo  wrote:
>> 
>> use
>> 
>> String streamContents: [:s |
>>   s nextPutAll: 'jlklkjkl' ]
>> 
>> 
>> or
>> 
>> String streamContents: [:s |
>>   s << 'jlklkjkl' ]
>> 
>> 
>> it is a great method for manipulating
>> 
>> Le 10/3/15 19:09, sergio_101 a écrit :
>>> 
>>> it seems that in more cases than not, i find that developers use a stream 
>>> when concatenating some text strings.
>>> 
>>> I am wondering if this is a smalltalk thing, or is there a real speed 
>>> benefit when using streams in this way.
>>> 
> 
> When adding to a string, you create a new one with the right size and copy 
> over the old content.
> 
> Using a stream avoids that. But there is a cost for handling the stream, too:
> 
> [String streamContents: [:s |
>   s nextPutAll: 'jlklkjkl';
>nextPutAll: 'jlklkjkl' ]] bench. "'1,866,774 per second'"
> 
> 
> ['jlklkjkl' ,  'jlklkjkl'] bench "'5,433,931 per second’"
> 
> 
> So it is only faster e.g. when adding to a string in a loop or on larger 
> strings.
> But it reads quite nice, too, so I tend to use it without thinking about 
> performance.
> 
>   Marcus




[Pharo-users] [OT] DB Open Data-Train Challenge in Germany

2015-03-13 Thread Torsten Bergmann
Similar to the Dataton in Paris 
(http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/2015-March/017444.html)
with data from Africa to visualize possible with Roassal there is in germany 
next friday (20.3.2015) a day in 
Frankfurt organized by german railway, also with open data (timetables, train 
data, ...):

 https://www.eventbrite.com/e/db-open-data-train-challenge-tickets-16026244930

So if one might be interested to visit the event.


BTW: German railway is using Smalltalk applications a lot to do all their
 timetable planning and train simulations (see 
http://www.uic.org/html/it/e-business_2005/docs/woelfle.pdf
 for some screenshots)

Maybe this is a good chance to demo Pharo or use Roassal to visualize data.





Re: [Pharo-users] Cleaning changes file?

2015-03-13 Thread Marcus Denker

> On 13 Mar 2015, at 09:18, stepharo  wrote:
> 
> 
> 
> You can do that using the expression:
> 
> PharoChangesCondenser condense
> 
> Although that also means you lose the version history of methods inside 
> your image. This is typically not done a lot, maybe for production 
> deploy, maybe for release of Pharo itself.
> 
> 
 Yes, but we need to change that. The artefact on the CI server needs to be 
 the artefact of release. We should not have *anything* of the kind “and a 
 day before release we call X”.
 Because for sure it will be broken. And we waste resources: the changes 
 are the history of the revision control system.
>>> 
>>> OK so a silly and not-so-innocent question: Why not include that in the 
>>> build script *right now* ? It has to be done some time, and now the 
>>> discussion is open why not make use of the opportunity?
>>> 
>>> Also, my use of the changes file is uniquely to recover in case of a crash. 
>>> With condensed changes for every daily build I download this would make my 
>>> recovery just that bit easier. One small change …
>>> 
>> 
>> From a size point of view it would make sense: a “Pharo4.sources” is even a 
>> bit smaller than the current .changes (which itself would be empty). 
>> Compressed it would be 15,7 instead of 13,7 due to the .changes
>> being better compressible (it contains much useless things even by that 
>> metric…)
>> 
>> The problem is that we would need to see how it plays with the get.pharo.org 
>>  where the vm download contains all of Pharo1, Pharo2 
>> and Pharo3 sources…
> 
> I do not understand your stress. If we produce a condense change files what 
> is the problem.
> You are talking about the problem of having multiple .sources?

yes. we download always *all* sources files with the VM.

Marcus



Re: [Pharo-users] Cleaning changes file?

2015-03-13 Thread stepharo




You can do that using the expression:

PharoChangesCondenser condense

Although that also means you lose the version history of methods 
inside your image. This is typically not done a lot, maybe for 
production deploy, maybe for release of Pharo itself.



Yes, but we need to change that. The artefact on the CI server needs 
to be the artefact of release. We should not have *anything* of the 
kind “and a day before release we call X”.
Because for sure it will be broken. And we waste resources: the 
changes are the history of the revision control system.


OK so a silly and not-so-innocent question: Why not include that in 
the build script *right now* ? It has to be done some time, and now 
the discussion is open why not make use of the opportunity?


Also, my use of the changes file is uniquely to recover in case of a 
crash. With condensed changes for every daily build I download this 
would make my recovery just that bit easier. One small change …




From a size point of view it would make sense: a “Pharo4.sources” is 
even a bit smaller than the current .changes (which itself would be 
empty). Compressed it would be 15,7 instead of 13,7 due to the .changes
being better compressible (it contains much useless things even by 
that metric…)


The problem is that we would need to see how it plays with the 
get.pharo.org  where the vm download contains 
all of Pharo1, Pharo2 and Pharo3 sources…


I do not understand your stress. If we produce a condense change files 
what is the problem.

You are talking about the problem of having multiple .sources?



This is a real mess… I am locking forward to a time when we just have 
one .pharo image.


Marcus






Re: [Pharo-users] Notebook/slideshow morph

2015-03-13 Thread stepharo
Pay attention that my code was an experiement to build test first a mini 
powerpoint.

So there is not much.

Is there a way to save and reload the slide show. Like in the good old
squeak days (TM) with a *.morph file?

No but nothing prevent you to plug fuel for that?

Now I was thinking that I want to rebuild it on bloc but I should not 
start before finishing a long list of todo.


BTW I navigated so much in this old ugly code that "it is not the good 
old days."

Sorry but I cannot let you say that. We are in the good new days!


Would be a nice addition to recreate some of the presentation and
multimedia features known from Squeak now also in Pharo.


To recreate. rebuild, redesign, of course!
not to copy code!

Pharo has never been against multimedia. Our goal is to have a solid base
for inventing new things and to build a meta platform .
I would have love to have Sophie running on Pharo.

This is not by accident that we are working on
- Athens
- TxText
- Bloc
- Event touch
- SDL
and not just web app

I remember that one person did a new desktop or something like that to 
build presentations.

Esse
https://www.youtube.com/watch?v=OVjx9KMd3i8



Thanks
T.







Re: [Pharo-users] When to use a stream for concatenating text..

2015-03-13 Thread Marcus Denker

> On 13 Mar 2015, at 08:41, stepharo  wrote:
> 
> use
> 
> String streamContents: [:s |
>s nextPutAll: 'jlklkjkl' ]
> 
> 
> or
> 
> String streamContents: [:s |
>s << 'jlklkjkl' ]
> 
> 
> it is a great method for manipulating
> 
> Le 10/3/15 19:09, sergio_101 a écrit :
>> 
>> it seems that in more cases than not, i find that developers use a stream 
>> when concatenating some text strings.
>> 
>> I am wondering if this is a smalltalk thing, or is there a real speed 
>> benefit when using streams in this way.
>> 

When adding to a string, you create a new one with the right size and copy over 
the old content.

Using a stream avoids that. But there is a cost for handling the stream, too:

[String streamContents: [:s |
   s nextPutAll: 'jlklkjkl';
 nextPutAll: 'jlklkjkl' ]] bench. "'1,866,774 per second'"


['jlklkjkl' ,  'jlklkjkl'] bench "'5,433,931 per second’"


So it is only faster e.g. when adding to a string in a loop or on larger 
strings.
But it reads quite nice, too, so I tend to use it without thinking about 
performance.

Marcus





Re: [Pharo-users] When to use a stream for concatenating text..

2015-03-13 Thread stepharo

use

String streamContents: [:s |
s nextPutAll: 'jlklkjkl' ]


or

String streamContents: [:s |
s << 'jlklkjkl' ]


it is a great method for manipulating

Le 10/3/15 19:09, sergio_101 a écrit :


it seems that in more cases than not, i find that developers use a 
stream when concatenating some text strings.


I am wondering if this is a smalltalk thing, or is there a real speed 
benefit when using streams in this way.


Thanks!






Re: [Pharo-users] Settings Browser: Moose 5.1 exported settings raises error in Pharo 4.0

2015-03-13 Thread stepharo
The problem is also when you rename a class. Having explicit class name 
is a problem.
Damien C  we wwna to extract and revisit the configuration approach of 
pillar to offer a nice way to support configurations.
 Now it is based on Ston and it will make the approach based on a 
little package.

So for now ignore error is the best way.

Stef

Le 12/3/15 20:29, Juraj Kubelka a écrit :

Hi,

If I export settings from Settings Browser in Moose 5.1 and then open Pharo 4.0 
image, it raises an error "GTGenericStackDebugger not found in 
SystemDictionary”.

The problem is a setting:
(Smalltalk at: #GTGenericStackDebugger) perform: #enableStackColoring: 
with: (true)

which apparently does not exists in Pharo 4.0.

I think if we want to share settings between images, it should ignore any 
setting that raise an error, right?

Thanks!
Juraj