[Pharo-users] Problem with Dictionary and Associations

2021-02-10 Thread da...@totallyobjects.com
I am using STON to objects out to disk. Up to two days ago, I was reading them 
in as Dictionaries and converting to objects from there. All of a sudden 
yesterday morning, I got an error saying that the association is only indexable 
with integers. Even so, I don't seem to be able to access the contents. 

Fistly, any ideas why this has changed and secondly, any ideas how to fix it? 

David
Totally Objects

Sent from my Huawei tablet

[Pharo-users] Re: Problem with Dictionary and Associations

2021-02-17 Thread da...@totallyobjects.com
YesSent from my Huawei tablet Original Message Subject: [Pharo-users] Re: Problem with Dictionary and AssociationsFrom: Guillermo Polito To: Any question about pharo is welcome CC: Hi David,do you use the Pharo Launcher?G.> El 16 feb 2021, a las 20:51, David Pennington  escribió:> > Thank you, where do I get Pharo 9?> >> On 16 Feb 2021, at 19:44, Stéphane Ducasse  wrote:>> >> Hello David,>> >> We just sent an update and a blog post to get the new VM and install it. >> So let us know. I think that Pharo will be a lot snappier because Rosetta is slowing Pharo a lot. >> >> S>> >> PS: we have access to our building one day a week and this is an exception because >> normally we should be 100% at home. >> >>> Hello happy Pharoers>>> >>> Today we could access our building where the M1 machine is and Pablo packaged it>>> so that you can test the first version. >>> >>> Pablo wrote a little blog post for you.>>> >>> 	https://thepharo.dev/2021/02/16/first-apple-m1-pharo-version/>>> >>> Let us since we do not have the M1 at hand and waiting to be able to make it accessible from >>> our build farm… but we are not responsible for it and we were waiting….>>> But the crew was fixing other VM glitches. So we will be ready soon to focus on the Jit version.>>> >>> >>> S

[Pharo-users] Re: Sharing classes between packages

2021-03-01 Thread da...@totallyobjects.com
I guess that the answer is to move the kv into its own package but I don't know how to refer from one package to another. Can anyone clarify for me. Sent from my Huawei tablet Original Message Subject: [Pharo-users] Sharing classes between packagesFrom: David Pennington To: Any question about pharo is welcome CC: I have a small Key/Value database that I have written for my Seaside apps. I have one Package - Family-Accounts which defines the classes for this database. I am now writing a new Seaside app (IPMSClacton) that will also need to use the database. How do I share the code between the two packages?DavidTotally Objects

[Pharo-users] Re: Code not showing all items in directory

2021-03-07 Thread da...@totallyobjects.com
Sorry just seen what you mean. The screen shot is all I can do. Sent from my Huawei tablet Original Message Subject: [Pharo-users] Re: Code not showing all items in directoryFrom: Stéphane Ducasse To: Any question about pharo is welcome CC: can you show us your file names?and a ls of your directory?On 7 Mar 2021, at 20:58, David Pennington <da...@totallyobjects.com> wrote:Hi there. I am a long time user of VAST recently moved to Pharo. I have a directory that contains 20 JSON  items. I am using the following code to load all of them into a collection.bucketList		| top fileDirectory bucketList nameList |	top := FileSystem disk workingDirectory.	fileDirectory := top / 'TinyKVDB' / self bucket.	bucketList := fileDirectory children.	nameList := SortedCollection new.	bucketList		do: [ :each | 			nameList add: each asString ] .	^ nameListThe code is only loading 18 of the items in the directory. I cannot see that there is anything different between there 18 and the other 2. Can anyone give me some clues here?DavidTotallyObjects
Stéphane Ducassehttp://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52Assistant: Aurore Dalle FAX 03 59 57 78 50TEL 03 59 35 86 16S. Ducasse - Inria40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park PlazaVilleneuve d'Ascq 59650France



[Pharo-users] Re: Code not showing all items in directory

2021-03-07 Thread da...@totallyobjects.com
I will do that tomorrow. I can't understand why there would be any difference between the files. They are generated in VisualAge from VAST Object dumps into json in a simple loop on Windows 10 and copied across to the mac using the clipboard (the Windows machine is on MSRemoteAccess so cut and paste works). I have previously moved other objects across in the same way 320 at one go, so I cannot see why there should be any difference Sent from my Huawei tablet Original Message Subject: [Pharo-users] Re: Code not showing all items in directoryFrom: Stéphane Ducasse To: Any question about pharo is welcome CC: You can put a conditional halt in the loading logic 	Halt if: [ name = ‘jo’]and let us know. Did you check the rights of these files?Are they symbolic links?Because FileSystem has sometimes surprising behavior with symbolic links. S. On 7 Mar 2021, at 21:35, David Pennington <da...@totallyobjects.com> wrote:Not sure what you mean by ls. Here is the directory. The file called jo is not appearing in the list.On 7 Mar 2021, at 20:01, Stéphane Ducasse <stephane.duca...@inria.fr> wrote:can you show us your file names?and a ls of your directory?On 7 Mar 2021, at 20:58, David Pennington <da...@totallyobjects.com> wrote:Hi there. I am a long time user of VAST recently moved to Pharo. I have a directory that contains 20 JSON  items. I am using the following code to load all of them into a collection.bucketList		| top fileDirectory bucketList nameList |	top := FileSystem disk workingDirectory.	fileDirectory := top / 'TinyKVDB' / self bucket.	bucketList := fileDirectory children.	nameList := SortedCollection new.	bucketList		do: [ :each | 			nameList add: each asString ] .	^ nameListThe code is only loading 18 of the items in the directory. I cannot see that there is anything different between there 18 and the other 2. Can anyone give me some clues here?DavidTotallyObjects
Stéphane Ducassehttp://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52Assistant: Aurore Dalle FAX 03 59 57 78 50TEL 03 59 35 86 16S. Ducasse - Inria40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park PlazaVilleneuve d'Ascq 59650France


Stéphane Ducassehttp://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52Assistant: Aurore Dalle FAX 03 59 57 78 50TEL 03 59 35 86 16S. Ducasse - Inria40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park PlazaVilleneuve d'Ascq 59650France



[Pharo-users] Re: New VM, how do I get it

2021-05-23 Thread da...@totallyobjects.com
Thank you. I t honk that I have it but how do I know if I have the M1 vm? How do I integrate it with Pharo launcher? Sent from my Huawei tablet Original Message Subject: [Pharo-users] Re: New VM, how do I get itFrom: Stéphane Ducasse To: Any question about pharo is welcome CC: David There is no magic. You should also consider that pharo-ui is a shell script and that you can also read it and learn. The vm is an executable and it needs an image and it cannot guess where you put it. S. On 22 May 2021, at 18:38, David Pennington <da...@totallyobjects.com> wrote:
Stéphane Ducassehttp://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52Assistant: Aurore Dalle FAX 03 59 57 78 50TEL 03 59 35 86 16S. Ducasse - Inria40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park PlazaVilleneuve d'Ascq 59650France