[Pharo-users] Re: Silly question about storing and displaying currency amounts?

2021-08-30 Thread David Pennington
I come from a currency trader background and way back in 1983, I was dealing 
with this in North Star Basic and then UCSD Pascal  and into VisualSmalltalk 
(remember that?) so I have some history here. Trouble is, at 76, my little grey 
cells are letting me down bit. Excuses over. I will go back into the code and 
make sure that I scale all these ScaledDecimals to 2 and see if that helps.

BTW, I wasn’t suggesting that there was any problem with STON as that works 
brilliantly for me.

David

> On 30 Aug 2021, at 13:51, jtuc...@objektfabrik.de wrote:
> 
> Hi Sven,
> 
> 
> I just tried 46.79 asScaledDecimal and 46.79 asScaledDecimal: 2 in both VAST 
> and Pharo and see quite different results.
> In VAST, not providing a scale returns 46.79, but with a scale of 14 
> (46.79s14). But it is still 46.79.
> 
> What's good is that the results of "asScaledDecimal: 2" yields the same 
> results on VAST and Pharo.
> 
> Your examples also use a fixed scale of 2. So is it safe to assume that when 
> you provide the scale, ScaledDecimal is good for monetary amounts in Pharo? I 
> ask because that is what I once learned in an IBM training decades ago: use 
> ScaledDecimals for money and percentages, never use floats.
> 
> Would you agree that as a rule of thumb, Pounds, Dollars and Euros are safely 
> stored and processed when you make sure to always provide the scale of 2 
> (unless you manage stock or petrol prices which use 3 or 4 or even more 
> digits)?
> 
> Joachim
> 
> 
> 
> 
> 
> Am 30.08.21 um 14:31 schrieb Sven Van Caekenberghe:
>> David,
>> 
>>> On 30 Aug 2021, at 14:02, David Pennington  wrote:
>>> 
>>> Hi everyone. I have a little bank analysis package for my own use but 
>>> having trouble displaying and storing amounts. I parse out a CSV file from 
>>> the bank and convert the amounts from text to ScaledDecimal. I then store 
>>> these into a STON file, which converts them back to text. I then read them 
>>> in and convert them back to ScaledDecimal again.
>>> 
>>> I am not used to ~Pharo have spent 24 years using VisualAge Smalltalk so I 
>>> need a little bit of help because I am getting 1 Penny errors in the 
>>> conversions. I can cope with this but I would like to get it right.
>>> 
>>> Can anyone give me a simple means of managing, say, an amount like £76.49 
>>> from the bank so that it stops coming back to me as £76.48?
>>> 
>>> David
>>> Totally Objects
>> Working with money is always challenging. I know that many people say 'Use 
>> ScaledDecimal' as if that magically solves all problems but it does not. 
>> ScaledDecimal is a bit of a dangerous class to use. It is just a fraction 
>> with a certain precision. Internally it might be pretty accurate with 
>> respect to most operations, its external representation as floating point 
>> number can be misleading, as this representation is prone to all problems 
>> related to floating point (including the fact that decimal and binary 
>> floating point are not the same).
>> 
>> STON does not doing anything wrong as far as I know. Consider the following:
>> 
>> | amount ston |
>> amount := 76.49 asScaledDecimal.
>> ston := STON toString: amount.
>> STON fromString: ston.
>> (STON fromString: ston) = amount.
>>  "true"
>> 
>> | amount ston |
>> amount := 76.49 asScaledDecimal: 2.
>> ston := STON toString: amount.
>> STON fromString: ston.
>> (STON fromString: ston) = amount.
>>  "true"
>> 
>> | amount ston |
>> amount := 76.49.
>> ston := STON toString: amount.
>> STON fromString: ston.
>> (STON fromString: ston) = amount.
>>  "true"
>> 
>> BUT, 76.49 asScaledDecimal already has your penny loss (if rounded to 
>> pennies).
>> 
>> HTH,
>> 
>> Sven
>> 
> 
> -- 
> ---
> Objektfabrik Joachim Tuchel  mailto:jtuc...@objektfabrik.de
> Fliederweg 1 http://www.objektfabrik.de
> D-71640 Ludwigsburg  http://joachimtuchel.wordpress.com
> Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1
> 


[Pharo-users] Silly question about storing and displaying currency amounts?

2021-08-30 Thread David Pennington
Hi everyone. I have a little bank analysis package for my own use but having 
trouble displaying and storing amounts. I parse out a CSV file from the bank 
and convert the amounts from text to ScaledDecimal. I then store these into a 
STON file, which converts them back to text. I then read them in and convert 
them back to ScaledDecimal again.

I am not used to ~Pharo have spent 24 years using VisualAge Smalltalk so I need 
a little bit of help because I am getting 1 Penny errors in the conversions. I 
can cope with this but I would like to get it right.

Can anyone give me a simple means of managing, say, an amount like £76.49 from 
the bank so that it stops coming back to me as £76.48?

David
Totally Objects

[Pharo-users] Re: Using new VM but can't find any log files

2021-08-28 Thread David Pennington
Sven

Thanks for your response. I had the same problem on 8.0 and, in fact, had the 
same problem with VAST on Windows 10 and Windows 2012 server so I am not 
hopeful.  Running Linux is not an option for me although I could reconfigure my 
Windows 2012 Server as I have replaced that with an M1 MacMini.

For the time being, my client (or at least the club that I belong to, 
appreciate my efforts and are happy with as minimal HTML web site and a Blog 
but I got the MacMini hoping to solve this so I would like to see a solution.  
I am enjoying Pharo and don’t want. To have to leave it.

David

> On 28 Aug 2021, at 16:47, David Pennington  wrote:
> 
> Hi there. I have installed the new M1 VM that supposedly gives much better 
> information into a log file. However, my image is still disappearing such 
> that it now doesn’t last more than 12 hours before going. I have searched for 
> these log files but I can’t find any. Can anyone help me in this as I am 
> close the throwing this all into the bin if I can’t keep my simple web site 
> going regularly. My clients are not happy, as you can imagine and telling me 
> to just go with a Blogger blog! I don’t want to do that so can anyone help?
> David


[Pharo-users] Using new VM but can't find any log files

2021-08-28 Thread David Pennington
Hi there. I have installed the new M1 VM that supposedly gives much better 
information into a log file. However, my image is still disappearing such that 
it now doesn’t last more than 12 hours before going. I have searched for these 
log files but I can’t find any. Can anyone help me in this as I am close the 
throwing this all into the bin if I can’t keep my simple web site going 
regularly. My clients are not happy, as you can imagine and telling me to just 
go with a Blogger blog! I don’t want to do that so can anyone help?
David

[Pharo-users] Re: Private Methods

2021-08-18 Thread David Pennington
I found this useful when creating commercial frameworks for VAST.  For 
instance, in the printing framework, I used the idea of a turtle (from 
turtlegraphics) to create pages. All the turtle commands - turn(50) etc - were 
public but the code that actually created the printing code was all private. 
Hence purchases knew not to touch the private methods.

David

> On 18 Aug 2021, at 14:31, Esteban Maringolo  wrote:
> 
> Hi Noury,
> 
> In Dolphin Smalltalk and in IBM/VA Smalltalk, methods can be private,
> it's a special attribute of the CompiledMethod, so the visibility
> doesn't depend on a category name convention, and you can have both
> public and private methods sharing a single category. I used that
> attribute extensively in the previously described dialects, and it led
> to good method categorization, in the case of Dolphin, it had the nice
> thing of adding "Private - ..." to the method comment when you toggle
> a method as private.
> 
> I'm fine with the current state of everything being public, but if we
> were to have that public/private distinction that would be the
> simplest solution, having a  pragma could also work, but I
> think that in terms of performance it could impact the lookup. I don't
> know, however, if that is what the original request was after.
> 
> Best regards,
> 
> Esteban A. Maringolo
> 
> On Wed, Aug 18, 2021 at 9:47 AM Noury Bouraqadi  wrote:
>> 
>> Hi Esteban,
>> 
>> Which first "class attribute" are you referring to? Is it a pragma? Can you 
>> provide an example please ?
>> 
>> Thanx
>> Noury
>> 
>> On Aug 17 2021, at 10:31 pm, Esteban Maringolo  wrote:
>> 
>> I don't understand the request?
>> 
>> Wouldn't tagging methods as private (as a first class attribute, and
>> not only its category) be enough?
>> 
>> What you ask for seems to be a splitted method dictionary of some sort.
>> 
>> Having first class private methods would save you from autocomplete
>> selector "pollution" of private methods.
>> 
>> Regards!
>> 
>> Esteban A. Maringolo
>> 
>> On Tue, Aug 17, 2021 at 5:14 PM Craig Johnson  wrote:
>>> 
>>> Hi All,
>>> 
>>> 
>>> Just a newb off-the-wall question.
>>> 
>>> Is there any good reason why we can't create a true private method in a
>>> Pharo class by putting that method inside an instance or class variable
>>> as a lambda (block).
>>> 
>>> 
>>> This would reduce one of my biggest bugbears with Pharo, namely the
>>> pollution of the global namespace with every single message name in the
>>> entire system.
>>> 
>>> 
>>> 
>>> Craig


[Pharo-users] Re: File-in Issue - Pharo 9

2021-08-16 Thread David Pennington
Drag and drop always works for me. DavidOn 16 Aug 2021 00:17, Craig Johnson  wrote:Hi All,


I just filed-out a small project that I playing with, and refreshed the 
image.  The new image cannot file-in the package from the File Browser.

"Instance of RubSmalltalkEditor did not understand #fileItIn".


Is there another way to file-in the package?


Thanks


Craig



[Pharo-users] Re: Zeroconf downloading latest rather than stable

2021-07-29 Thread David Pennington
Is there any one who can help with this? It must be possible to download the 
latest VM surely.

David

> On 27 Jul 2021, at 11:04, David Pennington  wrote:
> 
> Hi there.
> 
> I have done a clean install of Pharo 9.0 using the zeroconf on get.pharo.org.
> 
> I am using curl https://get.pharo.org | bash 
> 
> When running the environment, I get a message at startup telling me that my 
> VM is too old and that I should install a newer one - I am running it on an 
> M1 MacMini. 
> 
> However, after discussions on Discord, it seems that the above script 
> installs the latest “stable”, not the latest VM. How do I get out of this 
> little wrinkle?
> 
> David


[Pharo-users] Zeroconf downloading latest rather than stable

2021-07-27 Thread David Pennington
Hi there.

I have done a clean install of Pharo 9.0 using the zeroconf on get.pharo.org.

I am using curl https://get.pharo.org | bash 

When running the environment, I get a message at startup telling me that my VM 
is too old and that I should install a newer one - I am running it on an M1 
MacMini. 

However, after discussions on Discord, it seems that the above script installs 
the latest “stable”, not the latest VM. How do I get out of this little wrinkle?

David


[Pharo-users] Re: The Greatest Contributors to Smalltalk since 1980

2021-07-25 Thread David Pennington
If you knew Digitalk then remember the contribution that Eric Clayberg provided 
through the old Compuserve forums. A lot of us would never have got started if 
we hadn’t had that support. Eric’s knowledge and help got me going back with 
Mac System 7 and Digitalk back in 1990.
David

> On 25 Jul 2021, at 16:29, Russ Whaley  wrote:
> 
> I agree wholeheartedly with Tim. I first started with Smalltalk in the 
> Digitalk days. My experience then and throughout my Smalltalk experience with 
> VW, Squeak, etc., I have never had a community that helped me learn and 
> embrace Smalltalk like Pharo and the Pharo Community. To me, if I cannot be 
> successful with the product, I doesn’t really matter how great it is and who 
> is involved (again, to me). The Pharo community has been so helpful and 
> responsive, I feel very successful with my Smalltalk projects - and while 
> there have been many who have helped from the community, I most often lean on 
> Stephan Ducasse and Esteban Lorenzano for their Pharo documentation (Pharo 
> books), content, ideas and support. 
> 
> Thanks!
> Russ
> 
> On Sun, Jul 25, 2021 at 10:31 AM Tim Mackinnon  wrote:
> Isn’t this the wrong question to ask? I’m assuming this is to do with 
> Smalltalk’s 50th anniversary, and of course we are grateful to those early 
> pioneers who did lots of work in the field 20-30 years ago but to me that’s 
> the old history and while it’s interesting to call out, it doesn’t shed life 
> on the day to day energy we have today - whst keeps Smalltalk alive and 
> current.
> 
> I’d like to nominate the Pharo community - being brave enough to fork when it 
> was felt that doing something different was interesting enough to take the 
> flack for it. But more than this, so many people have continued to contribute 
> - teach, fix, pioneer etc. Particularly when there are so many other 
> languages and movements you can follow - continuing the vision of a simple, 
> malleable system that everyone can understand and fix is commendable.
> 
> If you really want a name - I’d say Stephan Ducasse and Marcus Denker - I 
> heard them stand up at Esug 2007 (Lugano) and really call out a vision for a 
> malleable environment that was Smalltalk inspired but would let them properly 
> experiment with new language ideas (I recall in particular the reference to 
> reified inst var slots to let them manipulate programs more easily when 
> experimenting). This was possibly the foreshadow to Pharo, and it took about 
> 10 years of incremental improvements to achieve that exciting 2007 vision 
> that I recall painted at the time. It certainly didn’t happen in a day , and 
> it’s still happening now as we read this, and the job is still not done.
> 
> But in a way I’m kind of reluctant to name, names as so many people have 
> piled in around that community vision to make something that will continue to 
> live and experiment. But to Stephan/Marcus and everyone else - hats off to 
> you for creating something that is fun and productive to use, but more 
> importantly is inspiring enough to contribute to.
> 
> Tim
> 
>> On 25 Jul 2021, at 11:00, Clacton Server > > wrote:
>> 
>> Eric Clayberg - John O’Keefe??
> 
>> 
>> 
>>> On 25 Jul 2021, at 09:33, Richard Sargent >> > wrote:
>>> 
>>> Dave Thomas of OTI probably ranks in your list.
>>> 
>>> On July 24, 2021 3:44:40 PM PDT, horrido.hobb...@gmail.com 
>>>  wrote:
>>> I’m looking for a list of individuals who have contributed greatly to the 
>>> advancement of Smalltalk, post Xerox PARC period (1972-1980). By 
>>> advancement, I don’t only mean on a technical basis but on an educational 
>>> or public awareness basis (this could include books, podcasts, talk 
>>> circuit, video instruction, etc.). Any basis that has made Smalltalk a 
>>> success in the marketplace (including commercialization).
>>> 
>>> I posted this question on LinkedIn and got one useful response: the late 
>>> James Robertson.
>>> 
>>> My personal nomination is Kent Beck.
>>> 
>>> I’m not that familiar with the deep history of Smalltalk, so I’m looking 
>>> for more nominations.
>>> 
>>> Thanks.
>>> 
>> 
> -- 
> Russ Whaley
> whaley.r...@gmail.com 


[Pharo-users] Re: Problem installing 9.0 on MacMini M1

2021-06-16 Thread David Pennington
I transferred both of my images ( 8 and 9) across and put them in the images 
directory of a new Pharo Launcher. I now have 9.0 working on the Mac mini but 
it is still telling me that my VM is out of date. I have opened the VM window 
and updated both the 8 and 9 vm but I still get the message. I am not convinced 
that I have an M1 VM. 

How do I sort this. I am nearly there.

> On 15 Jun 2021, at 18:44, Tim Mackinnon  wrote:
> 
> Worth saying that while Brew is handy on a mac (and avoid installing it as a 
> sudo user) - you shouldn't need it do anything with Pharo either with with 
> the launcher (graphical) or via the console (command line).
> 
> Its worth checking you have properly read the download instructions on 
> pharo.org <http://pharo.org/> - for command line it does say use "curl" and 
> "wget if curl not available".
> 
> For your pharo damaged question - have you tried just creating a fresh 
> directory, cd'ing into it and then running the command line instructions for 
> a fresh install. You can then make sure sure pharo works correctly command 
> line - and if so, this is then possibly a 32 vs 64 bit image difference. You 
> could investigate this - or simply create a new image and install your code 
> into it as a fresh install - which might be better anyway, while your getting 
> things sorted.
> 
> Others may have more tips for you.
> 
> Tim
> 
> On Tue, 15 Jun 2021, at 5:58 PM, Rob Sayers wrote:
>> Hi, I can't help with the Pharo specific issue, but for installing brew, you 
>> can find the directions here: https://brew.sh/ <https://brew.sh/>
>> 
>> On Tue, Jun 15, 2021 at 10:16 AM David Pennington > <mailto:da...@totallyobjects.com>> wrote:
>> Hi everyone. It is your favourite newbie speaking :-)
>> 
>> I have now got a new M1 MacMini which I want to configure up as a server for 
>> my Seaside apps.
>> 
>> So far, I have found that the Mac mini doesn’t have wget or brew installed! 
>> I have sorted wget but not brew.
>> 
>> Secondly, I have transferred all of my 9.0 stuff across but when I try and 
>> execute both paharo-ui or pharo (as terminal scripts) they both fail as they 
>> say that the “Paharo” is damaged and can’t be opened. You should move it to 
>> the bin.
>> 
>> I can open Pharo 9.0 directly but it tells me that the VM is too old for 
>> this image.
>> 
>> Can anyone help me please? (In words that I can understand:-)
>> 
>> David
>> 
>> 
>> -- 
>> Rob Sayers
>> www.robsayers.com <http://www.robsayers.com/>


[Pharo-users] Problem installing 9.0 on MacMini M1

2021-06-15 Thread David Pennington
Hi everyone. It is your favourite newbie speaking :-)

I have now got a new M1 MacMini which I want to configure up as a server for my 
Seaside apps.

So far, I have found that the Mac mini doesn’t have wget or brew installed! I 
have sorted wget but not brew.

Secondly, I have transferred all of my 9.0 stuff across but when I try and 
execute both paharo-ui or pharo (as terminal scripts) they both fail as they 
say that the “Paharo” is damaged and can’t be opened. You should move it to the 
bin.

I can open Pharo 9.0 directly but it tells me that the VM is too old for this 
image.

Can anyone help me please? (In words that I can understand:-)

David

[Pharo-users] Re: And it goes on - How do I fix a missing repository

2021-06-03 Thread David Pennington
Surely,  one of the bases of OO development is to subclass and extend existing 
classes? How can you code on the fly, as mentioned as one great benefit of 
Smalltalk, if you can’t set break points? I have lost you here.
David

> On 3 Jun 2021, at 08:39, Esteban Lorenzano  wrote:
> 
> I still do not understand why you need to repository at all.
> you should not need it to do anything of what you are trying to do (adding 
> extensions and setting breakpoints).
> 


[Pharo-users] And it goes on - How do I fix a missing repository

2021-06-01 Thread David Pennington
I am obviously out of the loop when it comes to all of this repository stuff. 

So, I have imported my 8.0 code into 9.0 but I can’t add an extension method to 
ScaledDecimal because a repository is missing. I check what to do and get sent 
to Iceberg. Somehow, as a newbie, I am supposed to understand how iceberg works 
but, being a 76 year old VAST Smalltalker, I don’t. Surely, when I install 9.0, 
qashouldn’t I get everything I need for a basic image?

What do I do next. Attached is a screenshot of Iceberg.


David

[Pharo-users] 9.0 My VM is too old

2021-05-27 Thread David Pennington
I am getting the VM too old error on startup with my V 9.0 image. Can I fix 
this?

David

[Pharo-users] STON reader problem

2021-05-27 Thread David Pennington
OK, so I have installed Pharo 9.0 with the M1 VM and everything is nice and 
quick. I am porting my code across and I have a problem that involves STON 
Reader.

I use this to convert my objects for storage in my text based database. I can’t 
run my code because STON Reader fails when reading in one of the objects.

The contents are as follows:

"{#entryName:'PAYPAL 
*COSYFEET',#entryDate:Date['2021-01-25Z'],#transactionID:'202101250001',#entryAmount:-5041216832887849/140737488355328s8,#entryCategory:nil,#entryDescription:'35314369001
 GB , 5959 22JAN21',#match:'N’}”

The errors is this:



Character 122 is at the conjunction of the 4 and 9 in the ewntryAmount: 
5041216832887849/140737488355328s8,

Any help on this would be great. I have a few thousand entries to fix if there 
is a problem with the file (although my code works fine with this file under 
8.0)

David Pennington

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

2021-05-24 Thread David Pennington
Sorry yes, I gave you the screen shots without the code.

In V 9.0 if I execute the following

| working stream |
working := FileSystem disk workingDirectory

I get an Inspector on /Users/davidpennington. (Not a File~Reference)

In V 8.0 I get an Inspector on a FileReference 
(/Users/davidpennington/Documents/Pharo/images/Pharo 8.0 - 64bit (stable)).

As my database relies on disk paths, this is going to create a difference 
between the two versions which surely should not be so.


> On 24 May 2021, at 16:38, Stéphane Ducasse  wrote:
> 
> 
> 
>> On 24 May 2021, at 15:06, David Pennington > <mailto:da...@totallyobjects.com>> wrote:
>> 
>> OK, I have V9.0 working. The performance difference is amazing on an 
>> Inspect. V8.0 - 3 seconds to respond - V9 - almost instantaneous.
> 
> good to know. 
> Now we prefer to work with the slow version (old OS) because they kick us to 
> pay attention to speed. 
> Pharo 90 got many speed up improvements too. 
> 
>> I have got caught up in a simple file operation - I am trying to rename a 
>> file and `I have come u with the following difference.
> 
> I do not get what is the error. 
> Do you have a script to reproduce it. 
> We can only fix what we can reproduce. 
> 
> S. 
> 
>> 
>> Version 8.0
>> 
>> 
>> 
>> Version 9.0
>> 
>> 
>> 
>> So V 9 is different from V 8.0
>> 
>> Is there a fix for this?
>> 
>> David
>> 
>>> On 24 May 2021, at 12:18, Guillermo Polito >> <mailto:guillermopol...@gmail.com>> wrote:
>>> 
>>> Zeroconf should download the M1 vm, buy the pharo launcher does not support 
>>> that yet.
>>> 
>>> El lun., 24 may. 2021 13:16, Stéphane Ducasse >> <mailto:stephane.duca...@inria.fr>> escribió:
>>> is your machine a M1?
>>> If this is the case check the email that were sent on how to get the VM.
>>> 
>>> S. 
>>> 
>>>> On 23 May 2021, at 11:54, da...@totallyobjects.com 
>>>> <mailto:da...@totallyobjects.com> wrote:
>>>> 
>>>> 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 it
>>>> From: 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 >>>> <mailto:da...@totallyobjects.com>> wrote:
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> Stéphane Ducasse
>>>> http://stephane.ducasse.free.fr <http://stephane.ducasse.free.fr/> / 
>>>> http://www.pharo.org <http://www.pharo.org/> 
>>>> 03 59 35 87 52
>>>> Assistant: Aurore Dalle 
>>>> FAX 03 59 57 78 50
>>>> TEL 03 59 35 86 16
>>>> S. Ducasse - Inria
>>>> 40, avenue Halley, 
>>>> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
>>>> Villeneuve d'Ascq 59650
>>>> France
>>>> 
>>> 
>>> 
>>> Stéphane Ducasse
>>> http://stephane.ducasse.free.fr <http://stephane.ducasse.free.fr/> / 
>>> http://www.pharo.org <http://www.pharo.org/> 
>>> 03 59 35 87 52
>>> Assistant: Aurore Dalle 
>>> FAX 03 59 57 78 50
>>> TEL 03 59 35 86 16
>>> S. Ducasse - Inria
>>> 40, avenue Halley, 
>>> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
>>> Villeneuve d'Ascq 59650
>>> France
>>> 
>> 
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr <http://stephane.ducasse.free.fr/> / 
> http://www.pharo.org <http://www.pharo.org/> 
> 03 59 35 87 52
> Assistant: Aurore Dalle 
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley, 
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France



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

2021-05-21 Thread David Pennington
This is a bit like pulling teeth.

I have done what you said. I now have the following in Terminal

davidpennington@Davids-Air ~ % wget -O - https://get.pharo.org/vmLatest90 | 
bash 
--2021-05-21 15:24:47--  https://get.pharo.org/vmLatest90
Resolving get.pharo.org (get.pharo.org)... 2001:41d0:301::23, 164.132.235.17
Connecting to get.pharo.org (get.pharo.org)|2001:41d0:301::23|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5177 (5.1K)
Saving to: ‘STDOUT’

-   100%[===>]   5.06K  --.-KB/sin 0s  

2021-05-21 15:24:47 (823 MB/s) - written to stdout [5177/5177]

Downloading the latest pharoVM:
http://files.pharo.org/get-files/90/pharo-vm-Darwin-arm64-latest.zip
pharo-vm/Pharo.app/Contents/MacOS/Pharo
Creating starter scripts pharo and pharo-ui

Where do I go next?


> On 21 May 2021, at 12:31, Stéphane Ducasse  wrote:
> 
> you execute on a unix shell
> 
> wget -O - https://get.pharo.org/vmLatest90 <https://get.pharo.org/vmLatest90> 
> | bash
> 
> S
> 
>> On 21 May 2021, at 13:16, David Pennington > <mailto:da...@totallyobjects.com>> wrote:
>> 
>> I am sorry but, being a newbie to Pharo, a lot of what you say goes over my 
>> head.
>> 
>> How do I use Zero Conf?
>> 
>> I have loaded up the latest 9.0 from Pharo launcher. How do I get the <1 VM 
>> for that?
>> 
>> Sorry for being stupid.
>> 
>> David
>> P.S. 31 years a Smalltalker so its just the underlying bits that pass over 
>> me - smile.
>> 
>>> On 19 May 2021, at 08:38, teso...@gmail.com <mailto:teso...@gmail.com> 
>>> wrote:
>>> 
>>> Hi David, 
>>>
>>>for M1 we have Pharo 9 compatible VMs, you can download them using Zero 
>>> Conf or directly. 
>>> 
>>> For the latest: 
>>>   - wget -O - https://get.pharo.org/vmLatest90 
>>> <https://get.pharo.org/vmLatest90> | bash
>>>   - http://files.pharo.org/get-files/90/pharo-vm-Darwin-arm64-latest.zip 
>>> <http://files.pharo.org/get-files/90/pharo-vm-Darwin-arm64-latest.zip>
>>> 
>>> For the stable:
>>>   - wget -O - https://get.pharo.org/vm90 <https://get.pharo.org/vm90> | bash
>>>   - http://files.pharo.org/get-files/90/pharo-vm-Darwin-arm64-stable.zip 
>>> <http://files.pharo.org/get-files/90/pharo-vm-Darwin-arm64-stable.zip>
>>> 
>>> If you are scripting the download I recommend using ZeroConf. 
>>> 
>>> For Pharo 8, we don't have a M1 native version, because Pharo 8 requires 
>>> changes in the image to support the newer VMs. We have plans to backport 
>>> the changes in the future, now we are putting all efforts in the release of 
>>> Pharo 9. However, if the community consider it, we can switch priorities 
>>> but it is not magical; we will need to leave something aside. Also, future 
>>> versions of the Pharo Launcher will have support for detecting the 
>>> architecture.
>>> 
>>> In the meantime, Pharo 8 / 9 can be used without a problem with Rossetta, 
>>> although the performance is not ideal.
>>> 
>>> Tell me if you have any problem.
>>> Cheers,
>>> Pablo
>>> 
>>> 
>>> On Tue, May 18, 2021 at 3:54 PM David Pennington >> <mailto:da...@totallyobjects.com>> wrote:
>>> Hi there. I am currently using v8.0 on a new M1 MacBookAir. When I save the 
>>> image I keep getting a message telling me that my VM is too old and to 
>>> download a new one. I have looked in my Pharo Launcher but there is no new 
>>> one there. What do I do please?
>>> 
>>> David
>>> 
>>> 
>>> -- 
>>> Pablo Tesone.
>>> teso...@gmail.com <mailto:teso...@gmail.com>
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr <http://stephane.ducasse.free.fr/> / 
> http://www.pharo.org <http://www.pharo.org/> 
> 03 59 35 87 52
> Assistant: Aurore Dalle 
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley, 
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France
> 



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

2021-05-21 Thread David Pennington
I am sorry but, being a newbie to Pharo, a lot of what you say goes over my 
head.

How do I use Zero Conf?

I have loaded up the latest 9.0 from Pharo launcher. How do I get the <1 VM for 
that?

Sorry for being stupid.

David
P.S. 31 years a Smalltalker so its just the underlying bits that pass over me - 
smile.

> On 19 May 2021, at 08:38, teso...@gmail.com wrote:
> 
> Hi David, 
>
>for M1 we have Pharo 9 compatible VMs, you can download them using Zero 
> Conf or directly. 
> 
> For the latest: 
>   - wget -O - https://get.pharo.org/vmLatest90 
> <https://get.pharo.org/vmLatest90> | bash
>   - http://files.pharo.org/get-files/90/pharo-vm-Darwin-arm64-latest.zip 
> <http://files.pharo.org/get-files/90/pharo-vm-Darwin-arm64-latest.zip>
> 
> For the stable:
>   - wget -O - https://get.pharo.org/vm90 <https://get.pharo.org/vm90> | bash
>   - http://files.pharo.org/get-files/90/pharo-vm-Darwin-arm64-stable.zip 
> <http://files.pharo.org/get-files/90/pharo-vm-Darwin-arm64-stable.zip>
> 
> If you are scripting the download I recommend using ZeroConf. 
> 
> For Pharo 8, we don't have a M1 native version, because Pharo 8 requires 
> changes in the image to support the newer VMs. We have plans to backport the 
> changes in the future, now we are putting all efforts in the release of Pharo 
> 9. However, if the community consider it, we can switch priorities but it is 
> not magical; we will need to leave something aside. Also, future versions of 
> the Pharo Launcher will have support for detecting the architecture.
> 
> In the meantime, Pharo 8 / 9 can be used without a problem with Rossetta, 
> although the performance is not ideal.
> 
> Tell me if you have any problem.
> Cheers,
> Pablo
> 
> 
> On Tue, May 18, 2021 at 3:54 PM David Pennington  <mailto:da...@totallyobjects.com>> wrote:
> Hi there. I am currently using v8.0 on a new M1 MacBookAir. When I save the 
> image I keep getting a message telling me that my VM is too old and to 
> download a new one. I have looked in my Pharo Launcher but there is no new 
> one there. What do I do please?
> 
> David
> 
> 
> -- 
> Pablo Tesone.
> teso...@gmail.com <mailto:teso...@gmail.com>


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

2021-05-18 Thread David Pennington
Hi there. I am currently using v8.0 on a new M1 MacBookAir. When I save the 
image I keep getting a message telling me that my VM is too old and to download 
a new one. I have looked in my Pharo Launcher but there is no new one there. 
What do I do please?

David

[Pharo-users] Re: Seaside disappearing under Windows

2021-04-22 Thread David Pennington
I have looked at the code. There is only one method for reading and one for 
writing and they both close the file when they have done so that’s wouldn’t ’t 
seem to be the problem. It still doesn’t answer why it works on my M1 
MacBookAir and not on two Windows boxes :-(

> On 20 Apr 2021, at 16:13, Sven Van Caekenberghe  wrote:
> 
> David,
> 
>> On 20 Apr 2021, at 17:01, David Pennington  wrote:
>> 
>> I have finally given up on trying to sort this out. Under both Windows 
>> Server 2012 and Windows 10 my Pharo image just exits leaving nothing, not 
>> even a crash file. Hence, I have fixed my MacBookAir so that it stays alive 
>> with the lid down and I am now using that as my Seaside server. It has been 
>> up for the last 4 days so it seems that this is a Windows only problem and 
>> (hopefully) not my code.
>> 
>> In passing, I am a high-level programmer in Pharo in that I do not use any 
>> special calls or processes.
>> 
>> Davids
>> Totally `Objects
> 
> I believe you are using some form of persistency that you built yourself, 
> with data written in STON to files. Assuming you store each object in its own 
> file, you are then also doing a lot of IO. Are you sure that you are properly 
> closing your file streams, in all circumstances ?
> 
> It is possibly that you run out of IO resources.
> 
> Also, garbage collection on a server image (without a UI) is sometimes a bit 
> strange, it can take a while to kick in.
> 
> I am just guessing here.
> 
> It is still not good that the image/vm quits without any notice, that is for 
> sure.
> 
> Sven


[Pharo-users] Re: Seaside disappearing under Windows

2021-04-20 Thread David Pennington
I am sure that I do. In any case both the Windows machines have double the memory of the Mac and the Mac is still going.On 20 Apr 2021 16:13, Sven Van Caekenberghe  wrote:David,

> On 20 Apr 2021, at 17:01, David Pennington  wrote:
> 
> I have finally given up on trying to sort this out. Under both Windows Server 2012 and Windows 10 my Pharo image just exits leaving nothing, not even a crash file. Hence, I have fixed my MacBookAir so that it stays alive with the lid down and I am now using that as my Seaside server. It has been up for the last 4 days so it seems that this is a Windows only problem and (hopefully) not my code.
> 
> In passing, I am a high-level programmer in Pharo in that I do not use any special calls or processes.
> 
> Davids
> Totally `Objects

I believe you are using some form of persistency that you built yourself, with data written in STON to files. Assuming you store each object in its own file, you are then also doing a lot of IO. Are you sure that you are properly closing your file streams, in all circumstances ?

It is possibly that you run out of IO resources.

Also, garbage collection on a server image (without a UI) is sometimes a bit strange, it can take a while to kick in.

I am just guessing here.

It is still not good that the image/vm quits without any notice, that is for sure.

Sven



[Pharo-users] Re: Seaside disappearing under Windows

2021-04-20 Thread David Pennington
I have finally given up on trying to sort this out. Under both Windows Server 
2012 and Windows 10 my Pharo image just exits leaving nothing, not even a crash 
file. Hence, I have fixed my MacBookAir so that it stays alive with the lid 
down and I am now using that as my Seaside server. It has been up for the last 
4 days so it seems that this is a Windows only problem and (hopefully) not my 
code.

In passing, I am a high-level programmer in Pharo in that I do not use any 
special calls or processes.

Davids
Totally `Objects

[Pharo-users] Re: Crash after http request, see the dump file

2021-04-16 Thread David Pennington
Nope. Just stderr. It is continuing to happy at random times so it is obviously 
connected to page requests. I have some logging in. Place so I have increased 
that to try and help get to the point where it happens.

David

> On 16 Apr 2021, at 15:45, Davide Varvello via Pharo-users 
>  wrote:
> 
> Hi David,
> Usually when the image crashes you'll find a crash.dmp file.
> It's weird there isn't anything
> Davide
> 
> 
> Long Haired David wrote
>> Sorry to but in here but I have just moved my Pharo/Seaside server
>> software from my MacBookAir, where it has run without issue for the last
>> couple of weeks, onto firstly a Lenovo desktop running Windows 2012 server
>> and then, in frustration , onto a Dell laptop but it hasn’t managed to run
>> for 24 hours without crashing (by crashing, I mean Pharo just
>> disappears!). I don’t us any OsProcess, just ordinary Seaside and
>> Smalltalk code. It has happened three days in a row at different times
>> with different pages being accessed.
>> 
>> Both Windows machines have ample disk space (SSD) and 16GB memory.
>> 
>> How do I get a dump as I can’t see any files that would be regarded as so?
>> 
>> David
>> 
>>> On 15 Apr 2021, at 14:55, Guillermo Polito 
> 
>> guillermopolito@
> 
>>  wrote:
>>> 
>>> Hi Davide,
>>> 
>>> Taking a look at the dump, I’d say it looks like a memory corruption.
>>> It crashes when running the GC, but very probably because the heap was
>>> already corrupt.
>>> 
>>> 
>>> 5   Pharo   0x00010582ea3b mapStackPages
>>> + 345
>>> 6   Pharo   0x00010582e0ff
>>> mapInterpreterOops + 16
>>> 7   Pharo   0x00010580af54 doScavenge +
>>> 648
>>> 8   Pharo   0x00010581305e
>>> scavengingGCTenuringIf + 333
>>> 9   Pharo   0x0001057f663a
>>> checkForEventsMayContextSwitch + 111
>>> 10  Pharo   0x0001057fa815
>>> ceStackOverflow + 110
>>> 11  ??? 0x00010b25c62b 0x0 +
>>> 4481992235
>>> 12  Pharo   0x0001057e2b0a interpret +
>>> 632
>>> 
>>> Does this happen often in your setup?
>>> 
>>> G
>>> 
>>> 
 El 14 abr 2021, a las 10:21, Davide Varvello via Pharo-users 
> 
>> pharo-users@.pharo
> 
>> mailto:
> 
>> pharo-users@.pharo
> 
>> > escribió:
 
 Hi Sven,
 It has not happened today. I also use a lot of OsProcess, but I don't
 know
 if it is related to it.
 Cheers
 Davide
 
 
 
 Sven Van Caekenberghe-2 wrote
> I can't see anything networking, HTTP or Zinc related in the dump.
> It looks like something went wrong during garbage collection.
> I suppose this is not a repeatable case, is it ?
> 
>> On 14 Apr 2021, at 09:22, Davide Varvello via Pharo-users 
 
> pharo-users@.pharo
 
>  wrote:
>> 
>> Hi guys,
>> I'm working on Pharo 8 on BigSur 
>> (Pharo 8.0.0 Build information:
>> Pharo-8.0.0+build.1128.sha.9f6475d88dda7d83acdeeda794df35d304cf620d
>> (64
>> Bit))
>> 
>> Yesterday after an http call to my zinc server the image crashed.
>> Can you please take a look to the dump file and tell me what happened?
>> 
>> It would be worth so much to me, thank you
>> 
>> The file is here: https://pastebin.com/SrE6gcCv
>> https://pastebin.com/SrE6gcCv;
>> 
>> 
>> Davide
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html;
 
 
 
 
 
 --
 Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
 http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html;
> 
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html


[Pharo-users] Re: Crash after http request, see the dump file

2021-04-15 Thread David Pennington
Sorry to but in here but I have just moved my Pharo/Seaside server software 
from my MacBookAir, where it has run without issue for the last couple of 
weeks, onto firstly a Lenovo desktop running Windows 2012 server and then, in 
frustration , onto a Dell laptop but it hasn’t managed to run for 24 hours 
without crashing (by crashing, I mean Pharo just disappears!). I don’t us any 
OsProcess, just ordinary Seaside and Smalltalk code. It has happened three days 
in a row at different times with different pages being accessed.

Both Windows machines have ample disk space (SSD) and 16GB memory.

How do I get a dump as I can’t see any files that would be regarded as so?

David

> On 15 Apr 2021, at 14:55, Guillermo Polito  wrote:
> 
> Hi Davide,
> 
> Taking a look at the dump, I’d say it looks like a memory corruption.
> It crashes when running the GC, but very probably because the heap was 
> already corrupt.
> 
> 
> 5   Pharo   0x00010582ea3b mapStackPages + 345
> 6   Pharo   0x00010582e0ff mapInterpreterOops 
> + 16
> 7   Pharo   0x00010580af54 doScavenge + 648
> 8   Pharo   0x00010581305e 
> scavengingGCTenuringIf + 333
> 9   Pharo   0x0001057f663a 
> checkForEventsMayContextSwitch + 111
> 10  Pharo   0x0001057fa815 ceStackOverflow + 
> 110
> 11  ??? 0x00010b25c62b 0x0 + 4481992235
> 12  Pharo   0x0001057e2b0a interpret + 632
> 
> Does this happen often in your setup?
> 
> G
> 
> 
>> El 14 abr 2021, a las 10:21, Davide Varvello via Pharo-users 
>> mailto:pharo-users@lists.pharo.org>> escribió:
>> 
>> Hi Sven,
>> It has not happened today. I also use a lot of OsProcess, but I don't know
>> if it is related to it.
>> Cheers
>> Davide
>> 
>> 
>> 
>> Sven Van Caekenberghe-2 wrote
>>> I can't see anything networking, HTTP or Zinc related in the dump.
>>> It looks like something went wrong during garbage collection.
>>> I suppose this is not a repeatable case, is it ?
>>> 
 On 14 Apr 2021, at 09:22, Davide Varvello via Pharo-users 
>> 
>>> pharo-users@.pharo
>> 
>>>  wrote:
 
 Hi guys,
 I'm working on Pharo 8 on BigSur 
 (Pharo 8.0.0 Build information:
 Pharo-8.0.0+build.1128.sha.9f6475d88dda7d83acdeeda794df35d304cf620d (64
 Bit))
 
 Yesterday after an http call to my zinc server the image crashed.
 Can you please take a look to the dump file and tell me what happened?
 
 It would be worth so much to me, thank you
 
 The file is here: https://pastebin.com/SrE6gcCv 
 
 
 
 Davide
 
 
 
 --
 Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html 
 
>> 
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html 
>> 



[Pharo-users] Re: Problem with Pharo 9 - repositories missing

2021-04-12 Thread David Pennington
That worked perfectly. I copied the three files across, created a new VM, 
copied my database and (apart from a single issue) everything worked fine.

Thank you so much for your help. It never occurred to me that this would be 
possible.

There is one big difference between Windows and the Mac but I will post that as 
a separate item.

Again, many thanks.

If you are interested, check out IPMS Clacton Web Site 
 and browse around
David
BTW, avid user of STON - crucial addition to my database.



> On 12 Apr 2021, at 07:56, Sven Van Caekenberghe  wrote:
> 
> David,
> 
> Since you have so much trouble building on Windows, I would suggest building 
> a deployment image on macOS and then copy that over to Windows (*.image 
> *.changes *.sources), install a VM on Windows, and run headless with a 
> startup.st script.
> 
> Sven
> 
>> On 11 Apr 2021, at 13:43,  
>>  wrote:
>> 
>> Hi everyone.
>> 
>> I have a simple talk, or so I thought. I am trying to port a Mac 
>> Pharo/Seaside project to either a Windows 2012 server or to a Windows 10 
>> laptop. I have set up my git credentials and that all works fine. However, 
>> when I install either 8.0 or 9.0 on my Windows 10 laptop it shows he 
>> following
>> Repositories   --  status
>> PharoLocal repository missing
>> Pharo-spec2   Local repository missing
>> Pharo-newtoolsLocal repository missing
>> Iceberg Local repository missing
>> Libgit-pharo-bindings Local repository missing
>> tonel  Local repository missing
>> 
>> What on earth is going on here as installing Pharo on my Mac was seamless. I 
>> have to get the project onto a Windows machine as these are the only servers 
>> that I have. I really can’t be this difficult, can it?
>> 
>> How do I get out of this mess, given that that is a clean install?
>> David
>> Totally Objects



[Pharo-users] Recommended way to move a package

2021-04-03 Thread David Pennington


I have Pharo 8.0 on my MacBookAir and Pharo 9.0 on my server. I have having 
lost of trouble doing what I thought would be a simple process - File out a 
package on one and file it in on the other but I having lo=ts of trouble - to 
many issues to document to be honest.

So, tell me, how do I do this so that my package is in the new image along with 
the code extensions to other classes listed as being in the package. 

I can get the basic package in but the extensions never appear and I have too 
many to import individually.

Help!

David


[Pharo-users] Re: Problem installing Seaside on Windows

2021-04-02 Thread David Pennington

Thank you to everyone for your help. I sorted out the public and private
keys and shortened the path but it kept up with an authentication issue.
I deleted everything and installed V 9.0. I shortened its name and ran
the GitHub code and I now have Seaside installed and running. I now need
to install STON and I can get my code working.

What a great community this is!

David

On 02/04/2021 17:43, Tomaž Turk wrote:

According to my experiences this happens if Pharo images are located deeply in the directory path. It helps if you move the image in question to some higher level. In any case, C:\Pharo should work no matter what. 

Seaside has lots of dependencies which are then located under its repository. 

Tomaz 

On Fri, 2 Apr 2021, 18:31 Sanjay Minni,  wrote: 
Yes you hit the window filename length problem. 

Retry by creating one more pharo 8 image. Only don't take the default image name as you have taken. Change it to very short like p8-1 to keep image file name and consequently the folder name length to a minimum 

Then install seaside.  

If that doesn't work repost and we will try still another option 

Regards 
Sanjay 

On Fri, 2 Apr, 2021, 9:36 pm David Pennington,  wrote: 


OK, I got my software working fine on the Mac but I really need it on Windows 
now so I have had another go. I have followed all the instructions and I have a 
public key registered with GIT for both the Mac and the Windows laptop. The Mac 
now quite happily installs stuff that wouldn't load before. (TinyLogger). 
However, the Windows laptop now get a lot further with the Seaside install but 
fails with this message:

"LGit_GIT_EEXISTS: Failed to stat file 'C:/Users/david/Documents/Pharo/images/Pharo 8.0 - 64bit (sta...aximumAbsoluteAge.maximumRelativeAge.overflowAction..st': The filename or extension is too long. 
" 
Any thoughts? 

On 22/03/2021 18:18, David Pennington wrote: 

I am sorry but github is a mystery to me. I installed all of this on my mac with no troubles. Surely it can't be anymore difficult on  PC? 


On 22 Mar 2021 18:05, Stéphane Ducasse  wrote:

david  

did you succeed to clone or checkout a github repo from this machine and without pharo at all? 
Because Pharo is just using libgit.  

S. 

On 22 Mar 2021, at 18:58, David Pennington  wrote: 

Tried that. I got the following 

Failed to get server certificate: the handle is in the wrong state for the requested operation.  

I assume that someone thinks that this is helpful:-) 


On 22 Mar 2021 16:06, Sanjay Minni  wrote:

Hi David, 

I have repeatedly installed Seaside on Pharo 8 / 9 64 bit - Windows 10 
without any issues and I have done it both ssh and https 

I do it quickly / simply by 

tools->iceberg->[+ add](on top panel right) 
on popup select: 'clone from github.com [1]' 
fill in owner: SeasideSt(case does not matter) 
project: seaside 
local directory:   (leave the default for 
now) 
protocol  try https first (not 
sure if github requires a password) 
or ssh which may be 
slightly complicated 
once seaside libraries are pulled in and seaside appears in the iceberg 
panel then 
right click on seaside 
on popup scroll down to metacello->install baseline (default) 

hope that works 

Long Haired David wrote 
Hi everyone. 

I have been developing a new web site using Seaside on my M1 MacBookAir 
and I have had no issues. 

To deploy it, I have to install Pharo on either a Windows 10 or a Windows 
Server 2012 server. Pharo has installed on both without any issues. 
However, I am having problems installing Seaside. 

I have Pharo 8.0 installed on both (64 bit version). 

If I try and install from the Catalog, I get the following error in the 
Transcript. 

IceGenericError: Failed to stat file 
'C:/Users/david/Documents/Pharo/images/Pharo 8.0 - 64bit 
(stable)/pharo-local. 

If I try using Monticello, I get the following: 

Metacello new 
baseline:'Seaside3'; 
repository: 'github://SeasideSt/Seaside:master/repository'; 
load 
I got an error while cloning: There was an authentication error while 
trying to execute the operation: . 
This happens usually because you didn't provide a valid set of 
credentials. 
You may fix this problem in different ways: 

1. adding your keys to ssh-agent, executing ssh-add ~/.ssh/id_rsa in your 
command line. 
2. adding your keys in settings (open settings browser search for "Use 
custom SSH keys" and 
add your public and private keys). 
3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). 
I will try to clone the HTTPS variant. 

Can you help please? 

David 
Totally Objects 


- 
cheers, 
Sanjay 
--

Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html


 
Stéphane Ducasse 
http://stephane.ducasse.free.fr / http://www.pharo.org  
03 59 35 87 52 
Assistant: Aurore Dalle  
FAX 03 59 57 78 50 
TEL 03 59 35 86 16 
S

[Pharo-users] Re: Problem installing Seaside on Windows

2021-04-02 Thread David Pennington

OK, I got my software working fine on the Mac but I really need it on
Windows now so I have had another go. I have followed all the
instructions and I have a public key registered with GIT for both the
Mac and the Windows laptop. The Mac now quite happily installs stuff
that wouldn't load before. (TinyLogger). However, the Windows laptop now
get a lot further with the Seaside install but fails with this message:

"LGit_GIT_EEXISTS: Failed to stat file
'C:/Users/david/Documents/Pharo/images/Pharo 8.0 - 64bit
(sta...aximumAbsoluteAge.maximumRelativeAge.overflowAction..st': The
filename or extension is too long. 
" 
Any thoughts? 


On 22/03/2021 18:18, David Pennington wrote:

I am sorry but github is a mystery to me. I installed all of this on my mac with no troubles. Surely it can't be anymore difficult on  PC? 


On 22 Mar 2021 18:05, Stéphane Ducasse  wrote:

david  

did you succeed to clone or checkout a github repo from this machine and without pharo at all? 
Because Pharo is just using libgit.  

S. 

On 22 Mar 2021, at 18:58, David Pennington  wrote: 

Tried that. I got the following 

Failed to get server certificate: the handle is in the wrong state for the requested operation.  

I assume that someone thinks that this is helpful:-) 


On 22 Mar 2021 16:06, Sanjay Minni  wrote:

Hi David, 

I have repeatedly installed Seaside on Pharo 8 / 9 64 bit - Windows 10 
without any issues and I have done it both ssh and https 

I do it quickly / simply by 

tools->iceberg->[+ add](on top panel right) 
on popup select: 'clone from github.com [1]' 
fill in owner: SeasideSt(case does not matter) 
project: seaside 
local directory:   (leave the default for 
now) 
protocol  try https first (not 
sure if github requires a password) 
or ssh which may be 
slightly complicated 
once seaside libraries are pulled in and seaside appears in the iceberg 
panel then 
right click on seaside 
on popup scroll down to metacello->install baseline (default) 

hope that works 

Long Haired David wrote 
Hi everyone. 

I have been developing a new web site using Seaside on my M1 MacBookAir 
and I have had no issues. 

To deploy it, I have to install Pharo on either a Windows 10 or a Windows 
Server 2012 server. Pharo has installed on both without any issues. 
However, I am having problems installing Seaside. 

I have Pharo 8.0 installed on both (64 bit version). 

If I try and install from the Catalog, I get the following error in the 
Transcript. 

IceGenericError: Failed to stat file 
'C:/Users/david/Documents/Pharo/images/Pharo 8.0 - 64bit 
(stable)/pharo-local. 

If I try using Monticello, I get the following: 

Metacello new 
baseline:'Seaside3'; 
repository: 'github://SeasideSt/Seaside:master/repository'; 
load 
I got an error while cloning: There was an authentication error while 
trying to execute the operation: . 
This happens usually because you didn't provide a valid set of 
credentials. 
You may fix this problem in different ways: 

1. adding your keys to ssh-agent, executing ssh-add ~/.ssh/id_rsa in your 
command line. 
2. adding your keys in settings (open settings browser search for "Use 
custom SSH keys" and 
add your public and private keys). 
3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). 
I will try to clone the HTTPS variant. 

Can you help please? 

David 
Totally Objects 


- 
cheers, 
Sanjay 
--

Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html


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

Villeneuve d'Ascq 59650 
France 


Links:
--
[1] http://github.com

[Pharo-users] Startup warning

2021-04-01 Thread David Pennington
I am getting the following in the Transcript. Where do I go to change this 
please?

WARNING: Had to increase size of semaphore signal handling table due to many 
external objects concurrently in use
You should increase this size at startup using #maxExternalSemaphoresSilently:
Current table size: 512

David

[Pharo-users] Re: Connecting to a MongoDB Atlas Cluster

2021-03-25 Thread David Pennington
If you are on Windows,  use curl and wire shark to see what is needed. Thats what I did to connect to RiakDBOn 18 Mar 2021 11:43, Sanjay Minni  wrote:Hi

can anyone pls help me with an example of connecting to a MongoDB Atlas
cluster (their cloud service).

My Atlas cluster replica set is at the urls
    -shard-00-00.x.mongodb.net:27017
    -shard-00-01.x.mongodb.net:27017
    -shard-00-02.x.mongodb.net:27017

The MongoDB Atlas website specifies the application connectstring as

    
'mongodb+srv://:@.x.mongodb.net/?retryWrites=true=majority"

I saw the doc / example on pharo-nosql/mongotalk but could not figure out in
MongoClient -

1. how to get embed the username:password in the connectstring which i feel
would be needed,
2. how to specify the default database
3. is it required to specify all three members while Mongo suggests a single
part connect string which probably must be covering the cluster

thanks
  



-
cheers, 
Sanjay
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



[Pharo-users] Re: Problem installing Seaside on Windows

2021-03-23 Thread David Pennington
This is way to complicated for 70 year old developer. Running the code on the github page loaded Seaside,inifile and Ston without fuss so why is it so difficult on Windows?I have given up and decided to set my Mac up to be on with the lid down and use that as a server as this is a low traffic Web site.Thanks for all your help.DavidOn 23 Mar 2021 07:32, Sven Van Caekenberghe  wrote:

> On 22 Mar 2021, at 19:05, Stéphane Ducasse  wrote:
> 
> david 
> 
> did you succeed to clone or checkout a github repo from this machine and without pharo at all?

This is indeed step one: make sure that you can check out code from git(hub) on the command line in Windows. Only if that works you can do the next steps.

BTW, once you have a repository checked out, you can just point Iceberg to it and load code.

PS: yes, you will also have to learn the basic of git(hub).

> Because Pharo is just using libgit. 
> 
> S. 
> 
>> On 22 Mar 2021, at 18:58, David Pennington  wrote:
>> 
>> Tried that. I got the following
>> 
>> Failed to get server certificate: the handle is in the wrong state for the requested operation. 
>> 
>> I assume that someone thinks that this is helpful:-)
>> 
>> On 22 Mar 2021 16:06, Sanjay Minni  wrote:
>> Hi David, 
>> 
>> I have repeatedly installed Seaside on Pharo 8 / 9 64 bit - Windows 10 
>> without any issues and I have done it both ssh and https 
>> 
>> I do it quickly / simply by 
>> 
>> tools->iceberg->[+ add]    (on top panel right) 
>> on popup select: 'clone from github.com' 
>> fill in owner: SeasideSt    (case does not matter) 
>>    project: seaside 
>>    local directory:   (leave the default for 
>> now) 
>>    protocol  try https first (not 
>> sure if github requires a password) 
>>  or ssh which may be 
>> slightly complicated 
>> once seaside libraries are pulled in and seaside appears in the iceberg 
>> panel then 
>> right click on seaside 
>>  on popup scroll down to metacello->install baseline (default) 
>> 
>> hope that works 
>> 
>> 
>> 
>> 
>> Long Haired David wrote 
>> > Hi everyone. 
>> > 
>> > I have been developing a new web site using Seaside on my M1 MacBookAir 
>> > and I have had no issues. 
>> > 
>> > To deploy it, I have to install Pharo on either a Windows 10 or a Windows 
>> > Server 2012 server. Pharo has installed on both without any issues. 
>> > However, I am having problems installing Seaside. 
>> > 
>> > I have Pharo 8.0 installed on both (64 bit version). 
>> > 
>> > If I try and install from the Catalog, I get the following error in the 
>> > Transcript. 
>> > 
>> > IceGenericError: Failed to stat file 
>> > 'C:/Users/david/Documents/Pharo/images/Pharo 8.0 - 64bit 
>> > (stable)/pharo-local. 
>> > 
>> > If I try using Monticello, I get the following: 
>> > 
>> > Metacello new 
>> > baseline:'Seaside3'; 
>> > repository: 'github://SeasideSt/Seaside:master/repository'; 
>> > load 
>> > I got an error while cloning: There was an authentication error while 
>> > trying to execute the operation: . 
>> > This happens usually because you didn't provide a valid set of 
>> > credentials. 
>> > You may fix this problem in different ways: 
>> > 
>> > 1. adding your keys to ssh-agent, executing ssh-add ~/.ssh/id_rsa in your 
>> > command line. 
>> > 2. adding your keys in settings (open settings browser search for "Use 
>> > custom SSH keys" and 
>> > add your public and private keys). 
>> > 3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). 
>> > I will try to clone the HTTPS variant. 
>> > 
>> > Can you help please? 
>> > 
>> > David 
>> > Totally Objects 
>> 
>> 
>> 
>> 
>> 
>> - 
>> cheers, 
>> Sanjay 
>> -- 
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html 
>> 
>> 
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr / http://www.pharo.org 
> 03 59 35 87 52
> Assistant: Aurore Dalle 
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley, 
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France
> 



[Pharo-users] Re: Problem installing Seaside on Windows

2021-03-22 Thread David Pennington
I am sorry but github is a mystery to me. I installed all of this on my mac with no troubles. Surely it can't be anymore difficult on  PC?On 22 Mar 2021 18:05, Stéphane Ducasse  wrote:david did you succeed to clone or checkout a github repo from this machine and without pharo at all?Because Pharo is just using libgit. S. On 22 Mar 2021, at 18:58, David Pennington <david@totallyobjects.com> wrote:Tried that. I got the followingFailed to get server certificate: the handle is in the wrong state for the requested operation. I assume that someone thinks that this is helpful:-)On 22 Mar 2021 16:06, Sanjay Minni <sm@planage.com> wrote:Hi David,



I have repeatedly installed Seaside on Pharo 8 / 9 64 bit - Windows 10

without any issues and I have done it both ssh and https



I do it quickly / simply by



tools->iceberg->[+ add]    (on top panel right)

on popup select: 'clone from github.com'

fill in owner: SeasideSt    (case does not matter)

   project: seaside

   local directory:   (leave the default for

now)

   protocol  try https first (not

sure if github requires a password) 

 or ssh which may be

slightly complicated

once seaside libraries are pulled in and seaside appears in the iceberg

panel then

right click on seaside 

 on popup scroll down to metacello->install baseline (default)



hope that works 



 





Long Haired David wrote

> Hi everyone.

> 

> I have been developing a new web site using Seaside on my M1 MacBookAir

> and I have had no issues.

> 

> To deploy it, I have to install Pharo on either a Windows 10 or a Windows

> Server 2012 server. Pharo has installed on both without any issues.

> However, I am having problems installing Seaside.

> 

> I have Pharo 8.0 installed on both (64 bit version).

> 

> If I try and install from the Catalog, I get the following error in the

> Transcript.

> 

> IceGenericError: Failed to stat file

> 'C:/Users/david/Documents/Pharo/images/Pharo 8.0 - 64bit

> (stable)/pharo-local.

> 

> If I try using Monticello, I get the following:

> 

> Metacello new

> baseline:'Seaside3';

> repository: 'github://SeasideSt/Seaside:master/repository';

> load

> I got an error while cloning: There was an authentication error while

> trying to execute the operation: . 

> This happens usually because you didn't provide a valid set of

> credentials. 

> You may fix this problem in different ways: 

> 

> 1. adding your keys to ssh-agent, executing ssh-add ~/.ssh/id_rsa in your

> command line.

> 2. adding your keys in settings (open settings browser search for "Use

> custom SSH keys" and

> add your public and private keys).

> 3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git).

> I will try to clone the HTTPS variant.

> 

> Can you help please?

> 

> David

> Totally Objects











-

cheers, 

Sanjay

--

Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



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: Problem installing Seaside on Windows

2021-03-22 Thread David Pennington
Tried that. I got the followingFailed to get server certificate: the handle is in the wrong state for the requested operation. I assume that someone thinks that this is helpful:-)On 22 Mar 2021 16:06, Sanjay Minni  wrote:Hi David,

I have repeatedly installed Seaside on Pharo 8 / 9 64 bit - Windows 10
without any issues and I have done it both ssh and https

I do it quickly / simply by

tools->iceberg->[+ add]    (on top panel right)
on popup select: 'clone from github.com'
fill in owner: SeasideSt    (case does not matter)
   project: seaside
   local directory:   (leave the default for
now)
   protocol  try https first (not
sure if github requires a password) 
 or ssh which may be
slightly complicated
once seaside libraries are pulled in and seaside appears in the iceberg
panel then
right click on seaside 
 on popup scroll down to metacello->install baseline (default)

hope that works 

 


Long Haired David wrote
> Hi everyone.
> 
> I have been developing a new web site using Seaside on my M1 MacBookAir
> and I have had no issues.
> 
> To deploy it, I have to install Pharo on either a Windows 10 or a Windows
> Server 2012 server. Pharo has installed on both without any issues.
> However, I am having problems installing Seaside.
> 
> I have Pharo 8.0 installed on both (64 bit version).
> 
> If I try and install from the Catalog, I get the following error in the
> Transcript.
> 
> IceGenericError: Failed to stat file
> 'C:/Users/david/Documents/Pharo/images/Pharo 8.0 - 64bit
> (stable)/pharo-local.
> 
> If I try using Monticello, I get the following:
> 
> Metacello new
> baseline:'Seaside3';
> repository: 'github://SeasideSt/Seaside:master/repository';
> load
> I got an error while cloning: There was an authentication error while
> trying to execute the operation: . 
> This happens usually because you didn't provide a valid set of
> credentials. 
> You may fix this problem in different ways: 
> 
> 1. adding your keys to ssh-agent, executing ssh-add ~/.ssh/id_rsa in your
> command line.
> 2. adding your keys in settings (open settings browser search for "Use
> custom SSH keys" and
> add your public and private keys).
> 3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git).
> I will try to clone the HTTPS variant.
> 
> Can you help please?
> 
> David
> Totally Objects





-
cheers, 
Sanjay
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



[Pharo-users] Problem installing Seaside on Windows

2021-03-22 Thread David Pennington
Hi everyone.

I have been developing a new web site using Seaside on my M1 MacBookAir and I 
have had no issues.

To deploy it, I have to install Pharo on either a Windows 10 or a Windows 
Server 2012 server. Pharo has installed on both without any issues. However, I 
am having problems installing Seaside.

I have Pharo 8.0 installed on both (64 bit version).

If I try and install from the Catalog, I get the following error in the 
Transcript.

IceGenericError: Failed to stat file 
'C:/Users/david/Documents/Pharo/images/Pharo 8.0 - 64bit (stable)/pharo-local.

If I try using Monticello, I get the following:

Metacello new
baseline:'Seaside3';
repository: 'github://SeasideSt/Seaside:master/repository';
load
I got an error while cloning: There was an authentication error while trying to 
execute the operation: . 
This happens usually because you didn't provide a valid set of credentials. 
You may fix this problem in different ways: 

1. adding your keys to ssh-agent, executing ssh-add ~/.ssh/id_rsa in your 
command line.
2. adding your keys in settings (open settings browser search for "Use custom 
SSH keys" and
add your public and private keys).
3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). I 
will try to clone the HTTPS variant.

Can you help please?

David
Totally Objects


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

2021-03-07 Thread David Pennington
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 ] .
^ nameList

The 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?

David
TotallyObjects

[Pharo-users] Sharing classes between packages

2021-03-01 Thread David Pennington
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?

David
Totally Objects

[Pharo-users] Re: Problem when loading Pharo 9.0

2021-02-17 Thread David Pennington
I have been struggling all afternoon trying to install Pharo 9.0 on my M1 Mac. 
I have finally got everything loaded - 9.0 + Seaside, IniFile and STON. 
However, I am having some difficulty getting my software to run correctly. 

Firstly, when I try and import the STON objects from file I get an error which 
~I didn’t get with 8.0.  I am sure that I could sort this if I could do any 
debugging. However, when I switch to the debugger from Safari, I get the 
following error:


Instance of Process did not understand #debug:title:full:

Because of this the debugger doesn’t open so I can get no further. Can anyone 
assist please?

David

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

2021-02-16 Thread David Pennington
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] A question about packaging

2021-02-16 Thread David Pennington
Hi everyone. I have been using Pharo sine I got my M1 MacBookAir in late 
December. Before then, I was a VAST user since around 1995.

I have a question about packaging. Example, in VAST, I have an Application 
called Family_Accounts. Inside that I have some classes such as FAEntry, 
FABudget and so on. If I wanted to extend String to add an instance to convert 
to ScaledDecimal but using my special amount strings. I select the New menu 
item and then select either a class or an extension. As I want to extend 
String, I select Extension and then, within my Family_Accounts, I can see the 
String class so that I can extend it.

In Pharo, I can have a package called Family_Accounts. I can extend String, OK  
but my extension stays within the original package with, optionally, a 
Family_Accounts classification.  I can’t see how to add String to the 
Family_Accounts package to keep everything together in one place. Can this be 
done?

David


[Pharo-users] Re: StackVM for M1 ready

2021-02-16 Thread David Pennington
I can’t wait. My M1 M On 16 Feb 2021, at 19:38, Stéphane Ducasse  wrote:
> 
> 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
> 
> 
> Stéphane Ducasse
> http://stephane.ducasse.free.fr  / 
> http://www.pharo.org  
> 03 59 35 87 52
> Assistant: Aurore Dalle 
> FAX 03 59 57 78 50
> TEL 03 59 35 86 16
> S. Ducasse - Inria
> 40, avenue Halley, 
> Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
> Villeneuve d'Ascq 59650
> France
> 



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

2021-02-13 Thread David Pennington
Sorry, I meant to be factual not critical.

I am very pleased with Pharo and, now that I can see how it works, I am getting 
on really well with it.

I understand about resources as I have worked on my own for 20 years and have 
no-one to assist me. Never mind, Smalltalk is such a great language.

Please let me see the new VM and I will run some tests against it. I am 
impressed with performance as it is so  a native VM should be fantastic.

David

> On 13 Feb 2021, at 16:35, Stéphane Ducasse  wrote:
> 
> Hi david 
> I will massage a bit your text because I would not like to insult people 
> around me and give false impression. :)
> I want a text for the world
>   http://www.pharo.org/success <http://www.pharo.org/success>
> 
> For your information when Pharo will get as a tenth of the many paid 
> engineers of the other systems I will compare. 
> Esteban, Pablo and Guillermo are talented engineers. And so far the 
> consortium is able to pay one and half engineer and Inria
> is supporting the rest. 
> 
> Pharo is not like we would like it to be. Pharo is as we can make it with the 
> limited 
> resources we have. And so far I think that we are doing super good. You see 
> like the first ARM64 bits based JIT
> and the first VM for M1 machine. 
> 
> BTW for the new mac machines, we can give you access to a VM that is going 
> faster than the Rosetta one. 
> 
> S. 
> 
> 
> 
>> On 13 Feb 2021, at 13:40, David Pennington > <mailto:da...@totallyobjects.com>> wrote:
>> 
>> OK, here goes.
>> 
>> My finishing project formy Open University degree (started in 1974 and 
>> finished in 2017!) was a routing program for freight cars on US model 
>> railways - written in VAST Smalltalk with a Seaside front end and a Riak 
>> back end. Riak is a multi-user, fail over resilient Key/Value (K/V) 
>> database. I used it on a Linux server as I couldn’t get it going under 
>> MacOS. However, now I have finished my degree, I have disposed of the server 
>> so, for my new project I didn’t have a database. I had built my own K/V 
>> database some years ago to run the management and web software for a scale 
>> model shop that I owned at that time so I decided that I would recreate that 
>> database for my current use.
>> 
>> TinkKV is my Smalltalk K/V. It relies on the OS for saving and retrieving 
>> objects which are saved using STON (Smalltalk Object Notation) format. 
>> Simple, there are two levels of bucket - 1) ‘Bucket’ and 2) ’SubBucket’. 
>> There can be multiple buckets which can contain multiple sub buckets. In my 
>> application, items are stored under two keys - FAOEntry (the basic entry 
>> object) which is the primary bucket, and multiple sub buckets keyed by the 
>> category of each object. It is a single user, local machine DB which is 
>> extremely fast - retrieves 189 records in 0.18 seconds on an M1 Mac.
>> 
>> Family Accounts is a simple home accounts management package that will 
>> evolve over the coming month but basically imports transactions from a 
>> NatWest Sage Accounts format download and inserts them into the database. 
>> Each object can be categorised for budget control and each budget can be 
>> displayed. The program can import a set of regular items (in CSV format)  
>> that recur monthly so that a monthly budget can be managed.  It is written 
>> in Pharo 8.0. 
>> 
>> I have been writing Smalltalk since 1990 when I started with Digitalk Visual 
>> Smalltalk but since about 1996 I have been using IBM/Instantiations 
>> VisualAge (VAST). I started the program, knowing nothing about Pharo, around 
>> the 15th January so it has taken just about a month of 1 -2 hours a day 
>> firstly to get to grips with Pharo and then to write the DB and Program. I 
>> have found Pharo quite difficult to come to grips with as, in comparison to 
>> VAST, it seems to be written for academics rather than business apps. 
>> However, once I got my head around how it was all put together, I found it 
>> an easy transition and great fun to use. I had expected to continue with 
>> VAST under Parallels but found that neither Parallels (well partially) or 
>> Windows 10 currently works successfully on an M1 MacBookAir. I did try to 
>> get hold of VisualWorks but didn’t get any response to my request for a 
>> download for some reason. I have written a good few frameworks for VAST so, 
>> now that my program is running successfully, I will have a look and see if I 
>> can port anything else. Watch this space.
> 
> 
> 
>> 
>> David Pennington
>> Totally Objects
>> (Http://www.totallyobjects.com <

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

2021-02-13 Thread David Pennington
Firstly, I didn’t explain that all the visuals are written in Seaside and, 
currently, the pages are just there to deliver the output.

Secondly, as it is our bank account, I don’t really think that it would be 
appropriate. Let me mock up some stuff and see how I go.

David

> On 13 Feb 2021, at 16:20, Stéphane Ducasse  wrote:
> 
> Thanks david. 
> Do you have a visual?
> Preferably in Pharo?
> 
> S. 
> 
>> On 13 Feb 2021, at 13:40, David Pennington > <mailto:da...@totallyobjects.com>> wrote:
>> 
>> OK, here goes.
>> 
>> My finishing project formy Open University degree (started in 1974 and 
>> finished in 2017!) was a routing program for freight cars on US model 
>> railways - written in VAST Smalltalk with a Seaside front end and a Riak 
>> back end. Riak is a multi-user, fail over resilient Key/Value (K/V) 
>> database. I used it on a Linux server as I couldn’t get it going under 
>> MacOS. However, now I have finished my degree, I have disposed of the server 
>> so, for my new project I didn’t have a database. I had built my own K/V 
>> database some years ago to run the management and web software for a scale 
>> model shop that I owned at that time so I decided that I would recreate that 
>> database for my current use.
>> 
>> TinkKV is my Smalltalk K/V. It relies on the OS for saving and retrieving 
>> objects which are saved using STON (Smalltalk Object Notation) format. 
>> Simple, there are two levels of bucket - 1) ‘Bucket’ and 2) ’SubBucket’. 
>> There can be multiple buckets which can contain multiple sub buckets. In my 
>> application, items are stored under two keys - FAOEntry (the basic entry 
>> object) which is the primary bucket, and multiple sub buckets keyed by the 
>> category of each object. It is a single user, local machine DB which is 
>> extremely fast - retrieves 189 records in 0.18 seconds on an M1 Mac.
>> 
>> Family Accounts is a simple home accounts management package that will 
>> evolve over the coming month but basically imports transactions from a 
>> NatWest Sage Accounts format download and inserts them into the database. 
>> Each object can be categorised for budget control and each budget can be 
>> displayed. The program can import a set of regular items (in CSV format)  
>> that recur monthly so that a monthly budget can be managed.  It is written 
>> in Pharo 8.0. 
>> 
>> I have been writing Smalltalk since 1990 when I started with Digitalk Visual 
>> Smalltalk but since about 1996 I have been using IBM/Instantiations 
>> VisualAge (VAST). I started the program, knowing nothing about Pharo, around 
>> the 15th January so it has taken just about a month of 1 -2 hours a day 
>> firstly to get to grips with Pharo and then to write the DB and Program. I 
>> have found Pharo quite difficult to come to grips with as, in comparison to 
>> VAST, it seems to be written for academics rather than business apps. 
>> However, once I got my head around how it was all put together, I found it 
>> an easy transition and great fun to use. I had expected to continue with 
>> VAST under Parallels but found that neither Parallels (well partially) or 
>> Windows 10 currently works successfully on an M1 MacBookAir. I did try to 
>> get hold of VisualWorks but didn’t get any response to my request for a 
>> download for some reason. I have written a good few frameworks for VAST so, 
>> now that my program is running successfully, I will have a look and see if I 
>> can port anything else. Watch this space.
>> 
>> David Pennington
>> Totally Objects
>> (Http://www.totallyobjects.com <http://www.totallyobjects.com/>)
>> 
>>> On 13 Feb 2021, at 11:09, Stéphane Ducasse >> <mailto:stephane.duca...@inria.fr>> wrote:
>>> 
>>> Hi david
>>> 
>>> Two points:
>>> - I would love to have a little success story about your application
>>> = one paragraph what is does + one paragraph how technology is 
>>> cool :)
>>> 
>>> - if you need we have a native VM for M1 (the stackVM).
>>> 
>>> S.
>>> 
>>>> On 11 Feb 2021, at 20:38, David Pennington >>> <mailto:da...@totallyobjects.com>> wrote:
>>>> 
>>>> Hi there Peter
>>>> 
>>>> I have been writing Smalltalk since 1990 first with Digitalk and then 
>>>> IBM/Instantiations VAST. However, I am a newbie with Pharo having only 
>>>> used it for the last 3 weeks so I am pleased to have got my first Seaside 
>>>> app working successfully - it’s a

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

2021-02-13 Thread David Pennington
OK, here goes.

My finishing project formy Open University degree (started in 1974 and finished 
in 2017!) was a routing program for freight cars on US model railways - written 
in VAST Smalltalk with a Seaside front end and a Riak back end. Riak is a 
multi-user, fail over resilient Key/Value (K/V) database. I used it on a Linux 
server as I couldn’t get it going under MacOS. However, now I have finished my 
degree, I have disposed of the server so, for my new project I didn’t have a 
database. I had built my own K/V database some years ago to run the management 
and web software for a scale model shop that I owned at that time so I decided 
that I would recreate that database for my current use.

TinkKV is my Smalltalk K/V. It relies on the OS for saving and retrieving 
objects which are saved using STON (Smalltalk Object Notation) format. Simple, 
there are two levels of bucket - 1) ‘Bucket’ and 2) ’SubBucket’. There can be 
multiple buckets which can contain multiple sub buckets. In my application, 
items are stored under two keys - FAOEntry (the basic entry object) which is 
the primary bucket, and multiple sub buckets keyed by the category of each 
object. It is a single user, local machine DB which is extremely fast - 
retrieves 189 records in 0.18 seconds on an M1 Mac.

Family Accounts is a simple home accounts management package that will evolve 
over the coming month but basically imports transactions from a NatWest Sage 
Accounts format download and inserts them into the database. Each object can be 
categorised for budget control and each budget can be displayed. The program 
can import a set of regular items (in CSV format)  that recur monthly so that a 
monthly budget can be managed.  It is written in Pharo 8.0. 

I have been writing Smalltalk since 1990 when I started with Digitalk Visual 
Smalltalk but since about 1996 I have been using IBM/Instantiations VisualAge 
(VAST). I started the program, knowing nothing about Pharo, around the 15th 
January so it has taken just about a month of 1 -2 hours a day firstly to get 
to grips with Pharo and then to write the DB and Program. I have found Pharo 
quite difficult to come to grips with as, in comparison to VAST, it seems to be 
written for academics rather than business apps. However, once I got my head 
around how it was all put together, I found it an easy transition and great fun 
to use. I had expected to continue with VAST under Parallels but found that 
neither Parallels (well partially) or Windows 10 currently works successfully 
on an M1 MacBookAir. I did try to get hold of VisualWorks but didn’t get any 
response to my request for a download for some reason. I have written a good 
few frameworks for VAST so, now that my program is running successfully, I will 
have a look and see if I can port anything else. Watch this space.

David Pennington
Totally Objects
(Http://www.totallyobjects.com <http://www.totallyobjects.com/>)

> On 13 Feb 2021, at 11:09, Stéphane Ducasse  wrote:
> 
> Hi david
> 
> Two points:
>   - I would love to have a little success story about your application
>   = one paragraph what is does + one paragraph how technology is 
> cool :)
> 
>   - if you need we have a native VM for M1 (the stackVM).
> 
> S.
> 
>> On 11 Feb 2021, at 20:38, David Pennington > <mailto:da...@totallyobjects.com>> wrote:
>> 
>> Hi there Peter
>> 
>> I have been writing Smalltalk since 1990 first with Digitalk and then 
>> IBM/Instantiations VAST. However, I am a newbie with Pharo having only used 
>> it for the last 3 weeks so I am pleased to have got my first Seaside app 
>> working successfully - it’s a home banking management app that imports from 
>> Sage compatible CSV files supplied by NatWest. This is the only real 
>> difficulty so I am very pleased with the work.
>> 
>> I use my own brand key/value database that saves objects out to the disk. 
>> With my new M1 MacBookAir, I am getting read and write values around .3 
>> second for 125 records so I am very happy.
>> 
>> I have yet to look at deleting the old file before writing but I am sure 
>> that this will make it superb.
>> 
>> Many thanks for your help in this.
>> 
>> David
>> TotallyObjects
>> http://www.totallyobjects <http://www.totallyobjects/>.com
>> 
>> Your suggestion worked perfectly - I truncate the file and it parses 
>> 
>>> On 11 Feb 2021, at 17:07, >> <mailto:pe...@pbkresearch.co.uk>> >> <mailto:pe...@pbkresearch.co.uk>> wrote:
>>> 
>>> David
>>> I think you are misreading the debugger display. The bit you are missing is 
>>> the last few characters in the evaluation display, after the closing 
>>> parenthesis. They should not be there if it i

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

2021-02-11 Thread David Pennington
Hi there Peter

I have been writing Smalltalk since 1990 first with Digitalk and then 
IBM/Instantiations VAST. However, I am a newbie with Pharo having only used it 
for the last 3 weeks so I am pleased to have got my first Seaside app working 
successfully - it’s a home banking management app that imports from Sage 
compatible CSV files supplied by NatWest. This is the only real difficulty so I 
am very pleased with the work.

I use my own brand key/value database that saves objects out to the disk. With 
my new M1 MacBookAir, I am getting read and write values around .3 second for 
125 records so I am very happy.

I have yet to look at deleting the old file before writing but I am sure that 
this will make it superb.

Many thanks for your help in this.

David
TotallyObjects
http://www.totallyobjects <http://www.totallyobjects/>.com

Your suggestion worked perfectly - I truncate the file and it parses 

> On 11 Feb 2021, at 17:07,   
> wrote:
> 
> David
> I think you are misreading the debugger display. The bit you are missing is 
> the last few characters in the evaluation display, after the closing 
> parenthesis. They should not be there if it is displaying a dictionary. 
> Evidently the variable 'aDict' is in fact an association whose key is the 
> dictionary and whose value is nil. 
> 
> I can't see where it goes from there, but I think you need to look more 
> closely at the preceding line, FAOEntry>>getEntryObjectFrom:,  and see what 
> exactly it does with the junk in your .dat file.
> 
> HTH
> 
> Peter Kenny
> 
> 
> -Original Message-
> From: David Pennington  
> Sent: 11 February 2021 16:46
> To: Any question about pharo is welcome 
> Subject: [Pharo-users] Re: Problem with Dictionary and Associations
> 
> Thank you for that but it doesn’t resolve my problem. Why does the stack move 
> to an Association when doing the access to the dictionary? It is the 
> Association indexing that fails as it won’t allow #entryAmount as a key.
> 
> If I inspect the following code (STON fromString: result ) in the line ^ self 
> makeObject: (STON fromString: result ) I get an Association. Why don’t I get 
> a Dictionary. I did two days ago when all of this was working perfectly and 
> we were happily matching the Pharo Seaside display to our bank account :=)
> 
> David
> 
>> On 11 Feb 2021, at 16:39, Sven Van Caekenberghe  wrote:
>> 
>> I can parse the file data you provided:
>> 
>> STON fromString: 
>> '{#entryName:''Housekeeping'',#entryDate:Date[''2021-02-25Z''],#transactionID:''2021022501'',#entryAmount:-400/1s8,#entryCategory:''Housekeeping'',#entryDescription:''Housekeeping'',#match:nil}ousekeeping'',#match:nil}'
>>  
>> 
>> "a Dictionary(#entryAmount->-400.s8 #entryCategory->'Housekeeping' 
>> #entryDate->25 February 2021 #entryDescription->'Housekeeping' 
>> #entryName->'Housekeeping' #match->nil #transactionID->'2021022501' )"
>> 
>> (BTW, this is STON not JSON).
>> 
>> What I do see in the input is junk after the last }
>> 
>> That can happen when you overwrite an existing file with shorter content. 
>> You should truncate such a file.
>> 
>> From your screenshot I can see nothing wrong, #entryAmount seems an existing 
>> key in aDict, that should just work.
>> 
>>> On 11 Feb 2021, at 16:33, David Pennington  wrote:
>>> 
>>> I attach a couple of screen shots and a file containing the item that I am 
>>> trying to open. What else can I supply? This has been working for a couple 
>>> of weeks and suddenly doesn’t work. I save the JSON and then load it back 
>>> again. I enclose a file with the JSON as contents. As you can see from the 
>>> screenshot, the debugger shows it as a dictionary but the execution path 
>>> takes it to an Association which is what I don’t understand.
>>> 
>>> <20210225 01>
>>> 
>>>> On 10 Feb 2021, at 19:17, Sven Van Caekenberghe  wrote:
>>>> 
>>>> Hi David,
>>>> 
>>>>> On 10 Feb 2021, at 19:18, da...@totallyobjects.com wrote:
>>>>> 
>>>>> 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
>>>> 
>>>> I am afraid I need more information.
>>>> 
>>>> Could you create a reproducible case ?
>>>> Do you have a stack trace ?
>>>> 
>>>> In any case, STON is a text format, that can be edited (in most cases, 
>>>> shared or circular references being hard to edit by hand).
>>>> 
>>>> Sven
>>> 



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

2021-02-11 Thread David Pennington
Thank you for that but it doesn’t resolve my problem. Why does the stack move 
to an Association when doing the access to the dictionary? It is the 
Association indexing that fails as it won’t allow #entryAmount as a key.

If I inspect the following code (STON fromString: result ) in the line ^ self 
makeObject: (STON fromString: result ) I get an Association. Why don’t I get a 
Dictionary. I did two days ago when all of this was working perfectly and we 
were happily matching the Pharo Seaside display to our bank account :=)

David

> On 11 Feb 2021, at 16:39, Sven Van Caekenberghe  wrote:
> 
> I can parse the file data you provided:
> 
> STON fromString: 
> '{#entryName:''Housekeeping'',#entryDate:Date[''2021-02-25Z''],#transactionID:''2021022501'',#entryAmount:-400/1s8,#entryCategory:''Housekeeping'',#entryDescription:''Housekeeping'',#match:nil}ousekeeping'',#match:nil}'
>  
> 
> "a Dictionary(#entryAmount->-400.s8 #entryCategory->'Housekeeping' 
> #entryDate->25 February 2021 #entryDescription->'Housekeeping' 
> #entryName->'Housekeeping' #match->nil #transactionID->'2021022501' )"
> 
> (BTW, this is STON not JSON).
> 
> What I do see in the input is junk after the last }
> 
> That can happen when you overwrite an existing file with shorter content. You 
> should truncate such a file.
> 
> From your screenshot I can see nothing wrong, #entryAmount seems an existing 
> key in aDict, that should just work.
> 
>> On 11 Feb 2021, at 16:33, David Pennington  wrote:
>> 
>> I attach a couple of screen shots and a file containing the item that I am 
>> trying to open. What else can I supply? This has been working for a couple 
>> of weeks and suddenly doesn’t work. I save the JSON and then load it back 
>> again. I enclose a file with the JSON as contents. As you can see from the 
>> screenshot, the debugger shows it as a dictionary but the execution path 
>> takes it to an Association which is what I don’t understand.
>> 
>> <20210225 01>
>> 
>>> On 10 Feb 2021, at 19:17, Sven Van Caekenberghe  wrote:
>>> 
>>> Hi David,
>>> 
>>>> On 10 Feb 2021, at 19:18, da...@totallyobjects.com wrote:
>>>> 
>>>> 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
>>> 
>>> I am afraid I need more information.
>>> 
>>> Could you create a reproducible case ?
>>> Do you have a stack trace ?
>>> 
>>> In any case, STON is a text format, that can be edited (in most cases, 
>>> shared or circular references being hard to edit by hand).
>>> 
>>> Sven
>> 


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

2021-02-11 Thread David Pennington
Yes but I can’t see any resolution on GitHub

> On 11 Feb 2021, at 15:36, hogoww  wrote:
> 
> Are you on Pharo 8?
> I think I encountered this bug not so long ago.
> From your screenshot, it look like it 
> https://github.com/pharo-project/pharo/issues/8411 
> <https://github.com/pharo-project/pharo/issues/8411>?
> 
> Pierre
> 
> On 11/02/2021 16:33, David Pennington wrote:
>> I attach a couple of screen shots and a file containing the item that I am 
>> trying to open. What else can I supply? This has been working for a couple 
>> of weeks and suddenly doesn’t work. I save the JSON and then load it back 
>> again. I enclose a file with the JSON as contents. As you can see from the 
>> screenshot, the debugger shows it as a dictionary but the execution path 
>> takes it to an Association which is what I don’t understand.
>> 
>> 
>> 
>> 
>>> On 10 Feb 2021, at 19:17, Sven Van Caekenberghe  
>>> <mailto:s...@stfx.eu> wrote:
>>> 
>>> Hi David,
>>> 
>>>> On 10 Feb 2021, at 19:18, da...@totallyobjects.com 
>>>> <mailto:da...@totallyobjects.com> wrote:
>>>> 
>>>> 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
>>> I am afraid I need more information.
>>> 
>>> Could you create a reproducible case ?
>>> Do you have a stack trace ?
>>> 
>>> In any case, STON is a text format, that can be edited (in most cases, 
>>> shared or circular references being hard to edit by hand).
>>> 
>>> Sven



[Pharo-users] Re: Is there a file selector in Pharo

2021-01-27 Thread David Pennington
Both of those were very helpful . Interestingly, I was expecting a file path 
but I got the actual file so that makes it a bit easier.

Great group. I will enjoy being here.

Thanks to Torsten and Noury

David
Totally Objects

> On 27 Jan 2021, at 16:24, Torsten Bergmann  wrote:
> 
> Hi David,
> 
> welcome! Just check 
> 
>  UIManager default
>chooseExistingFileReference: 'Select the XML file'
>extensions: #('xml' 'xmi') 
>path: ''.
>  
> and similar methods. Be aware that a return value of nil means that 
> dialog was canceled.
>  
> Thanks
> Torsten
>  
> 
> David Pennington wrote:
> >
> > I am moving to Pharo from VisualAge Smalltalk as I am now using an M1 
> > MacBook.
> >
> > I am building software to manage our home accounts and to do this, I 
> > download each day a text file from my bank that contains about 1 month’s 
> > worth of transactions. In VAST, I use a FileSelector that opens a window 
> > and enables my to navigate to the Downloads folder and lets me select the 
> > current transaction file. This gives me the path to the file making it 
> > simple for me to open and parse it.
> >
> > Is there a similar file selector window that I can use in Pharo? I can see 
> > how to open the Glamour browsers but not how to extract the path.
> >
> > Can anyone help please?
> >
> > David
> > Totally Objects



[Pharo-users] Is there a file selector in Pharo

2021-01-27 Thread David Pennington
I am moving to Pharo from VisualAge Smalltalk as I am now using an M1 MacBook.

I am building software to manage our home accounts and to do this, I download 
each day a text file from my bank that contains about 1 month’s worth of 
transactions.  In VAST, I use a FileSelector that opens a window and enables my 
to navigate to the Downloads folder and lets me select the current transaction 
file. This gives me the path to the file making it simple for me to open and 
parse it.

Is there a similar file selector window that I can use in Pharo? I can see how 
to open the Glamour browsers but not how to extract the path.

Can anyone help please?

David
Totally Objects