Re: [Pharo-users] HiDPI

2017-05-17 Thread Stephan Eggermont
Hi Tim, Steven No, it has nothing to do with Bloc. The necessary change was made by Tobias in the squeak vm some time ago, but that was destabilizing the spur vm at that time. I assume it is time to revisit it now the gc bugs seem to be gone. Stephan

[Pharo-users] Ston feature idea?

2017-05-17 Thread Cyril Ferlicot D.
Hi! At Synectique sometimes we use Ston to export models that contains some MooseEntities. Moose entities been complex, we usually export only the moose name of the entity then we retrieve the entity during the import. But we did not find any "easy" way to do this in Ston. I used voyage and it h

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Sven Van Caekenberghe
Hi Cyril, This can be done quite easily in STON, I will make you a small example and add it to the unit tests. Sven > On 17 May 2017, at 12:19, Cyril Ferlicot D. wrote: > > Hi! > > At Synectique sometimes we use Ston to export models that contains some > MooseEntities. > > Moose entities be

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Peter Uhnak
Just curious... why don't you use MSE? Peter On Wed, May 17, 2017 at 12:44:58PM +0200, Sven Van Caekenberghe wrote: > Hi Cyril, > > This can be done quite easily in STON, I will make you a small example and > add it to the unit tests. > > Sven > > > On 17 May 2017, at 12:19, Cyril Ferlicot D

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Sven Van Caekenberghe
> On 17 May 2017, at 12:44, Sven Van Caekenberghe wrote: > > Hi Cyril, > > This can be done quite easily in STON, I will make you a small example and > add it to the unit tests. === Name: STON-Tests-SvenVanCaekenberghe.79 Author: SvenVanCaekenberghe Time: 17 May 2017, 1:43:03.96 pm UUID:

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Cyril Ferlicot D.
On 17/05/2017 13:14, Peter Uhnak wrote: > Just curious... why don't you use MSE? > Because what we want to export is not composed only of entities describes by Fame. We only reference some of them sometimes. > Peter > -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacq

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Cyril Ferlicot D.
On 17/05/2017 13:46, Sven Van Caekenberghe wrote: > >> On 17 May 2017, at 12:44, Sven Van Caekenberghe wrote: >> >> Hi Cyril, >> >> This can be done quite easily in STON, I will make you a small example and >> add it to the unit tests. > > === > Name: STON-Tests-SvenVanCaekenberghe.79 > Author:

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Sven Van Caekenberghe
> On 17 May 2017, at 14:15, Cyril Ferlicot D. wrote: > > On 17/05/2017 13:46, Sven Van Caekenberghe wrote: >> >>> On 17 May 2017, at 12:44, Sven Van Caekenberghe wrote: >>> >>> Hi Cyril, >>> >>> This can be done quite easily in STON, I will make you a small example and >>> add it to the uni

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Cyril Ferlicot D.
On 17/05/2017 14:22, Sven Van Caekenberghe wrote: > > Of course that does not work, it is your job to do something similar that > fits your use case. You certainly do not have to cache everything. > > On the other had, if you only serialise part of an object, or just one > reference (id, url, n

Re: [Pharo-users] HiDPI

2017-05-17 Thread Yuriy Tymchuk
But AFAIK what Tobias did was just to render per pixel essentially scaling all UI 4 times. While the VM should be able to render per pixel, there should be some abstraction that converts generic “points” if the normal UI to pixels used for rendering. So we can have the same UI as we had without

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Sven Van Caekenberghe
> On 17 May 2017, at 14:38, Cyril Ferlicot D. wrote: > > On 17/05/2017 14:22, Sven Van Caekenberghe wrote: >> >> Of course that does not work, it is your job to do something similar that >> fits your use case. You certainly do not have to cache everything. >> >> On the other had, if you only

Re: [Pharo-users] HiDPI

2017-05-17 Thread p...@highoctane.be
Ah, the @x2 and @x3 fun... https://developer.apple.com/ios/human-interface-guidelines/graphics/image-size-and-resolution/ On Wed, May 17, 2017 at 2:48 PM, Yuriy Tymchuk wrote: > But AFAIK what Tobias did was just to render per pixel essentially scaling > all UI 4 times. While the VM should be a

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Cyril Ferlicot D.
On 17/05/2017 14:55, Sven Van Caekenberghe wrote: > > > The use of #stonAllInstVarNames works in limiting what you write out (there > is even a unit test based on STONTestUser3). > > But you seem to want to do something else, you want to write the others ones > out in a different way. > > Wha

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Sven Van Caekenberghe
> On 17 May 2017, at 15:11, Cyril Ferlicot D. wrote: > > On 17/05/2017 14:55, Sven Van Caekenberghe wrote: >> >> >> The use of #stonAllInstVarNames works in limiting what you write out (there >> is even a unit test based on STONTestUser3). >> >> But you seem to want to do something else, you

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Cyril Ferlicot D.
On 17/05/2017 15:17, Sven Van Caekenberghe wrote: > > > OK. > > But don't go too far in writing actual code. I want to understand the use > case at a high level (like how you started), then I can try to find how/if > STON can do what you want. Right now, you are already too deep into a > poss

Re: [Pharo-users] Loading Glorp+PostgreSQL

2017-05-17 Thread Pierce Ng
On Tue, May 16, 2017 at 11:58:50AM +0200, Sven Van Caekenberghe wrote: > I am bringing my Reddit example back up to date > (https://medium.com/concerning-pharo/reddit-st-in-10-cool-pharo-classes-1b5327ca0740) > for an upcoming Pharo Booklet. Hi Sven, I've adapted your Reddit application to work

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Sven Van Caekenberghe
> On 17 May 2017, at 15:47, Cyril Ferlicot D. wrote: > > On 17/05/2017 15:17, Sven Van Caekenberghe wrote: >> >> >> OK. >> >> But don't go too far in writing actual code. I want to understand the use >> case at a high level (like how you started), then I can try to find how/if >> STON can d

Re: [Pharo-users] Loading Glorp+PostgreSQL

2017-05-17 Thread Sven Van Caekenberghe
> On 17 May 2017, at 16:01, Pierce Ng wrote: > > On Tue, May 16, 2017 at 11:58:50AM +0200, Sven Van Caekenberghe wrote: >> I am bringing my Reddit example back up to date >> (https://medium.com/concerning-pharo/reddit-st-in-10-cool-pharo-classes-1b5327ca0740) >> for an upcoming Pharo Booklet.

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Cyril Ferlicot D.
On 17/05/2017 16:02, Sven Van Caekenberghe wrote: > > OK, that is an understandable example. > > But why exactly do you want Currency to be serialised differently ? You don't > want too many instances ? You want all instances to be #== ? Is Currency too > big ? You want to allow humans to edit

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Sven Van Caekenberghe
> On 17 May 2017, at 16:15, Cyril Ferlicot D. wrote: > > On 17/05/2017 16:02, Sven Van Caekenberghe wrote: >> >> OK, that is an understandable example. >> >> But why exactly do you want Currency to be serialised differently ? You >> don't want too many instances ? You want all instances to b

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Cyril Ferlicot D.
On 17/05/2017 16:25, Sven Van Caekenberghe wrote: > > > OK. > > So there is some existing method that gives you the entity given its name ? > > MooseEntity class>>fromEntityName: 'mooseEntityName' > > Right ? > > So why can't you use the example that I gave you earlier, replace the UUID >

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Sven Van Caekenberghe
> On 17 May 2017, at 16:27, Cyril Ferlicot D. wrote: > > On 17/05/2017 16:25, Sven Van Caekenberghe wrote: >> >> >> OK. >> >> So there is some existing method that gives you the entity given its name ? >> >> MooseEntity class>>fromEntityName: 'mooseEntityName' >> >> Right ? >> >> So why c

Re: [Pharo-users] Ston feature idea?

2017-05-17 Thread Cyril Ferlicot D.
On 17/05/2017 16:33, Sven Van Caekenberghe wrote: > > > You change the representation of MooseEntity to the above short form, then > you just use MooseEntity instances inside other objects. All other instance > variables of MooseEntity will be skipped. > > Just like Date, Time, or DateAndTime

Re: [Pharo-users] Loading Glorp+PostgreSQL

2017-05-17 Thread Esteban A. Maringolo
2017-05-17 11:04 GMT-03:00 Sven Van Caekenberghe : > >> On 17 May 2017, at 16:01, Pierce Ng wrote: >> >> On Tue, May 16, 2017 at 11:58:50AM +0200, Sven Van Caekenberghe wrote: >>> I am bringing my Reddit example back up to date >>> (https://medium.com/concerning-pharo/reddit-st-in-10-cool-pharo-c

Re: [Pharo-users] Fwd: Re: 11/05/17 - Tabular Data Structures for Data Analysis - Oleksandr Zaytsev

2017-05-17 Thread Stephane Ducasse
I'm interested to help for such new "containers". May be we should proceed that way: On Tue, May 16, 2017 at 7:44 PM, p...@highoctane.be wrote: > We may also use Discord and do something "somewhat live" > > Phil > > On Tue, May 16, 2017 at 7:23 PM, wrote: > >> I was asking Philippe but hope to

Re: [Pharo-users] Fwd: Re: 11/05/17 - Tabular Data Structures for Data Analysis - Oleksandr Zaytsev

2017-05-17 Thread Stephane Ducasse
write some tests and ask for a good implementations. Crazy implementors like henrik can probably beat us all :) On Wed, May 17, 2017 at 7:55 PM, Stephane Ducasse wrote: > I'm interested to help for such new "containers". > May be we should proceed that way: > > > On Tue, May 16, 2017 at 7:44 P

Re: [Pharo-users] Loading Glorp+PostgreSQL

2017-05-17 Thread Stephane Ducasse
A this can be good for the reddit booklet :) But sven has the last word on it. On Wed, May 17, 2017 at 7:35 PM, Esteban A. Maringolo wrote: > 2017-05-17 11:04 GMT-03:00 Sven Van Caekenberghe : > > > >> On 17 May 2017, at 16:01, Pierce Ng wrote: > >> > >> On Tue, May 16, 2017 at 11:58:50AM +

Re: [Pharo-users] Loading Glorp+PostgreSQL

2017-05-17 Thread Sven Van Caekenberghe
> On 17 May 2017, at 19:35, Esteban A. Maringolo wrote: > > 2017-05-17 11:04 GMT-03:00 Sven Van Caekenberghe : >> >>> On 17 May 2017, at 16:01, Pierce Ng wrote: >>> >>> On Tue, May 16, 2017 at 11:58:50AM +0200, Sven Van Caekenberghe wrote: I am bringing my Reddit example back up to date

[Pharo-users] Seaside: WACache had the subclass responsibility to implement #store:

2017-05-17 Thread Alidra Abdelghani via Pharo-users
--- Begin Message --- Hi all, If run a new Seaside image then instal BootstrapMagrite I can no more access the list of running apps in the seaside image from a browser I type in firefox localhost:8080 and I get : WACache had the subclass responsibility to implement #store: Any ideas? Thanks in

Re: [Pharo-users] Problems loading XML System ( was [Zinc] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding)

2017-05-17 Thread monty
For example, this: ((StAXHTMLParser onURL: aURLString) nextElementNamed: 'head') ifNotNil: [:headElement | ...] parses the document upto the next "head" element and returns it and any descendants as a DOM subtree. If there's no next "head" element, it exhausts the event s

[Pharo-users] Need help with Pillar

2017-05-17 Thread Alexandre Bergel
Hi! I have installed Pillar on MacOSX using: curl https://raw.githubusercontent.com/pillar-markup/pillar/master/download.sh | bash I had to copy PharoV50.sources in the folder pharo-vm/ apparently. Getting the archetype book gives me an error: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= /tmp/pill