Re: [Pharo-users] Users of Versionner?

2015-03-19 Thread Hernán Morales Durand
Same here. 2015-03-18 14:01 GMT-03:00 stepharo : > I use it but I often code by hand the configurations ;) > > Le 18/3/15 09:46, Stephan Eggermont a écrit : > > Who is actually using Versionner to maintain configurations? >> Especially configurations that are used in other configurations? >> >>

Re: [Pharo-users] Logic in Pharo ?

2015-03-19 Thread Hernán Morales Durand
I don't know Prolog, but I have some links you may like: http://squeaksource.blueplane.jp/JgProlog/ http://wiki.squeak.org/squeak/1000 http://www.cs.middlebury.edu/~briggs/Courses/CS313-F12/smalltalk/stx/goodies/prolog/ http://www.smalltalkhub.com/#!/~SergiReyner/Prolog https://code.google.com/p/p

Re: [Pharo-users] Fwd: Re: [ANN] BioSmalltalk

2015-03-19 Thread Hernán Morales Durand
Ok, done http://biosmalltalk.blogspot.com/2015/03/biosmalltalk-now-available-through.html Cheers, Hernán 2015-03-19 9:37 GMT-03:00 Esteban Lorenzano : > > On 19 Mar 2015, at 13:34, Hernán Morales Durand > wrote: > > Hi Stef, > > 2015-03-19 9:00 GMT-03:00 stepharo : > >> Hernan >> >> The phar

Re: [Pharo-users] searching for protocols

2015-03-19 Thread Ben Coman
Also interested in this. A few times I would have like to have done something like... 'someProtocol' allMethods and got a list like ClassA>>method1 ClassB>>method1 ClassB>>method2 but I haven't needed it enough to bother working it out. Actually its the sort of thing that would f

Re: [Pharo-users] New random generator

2015-03-19 Thread Alain Busser
the method from l'Ecuyer is already used in the texas instruments graphic calculators. But they don't seem to have patented it (I don't know how to check that). Anyway I agree to have more RNGs which can be useful for statistics simulations or kryptography. And I would like to know how one can pl

[Pharo-users] Camp Smalltalk PDX

2015-03-19 Thread Andres Valloud
A group of Smalltalkers have been discussing the possibility of having a Camp Smalltalk in Portland Oregon, August 20-23. If you think you might be interested in attending such a gathering, please let us know filling our short survey: http://goo.gl/forms/Di0rFPMcLu

[Pharo-users] searching for protocols

2015-03-19 Thread Peter Uhnák
Hi, is it possible to find which class uses particular protocol? Typically I am not sure how to name a protocol so I would like to check out other classes. For example the system offers me to name protocol as "enum primitives" but I don't know who uses it and for what exactly. Thanks, Peter

Re: [Pharo-users] New random generator

2015-03-19 Thread Serge Stinckwich
On Thu, Mar 19, 2015 at 9:36 PM, stepharo wrote: > Hi guys > > Konstantin who is a biologist developed for a "bacteria" eating monster > simulation system, two new random number generators. > I think that this is great because we need more random generators :) > > - Combined Random Number Generato

[Pharo-users] New random generator

2015-03-19 Thread stepharo
Hi guys Konstantin who is a biologist developed for a "bacteria" eating monster simulation system, two new random number generators. I think that this is great because we need more random generators :) - Combined Random Number Generator is based on the algorithm described by PIERRE L'ECUYER i

Re: [Pharo-users] Aconcagua Documentation

2015-03-19 Thread Sean P. DeNigris
Sean P. DeNigris wrote > present measures in the "most tidy" representation e.g. "125 dollars" > instead of "12500 cents" It seems this used to work (from http://stephane.ducasse.free.fr/Teaching/CoursAnnecy/0506-M1-COO/A%20New%20Object-Oriented%20Model%20of%20the%20Gregorian%20Calendar.pdf):

Re: [Pharo-users] Chalten: Month and Year Units

2015-03-19 Thread Sean P. DeNigris
Sean P. DeNigris wrote > It seems we should be able to distinguish "1 gregorianYear = 12 > gregorianMonths" I see from the paper (http://stephane.ducasse.free.fr/Teaching/CoursAnnecy/0506-M1-COO/A%20New%20Object-Oriented%20Model%20of%20the%20Gregorian%20Calendar.pdf) that this used to be the case

Re: [Pharo-users] Chalten: Month and Year Units

2015-03-19 Thread Sean P. DeNigris
It started out that way, but not any more... - Cheers, Sean -- View this message in context: http://forum.world.st/Chalten-Month-and-Year-Units-tp4813273p481.html Sent from the Pharo Smalltalk Users mailing list arch

Re: [Pharo-users] Chalten: Month and Year Units

2015-03-19 Thread Esteban A. Maringolo
Isn't Chalten only for gregorian calendars? Regards! Esteban A. Maringolo 2015-03-19 12:54 GMT-03:00 Sean P. DeNigris : > I guess they aren't derived from each other because e.g. the Hebrew calendar > has leap months. But doesn't that just mean that "Month" is representing two > incompatible dis

Re: [Pharo-users] Search and replace source code

2015-03-19 Thread Thierry Goubier
Le 19/03/2015 19:05, Sean P. DeNigris a écrit : Thierry Goubier wrote you can use the parse tree rewriter of the Refactoring Browser set Didn't someone demo a cool rewrite tool GUI recently? I don't remember where exactly... Yes! Mark Rizun rewrite tool (http://myfuncoding.blogspot.fr/). Rec

Re: [Pharo-users] Search and replace source code

2015-03-19 Thread Sean P. DeNigris
Thierry Goubier wrote > you can use the parse tree rewriter of the Refactoring Browser set Didn't someone demo a cool rewrite tool GUI recently? I don't remember where exactly... - Cheers, Sean -- View this message in context: http://forum.world.st/Search-and-replace-source-code-tp4813295p

Re: [Pharo-users] Search and replace source code

2015-03-19 Thread Thierry Goubier
Hi Laura, you can use the parse tree rewriter of the Refactoring Browser set. Like that, you can have a degree of control about what you do replace and on what. For example, I'd try something like: | rewrite | rewrite := RBParseTreeRewriter new replace: 'expression1' with: 'e

Re: [Pharo-users] Search and replace source code

2015-03-19 Thread Aliaksei Syrel
Hi Laura, you can use this method: replaceAll: aString with: anotherString > "replaces aString in source code in the whole image in all methods with > anotherString" > ((self systemNavigation allMethodsWithSourceString: aString matchCase: > false) collect: #compiledMethod) > do: [ :each | each me

[Pharo-users] Search and replace source code

2015-03-19 Thread Laura Risani
Hi all, How do you replace all 'expression1' in source code by 'expression2'? I can find them with Finder but don't see any easy way to replace them. My problem is i want to change parameter names in many methods. Best, Laura

[Pharo-users] Chalten: Fixed #testPrintString

2015-03-19 Thread Sean P. DeNigris
Name: Chalten-Tests-SeanDeNigris.3.1.16 Fix #testPrintString, which was depending on being in a certain time zone Uploaded to http://smalltalkhub.com/#!/~SeanDeNigris/SeansOutbox - Cheers, Sean -- View this message in context: http://forum.world.st/Chalten-Fixed-testPrintString-tp4813275.h

[Pharo-users] Chalten: Month and Year Units

2015-03-19 Thread Sean P. DeNigris
I guess they aren't derived from each other because e.g. the Hebrew calendar has leap months. But doesn't that just mean that "Month" is representing two incompatible distinctions? It seems we should be able to distinguish "1 gregorianYear = 12 gregorianMonths" from "1 hebrewYear convertTo: months"

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Michal Balda
Hi, your solution does not work because files in /proc are virtual and have no size (their size will be reported as 0). FileStream>>contents sends #size to determine the length and that will return 0 for all files in /proc. So the solution is to use something that does not use #size, like: (F

Re: [Pharo-users] Pillar html export clickable headers

2015-03-19 Thread Norbert Hartl
That's nice! Thank you. Norbert > Am 19.03.2015 um 14:55 schrieb Alexandre Bergel : > > It seems to be related: we have integrated Roassal into Pillar. When .html is > generated, we keep the interaction. > You can give a try with: > https://dl.dropboxusercontent.com/u/31543901/TMP/ExampleRepor

Re: [Pharo-users] Pillar html export clickable headers

2015-03-19 Thread Alexandre Bergel
It seems to be related: we have integrated Roassal into Pillar. When .html is generated, we keep the interaction. You can give a try with: https://dl.dropboxusercontent.com/u/31543901/TMP/ExampleReport.zip Try: Example.pillar.html Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:

[Pharo-users] Aconcagua: Common Measurement Systems

2015-03-19 Thread Sean P. DeNigris
Is there a repository for e.g. monetary, weight, distance implementations using Aconcagua? Or do users typically implement Dollar, Ounce, Millimeter, etc. from scratch for each project? - Cheers, Sean -- View this message in context: http://forum.world.st/Aconcagua-Common-Measurement-System

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Martin Bähr
Excerpts from Norbert Hartl's message of 2015-03-19 14:09:28 +0100: > That's my point. Or better I like to know how the plugin can distinguish > them. Usually there shouldn't be a difference. I know the /proc filesystem. > It is what unix is all about. Make every information available as file. You

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Norbert Hartl
> Am 19.03.2015 um 13:26 schrieb Esteban Lorenzano : > >> >> On 19 Mar 2015, at 13:08, Norbert Hartl > > wrote: >> >> >>> Am 19.03.2015 um 11:51 schrieb Esteban Lorenzano >> >: >>> >>> On 19 Mar 2015, at 11:35, Julien Delplanque >>>

Re: [Pharo-users] Fwd: Re: [ANN] BioSmalltalk

2015-03-19 Thread Esteban Lorenzano
> On 19 Mar 2015, at 13:34, Hernán Morales Durand > wrote: > > Hi Stef, > > 2015-03-19 9:00 GMT-03:00 stepharo >: > Hernan > > The pharo board could send a mail to the open bio informatic foundation. > > That would be really nice! > > Are you member of their found

Re: [Pharo-users] Fwd: Re: [ANN] BioSmalltalk

2015-03-19 Thread Hernán Morales Durand
Hi Stef, 2015-03-19 9:00 GMT-03:00 stepharo : > Hernan > > The pharo board could send a mail to the open bio informatic foundation. > That would be really nice! > Are you member of their foundation? > Yes, I have became member by Sep 27/2011. > BTW I imagine that you will have to migrate >

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Esteban Lorenzano
> On 19 Mar 2015, at 13:26, Esteban Lorenzano wrote: > >> >> On 19 Mar 2015, at 13:08, Norbert Hartl > > wrote: >> >> >>> Am 19.03.2015 um 11:51 schrieb Esteban Lorenzano >> >: >>> >>> On 19 Mar 2015, at 11:35, Julien Delplanque >>

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Damien Pollet
/proc are entries in the filesystem, as such I don't see why the file plugin would fail to access them… unless you cannot use block devices and such like any other file? In Unix, everything is a file, except those that have to be special-cased apart? On 19 March 2015 at 13:08, Norbert Hartl wrot

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Esteban Lorenzano
> On 19 Mar 2015, at 13:08, Norbert Hartl wrote: > > >> Am 19.03.2015 um 11:51 schrieb Esteban Lorenzano : >> >> >>> On 19 Mar 2015, at 11:35, Julien Delplanque wrote: >>> >>> >>> On 19/03/15 11:10, Esteban Lorenzano wrote: '/proc/uptime' asFileReference readStreamDo: [ :stream | stre

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Norbert Hartl
> Am 19.03.2015 um 11:51 schrieb Esteban Lorenzano : > > >> On 19 Mar 2015, at 11:35, Julien Delplanque wrote: >> >> >> On 19/03/15 11:10, Esteban Lorenzano wrote: >>> '/proc/uptime' asFileReference readStreamDo: [ :stream | stream contents ]. >>> >>> is better way. >>> >>> but you will sti

Re: [Pharo-users] Fwd: Re: [ANN] BioSmalltalk

2015-03-19 Thread stepharo
Hernan The pharo board could send a mail to the open bio informatic foundation. Are you member of their foundation? BTW I imagine that you will have to migrate https://code.google.com/p/biosmalltalk/ to github? Stef Le 19/3/15 07:39, Hernán Morales Durand a écrit : Hi Offray, For a biolog

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Julien Delplanque
On 19/03/15 11:51, Esteban Lorenzano wrote: >> On 19 Mar 2015, at 11:35, Julien Delplanque wrote: >> >> >> On 19/03/15 11:10, Esteban Lorenzano wrote: >>> '/proc/uptime' asFileReference readStreamDo: [ :stream | stream contents ]. >>> >>> is better way. >>> >>> but you will still get an empty st

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Esteban Lorenzano
> On 19 Mar 2015, at 11:35, Julien Delplanque wrote: > > > On 19/03/15 11:10, Esteban Lorenzano wrote: >> '/proc/uptime' asFileReference readStreamDo: [ :stream | stream contents ]. >> >> is better way. >> >> but you will still get an empty string because actually ‘/proc’ does not >> contain

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Julien Delplanque
On 19/03/15 11:10, Esteban Lorenzano wrote: > '/proc/uptime' asFileReference readStreamDo: [ :stream | stream contents ]. > > is better way. > > but you will still get an empty string because actually ‘/proc’ does not > contains real files… so the file plugin does not applies there (and is > ano

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Esteban Lorenzano
'/proc/uptime' asFileReference readStreamDo: [ :stream | stream contents ]. is better way. but you will still get an empty string because actually ‘/proc’ does not contains real files… so the file plugin does not applies there (and is another debate if it should…) you should use OSProcess inst

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Nicolai Hess
2015-03-19 10:27 GMT+01:00 Julien Delplanque : > > > And, if there is a system library that provides this data, there is the > > NativeBoost way: > > For example( not linux but windows): > > > > new method: > > NBWin32Shell>>#getUptime > > > > > errorCode > > > ^ self nbCall: #( ulonglon

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Julien Delplanque
> And, if there is a system library that provides this data, there is the > NativeBoost way: > For example( not linux but windows): > > new method: > NBWin32Shell>>#getUptime > > errorCode > > ^ self nbCall: #( ulonglong GetTickCount64() ) module: #Kernel32 > > and then you can call it l

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Julien Delplanque
> (FileSystem disk root / 'proc' / 'uptime') asFileReference readStreamDo: > [:s | s upToEnd asString ] > > or if you load the "OSUnix" project in Pharo 4 from the config browser > it is even easier: > > UnixSystem upTime > > bye > T. > Thank you, that's exactly what I was looking for, I'll

Re: [Pharo-users] Get OS uptime

2015-03-19 Thread Nicolai Hess
2015-03-19 9:05 GMT+01:00 Torsten Bergmann : > Julien Delplanque wrote: > >I can't find out how to get the uptime of the OS from pharo > > (FileSystem disk root / 'proc' / 'uptime') asFileReference readStreamDo: > [:s | s upToEnd asString ] > > or if you load the "OSUnix" project in Pharo 4 from

Re: [Pharo-users] Pillar html export clickable headers

2015-03-19 Thread Peter Uhnák
Thanks :) Peter On Thu, Mar 19, 2015 at 9:22 AM, Damien Cassou wrote: > > Peter Uhnák writes: > > > I have a small feature request for Pillar to be considered - > > clickable/linkable headers in html output. Often I want to link someone > to > > specific chapter of a document. > > this is now

Re: [Pharo-users] Pillar html export clickable headers

2015-03-19 Thread Damien Cassou
Peter Uhnák writes: > I have a small feature request for Pillar to be considered - > clickable/linkable headers in html output. Often I want to link someone to > specific chapter of a document. this is now an official feature request in http://www.smalltalkhub.com/#!/~Pier/Pillar. Best -- Da

Re: [Pharo-users] Pharo and Pi

2015-03-19 Thread itli...@schrievkrom.de
I found the NB approach as a fresh breeth of air - beside all the problems (I am/was not aware of). Marten -- Marten Feldtmann

[Pharo-users] Get OS uptime

2015-03-19 Thread Torsten Bergmann
Julien Delplanque wrote: >I can't find out how to get the uptime of the OS from pharo (FileSystem disk root / 'proc' / 'uptime') asFileReference readStreamDo: [:s | s upToEnd asString ] or if you load the "OSUnix" project in Pharo 4 from the config browser it is even easier: UnixSystem up

Re: [Pharo-users] deprecation warning in code critic

2015-03-19 Thread Peter Uhnák
Thank you for the explanation, makes more sense now. :) Peter On Thu, Mar 19, 2015 at 7:46 AM, Marcus Denker wrote: > > > On 19 Mar 2015, at 00:01, Peter Uhnák wrote: > > > > Hi, > > > > is there a deprecation warning option in the code critic? > > > > only for calls to globals. As code critic

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

2015-03-19 Thread Peter Uhnák
> > keysAndValuesDo: > +1 this is also what Dictionary use. Peter