Re: [Pharo-users] Voyage: Circular references

2013-07-19 Thread Sabine Knöfel
Hi Esteban,

yes, now the Rectangle Example works after doing the reset.

But saving my model still leads to a non responding image because
Voyage is trying to write json for all model stuf deep deep deep and
circular. Perhaps same like:
http://forum.world.st/Voyage-Circular-references-td4691940.html#a4699436

I dont know anything about Magritte (yet) and I need a hint what to
define in my model so that it stops creating json at certain points
and creates only e.g. a Symbol.

Example: My model instance  of trip has a connection to an instance of
country. The country should not be written in json with all its
definitions. Voyage should only write e.g. #germany in the json and
later, when getting the instance back from the database, I want to
reassign the trip to the country.

I already implemented this stuff when working witk Mongotalk the last
months and it worked fine. But my question yesterday:
http://forum.world.st/MongoDB-open-close-in-production-singleton-or-not-td4699322.html
lead to my impression that I should use voyage.

So, how can I define the "borders"?

Sabine

On Thu, Jul 18, 2013 at 7:45 PM, EstebanLM [via Smalltalk]
 wrote:
> Hi Sabine,
>
> Probably you do not missed anything.
> Probably I missed to update the voyage configuration :)
>
> can you try doing
>
> VOMongoRepository allInstancesDo: #reset.
>
> before trying again?
>
> Cheers,
> Esteban
>
> On Jul 18, 2013, at 6:31 PM, Sabine Knöfel <[hidden email]> wrote:
>
>> I found this:
>> http://smallworks.eu/web/blog/2013-06-14-voyage-the-adventure
>>
>> Chapter "Enhancing storage"
>> But if I add the 3+1 methods to Rectangle, and save it again, the json did
>> not change.
>>
>> Did I miss something?
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.world.st/Voyage-Circular-references-tp4691940p4699436.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>
>
>
>
>
> 
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.world.st/Voyage-Circular-references-tp4691940p4699443.html
> To unsubscribe from Voyage: Circular references, click here.
> NAML




--
View this message in context: 
http://forum.world.st/Voyage-Circular-references-tp4691940p4699491.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] Voyage: Circular references

2013-07-19 Thread Bernat Romagosa
Hi Sabine!

If you want an object to be referenced by another, and not embedded in it,
you need to give that object root entity. As a root, the object will have a
collection of its own, and will be referenced by other objects by id. If
the object is not root, it will be embedded inside the referring object as
a property.

So, to be safe, always set #isVoyageRoot to return true at class side of
all objects you don't want to have embedded. In general, "big enough"
objects who are referenced by different objects should be root.

In my case, I had a centre which had users which had centres. Users also
had projects, and projects also had users. Big mess, I know. Besides that,
all users, centres and projects had profiles. My solution was to make
centres, projects and users be roots, and let only the profiles be embedded.

I hope this helped!

Bernat.


2013/7/19 Sabine Knöfel 

> Hi Esteban,
>
> yes, now the Rectangle Example works after doing the reset.
>
> But saving my model still leads to a non responding image because
> Voyage is trying to write json for all model stuf deep deep deep and
> circular. Perhaps same like:
> http://forum.world.st/Voyage-Circular-references-td4691940.html#a4699436
>
> I dont know anything about Magritte (yet) and I need a hint what to
> define in my model so that it stops creating json at certain points
> and creates only e.g. a Symbol.
>
> Example: My model instance  of trip has a connection to an instance of
> country. The country should not be written in json with all its
> definitions. Voyage should only write e.g. #germany in the json and
> later, when getting the instance back from the database, I want to
> reassign the trip to the country.
>
> I already implemented this stuff when working witk Mongotalk the last
> months and it worked fine. But my question yesterday:
>
> http://forum.world.st/MongoDB-open-close-in-production-singleton-or-not-td4699322.html
> lead to my impression that I should use voyage.
>
> So, how can I define the "borders"?
>
> Sabine
>
> On Thu, Jul 18, 2013 at 7:45 PM, EstebanLM [via Smalltalk]
> <[hidden email] >
> wrote:
>
> > Hi Sabine,
> >
> > Probably you do not missed anything.
> > Probably I missed to update the voyage configuration :)
> >
> > can you try doing
> >
> > VOMongoRepository allInstancesDo: #reset.
> >
> > before trying again?
> >
> > Cheers,
> > Esteban
> >
> > On Jul 18, 2013, at 6:31 PM, Sabine Knöfel <[hidden email]> wrote:
> >
> >> I found this:
> >> http://smallworks.eu/web/blog/2013-06-14-voyage-the-adventure
> >>
> >> Chapter "Enhancing storage"
> >> But if I add the 3+1 methods to Rectangle, and save it again, the json
> did
> >> not change.
> >>
> >> Did I miss something?
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://forum.world.st/Voyage-Circular-references-tp4691940p4699436.html
> >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> >>
> >
> >
> >
> >
> > 
> > If you reply to this email, your message will be added to the discussion
> > below:
> > http://forum.world.st/Voyage-Circular-references-tp4691940p4699443.html
> > To unsubscribe from Voyage: Circular references, click here.
> > NAML
>
> --
> View this message in context: Re: Voyage: Circular 
> references
>
> Sent from the Pharo Smalltalk Users mailing list 
> archiveat 
> Nabble.com.
>



-- 
Bernat Romagosa.


Re: [Pharo-users] ZnHttpUnsucessful: 501 not implemented

2013-07-19 Thread Mohammad Al Houssami (Alumni)
Thank You Sven.
I've read so many tutorials about building a repository and they non of them 
talked about that. ( I don't know why I didn't think of referring to pharo by 
example...)
Thanks for the help :)
Much appreciated 

-Original Message-
From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of 
Sven Van Caekenberghe
Sent: Thursday, July 18, 2013 11:56 PM
To: Any question about pharo is welcome
Subject: Re: [Pharo-users] ZnHttpUnsucessful: 501 not implemented

Have you read about Monticello in the 'Pharo by Example' book ?

  http://pharobyexample.org/

First you have to create your repository online, then you save your package to 
it.

Maybe you could also read this

  http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/#savingcodetoarepository

but the book is better, I think.

On 18 Jul 2013, at 22:59, "Mohammad Al Houssami (Alumni)"  
wrote:

> Hello Sven,
> This means I have tried adding something like HTML5 but ofcourse I got a not 
> found error because there is no such url so I suppose I should create a new 
> one or there is something I should do ?  
> 
> -Original Message-
> From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of 
> Sven Van Caekenberghe
> Sent: Thursday, July 18, 2013 8:19 PM
> To: Any question about pharo is welcome
> Subject: Re: [Pharo-users] ZnHttpUnsucessful: 501 not implemented
> 
> 
> On 18 Jul 2013, at 20:28, "Mohammad Al Houssami (Alumni)" 
>  wrote:
> 
>> Hello Everyone. 
>> I was trying to work with the repository and for some reason my mcz file 
>> wouldn't upload and gives this error. Any ideas what I might be doing wrong? 
>> Below is a screen show of what I get when I hit save in the "open 
>> repository" menu. 
>> Any help is much appreciated J
> 
> I think you didn't specify you repository correctly:
> 
> On the screenshot I can see something like
> 
>  http://ss3.gemstone.com/ss/
> 
> but the URL should have an extra component, like
> 
>  http://ss3.gemstone.com/ss/STON
> 
> HTH
> 
> Sven
> 
> 
> --
> Sven Van Caekenberghe
> Proudly supporting Pharo
> http://pharo.org
> http://association.pharo.org
> http://consortium.pharo.org
> 
> 
> 
> 
> 
> 
> 
> 







Re: [Pharo-users] SerialPlugin

2013-07-19 Thread Bernat Romagosa
Hi Ricardo,

By using exactly your same packages, it still didn't work on Linux. So I
guess I'm stuck with a proprietary system for the moment... :(

It seems to work on Mac, no compiling or tweaking needed, so I'll start
working on a Mac box for the moment, although I'm as productive on anything
but my PC as if coding with a typewriter...

I'll still keep looking at the Unix plugin code to see if I can fix it. I
think I've spotted something weird at:

if ((sp->spDescriptor= open(portName, O_RDWR | O_NONBLOCK | O_NOCTTY))
< 0) {
fprintf(stderr, "Error while opening the serial port (%s).\n",
portName);
return portOpenFailed(sp);
}


This fprintf prints:

Error while opening the serial port (/dev/ttyUSB0!).


Notice the last character inside the parens. Sometimes it's a $!, sometimes
it's a $9. This smells like we're reading one position more than needed
from the char array, but I've tried changing its size and, even when
portName has the right value, open() still returns -1...



2013/7/18 Ricardo Moran 

> Hi, I just tried Pharo2.0 Latest update: #20596 with the following VM (on
> Windows):
>
> NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid:
> a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013
> NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid:
> a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013
> git://gitorious.org/cogvm/blessed.git Commit:
> 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 +0100
> By: Esteban Lorenzano  Jenkins build #14535
>
> The serial port seems to work fine here. I hope this helps :)
>
> Cheers,
> Richo
>
>
> On Thu, Jul 18, 2013 at 6:58 AM, Bernat Romagosa <
> tibabenfortlapala...@gmail.com> wrote:
>
>> Still trying without success...
>>
>> Does anyone have an image, a VM and a SerialPlugin working in their
>> machine that they can share with me? At this point I don't care too much on
>> which OS, I'll find a machine here at work. The thing is I wanted to start
>> developing right away, and this little obstacle is holding me back...
>>
>> Thanks a lot!
>>
>> Bernat.
>>
>>
>> 2013/7/17 Bernat Romagosa 
>>
>>> Yep, I found that thread and tried all possible combinations:
>>>
>>> '/dev/ttyUSB0'
>>> '/dev//ttyUSB0'
>>> '/dev/ttyusb0'
>>> '/dev//ttyusb0'
>>> 'ttyUSB0'
>>> 'ttyusb0'
>>>
>>> and none worked... :(
>>>
>>>
>>> 2013/7/17 Esteban Lorenzano 
>>>
 It is indeed annoying and obviously buggy.
 I kinda "fixed" it last year but since I didn't had any serial port
 stuff to test it, it was just in abstract (Luc was using it, thought)

 There was a report a couple of weeks ago to try using double slash.

 SerialPort new openPort: '/dev//ttyUSB0'



 Esteban

 On Jul 17, 2013, at 1:47 PM, Bernat Romagosa <
 tibabenfortlapala...@gmail.com> wrote:

 So I compiled two VMs, one with the SerialPlugin as an internal plugin,
 the other one as an external plugin.

 On a Debian box, I connect an Arduino Diecimila board and I get its
 handler at /dev/ttyUSB0. However, on both VMs with fresh Pharo 2.0 images:

 SerialPort new openPort: '/dev/ttyUSB0'


 Fails with a generic error.

 What's wrong with SerialPort? The "cannot open port" error message is
 about as informative as "sorry, not gonna happen" :(


 2013/7/17 Bernat Romagosa 

> Great! I was missing the gl and alsa headers. All done now, thanks a
> lot :)
>
>
> 2013/7/17 Guillermo Polito 
>
>>
>> On Wed, Jul 17, 2013 at 12:39 PM, Bernat Romagosa <
>> tibabenfortlapala...@gmail.com> wrote:
>>
>>> Okay, it seems the patch is already included in the latest VMMaker
>>> image, so no need to apply it.
>>>
>>
>> That's nice :). Anyone with grants in the issue tracker can close
>> it?? :D
>>
>>
>>>
>>> Still, having executed the script, I get yet another error, this
>>> time related to gl.h (why does it need it? I left B3DAcceleratorPlugin 
>>> out):
>>>
>>> [ 95%] Building C object
>>> CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o
>>> In file included from
>>> /home/bromagosa/blessed/platforms/unix/vm/SqDisplay.h:16:0,
>>>  from
>>> /home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c:140:
>>> /home/bromagosa/blessed/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.h:21:22:
>>> fatal error: GL/gl.h: El fitxer o directori no existeix
>>> compilation terminated.
>>> make[2]: ***
>>> [CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o]
>>> Error 1
>>> make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>> Hmm, which configuration are you using to copile? I think there is a
>> UnixNoGLConfiguration or something like that... So either you install the
>> gl libraries or use the no gl conf

Re: [Pharo-users] SerialPlugin

2013-07-19 Thread Esteban Lorenzano
Hi Bernat,

I'm going on vacations tomorrow, but if you provide me a way to test the plugin 
(like for example doing a remote session ;) ), I promise to work on fix it as 
soon as I'm back (I'm going out just one week). 

can you locate some time for doing it?

Esteban

On Jul 19, 2013, at 11:05 AM, Bernat Romagosa  
wrote:

> Hi Ricardo,
> 
> By using exactly your same packages, it still didn't work on Linux. So I 
> guess I'm stuck with a proprietary system for the moment... :(
> 
> It seems to work on Mac, no compiling or tweaking needed, so I'll start 
> working on a Mac box for the moment, although I'm as productive on anything 
> but my PC as if coding with a typewriter...
> 
> I'll still keep looking at the Unix plugin code to see if I can fix it. I 
> think I've spotted something weird at:
> 
> if ((sp->spDescriptor= open(portName, O_RDWR | O_NONBLOCK | O_NOCTTY)) < 
> 0) {
> fprintf(stderr, "Error while opening the serial port (%s).\n", 
> portName);
> return portOpenFailed(sp);
> }
> 
> This fprintf prints:
> 
> Error while opening the serial port (/dev/ttyUSB0!).
> 
> Notice the last character inside the parens. Sometimes it's a $!, sometimes 
> it's a $9. This smells like we're reading one position more than needed from 
> the char array, but I've tried changing its size and, even when portName has 
> the right value, open() still returns -1...
> 
> 
> 
> 2013/7/18 Ricardo Moran 
> Hi, I just tried Pharo2.0 Latest update: #20596 with the following VM (on 
> Windows): 
> 
> NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: 
> a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013
> NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: 
> a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013
> git://gitorious.org/cogvm/blessed.git Commit: 
> 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 +0100 By: 
> Esteban Lorenzano  Jenkins build #14535
> 
> The serial port seems to work fine here. I hope this helps :)
> 
> Cheers,
> Richo
> 
> 
> On Thu, Jul 18, 2013 at 6:58 AM, Bernat Romagosa 
>  wrote:
> Still trying without success...
> 
> Does anyone have an image, a VM and a SerialPlugin working in their machine 
> that they can share with me? At this point I don't care too much on which OS, 
> I'll find a machine here at work. The thing is I wanted to start developing 
> right away, and this little obstacle is holding me back...
> 
> Thanks a lot!
> 
> Bernat.
> 
> 
> 2013/7/17 Bernat Romagosa 
> Yep, I found that thread and tried all possible combinations:
> 
> '/dev/ttyUSB0'
> '/dev//ttyUSB0'
> '/dev/ttyusb0'
> '/dev//ttyusb0'
> 'ttyUSB0'
> 'ttyusb0'
> 
> and none worked... :(
> 
> 
> 2013/7/17 Esteban Lorenzano 
> It is indeed annoying and obviously buggy. 
> I kinda "fixed" it last year but since I didn't had any serial port stuff to 
> test it, it was just in abstract (Luc was using it, thought)
> 
> There was a report a couple of weeks ago to try using double slash. 
> 
> SerialPort new openPort: '/dev//ttyUSB0'
> 
> 
> Esteban
> 
> On Jul 17, 2013, at 1:47 PM, Bernat Romagosa  
> wrote:
> 
>> So I compiled two VMs, one with the SerialPlugin as an internal plugin, the 
>> other one as an external plugin.
>> 
>> On a Debian box, I connect an Arduino Diecimila board and I get its handler 
>> at /dev/ttyUSB0. However, on both VMs with fresh Pharo 2.0 images:
>> 
>> SerialPort new openPort: '/dev/ttyUSB0'
>> 
>> Fails with a generic error.
>> 
>> What's wrong with SerialPort? The "cannot open port" error message is about 
>> as informative as "sorry, not gonna happen" :(
>> 
>> 
>> 2013/7/17 Bernat Romagosa 
>> Great! I was missing the gl and alsa headers. All done now, thanks a lot :)
>> 
>> 
>> 2013/7/17 Guillermo Polito 
>> 
>> On Wed, Jul 17, 2013 at 12:39 PM, Bernat Romagosa 
>>  wrote:
>> Okay, it seems the patch is already included in the latest VMMaker image, so 
>> no need to apply it.
>> 
>> That's nice :). Anyone with grants in the issue tracker can close it?? :D
>>  
>> 
>> Still, having executed the script, I get yet another error, this time 
>> related to gl.h (why does it need it? I left B3DAcceleratorPlugin out):
>> 
>> [ 95%] Building C object 
>> CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o
>> In file included from 
>> /home/bromagosa/blessed/platforms/unix/vm/SqDisplay.h:16:0,
>>  from 
>> /home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c:140:
>> /home/bromagosa/blessed/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.h:21:22:
>>  fatal error: GL/gl.h: El fitxer o directori no existeix
>> compilation terminated.
>> make[2]: *** 
>> [CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o]
>>  Error 1
>> make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2
>> make: *** [all] Error 2
>> 
>> Hmm, which configuration are you using to copile? I think there is a 
>> UnixNoGLConfiguration or something like that... So either you install the gl 
>> libraries or use t

Re: [Pharo-users] SerialPlugin

2013-07-19 Thread Bernat Romagosa
Hi Esteban!

Wow, thank you so much! I'll ask the IT guy and see how can we set up a
remote session for next week! :)

Disfruta de las vacaciones!


2013/7/19 Esteban Lorenzano 

> Hi Bernat,
>
> I'm going on vacations tomorrow, but if you provide me a way to test the
> plugin (like for example doing a remote session ;) ), I promise to work on
> fix it as soon as I'm back (I'm going out just one week).
>
> can you locate some time for doing it?
>
> Esteban
>
>
> On Jul 19, 2013, at 11:05 AM, Bernat Romagosa <
> tibabenfortlapala...@gmail.com> wrote:
>
> Hi Ricardo,
>
> By using exactly your same packages, it still didn't work on Linux. So I
> guess I'm stuck with a proprietary system for the moment... :(
>
> It seems to work on Mac, no compiling or tweaking needed, so I'll start
> working on a Mac box for the moment, although I'm as productive on anything
> but my PC as if coding with a typewriter...
>
> I'll still keep looking at the Unix plugin code to see if I can fix it. I
> think I've spotted something weird at:
>
> if ((sp->spDescriptor= open(portName, O_RDWR | O_NONBLOCK | O_NOCTTY))
> < 0) {
> fprintf(stderr, "Error while opening the serial port (%s).\n",
> portName);
> return portOpenFailed(sp);
> }
>
>
> This fprintf prints:
>
> Error while opening the serial port (/dev/ttyUSB0!).
>
>
> Notice the last character inside the parens. Sometimes it's a $!,
> sometimes it's a $9. This smells like we're reading one position more than
> needed from the char array, but I've tried changing its size and, even when
> portName has the right value, open() still returns -1...
>
>
>
> 2013/7/18 Ricardo Moran 
>
>> Hi, I just tried Pharo2.0 Latest update: #20596 with the following VM (on
>> Windows):
>>
>> NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid:
>> a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013
>> NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid:
>> a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013
>> git://gitorious.org/cogvm/blessed.git Commit:
>> 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 +0100
>> By: Esteban Lorenzano  Jenkins build #14535
>>
>> The serial port seems to work fine here. I hope this helps :)
>>
>> Cheers,
>> Richo
>>
>>
>> On Thu, Jul 18, 2013 at 6:58 AM, Bernat Romagosa <
>> tibabenfortlapala...@gmail.com> wrote:
>>
>>> Still trying without success...
>>>
>>> Does anyone have an image, a VM and a SerialPlugin working in their
>>> machine that they can share with me? At this point I don't care too much on
>>> which OS, I'll find a machine here at work. The thing is I wanted to start
>>> developing right away, and this little obstacle is holding me back...
>>>
>>> Thanks a lot!
>>>
>>> Bernat.
>>>
>>>
>>> 2013/7/17 Bernat Romagosa 
>>>
 Yep, I found that thread and tried all possible combinations:

 '/dev/ttyUSB0'
 '/dev//ttyUSB0'
 '/dev/ttyusb0'
 '/dev//ttyusb0'
 'ttyUSB0'
 'ttyusb0'

 and none worked... :(


 2013/7/17 Esteban Lorenzano 

> It is indeed annoying and obviously buggy.
> I kinda "fixed" it last year but since I didn't had any serial port
> stuff to test it, it was just in abstract (Luc was using it, thought)
>
> There was a report a couple of weeks ago to try using double slash.
>
> SerialPort new openPort: '/dev//ttyUSB0'
>
>
>
> Esteban
>
> On Jul 17, 2013, at 1:47 PM, Bernat Romagosa <
> tibabenfortlapala...@gmail.com> wrote:
>
> So I compiled two VMs, one with the SerialPlugin as an internal
> plugin, the other one as an external plugin.
>
> On a Debian box, I connect an Arduino Diecimila board and I get its
> handler at /dev/ttyUSB0. However, on both VMs with fresh Pharo 2.0 images:
>
> SerialPort new openPort: '/dev/ttyUSB0'
>
>
> Fails with a generic error.
>
> What's wrong with SerialPort? The "cannot open port" error message is
> about as informative as "sorry, not gonna happen" :(
>
>
> 2013/7/17 Bernat Romagosa 
>
>> Great! I was missing the gl and alsa headers. All done now, thanks a
>> lot :)
>>
>>
>> 2013/7/17 Guillermo Polito 
>>
>>>
>>> On Wed, Jul 17, 2013 at 12:39 PM, Bernat Romagosa <
>>> tibabenfortlapala...@gmail.com> wrote:
>>>
 Okay, it seems the patch is already included in the latest VMMaker
 image, so no need to apply it.

>>>
>>> That's nice :). Anyone with grants in the issue tracker can close
>>> it?? :D
>>>
>>>

 Still, having executed the script, I get yet another error, this
 time related to gl.h (why does it need it? I left B3DAcceleratorPlugin 
 out):

 [ 95%] Building C object
 CMakeFiles/CogVM.dir/home/bromagosa/blessed/platforms/unix/vm/sqUnixMain.c.o
 In file included from
 /home/bromagosa/blessed/platforms/unix/vm/SqDisplay.h:16:0

Re: [Pharo-users] Voyage: Circular references

2013-07-19 Thread Esteban Lorenzano
Hi Sabine, 

If Bernat help is not enough, I would like to have some more insight on your 
problem, so If you can put here a better description of your model and the 
problem you are having, I will have a look :)

Esteban

On Jul 19, 2013, at 10:42 AM, Bernat Romagosa  
wrote:

> Hi Sabine!
> 
> If you want an object to be referenced by another, and not embedded in it, 
> you need to give that object root entity. As a root, the object will have a 
> collection of its own, and will be referenced by other objects by id. If the 
> object is not root, it will be embedded inside the referring object as a 
> property.
> 
> So, to be safe, always set #isVoyageRoot to return true at class side of all 
> objects you don't want to have embedded. In general, "big enough" objects who 
> are referenced by different objects should be root.
> 
> In my case, I had a centre which had users which had centres. Users also had 
> projects, and projects also had users. Big mess, I know. Besides that, all 
> users, centres and projects had profiles. My solution was to make centres, 
> projects and users be roots, and let only the profiles be embedded.
> 
> I hope this helped!
> 
> Bernat.
> 
> 
> 2013/7/19 Sabine Knöfel 
> Hi Esteban, 
> 
> yes, now the Rectangle Example works after doing the reset. 
> 
> But saving my model still leads to a non responding image because 
> Voyage is trying to write json for all model stuf deep deep deep and 
> circular. Perhaps same like: 
> http://forum.world.st/Voyage-Circular-references-td4691940.html#a4699436
> 
> I dont know anything about Magritte (yet) and I need a hint what to 
> define in my model so that it stops creating json at certain points 
> and creates only e.g. a Symbol. 
> 
> Example: My model instance  of trip has a connection to an instance of 
> country. The country should not be written in json with all its 
> definitions. Voyage should only write e.g. #germany in the json and 
> later, when getting the instance back from the database, I want to 
> reassign the trip to the country. 
> 
> I already implemented this stuff when working witk Mongotalk the last 
> months and it worked fine. But my question yesterday: 
> http://forum.world.st/MongoDB-open-close-in-production-singleton-or-not-td4699322.html
> lead to my impression that I should use voyage. 
> 
> So, how can I define the "borders"? 
> 
> Sabine 
> 
> On Thu, Jul 18, 2013 at 7:45 PM, EstebanLM [via Smalltalk] 
> <[hidden email]> wrote:
> 
> > Hi Sabine, 
> > 
> > Probably you do not missed anything. 
> > Probably I missed to update the voyage configuration :) 
> > 
> > can you try doing 
> > 
> > VOMongoRepository allInstancesDo: #reset. 
> > 
> > before trying again? 
> > 
> > Cheers, 
> > Esteban 
> > 
> > On Jul 18, 2013, at 6:31 PM, Sabine Knöfel <[hidden email]> wrote: 
> > 
> >> I found this: 
> >> http://smallworks.eu/web/blog/2013-06-14-voyage-the-adventure
> >> 
> >> Chapter "Enhancing storage" 
> >> But if I add the 3+1 methods to Rectangle, and save it again, the json did 
> >> not change. 
> >> 
> >> Did I miss something? 
> >> 
> >> 
> >> 
> >> 
> >> -- 
> >> View this message in context: 
> >> http://forum.world.st/Voyage-Circular-references-tp4691940p4699436.html
> >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. 
> >> 
> > 
> > 
> > 
> > 
> >  
> > If you reply to this email, your message will be added to the discussion 
> > below: 
> > http://forum.world.st/Voyage-Circular-references-tp4691940p4699443.html
> > To unsubscribe from Voyage: Circular references, click here. 
> > NAML 
> 
> View this message in context: Re: Voyage: Circular references
> 
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 
> 
> 
> -- 
> Bernat Romagosa.



Re: [Pharo-users] Voyage: Circular references

2013-07-19 Thread Sabine Knöfel
Hi Esteban,

thanks!

I think the solution of Bernat will not be enough for me.
I added the class methods isVoyageRoot to the root objects (like trip,
country and so on).

But I have instances which should never be persistent, e.g. the
country I mentioned. The Country has currencies and expense rates and
this is a lot of stuff...this should be only transient in the image.

The transient country is referenced by persistent instances of trip.
(countrie does naturally not point to trips)

Trip (persistant) -> Country (transient)

If I try to save a trip, voyage at some point enters
>>rawReference: description:
and there, it looks whether anObject (a country) isNew:
isNew means the other object, the country has an _id (mongo id).

The country does not have an id and for this reason, voyage tries to
make it persistent although its class has isVogageRoot false.
And than the system enters a point where it tries to make so many
objects persistent that the image does not respond anymore.

So, my question is: is it possible to define
"In class trip, there is an inst var country -> voyage please save
only a symbol here"
and
"voyage, if loading a trip, for inst var country, do shting"

Sure, I could save symbols within the trips country inst var all the time
and get the country it if needed, but it would be nicer if voyage coud
do that for me .-)

Sabine





On Fri, Jul 19, 2013 at 11:52 AM, EstebanLM [via Smalltalk]
 wrote:
> Hi Sabine,
>
> If Bernat help is not enough, I would like to have some more insight on your
> problem, so If you can put here a better description of your model and the
> problem you are having, I will have a look :)
>
> Esteban
>
> On Jul 19, 2013, at 10:42 AM, Bernat Romagosa <[hidden email]> wrote:
>
> Hi Sabine!
>
> If you want an object to be referenced by another, and not embedded in it,
> you need to give that object root entity. As a root, the object will have a
> collection of its own, and will be referenced by other objects by id. If the
> object is not root, it will be embedded inside the referring object as a
> property.
>
> So, to be safe, always set #isVoyageRoot to return true at class side of all
> objects you don't want to have embedded. In general, "big enough" objects
> who are referenced by different objects should be root.
>
> In my case, I had a centre which had users which had centres. Users also had
> projects, and projects also had users. Big mess, I know. Besides that, all
> users, centres and projects had profiles. My solution was to make centres,
> projects and users be roots, and let only the profiles be embedded.
>
> I hope this helped!
>
> Bernat.
>
>
> 2013/7/19 Sabine Knöfel <[hidden email]>
>>
>> Hi Esteban,
>>
>> yes, now the Rectangle Example works after doing the reset.
>>
>> But saving my model still leads to a non responding image because
>> Voyage is trying to write json for all model stuf deep deep deep and
>> circular. Perhaps same like:
>> http://forum.world.st/Voyage-Circular-references-td4691940.html#a4699436
>>
>> I dont know anything about Magritte (yet) and I need a hint what to
>> define in my model so that it stops creating json at certain points
>> and creates only e.g. a Symbol.
>>
>> Example: My model instance  of trip has a connection to an instance of
>> country. The country should not be written in json with all its
>> definitions. Voyage should only write e.g. #germany in the json and
>> later, when getting the instance back from the database, I want to
>> reassign the trip to the country.
>>
>> I already implemented this stuff when working witk Mongotalk the last
>> months and it worked fine. But my question yesterday:
>>
>> http://forum.world.st/MongoDB-open-close-in-production-singleton-or-not-td4699322.html
>> lead to my impression that I should use voyage.
>>
>> So, how can I define the "borders"?
>>
>> Sabine
>>
>> On Thu, Jul 18, 2013 at 7:45 PM, EstebanLM [via Smalltalk]
>> <[hidden email]> wrote:
>>
>> > Hi Sabine,
>> >
>> > Probably you do not missed anything.
>> > Probably I missed to update the voyage configuration :)
>> >
>> > can you try doing
>> >
>> > VOMongoRepository allInstancesDo: #reset.
>> >
>> > before trying again?
>> >
>> > Cheers,
>> > Esteban
>> >
>> > On Jul 18, 2013, at 6:31 PM, Sabine Knöfel <[hidden email]> wrote:
>>
>> >
>> >> I found this:
>> >> http://smallworks.eu/web/blog/2013-06-14-voyage-the-adventure
>> >>
>> >> Chapter "Enhancing storage"
>> >> But if I add the 3+1 methods to Rectangle, and save it again, the json
>> >> did
>> >> not change.
>> >>
>> >> Did I miss something?
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >> http://forum.world.st/Voyage-Circular-references-tp4691940p4699436.html
>> >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>> >>
>> >
>> >
>> >
>> >
>> > 
>> > If you reply to this email, your message will be added to the discussion
>> > below:
>> > http://forum.world.st/Voyage-Circular-references

Re: [Pharo-users] Pharo 2.0 and Android

2013-07-19 Thread jannik.laval
Hi,

I am trying with Pharo2.0.
It seems to work but I have 2 errors:
- the vm seems old: I have a message that says the vm should be updated
- Unicode plugin seems not available. I have to change something in my code to 
not use it ?

Jannik


On Jul 15, 2013, at 4:30 PM, hilaire  wrote:

> I have not tried yet Pharo 2.0.
> I am planing to first port DrGeo to Pharo 2.0, then test Android version
> with the 2.0 image.
> 
> Hilaire
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/Pharo-2-0-and-Android-tp4698239p4698762.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 




Re: [Pharo-users] [ANN] BioSmalltalk published in Bioinformatics Journal

2013-07-19 Thread Alain Busser
That's great, even faster than bioPython, and thanks to Petit Parser.
That's great!

I hope it will be on good place on Pharo's web site...


On Wed, Jul 17, 2013 at 11:14 PM, Hernán Morales Durand <
hernan.mora...@gmail.com> wrote:

> Hi Marcus,
>
> Thank you for the comments, I have been checking the link distribution
> conditions and they say people can access the article only from the Oxford
> Journals website for academic purposes, so here it is:
>
>
> http://bioinformatics.oxfordjournals.org/content/early/2013/07/09/bioinformatics.btt398.full.pdf?keytype=ref&ijkey=Y2j8jNeEKVNl0rD
>
> Sorry for the inconvenience.
> Cheers,
>
> Hernán
>
>
>
> 2013/7/17 Marcus Denker 
>
>>
>> On Jul 16, 2013, at 9:31 PM, Hernán Morales Durand <
>> hernan.mora...@gmail.com> wrote:
>>
>> > Doru, I can access the article through the "Full Text (PDF)" link at
>> the right box titled "This Article". Maybe you have the right columns
>> collapsed? There is an arrow button "Show all columns" if you cannot see
>> the link.
>> > Let me know.
>> >
>>
>> Publishing is the act of making Paper in-accessible to the Public (that's
>> where the name comes from).
>>
>> So what all serious publishers allow you to do is to make the version
>> that you send them (not their version) available from your
>> website and/or an online-archive of your employer,
>>
>> It is very important to do that, as people will not jump through hoops to
>> get your paper (e.g. go to the library?).
>> In the past I send emails to authors to get paper copies, but today I
>> would just *never* do that. If *you* don't make your
>> paper available, why should I bother? i will just not read it and not
>> cite it.
>>
>> The journal publishing is just important for your CV and getting tenure
>> and things like that, the paper the people
>> really *read* is the one they can download from your website.
>>
>> Marcus
>>
>
>


Re: [Pharo-users] installing Seaside on Pharo 2.0

2013-07-19 Thread sminni
Seems smalltalkhub access works thru Firefox (22.0) but not IE (10.0)
The cube with title smalltalk hub appears and then "Loading please wait ..."
for ever

thanks
Sanjay




-
---
Regards, Sanjay
--
View this message in context: 
http://forum.world.st/installing-Seaside-on-Pharo-2-0-tp4698685p4699630.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Pharo 2.0 and Android

2013-07-19 Thread jannik.laval
Ok,

I solved the problem of the Unicode plugin: I removed it :)
for the old vm, I don't know what is the impact, but it seems to work.

Phratch can be loaded on Android now, but it is really slow, i am checking that.

Jannik

On Jul 19, 2013, at 4:36 PM, jannik.laval  wrote:

> Hi,
> 
> I am trying with Pharo2.0.
> It seems to work but I have 2 errors:
> - the vm seems old: I have a message that says the vm should be updated
> - Unicode plugin seems not available. I have to change something in my code 
> to not use it ?
> 
> Jannik
> 
> 
> On Jul 15, 2013, at 4:30 PM, hilaire  wrote:
> 
>> I have not tried yet Pharo 2.0.
>> I am planing to first port DrGeo to Pharo 2.0, then test Android version
>> with the 2.0 image.
>> 
>> Hilaire
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://forum.world.st/Pharo-2-0-and-Android-tp4698239p4698762.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>> 
> 




Re: [Pharo-users] installing Seaside on Pharo 2.0

2013-07-19 Thread Camillo Bruni

On 2013-07-19, at 18:40, sminni  wrote:

> Seems smalltalkhub access works thru Firefox (22.0) but not IE (10.0)
> The cube with title smalltalk hub appears and then "Loading please wait ..."
> for ever

yes that is a known issue with low priority. Using a real browser, namely not 
IE, will solve the issue :)