Re: [Pharo-users] Peristence with SandStone or Voyage -> Bypassing the saving of a variable.

2017-07-13 Thread Sabine Manaa
Hi Sergio, have a look at VOTransientDescription I also have attributes which are not persistent. I define them at class side like this: mongoAccountingRecords ^ VOTransientDescription new attributeName: 'accountingRecords'; yourself Regards Sab

[Pharo-users] Peristence with SandStone or Voyage -> Bypassing the saving of a variable.

2017-07-13 Thread sergio ruiz
So, I tried using mongo voyage for persistence of my Models, and when trying to the SsStateMachine, Mongo Voyager had problems figuring out what to do with my state machine..  So, it occurred to me.. the state machine really does nothing but guide the order through its journey. By the time the

Re: [Pharo-users] Using SandstoneDB for persistance. Getting error.

2017-07-13 Thread sergio ruiz
What is happening is that when the StateMachine gets set up in order initialization, the guarded condition is set.. when you pass a MessageSend to it, it just evaluates to the value of that message send on initialization.. When you pass a block to it, the block is evaluated every time the call

Re: [Pharo-users] Is there a 64bit minimal image for either 6.0 or 7.0?

2017-07-13 Thread Tim Mackinnon
I think there is something wrong with the minimal image - but it looks like the following has nudged me a bit closer (rather inelegantly but I think the minimal images may need checking for errors): MCFileTreeRepository methods do: [ :m | m recompile ]. MCFileTreeStCypressReader methods do: [:m

Re: [Pharo-users] Is there a 64bit minimal image for either 6.0 or 7.0?

2017-07-13 Thread Tim Mackinnon
Thinking about this a bit more - if the minimal image is too minimal, and I load in some required classes - do I need to force methods to recompile to pick up the now loaded classes? Is there an easy way to do that? Tim > On 13 Jul 2017, at 17:40, Tim Mackinnon wrote: > > Hmmm - its very, ve

Re: [Pharo-users] Is there a 64bit minimal image for either 6.0 or 7.0?

2017-07-13 Thread Tim Mackinnon
Hmmm - its very, very minimal… I am trying to load in my local code (checked out from git) with: Metacello new repository: 'filetree://../src'; baseline: 'Lambda'; load. However I get an error: MCFileTreeRepository>>repositoryProperties (STON is Undeclared) As I’m guessing that ST

[Pharo-users] Seamless - send collections by value

2017-07-13 Thread Petr Fischer
Hello, I am testing Seamless project (https://github.com/dionisiydk/Seamless) but I did not understand one thing: I have (for example) a Person class in my server and client image. Person class implements: Person>>sseamlessDefaultTransferStrategy ^SeamlessTransferStrategy defaultByValue

Re: [Pharo-users] Using SandstoneDB for persistance. Getting error.

2017-07-13 Thread sergio ruiz
Hmm.. let me try that.. I think it might be wiser at this point to find a more suitable persistence model. i was just looking for something that would work for a week or so until i needed to make this production ready..  looking at how this project is moving now (it’s done, and ready to start d

Re: [Pharo-users] Using SandstoneDB for persistance. Getting error.

2017-07-13 Thread Denis Kudriashov
2017-07-13 14:44 GMT+02:00 sergio ruiz : > I tried this.. but what happens when i change this to message sends (it > does save) is that the state machine no longer works. The reason for this > being that when he state machine is initialized, it’s initialized with the > result of the message send,

Re: [Pharo-users] Using SandstoneDB for persistance. Getting error.

2017-07-13 Thread sergio ruiz
Okay, got it.. I tried this.. but what happens when i change this to message sends (it does save) is that the state machine no longer works. The reason for this being that when he state machine is initialized, it’s initialized with the result of the message send, I think this needs to be a bloc

[Pharo-users] Little challenge: Best way to read stream and count line returns

2017-07-13 Thread Cyril Ferlicot
Hello everyone, I often needs to read some streams these days and to get some infos related to the lines returns for example. Because of the CRLF it is a little complicated sometimes. I have an example of code here: | lfShouldBeCounted char count remaining | lfShouldBeCounted := false. remaining

Re: [Pharo-users] [FUN] Get ready to celebrate

2017-07-13 Thread Tudor Girba
Geeky :) Doru > On Jul 13, 2017, at 12:03 PM, Sven Van Caekenberghe wrote: > > https://en.wikipedia.org/wiki/Unix_time > > "Right now" > > DateAndTime now asUnixTime. > > "Coming up" > > DateAndTime fromUnixTime: 15. > > "How long till then ?" > > (DateAndTime fromUnixTime: 15000

[Pharo-users] [FUN] Get ready to celebrate

2017-07-13 Thread Sven Van Caekenberghe
https://en.wikipedia.org/wiki/Unix_time "Right now" DateAndTime now asUnixTime. "Coming up" DateAndTime fromUnixTime: 15. "How long till then ?" (DateAndTime fromUnixTime: 15) - DateAndTime now. ;-) Sven

Re: [Pharo-users] Glamour: update presenter with new text

2017-07-13 Thread Tudor Girba
Hi, I took a quick look. To get the methods properly update and selected when modifying code, you should use the reference to the method, and the not the compiled method. Try this: methodsIn: composite composite wrapper title: 'Methods' translated; show: [ :wrapper |

Re: [Pharo-users] Glamour: update presenter with new text

2017-07-13 Thread Hilaire
Le 13/07/2017 à 10:01, Denis Kudriashov a écrit : > What exactly you are implementing? Browsers to edit Dr. Geo user script. Explained in a previous mail of this thread. The idea is to show the user the strict minimum, to reduce confusion. Hilaire -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] Glamour: update presenter with new text

2017-07-13 Thread Denis Kudriashov
2017-07-13 9:00 GMT+02:00 Hilaire : > Plus I understood it will be replace by Calypso, right? > That's the plan. > > May be hacking on Calypso would make sense, but there are several use > cases I want to explore with Glamour, so... > What exactly you are implementing?

Re: [Pharo-users] Is there a 64bit minimal image for either 6.0 or 7.0?

2017-07-13 Thread Pavel Krivanek
For Pharo 6: https://ci.inria.fr/pharo/job/Pharo-6.0-Update-Step-3.2-Minimal/lastSuccessfulBuild/artifact/Pharo-minimal-64.zip For Pharo 7: https://ci.inria.fr/pharo/view/7.0/job/70-Bootstrap-32bit-Conversion/lastSuccessfulBuild/artifact/latest-minimal-64.zip -- Pavel 2017-07-13 8:10 GMT+02:00 Ti

Re: [Pharo-users] Glamour: update presenter with new text

2017-07-13 Thread Hilaire
Plus I understood it will be replace by Calypso, right? May be hacking on Calypso would make sense, but there are several use cases I want to explore with Glamour, so... Le 12/07/2017 à 22:24, Stephane Ducasse a écrit : > I can tell you that you do not want to play with nautilus :). > > Stef --

Re: [Pharo-users] Glamour: update presenter with new text

2017-07-13 Thread Hilaire
Ok, thanks Doru. In case it can helpm I upload a DrGeo image[1] with all the involved code. Thanks Hilaire [1] https://www.dropbox.com/s/q06jihslvkzye8r/DrGeoBrowser.zip?dl=0 Le 12/07/2017 à 19:19, Tudor Girba a écrit : > Hi, > > I will try to follow up tomorrow. > > Cheers, > Doru > -- Dr.