[Pharo-users] Re: BlockClosure folding

2022-03-14 Thread Julián Maestri
Not satisfying the equality, but you can use polymorphism. Block >> , aBlock ^ BlockCompositor andAll: OrderedCollection with: self with: aBlock BlockCompositor >> #, aBlock conditions add: aBlock. BlockCompositor >> value: anObject ^ conditions allSatisfy: [:e | e value: anObject ]

[Pharo-users] Re: Pharo-SQLite3: closing connections immediately and deleting the database file

2021-08-12 Thread Julián Maestri
> > Esteban A. Maringolo > > On Thu, Aug 12, 2021 at 8:55 PM Julián Maestri wrote: > > > > Not exactly what you are asking for, but did you consider using sqlite > in memory? > > > > On Sat, 7 Aug 2021 at 23:23, Esteban Maringolo > wrote: > >> &

[Pharo-users] Re: Pharo-SQLite3: closing connections immediately and deleting the database file

2021-08-12 Thread Julián Maestri
Not exactly what you are asking for, but did you consider using sqlite in memory? On Sat, 7 Aug 2021 at 23:23, Esteban Maringolo wrote: > I've been doing exactly that. It is, creating a new DB file for each > test, and I was having the same problem as you. > > I suggested a change to the driver

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

2021-03-23 Thread Julián Maestri
Before you give up, try this: Install (or reinstall) git from https://git-scm.com/ and make sure to set up the option to use Windows Secure Channel library. [image: image.png] It has solved a lot of issues for me with pharo + git on windows, and not being able to clone via https. On Tue, 23

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

2021-01-08 Thread Julián Maestri
You can also try https://github.com/ba-st/Superluminal which has caching support among other things. On Wed, 6 Jan 2021, 16:42 Esteban Maringolo, wrote: > To avoid doing something like that, and for a web scrapping tool I > wrote, I implemented a basic subclass of ZnClient (called >

[Pharo-users] Re: PrintString in PBE8

2020-12-29 Thread Julián Maestri
As far as I know: aStream nextPutAll: ' with value: ‘; print: count. Works with most streams, does not create intermediary streams, and is readable. On Sun, 27 Dec 2020 at 05:59, Stéphane Ducasse wrote: > > > On 26 Dec 2020, at 20:41, Sean P. DeNigris wrote: > > Sven Van

Re: [Pharo-users] transactional saving of images

2019-11-18 Thread Julián Maestri
Agree, sounds like a good idea. As far as I know newer versions do not do this. On Mon, Nov 18, 2019, 07:17 Marcus Denker wrote: > > > > On 15 Nov 2019, at 11:15, Siemen Baader wrote: > > > > Hi, > > > > I have had a few occasions where I broke an image because I either ran > out of disk

Re: [Pharo-users] Smallest docker image for pharo >=7 ?

2019-10-16 Thread Julián Maestri
Example: # Stage 1: Load the project on an empty image, in this case this is a development image (should change to use a minimal image) FROM basmalltalk/pharo:7.0-image AS loader COPY load-project.st ./ RUN pharo Pharo.image load-project.st --save --quit # Stage 2: Copy the resulting Pharo.image

Re: [Pharo-users] Can I control the location of the PharoDebug.log

2019-08-02 Thread Julián Maestri
I think Smalltalk logFileName: is what you want On Wed, Jul 31, 2019, 20:58 Dale Henrichs wrote: > It appears that the PharoDebug.log can be dropped into the directory > from which a Pharo image is launched ... I would have expected it to be > dropped into the local directory, but that does not

Re: [Pharo-users] ODBCDriver

2019-06-03 Thread Julián Maestri
As far as I know, he just started porting it to Pharo 7. On Sun, Jun 2, 2019, 13:51 Tomaž Turk wrote: > I just found this marvel: https://github.com/apiorno/ODBCDriver. > > But when I try to > > | con | > con := ODBCConnection dsn:'myDSN' user:'usr' password:'pwd'. > > it responds with an error

Re: [Pharo-users] Zinc + HTTPS does not check for self signed certificates.

2018-07-10 Thread Julián Maestri
Forgot to mention, this was done in Pharo 6.1 (from zeroconf script). On Windows 7 and Ubuntu 16.04 (32 bit vm) On 10 July 2018 at 20:28, Julián Maestri wrote: > tl;dr > Querying an HTTPS site with a self signed certificate does not fail / > raise an exception (and it should). > &

[Pharo-users] Zinc + HTTPS does not check for self signed certificates.

2018-07-10 Thread Julián Maestri
tl;dr Querying an HTTPS site with a self signed certificate does not fail / raise an exception (and it should). Long: I'm trying to use client and server HTTPS validation with Zinc on Pharo. I prepared: a self signed CA certificate, and server and client certificates signed by the same CA. I set

Re: [Pharo-users] pharo bash script with startup

2018-06-27 Thread Julián Maestri
Try with ./pharo or try with an absolute image path. On Wed, Jun 27, 2018, 04:03 Tim Mackinnon wrote: > I’ve not noticed that problem on ubuntu or AWS lambda so there must be > something different going on. > > Sent from my iPhone > > On 27 Jun 2018, at 07:30, Otto Behrens wrote: > > Hi, > > I

Re: [Pharo-users] Microservices using Pharo

2018-06-27 Thread Julián Maestri
At work we're using some microservices in pharo, implemented with Zink and Teapot, can't tell you much about performance because they are not being stress tested currently. I'm using Traefik as a load balancer WITH sticky session on docker, mainly because it scales acording to the docker

Re: [Pharo-users] How to LAN feature

2018-05-13 Thread Julián Maestri
nterface, it still > returns an empty collection... > > Hilaire > > > Le 13/05/2018 à 20:05, Julián Maestri a écrit : > >> NetNameResolver localHostAddress. "#[192 168 0 4]" >> > > -- > Dr. Geo > http://drgeo.eu > > > >

Re: [Pharo-users] How to LAN feature

2018-05-13 Thread Julián Maestri
I think he means you can not discover all interfaces from Pharo. I have 2 network interfaces with addresses 192.168.0.4 and 192.168.56.1 Pharo only returns the first one. NetNameResolver localHostName "'thepc'". NetNameResolver localHostAddress. "#[192 168 0 4]" NetNameResolver nameForAddress:

Re: [Pharo-users] How to LAN feature

2018-05-08 Thread Julián Maestri
You could also publish on a zeroconf service (Bonjour/Avahi) https://en.wikipedia.org/wiki/Zero-configuration_networking On 8 May 2018 at 11:22, Henrik Sperre Johansen wrote: > Ben Coman wrote > > mDNS would be an interesting facility to include in the main Pharo

Re: [Pharo-users] Problem fetching a baseline

2017-12-29 Thread Julián Maestri
You are trying to load Tonel but not telling Metacello where to load it from: Metacello new repository: 'github://pharo-vcs/tonel'; baseline: 'Tonel'; load. Tells Metacello to load the packages in BaselineOfTonel from https://github.com/pharo-vcs/tonel On 29 December

Re: [Pharo-users] Iceberg URL regex not matching how I would expect it to?

2017-12-25 Thread Julián Maestri
u...@server.com:/proj/proj.git Isn't it: g...@server.com:user/project.git ? On Dec 24, 2017 15:36, "Ian Ian" wrote: > Hi All, > > I am having trouble setting up iceberg to access my repository via ssh. > > On the command line I assess it via: git clone

Re: [Pharo-users] 6.1 Stable 64 - Crash when loading repository

2017-10-05 Thread Julián Maestri
:09, Stephane Ducasse <stepharo.s...@gmail.com> wrote: > Hello Julian > > Thanks for the report. > on which OS are you? > > Stef > > On Wed, Oct 4, 2017 at 8:33 PM, Julián Maestri <serp...@gmail.com> wrote: > > On a clean image from get.pharo.org/64/ >

Re: [Pharo-users] Is a non-break space whitespace?

2017-09-28 Thread Julián Maestri
The non breaking space, is a whitespace character or separator depending on the context. As far as i know it's not considered as a separator only when deciding text layout, it means do not break the line here: eg: "A distance of 100 meters" (nbsp between 100 and meters) should be rendered as

[Pharo-users] Pharo 61 crashes on iceberg history

2017-07-29 Thread Julián Maestri
I'm almost sure this is not the right place to report it. Im having a vm crash when looking at the history of a repository on iceberg. urpharo: malloc.c:2394: sysmalloc: Assertion `(old_top == initial_top (av) > && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse >

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-28 Thread Julián Maestri
gt;dayOfMonth works in a very counter-intuitive way. > > > > HTH > > > > Peter Kenny > > > > > > *From:* Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] *On > Behalf Of *Julián Maestri > *Sent:* 27 July 2017 18:58 > *To:* Any question about ph

Re: [Pharo-users] How to calculate someone's age elegantly? Does Duration work?

2017-07-27 Thread Julián Maestri
Using https://github.com/ba-st/Chalten the solution was something like this: Person>>ageOn: aDate > | difference | > difference := (aDate year distanceFrom: self dateOfBirth year). > ^(aDate dayOfMonth < self dateOfBirth dayOfMonth) > ifTrue: [difference - TimeUnits year

Re: [Pharo-users] Little challenge: Best way to read stream and count line returns

2017-07-17 Thread Julián Maestri
count := 0. stream do: [ :character | (character = Character cr and: [stream peek = Character lf]) ifTrue: [ count := count + 1 ]]. count. Snippet with example: | count crlftext stream | stream := (String streamContents: [ :s | s nextPutAll: 'Lorem ipsum dolor sit amet, consectetur adipiscing

Re: [Pharo-users] Week number from a date

2016-05-27 Thread Julián Maestri
Chalten might help, i remember it had representations for months of years (January of 1990), it might have something similar for weeks. On 13 May 2016 at 05:40, Cédrick Béler wrote: > Yes I agree. We may have a preference to set the week day start (fistDayOfWeek > ?). > > >

Re: [Pharo-users] [UpdatedPharoByExample] Collection chapter

2016-02-14 Thread Julián Maestri
I'm getting a PDF corruption error and can not open it, is it just me? On 13 February 2016 at 12:21, stepharo wrote: > Hi guys > > here is a new chapter for UpdatedPharoByExample. > > Stef > >

[Pharo-users] Github + Metacello + Baselines

2015-12-26 Thread Julián Maestri
I'm trying to use a BaselineOf approach for development, and wanted to know if I got something wrong. 1. Development must be done on the baseline? 2. Configurations must reference a specific point (commit,tag,branch) of the baseline? 3. My dependencies to other projects must be Baselines or