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 el
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 unitaryMeasureme
ter-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 pharo is welcome
> *Subje
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
> (old_top)
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 either
:09, Stephane Ducasse
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 wrote:
> > On a clean image from get.pharo.org/64/
> > Attempting to load the following repository
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 u...@server.com:/proj/proj.git
> and all
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 2017
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 Config
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
>
>
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
> ?).
>
>
> After that we could a
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
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
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
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 space
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 Caekenberghe-
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
> ZnCachingCli
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 Mar
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
Regards!
>
> 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:
>
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
> release
> > image,
> > perhaps
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: #
gt; 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
>
>
>
>
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 configura
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
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
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).
>
&
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 ]
28 matches
Mail list logo