[Pharo-users] Add external package to metacello using versionner

2014-07-28 Thread Norbert Hartl
I try to give Neo-Caching a shot in a project of mine. Neo-Caching does not 
have a metacello configuration. If I add the package via versionner the package 
is added but without repository information. That fails on loading?

How to do? Bug?

Norbert


Re: [Pharo-users] Reference documentation on Trait

2014-07-28 Thread Damien Cassou
On Fri, Jul 25, 2014 at 9:47 AM, Hilaire hila...@drgeo.eu wrote:
 Do we have such document(s)?


http://scg.unibe.ch/research/traits

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

Success is the ability to go from one failure to another without
losing enthusiasm.
Winston Churchill



Re: [Pharo-users] [Tip] Image init scripts when working with PharoLauncher

2014-07-28 Thread Damien Cassou
On Fri, Jul 25, 2014 at 1:54 PM, Torsten Bergmann asta...@gmx.de wrote:
 I've found the following script very useful:


here is what I do for MC credentials:

credentials := Dictionary new.
MCRepository classVarNamed: 'Settings' put: credentials.
credentials at: 'account smalltalkhub'  put: '*smalltalkhub.com*
 DamienCassou:mypassword'.
credentials at: 'account squeaksource'  put: '*squeaksource.com*
dc:mypassword'.
credentials at: 'account ss3'   put: '*ss3.gemstone.com*
dc:mypassword'.
credentials at: 'account source.squeak' put: '*source.squeak.org*
DamienCassou:mypassword'.


-- 
Damien Cassou
http://damiencassou.seasidehosting.st

Success is the ability to go from one failure to another without losing
enthusiasm.
Winston Churchill


Re: [Pharo-users] Add external package to metacello using versionner

2014-07-28 Thread Sean P. DeNigris
NorbertHartl wrote
 I try to give Neo-Caching a shot in a project of mine. Neo-Caching does
 not have a metacello configuration

The more religious MetaC practitioners will tell you never to to this and to
just make a configuration yourself ;) I've found this can be overkill in
simple cases.

IIRC you can add a repository to the spec for just that package i.e.
something like:
  spec package: 'Neo-Caching' with: [ spec repository: ...



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Add-external-package-to-metacello-using-versionner-tp4770553p4770566.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Add external package to metacello using versionner

2014-07-28 Thread Sven Van Caekenberghe
Hi Norbert,

Neo-Caching was an experiment, a proof of concept, it has been integrated in 
Pharo.
See category 'System-Caching', the hierarchy AbstractCache, LRUCache and 
TTLCache.

HTH,

Sven

On 28 Jul 2014, at 13:48, Norbert Hartl norb...@hartl.name wrote:

 I try to give Neo-Caching a shot in a project of mine. Neo-Caching does not 
 have a metacello configuration. If I add the package via versionner the 
 package is added but without repository information. That fails on loading?
 
 How to do? Bug?
 
 Norbert




Re: [Pharo-users] Add external package to metacello using versionner

2014-07-28 Thread Norbert Hartl

Am 28.07.2014 um 14:17 schrieb Sean P. DeNigris s...@clipperadams.com:

 NorbertHartl wrote
 I try to give Neo-Caching a shot in a project of mine. Neo-Caching does
 not have a metacello configuration
 
 The more religious MetaC practitioners will tell you never to to this and to
 just make a configuration yourself ;) I've found this can be overkill in
 simple cases.
 
Hell, yes! I'm not sure a configuration is a good thing if the configuration 
has twice as much code as the package it makes loadable. Oh, wait a second…skip 
that…I'm absolutely sure it is not a good thing!

 IIRC you can add a repository to the spec for just that package i.e.
 something like:
  spec package: 'Neo-Caching' with: [ spec repository: …
 
I did that, thanks. I just wanted to know if there is a possibility doing it 
with versionner.

Norbert


Re: [Pharo-users] Add external package to metacello using versionner

2014-07-28 Thread Norbert Hartl

Am 28.07.2014 um 14:19 schrieb Sven Van Caekenberghe s...@stfx.eu:

 Hi Norbert,
 
 Neo-Caching was an experiment, a proof of concept, it has been integrated in 
 Pharo.
 See category 'System-Caching', the hierarchy AbstractCache, LRUCache and 
 TTLCache.
 
Ah, good to know, thanks. That's even better because it seems to be in pharo3. 

Regarding the TTLCache: If I want obsolete keys to vanish as early as possible 
the best way might be to have a thread that calls #removeStaleValues 
periodically, right?

Norbert

 HTH,
 
 Sven
 
 On 28 Jul 2014, at 13:48, Norbert Hartl norb...@hartl.name wrote:
 
 I try to give Neo-Caching a shot in a project of mine. Neo-Caching does not 
 have a metacello configuration. If I add the package via versionner the 
 package is added but without repository information. That fails on loading?
 
 How to do? Bug?
 
 Norbert
 
 




[Pharo-users] Multiple sorting helper

2014-07-28 Thread Esteban A. Maringolo
Hi,

I have a collection of objects and I want to sort its contents by more
than one attribute (including nil values), and I thought somebody
might have already done this.

Something like:

sorter := MultipleSortCriteria new
   add: #lastName;
   add: [:each | each personalInfo age ] ascending: false.
aCollection asSortedCollection: sorter.

Is there a package with utility classes for this?

Thank you!

Esteban A. Maringolo



[Pharo-users] Writing on stdout when redirecting the standard output

2014-07-28 Thread François Stephany
$ pharo Pharo-30852.image  /tmp/test.log

Outputting somethind to stdout results in:
FileWriteError: File stdout is closed

* Arch Linux
* Pharo 30852.

$ pharo --version

3.9-7 #1 Thu May 15 18:29:30 CEST 2014 gcc 4.6.3 [Production ITHB VM]
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
https://github.com/pharo-project/pharo-vm.git Commit:
ed4a4f59208968a21d82fd2406f75c2c4de558b2 Date: 2014-05-15 18:23:04 +0200
By: Esteban Lorenzano esteba...@gmail.com Jenkins build #14826
Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45
UTC 2012 i686 i686 i386 GNU/Linux


Did I miss something?


Re: [Pharo-users] Writing on stdout when redirecting the standard output

2014-07-28 Thread p...@highoctane.be
Mmh, I have been experiencing that too.

Stdin and stdout aren't that well handled it seems. I write to the term
using VTerm fwiw.

Phil
Le 28 juil. 2014 16:46, François Stephany tulipe.mouta...@gmail.com a
écrit :


 $ pharo Pharo-30852.image  /tmp/test.log

 Outputting somethind to stdout results in:
 FileWriteError: File stdout is closed

 * Arch Linux
 * Pharo 30852.

 $ pharo --version

 3.9-7 #1 Thu May 15 18:29:30 CEST 2014 gcc 4.6.3 [Production ITHB VM]
 NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
 acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
 NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid:
 acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
 https://github.com/pharo-project/pharo-vm.git Commit:
 ed4a4f59208968a21d82fd2406f75c2c4de558b2 Date: 2014-05-15 18:23:04 +0200
 By: Esteban Lorenzano esteba...@gmail.com Jenkins build #14826
 Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45
 UTC 2012 i686 i686 i386 GNU/Linux


 Did I miss something?




Re: [Pharo-users] Writing on stdout when redirecting the standard output

2014-07-28 Thread stepharo

Francois

can you open a bug entry because this is not nice.

Stef

On 28/7/14 16:46, François Stephany wrote:


$ pharo Pharo-30852.image  /tmp/test.log

Outputting somethind to stdout results in:
FileWriteError: File stdout is closed

* Arch Linux
* Pharo 30852.

$ pharo --version

3.9-7 #1 Thu May 15 18:29:30 CEST 2014 gcc 4.6.3 [Production ITHB VM]
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: 
acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: 
acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
https://github.com/pharo-project/pharo-vm.git Commit: 
ed4a4f59208968a21d82fd2406f75c2c4de558b2 Date: 2014-05-15 18:23:04 
+0200 By: Esteban Lorenzano esteba...@gmail.com 
mailto:esteba...@gmail.com Jenkins build #14826
Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 
16:39:45 UTC 2012 i686 i686 i386 GNU/Linux



Did I miss something?





Re: [Pharo-users] Writing on stdout when redirecting the standard output

2014-07-28 Thread Sven Van Caekenberghe
I think we need a better bug report, for me (Mac OS X) this works fine:

$ ./pharo Pharo.image eval 'FileStream stdout nextPutAll: 42 factorial 
asString; cr. #done'  out.txt

$ cat out.txt 
14050061177528798985431426062445115699363840
#done

So, what exactly is not working ?

On 28 Jul 2014, at 21:30, stepharo steph...@free.fr wrote:

 Francois 
 
 can you open a bug entry because this is not nice.
 
 Stef
 
 On 28/7/14 16:46, François Stephany wrote:
 
 $ pharo Pharo-30852.image  /tmp/test.log
 
 Outputting somethind to stdout results in: 
 FileWriteError: File stdout is closed
 
 * Arch Linux
 * Pharo 30852.
 
 $ pharo --version
 
 3.9-7 #1 Thu May 15 18:29:30 CEST 2014 gcc 4.6.3 [Production ITHB VM]
 NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: 
 acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
 NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: 
 acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
 https://github.com/pharo-project/pharo-vm.git Commit: 
 ed4a4f59208968a21d82fd2406f75c2c4de558b2 Date: 2014-05-15 18:23:04 +0200 By: 
 Esteban Lorenzano esteba...@gmail.com Jenkins build #14826
 Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 UTC 
 2012 i686 i686 i386 GNU/Linux
 
 
 Did I miss something?