[Pharo-users] [ANN] P3 version 1.4

2022-05-31 Thread Sven Van Caekenberghe
Hi, There is a new release of P3, the modern, lean and mean PostgreSQL client for Pharo. https://github.com/svenvc/P3 https://github.com/svenvc/P3/releases/tag/v1.4 I thank all contributors and users for their help and feedback: you make a real difference. Sven -- Sven Van Caekenberghe

[Pharo-users] Pharo Enterprise book HTML chapter links

2022-04-30 Thread Sven Van Caekenberghe
Hi, All the Chapter Topics links on https://books.pharo.org/enterprise-pharo/ (bottom left side) are broken. Is it still possible to link to individual chapters ? Can someone have a look, it would be a shame to let this bit rot. Thx, Sven PS: Looking at the other books it seems HTML reading

[Pharo-users] Re: A question about #beginsWith: and #endsWith:

2022-04-20 Thread Sven Van Caekenberghe
Since 'abc' includesSubstring: ''. "true" 'abc' indexOfSubCollection: ''. "0" and following basic principles, my first reaction would also be that 'abc' beginsWith: ''. 'abc' endsWith: ''. should both be true. On the other hand, this is really a degenerate case. You know the answer upfront

[Pharo-users] Re: [Pharo-dev] [ANN] Pharo 10 released!

2022-04-05 Thread Sven Van Caekenberghe
Green, > Nour Djihan, Noury Bouraqadi, Oleksandr Zaitsev, Pablo Sánchez Rodríguez, > Pablo Tesone, Pavel Krivanek, Pierre Misse-Chanabier, Quentin Ducasse, > Raffaello Giulietti, Rakshit, Renaud de Villemeur, Rob Sayers, Roland > Bernard, Ronie Salgado, Santiago Bragagnolo, Sean De

[Pharo-users] Re: Illegal Leading Byte

2022-03-04 Thread Sven Van Caekenberghe
Hi Craig, > On 3 Mar 2022, at 23:15, craig wrote: > > Hi Guys, > > > I'm reading a text file which is supposed to be ASCII encoded. This file > contains a list of filepaths and was created by a Python program. > > > Well, it turns-out that file names on Windows can contain illegal UTF-8

[Pharo-users] Re: [ANN] Pharo LZ4 Tools

2022-02-20 Thread Sven Van Caekenberghe
post, I hope at least someone found this interesting. Sven > Envoyé depuis mon téléphone Huawei > > > Message original > De : Sven Van Caekenberghe > Date : ven. 18 févr. 2022 à 21:13 > À : Any question about pharo is welcome > Objet : [Pharo-users] [ANN]

[Pharo-users] [ANN] Pharo LZ4 Tools

2022-02-18 Thread Sven Van Caekenberghe
Hi, Pharo LZ4 Tools (https://github.com/svenvc/pharo-lz4-tools) is an implementation of LZ4 compression and decompression in pure Pharo. LZ4 is a lossless compression algorithm that is focused on speed. It belongs to the LZ77 family of byte-oriented compression schemes. - https://en.wikipedia

[Pharo-users] Re: Too many parenthesis - a matter of syntax

2022-01-26 Thread Sven Van Caekenberghe
Hi Kaspar, I found the initial example actually reasonable readable. However, I would simplify it as follows: (json at: #tree) select: [ :each | ((each at: #type) = #blob) and: [ #(md mic) includes: (Path from: (each at: #path)) extension ] ]. I would personally not try to extend th

[Pharo-users] Re: An Emacs <-> Pharo bridge (unidirectional at first)

2021-12-09 Thread Sven Van Caekenberghe
> On 8 Dec 2021, at 22:24, Mathieu Dubois via Pharo-users > wrote: > > gettimothy wrote: > > https://github.com/ahungry/geben > > that is the protocol emacs/php uses. Dbg . > > iirc, there is another standard for code browsing, highlighting, etc. > > If i find it I will ping you. > > Are

[Pharo-users] Re: An Emacs <-> Pharo bridge (unidirectional at first)

2021-12-08 Thread Sven Van Caekenberghe
> On 8 Dec 2021, at 11:07, Pierre Misse wrote: > > Hello, > > I am aware of a Visual studio implementation that does pretty much what you > described. > https://github.com/badetitou/vscode-pharo > > I also kinda remember something pharo with emacs called: bubbles? > I can't remember sorry :

[Pharo-users] Re: uFFI provide buffer to C

2021-11-29 Thread Sven Van Caekenberghe
> On 29 Nov 2021, at 10:10, Guillermo Polito wrote: > > Hi Gerry, > > I think the point of Tomaz is that an FFI method can only have a single > #ffiCall: statement. > In your example, what you can do is to split your method in two methods: > > First a method with the mapping (following the

[Pharo-users] Re: Strategies for (re)using HTTP client

2021-11-03 Thread Sven Van Caekenberghe
Maybe this helps: https://github.com/svenvc/zinc/commit/d9fe41707b16748b9340540127ec5d77800856b6 > On 1 Nov 2021, at 21:22, Sven Van Caekenberghe wrote: > > > >> On 1 Nov 2021, at 20:03, Esteban Maringolo wrote: >> >> If I need to use cookies,

[Pharo-users] Re: Strategies for (re)using HTTP client

2021-11-01 Thread Sven Van Caekenberghe
a new client for each request, the less state > shared, the better :-) > > Regards! > > Esteban A. Maringolo > > > On Fri, Oct 29, 2021 at 12:15 PM Sven Van Caekenberghe wrote: > Hi, > > > On 29 Oct 2021, at 15:42, Esteban Maringolo wrote: > > > > H

[Pharo-users] Re: Strategies for (re)using HTTP client

2021-10-29 Thread Sven Van Caekenberghe
Hi, > On 29 Oct 2021, at 15:42, Esteban Maringolo wrote: > > Hi, > > I happened to me more than once that I have to create some REST service > "client" in which I usually wrap an HTTP client inside (ZnClient in this > case), and all the calls to the service, end up using the HTTP client, insi

[Pharo-users] Re: Splitting a single HTTP Request into multiple concurrent requests

2021-10-19 Thread Sven Van Caekenberghe
en a request fails, for example: client numberOfRetries: 3; retryDelay: 2 "seconds". could be added to the example. > On Mon, Oct 18, 2021 at 11:05 AM Sven Van Caekenberghe wrote: > Hi, > > Somebody asked how you would split single HTTP Request into multiple > concurre

[Pharo-users] Splitting a single HTTP Request into multiple concurrent requests

2021-10-18 Thread Sven Van Caekenberghe
Hi, Somebody asked how you would split single HTTP Request into multiple concurrent requests. This is one way to do it. Upfront I should state that - I do no think this is worth the trouble - It is only applicable to large downloads (even larger than in the example) - The other side (server) m

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

2021-08-30 Thread 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 in

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

2021-08-28 Thread Sven Van Caekenberghe
David, > On 28 Aug 2021, at 17: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

[Pharo-users] Re: [ANN] Bootstrap 5 for Seaside in Pharo

2021-07-30 Thread Sven Van Caekenberghe
Hi Torsten, Great, thanks for doing the Bootstrap series, it has been very useful for me/us, we use it in several production web apps. We're still on 3 though ;-) Sven > On 30 Jul 2021, at 09:24, Torsten Bergmann wrote: > > Hi, > > after some of you are using https://github.com/astares/Seasi

[Pharo-users] Re: ZnServer on a cheap server: your experiences

2021-07-26 Thread Sven Van Caekenberghe
removing >> this option though and moving back to nginx only. >> >> What I never tried was to host a docker container running Pharo, in >> some Docker hosting. It might be the best option as a quick start, but >> after doing the math, it's always more expensive t

[Pharo-users] Re: Zinc exception logging

2021-07-25 Thread Sven Van Caekenberghe
Hi Esteban, > On 26 Jul 2021, at 02:47, Esteban Maringolo wrote: > > Is there a way to have a "stack dump" response in Zinc? > > #debugMode is good for development, but I'm having an "Internal Error: > 4", that I don't know how to trace. > > * Trying 167.71.182.110... > * TCP_NODELAY set > *

[Pharo-users] Re: ZnServer on a cheap server: your experiences

2021-07-21 Thread Sven Van Caekenberghe
Hi Vince, That is certainly possible and works well. I would recommend an instance with 1GB RAM, that leaves you some headroom. Deploying web applications is of course a broad subject, much of the required knowledge is not Pharo specific, but needed anyway. The last chapter in the Pharo Enterp

[Pharo-users] Re: How to handle (recover) from a ZnInvalidUTF8: Illegal continuation byte for utf-8 encoding error?

2021-07-20 Thread Sven Van Caekenberghe
encoder beLenient. > > details parsStream: efsStream. > > That is - get the endcoder from my Stream and make it lenient? > > Appreciate the pointers on this guys - I’m definitely learning something new > here. > > Tim > >> On 20 Jul 2021, at 12:11,

[Pharo-users] Re: How to handle (recover) from a ZnInvalidUTF8: Illegal continuation byte for utf-8 encoding error?

2021-07-20 Thread Sven Van Caekenberghe
> On 20 Jul 2021, at 12:11, Guillermo Polito wrote: > > > >> El 20 jul 2021, a las 11:45, Sven Van Caekenberghe escribió: >> >> >> >>> On 20 Jul 2021, at 11:03, Sven Van Caekenberghe wrote: >>> >>> Hi Tim, >&

[Pharo-users] Re: How to handle (recover) from a ZnInvalidUTF8: Illegal continuation byte for utf-8 encoding error?

2021-07-20 Thread Sven Van Caekenberghe
> On 20 Jul 2021, at 11:03, Sven Van Caekenberghe wrote: > > Hi Tim, > > An introduction to this part of the system is in > https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/Zinc-Encoding-Meta/Zinc-Encoding-Meta.

[Pharo-users] Re: How to handle (recover) from a ZnInvalidUTF8: Illegal continuation byte for utf-8 encoding error?

2021-07-20 Thread Sven Van Caekenberghe
Hi Tim, An introduction to this part of the system is in https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/Zinc-Encoding-Meta/Zinc-Encoding-Meta.html [Character Encoding and Resource Meta Description] from the "Enterprise Pharo" book. The e

[Pharo-users] Re: [ANN] Pharo 9 released!

2021-07-15 Thread Sven Van Caekenberghe
, Oleksandr Zaitsev, Pablo Sánchez Rodríguez, Pablo > Tesone, Pavel Krivanek, Philippe Lesueur, Pierre Misse, Rakshit P., Rob > Sayers, Roland Bernard, Ronie Salgado, Sean DeNigris, Sebastian Jordan > Montaño, Serge Stinckwich, Stephan Eggermont, Steven Costiou, Stéphane > Ducasse, Sve

[Pharo-users] Re: Communication between different images

2021-07-01 Thread Sven Van Caekenberghe
> On 1 Jul 2021, at 21:01, Esteban Maringolo wrote: > > On Thu, Jul 1, 2021 at 3:00 PM Jesus Mari Aguirre > wrote: >> >> As far as I know, zmq doesn't need a broker but subscribers should know the >> address of the publisher, if the network increases its complexity with more >> publishers

[Pharo-users] Re: Communication between different images

2021-07-01 Thread Sven Van Caekenberghe
self handleMessage: message ] ]. self log: 'End of MQTT reading, restarting in 5s'. self closeMQTTClient. 5 seconds wait ] repeat It is a bit crude but it does help to restore the connection when the broker becomes tem

[Pharo-users] Re: Communication between different images

2021-06-30 Thread Sven Van Caekenberghe
> On 30 Jun 2021, at 01:28, Esteban Maringolo wrote: > > I like the Ansible approach using RabbitMQ, in particular because it > would also work to delegate tasks to workers (even if in the same > image), and the task queue would be preserved, whilst in MQTT if there > are no subscribers for a

[Pharo-users] Re: Communication between different images

2021-06-30 Thread Sven Van Caekenberghe
> On 29 Jun 2021, at 20:10, Esteban Maringolo wrote: > > I already got MQTT running, It's not completely clear to me how the > QoS setting works (atLeastOnce, exactlyOnce, atMostOnce), I don't > remember using that setting in Java (it probably had a sensible > default). From the comments in M

[Pharo-users] Re: Communication between different images

2021-06-29 Thread Sven Van Caekenberghe
d is quite easy. > Regards! > > Esteban A. Maringolo > > On Tue, Jun 29, 2021 at 3:15 AM Sven Van Caekenberghe wrote: >> >> Hi Esteban, >> >>> On 29 Jun 2021, at 04:55, Esteban Maringolo wrote: >>> >>> Hi, >>> >>&g

[Pharo-users] Re: Communication between different images

2021-06-28 Thread Sven Van Caekenberghe
Hi Esteban, > On 29 Jun 2021, at 04:55, Esteban Maringolo wrote: > > Hi, > > I'm rearchitecting a web app to perform updates only when necessary > (instead of computing them all the time) on each request, I can have a > global announcer and subscribers to know when to update within an > image,

[Pharo-users] Re: Zn and AWS - retrieving object versions?

2021-06-18 Thread Sven Van Caekenberghe
Tim, > On 17 Jun 2021, at 19:05, Sven Van Caekenberghe wrote: > > PS: I think there is other AWS S3 for Pharo out there, but I can't remember. I found two of them: - https://github.com/newapplesho/aws-sdk-smalltalk - https://github.com/jvdsandt/pharo-aws-toolbox I am sure bot

[Pharo-users] Re: Zn and AWS - retrieving object versions?

2021-06-17 Thread Sven Van Caekenberghe
> >> But I’m a bit mystified why the previous: client keysIn: 'mtt-data’ >> Invocation would work, but this seemingly extra step would be forbidden. My >> IAM role says it has full S3 access, so I’m not sure if this is still that >> we haven’t got the right fix or

[Pharo-users] Re: Zn and AWS - retrieving object versions?

2021-06-17 Thread Sven Van Caekenberghe
Hi Tim, It has been a very long time since I last looked at this code. It is a good thing that at least part of it still works. Just by reading the code and reasoning about your problem, I would suggest you try the following change: In ZnAWSS3RequestSignatureTool>>#canonicalStringFor: replace

[Pharo-users] Re: Reading http post data using Zinc

2021-06-16 Thread Sven Van Caekenberghe
Hi Davide, > On 16 Jun 2021, at 23:17, Davide Varvello via Pharo-users > wrote: > > Hi Guys, > I'm posting from an http form and I'm wondering how to read data from the > post. It seems the request should give a ZnMultiPartFormDataEntity, but I > can't find how to use it. > > Can you help me p

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Sven Van Caekenberghe
> On 16 Jun 2021, at 16:20, Konrad Hinsen wrote: > > On 16/06/2021 15:52, Sven Van Caekenberghe wrote: >> I am also a bit intrigued by this. Like you said: several other programming >> languages (I tried a couple of Common Lisp and Scheme implementations) do >

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Sven Van Caekenberghe
I am also a bit intrigued by this. Like you said: several other programming languages (I tried a couple of Common Lisp and Scheme implementations) do the same as Pharo, but handheld calculators, normal and scientific, do not. I think that going for 1/10 fractions/precision is not going to help:

[Pharo-users] Re: Rounding in Floats

2021-06-15 Thread Sven Van Caekenberghe
itching to scientific notation outside a certain range. > Where is the code available? It is part of NeoJSON, https://github.com/svenvc/NeoJSON Keep in mind that this is just an unfinished experiment. > Thanks! > > Esteban A. Maringolo > > On Mon, Jun 14, 2021 at 6:30 PM Sven

[Pharo-users] Re: Rounding in Floats

2021-06-14 Thread Sven Van Caekenberghe
ded, while limiting the precision. Maybe it is interesting to look at the code. But I am far from an expert. > On 14 Jun 2021, at 23:23, Sven Van Caekenberghe wrote: > > > >> On 14 Jun 2021, at 22:44, Esteban Maringolo wrote: >> >> I'm coming back to this beca

[Pharo-users] Re: Rounding in Floats

2021-06-14 Thread Sven Van Caekenberghe
> On 14 Jun 2021, at 22:44, Esteban Maringolo wrote: > > I'm coming back to this because I've been bitten by these floating > points things again. > > If in Pharo [1] you do: > a := 6.7 + (32.8 - 35) > > It will produce: > 4.497 > > Which, when rounded, will produce 4. But, a

[Pharo-users] Re: New Pharo-based commercial software

2021-06-14 Thread Sven Van Caekenberghe
Congratulations. This is a really good concept, and it looks nice as well. > On 12 Jun 2021, at 11:36, Noury Bouraqadi wrote: > > Hi everyone, > > I'm glad to announce a new Pharo-based commercial product: PLC3000 > (https://plc3000.com). > > It's a SaaS solution for teaching PLC programming

[Pharo-users] Re: STON reader problem

2021-05-27 Thread Sven Van Caekenberghe
David, You have to load a newer version of STON. You are trying to read a ScaledDecimal, support for this was added around Oct 2018. https://github.com/svenvc/ston/commit/9c83e3cc2f00cab83e57f2e10a139d6ecef3cb30 See https://github.com/svenvc/ston for load/dependency instructions. Sven > On 27

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

2021-05-24 Thread Sven Van Caekenberghe
Look carefully, they are both FileReferences, the UI is different. Also, explore the difference between the working directory and the image directory: FileLocator workingDirectory absolutePath. FileLocator imageDirectory absolutePath. The working directory depends on how the image was launched

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

2021-05-21 Thread Sven Van Caekenberghe
You start an image by typing the following in the Terminal ./pharo-ui Pharo.image > On 21 May 2021, at 16:31, David Pennington wrote: > > 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://

[Pharo-users] Re: P3 connection error

2021-05-19 Thread Sven Van Caekenberghe
Bernard, > On 18 May 2021, at 22:23, Sven Van Caekenberghe wrote: > > Tomorrow I will try to test plain and tls connections on my machine. It took some trial & error with my local PostgreSQL server (on my mac I use https://postgresapp.com although I normally use the regular Ubunt

[Pharo-users] Re: P3 connection error

2021-05-18 Thread Sven Van Caekenberghe
L and DBeaver.) > > Thanks for your support! > > Bernhard > >> Am 18.05.2021 um 20:16 schrieb Sven Van Caekenberghe : >> >> >> (CC-ing the list) >> >> Hmm, that should just work. >> >> Are there any special characters in the userna

[Pharo-users] Re: P3 connection error

2021-05-18 Thread Sven Van Caekenberghe
t new url: 'psql://user:password@host:5432/database'. > > Cheers, > Bernhard > >> Am 18.05.2021 um 19:16 schrieb Sven Van Caekenberghe : >> >> >> Hi Bernard, >> >>> On 18 May 2021, at 18:40, Bernhard Pieber wrote: >>>

[Pharo-users] Re: P3 connection error

2021-05-18 Thread Sven Van Caekenberghe
Hi Bernard, > On 18 May 2021, at 18:40, Bernhard Pieber wrote: > > Hi, > > I have a PostgreSQL database on a remote host which I want to access using > P3. I do have a username and a password and can connect via SQuirreL and > DBeaver. Both use a JDBC driver. However, when I try to access it

[Pharo-users] Re: NeoCSVReader and wrong number of fieldAccessors

2021-05-13 Thread Sven Van Caekenberghe
There is now the following commit: https://github.com/svenvc/NeoCSV/commit/0acc2270b382f52533c478f2f1585341e390d4b5 which should address a couple of issues. > On 22 Jan 2021, at 12:15, jtuc...@objektfabrik.de wrote: > > Tim, > > > > > Am 22.01.21 um 10:22 schrieb Tim Mackinnon: >> I’m not d

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Sven Van Caekenberghe
The whole idea is to decouple producers and consumers, like in messaging systems. You should not care if there are other listening, just like the listeners should not care if there is someone posting data. Asking for subscribers is introducing a coupling. The announcement mechanism will/should

[Pharo-users] Re: Segfault with ZnClient and https

2021-04-21 Thread Sven Van Caekenberghe
> On 21 Apr 2021, at 09:46, Sven Van Caekenberghe wrote: > > $ ./pharo Pharo.image eval "(ZnClient new url: > 'https://pharo.org/web/files/pharo.png'; get; response) contentType" > image/png Actually, this is nicer, simpler and clearer: $ ./pharo Pharo.im

[Pharo-users] Re: Segfault with ZnClient and https

2021-04-21 Thread Sven Van Caekenberghe
Hi Petter, It should work, but of course there might be something wrong. To get a baseline for your issue here is what I did, and what you could try to repeat. $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS" $ unam

[Pharo-users] Re: Seaside disappearing under Windows

2021-04-20 Thread Sven Van Caekenberghe
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 t

[Pharo-users] Re: Postgres P3 Driver in seaside/web apps - strategy for "prepare:"

2021-04-19 Thread Sven Van Caekenberghe
Hi Sanjay, > On 19 Apr 2021, at 18:14, Sanjay Minni wrote: > > Hi > > using the P3 Postgres driver > > what is the optimised way of using the following in a seaside/web > application > statement := client prepare: ... > statement execute: > statement close. > > Sven readme on the drivers

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

2021-04-14 Thread Sven Van Caekenberghe
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 > wrote: > > Hi guys, > I'm working on Pharo 8 on BigSur

[Pharo-users] Re: Whats the easiest/cheapest way to run a Pharo web app in 2021?

2021-04-12 Thread Sven Van Caekenberghe
Although my main instance is on Digital Ocean, I have a test/play instance on AWS. This is really hip & cool: it is an AWS Graviton 2 instance (Amazon's own ARM64 CPU, much like Apple Silicon) [ https://aws.amazon.com/ec2/graviton/ ]. I run a small t4g.micro instance, 1GB RAM, 8GB Disk. Last b

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

2021-04-11 Thread Sven Van Caekenberghe
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: >

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

2021-04-02 Thread Sven Van Caekenberghe
I normally build on the server where I deploy (linux of course), but you do not have to. Pharo is cross platform. So it is perfectly possible to build your deployment image on your mac, copy it over and run it on the server. I would always advise to not save the image with running servers inside

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

2021-03-23 Thread Sven Van Caekenberghe
> 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 work

[Pharo-users] Re: change process variable while process is running

2021-03-02 Thread Sven Van Caekenberghe
Hi, You might learn something from the class/hierarchy ProcessSpecificVariable, esp. the methods in the category 'process specific' in the Process class, e.g. #psValueAt:[put:] Sven > On 2 Mar 2021, at 10:42, mspg...@gmail.com wrote: > > Hello everybody, I am kind of new to Pharo so I apologi

[Pharo-users] Re: Strings in Playground are read only in Pharo 9

2021-02-28 Thread Sven Van Caekenberghe
Markus, 'hello' is a literal string constant, part of the set of constants of a method (or a doit which like a temporary method disconnected from a class). Constants like these are managed by the compiler and can be shared between different expressions to avoid duplication. Changing such a con

[Pharo-users] Re: A question about packaging

2021-02-16 Thread Sven Van Caekenberghe
Hi David, > On 16 Feb 2021, at 20:49, David Pennington wrote: > > 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 Fami

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

2021-02-11 Thread Sven Van Caekenberghe
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 :=

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

2021-02-11 Thread Sven Van Caekenberghe
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 i

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

2021-02-10 Thread Sven Van Caekenberghe
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

[Pharo-users] Re: RabbitMQ and Pharo

2021-02-05 Thread Sven Van Caekenberghe
> On 5 Feb 2021, at 17:58, Gabriel Cotelli wrote: > > You can also take a look at https://github.com/ba-st/ansible Looks nice, Gabriel, I didn't know about this project. > On Fri, Feb 5, 2021, 13:04 saogat.rab--- via Pharo-users > wrote: > Hi, > > > > I was wondering if anyone here used

[Pharo-users] Re: RabbitMQ and Pharo

2021-02-05 Thread Sven Van Caekenberghe
Hi, You could use the following: https://github.com/svenvc/stamp which is an implementation of STOMP https://en.wikipedia.org/wiki/Streaming_Text_Oriented_Messaging_Protocol which works fine with RabbitMQ and Pharo. Sven > On 5 Feb 2021, at 17:03, saogat.rab--- via Pharo-users > wrote:

[Pharo-users] Re: NeoCSVReader and wrong number of fieldAccessors

2021-01-07 Thread Sven Van Caekenberghe
> On 7 Jan 2021, at 07:15, Richard O'Keefe wrote: > > You aren't sure what point I was making? > How about the one I actually wrote down: > What test data was NeoCSV benchmarked with > and can I get my hands on it? > THAT is the point. The data points I showed (and > many others I have no

[Pharo-users] Re: is there a better way

2021-01-06 Thread Sven Van Caekenberghe
Roelof, Working with multiple high resolution images, as I believe you are doing, is always going to be a real challenge, performance wise. It just takes time to transfer lots of data. First you have to make sure that you are not doing too much work (double downloads, using too high resolution

[Pharo-users] Re: NeoCSVReader and wrong number of fieldAccessors

2021-01-06 Thread Sven Van Caekenberghe
ns about #readAtEndOrEndOfLine. I somhow didn't >>> understand it is expected to return a Boolean. Not sure why. I thought of >>> 'read' as a command, not a question in simple past..., so I thought its job >>> should be to read the rest of the line if

[Pharo-users] Re: NeoCSVReader and wrong number of fieldAccessors

2021-01-06 Thread Sven Van Caekenberghe
Hi Richard, Benchmarking is a can of worms, many factors have to be considered. But the first requirement is obviously to be completely open over what you are doing and what you are comparing. NeoCSV contains a simple benchmark suite called NeoCSVBenchmark, which was used during development. N

[Pharo-users] Re: NeoCSVReader and wrong number of fieldAccessors

2021-01-05 Thread Sven Van Caekenberghe
orward by using #peek to see whether there is more > data after all fieldAccessors have been applied to the line (see > #readNextRecordAsObject)? Otoh, at one point the reader has to skip to the > next line, so I am not sure if peek has any place here... I need to debug a > little

[Pharo-users] Re: NeoCSVReader and wrong number of fieldAccessors

2021-01-04 Thread Sven Van Caekenberghe
Hi Joachim, Thanks for the detailed feedback. This is most helpful. I need to think more about this and experiment a bit. This is what I came up with in a Workspace/Playground: input := 'foo,1 bar,2 foobar,3'. (NeoCSVReader on: input readStream) upToEnd. (NeoCSVReader on: input readStream) add

[Pharo-users] Re: Pharo and Virtual Realitity

2020-12-28 Thread Sven Van Caekenberghe
> On 28 Dec 2020, at 03:25, askoh wrote: > > ZnReadEvalPrintDelegate startInServerOn: 1701. > > (ZnServer on: 1701) >bindingAddress: NetNameResolver localHostAddress; >delegate: ZnReadEvalPrintDelegate new; >start; >yourself I don't know anything about VRIDE but the above two

[Pharo-users] Re: PrintString in PBE8

2020-12-25 Thread Sven Van Caekenberghe
Maybe his question is (also) why the automatic refactoring did it wrong, the rules warned about the wrong use of #printString, suggested a fix, but the solution is still using #printString, hence the same problem. > On 25 Dec 2020, at 16:20, Stéphane Ducasse wrote: > > Hi > > this warning is

[Pharo-users] [ Article ] Understanding Base58 Encoding - It is all about integers

2020-12-15 Thread Sven Van Caekenberghe
Hi, I wrote and published another article in Concerning Pharo: Understanding Base58 Encoding It is all about integers https://medium.com/concerning-pharo/understanding-base58-encoding-23e673e37ff6 This introductory article shows a bit how easy and how much fun it is to do integer and binar

[Pharo-users] Re: [Pharo-dev] Call for Beta-testers Pharo ARM64 JIT

2020-12-13 Thread Sven Van Caekenberghe
> the current state and where are we going. > > The consortium would like to particularly thank Schmidt Buro and Lifeware for > their contracts. > > Regards, > > Pablo in behalf of the Pharo Consortium Engineers > > 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 > -- Sven Van Caekenberghe Proudly supporting Pharo http://pharo.org http://association.pharo.org http://consortium.pharo.org

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-05 Thread Sven Van Caekenberghe
p. m., Stéphane Ducasse wrote: >> Done :) >> >> >>> On 4 Dec 2020, at 21:20, Stéphane Ducasse wrote: >>> >>> It looks like it is recurring enough to be part of the Ston booklet :) >>> >>> I will add it. >>> >>>

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-04 Thread Sven Van Caekenberghe
Thx! > On 4 Dec 2020, at 21:24, Stéphane Ducasse wrote: > > Done :) > > >> On 4 Dec 2020, at 21:20, Stéphane Ducasse wrote: >> >> It looks like it is recurring enough to be part of the Ston booklet :) >> >> I will add it. >> >> S

[Pharo-users] Re: (Re)storing code blocks from text strings (hopefully in STON)

2020-12-01 Thread Sven Van Caekenberghe
Hi Offray, This is a recurring question. BlockClosures are way too general and powerful to be serialised. That is why serialising BlockClosures is not supported in STON. The code inside a block can refer to and even affect state outside the block. Furthermore the return operator is quite specia

[Pharo-users] [ANN] Pharo P3 PostgreSQL client extended with SCRAM-SHA-256 authentication support

2020-11-04 Thread Sven Van Caekenberghe
urce) was generously paid for by Ingenieurbüro für Bauwesen Schmidt GmbH (in collaboration with Richard Uttner of Projector Software GmbH and Pavel Krivanek) - thank you. Regards, Sven -- Sven Van Caekenberghe Proudly supporting Pharo http://pharo.org http://association.pharo.org http://consortium.pharo.org

[Pharo-users] Re: Zinc question (may be this is an HTML one)

2020-10-20 Thread Sven Van Caekenberghe
Hi Stef, > On 20 Oct 2020, at 09:35, Stéphane Ducasse wrote: > > Hi sven and others > > > While trying to improve microdown I have the following question. > How can I have a more generic getImage: method. > > Right now I use getPng: and I would like to support getPng: and getJpeg. > > I s

[Pharo-users] Re: Easiest light weight cloud/web persistence for Pharo?

2020-10-09 Thread Sven Van Caekenberghe
> On 9 Oct 2020, at 12:13, Sean P. DeNigris wrote: > > Tim Mackinnon wrote >> Thanks, I had completely forgotten about STON, thats a good point too >> (possibly this is what SimplePersistence uses as well - I'm not sure). > > It currently uses Fuel, but the serializer/materializer is abstract

[Pharo-users] Re: how to check for the statusCode

2020-09-28 Thread Sven Van Caekenberghe
You *really* should read the HTTP chapters of http://books.pharo.org/enterprise-pharo/ in particular https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/Zinc-HTTP-Client/Zinc-HTTP-Client.html not just the Web App chapters. Also, any general i

[Pharo-users] Re: Standalone html builder (a la seaside without seaside?)

2020-09-28 Thread Sven Van Caekenberghe
Hi Tim, > On 28 Sep 2020, at 19:28, Tim Mackinnon wrote: > > Hi - has anyone ever managed to extract the html builder out of seaside - or > written something equivalent? > > I often find I want to build some HTML, but don’t want the full seaside - and > was wondering if anyone has managed to

[Pharo-users] Re: why is ZnEasy choking on this and languages as c# and ruby not

2020-09-27 Thread Sven Van Caekenberghe
> On 27 Sep 2020, at 19:34, Roelof Wobben via Pharo-users > wrote: > > Hello, > > In a project of mine I do this : > > (ZnEasy get: > 'https://www.rijksmuseum.nl/api/nl/collection/SK-C-1368/tiles?key=14OGzuak' > ) contents . > > but this is given me a bytearray. > > When I do the same

[Pharo-users] [ANN] P3 version 1.3

2020-09-21 Thread Sven Van Caekenberghe
Since the end of last year, I have been using P3 in a real commercial production context, processing 10.000s of inserts a day and successfully supporting a web application for consulting the data. Enjoy, Sven -- Sven Van Caekenberghe Proudly supporting Pharo http://pharo.org http://associat

[Pharo-users] Re: Updating lists.pharo.org: New server, Mailman3 and more

2020-09-15 Thread Sven Van Caekenberghe
> On 14 Sep 2020, at 17:46, Sean P. DeNigris wrote: > > Marcus Denker-4 wrote >> We are updating the mailinglists (everything https://lists.pharo.org/ >> ;) > > Thanks, Marcus - all this logistical stuff gets no glory but is so important > :) +100 Indeed, thank you

Re: [Pharo-users] Rounding in Floats

2020-09-07 Thread Sven Van Caekenberghe
> On 6 Sep 2020, at 22:21, Esteban Maringolo wrote: > > It is not for printing but for testing. I want to assert that a > certain calculation gives the expected result. Then you should use #assert:closeTo: and friends. (9.1 + (-2.0)) closeTo: 7.1 precision: 0.1. Floats should always be

Re: [Pharo-users] Rounding in Floats

2020-09-06 Thread Sven Van Caekenberghe
> On 6 Sep 2020, at 16:06, Esteban Maringolo wrote: > > Hi, > > Continuing with my issues with decimals, I'm having one issue that is > not clear to me why it happens. > > If I do: > (9.1 + (-2.0)) roundTo: 0.1. > "7.1005" > > I expect to get a single decimal Float (rounded with

Re: [Pharo-users] ZnClient - how suppress popup notifications

2020-09-02 Thread Sven Van Caekenberghe
ouchin wrote: > > > On 9/2/20 2:36 PM, Sven Van Caekenberghe wrote: >> Hi Jimmie, >> >>> On 2 Sep 2020, at 20:29, Jimmie Houchin wrote: >>> >>> >>> Before I get to my problem. I want to thank Sven for the huge effort that >>> h

Re: [Pharo-users] ZnClient - how suppress popup notifications

2020-09-02 Thread Sven Van Caekenberghe
Hi Jimmie, > On 2 Sep 2020, at 20:29, Jimmie Houchin wrote: > > > Before I get to my problem. I want to thank Sven for the huge effort that had > to be made to provide all of the Zinc networking tools. Thank you. Thanks, you're welcome. > I am using ZnClient in an app. It is working fine. Bu

Re: [Pharo-users] Question ZnClient with file

2020-08-30 Thread Sven Van Caekenberghe
56afc71b74'; > addPart: > (ZnMimePart > fieldName: 'file' > fileNamed: > '/Users/sabine/Desktop/belege/neue_belege/mcdonalds.jpeg'); > post > > succe

Re: [Pharo-users] Question ZnClient with file

2020-08-30 Thread Sven Van Caekenberghe
Hi, CC'ing the Pharo Users ML since that gives a permanent record of my answer. File uploads using ZnClient do work in the common case. You can check ZnServerTest>>#testFormTest3 or ZnImageExampleDelegateTest>>#testUpload as well as several other senders of #addPart: First you are mixing 2 typ

Re: [Pharo-users] CannotWriteData errors in P3 and Seaside

2020-08-20 Thread Sven Van Caekenberghe
Hi Esteban, That is good to hear ! Sven > On 20 Aug 2020, at 23:36, Esteban Maringolo wrote: > > Hi all, > > On Thu, Aug 20, 2020 at 3:02 PM Sven Van Caekenberghe wrote: > >>>> I don't know what is going on inside Socket, I just stated my opini

Re: [Pharo-users] CannotWriteData errors in P3 and Seaside

2020-08-20 Thread Sven Van Caekenberghe
> On 20 Aug 2020, at 19:51, Esteban Maringolo wrote: > > Hi, > > I'm replying to the list as well... because the last two mails got > replied to our personal addresses. Oh, I did not notice that, that was not my intention. > On Thu, Aug 20, 2020 at 11:55 AM Sv

Re: [Pharo-users] CannotWriteData errors in P3 and Seaside

2020-08-19 Thread Sven Van Caekenberghe
gards! >> >> Esteban A. Maringolo >> >> >> On Mon, Aug 10, 2020 at 5:35 PM Esteban Maringolo >> wrote: >>> >>> My Seaside session isn't closing the connection, only when >>> unregistered, but this seems to be something else I do

Re: [Pharo-users] CannotWriteData errors in P3 and Seaside

2020-08-10 Thread Sven Van Caekenberghe
Hi Esteban, I have a web app with P3 under Seaside in production and it works fine. But that is without Glorp, nor any connection pooling. You say the connection seems closed, maybe the closing got triggered by your app somehow ? How do you clean up expired sessions ? How do you handle logouts

  1   2   3   4   5   6   7   8   9   10   >