Re: [Pharo-users] memorizing data between tests

2018-09-09 Thread Esteban Maringolo
You can use a TestResource for it, and use some sort of memoization. I don't know if there is a library for memoization in Pharo, but if the HTTP calls are not that many you can implement it by having a cache in the test resource, implemented as a dictionary, with the URL as key and its cached

[Pharo-users] Canonical download location for Pharo VMs

2018-11-12 Thread Esteban Maringolo
What is the canonical repository/ci to download the latest VM for Pharo? I'm trying to get pharo launcher to launch a 32 bit image in Windows, but it complains it can't determine the image version, so I'm trying to download the latest 32 bit VM for Windows to launch it manually, but

Re: [Pharo-users] Canonical download location for Pharo VMs

2018-11-13 Thread Esteban Maringolo
5:14, Ben Coman wrote: > > > > On Tue, 13 Nov 2018 at 08:03, Esteban Maringolo > wrote: > >> What is the canonical repository/ci to download the latest VM for Pharo? >> >> I'm trying to get pharo launcher to launch a 32 bit image in Windows, but >> i

Re: [Pharo-users] VW2Pharo ? (Was: Pharo2VW (Was:[vwnc] Parsing in Smalltalk))

2018-11-15 Thread Esteban Maringolo
I did a lot of scripting to manually export Glorp from VW to Pharo, using some of the available (and outdated) parcels for monticello. It was painful and needed extra manual work at the file level, because of the namespacing and the packaging characteristics of VW plus the file-in complaints of

[Pharo-users] PharoLauncher "version determination error"

2018-10-02 Thread Esteban Maringolo
I downloaded a Pharo 7.0 32 bit using PharoLauncher in Windows, and I'm getting the mentioned error when attempting to launch the image. Before displaying the error it opens the image (or an image) twice. [image: image.png] Am I doing something wrong? Regards, Esteban A. Maringolo

Re: [Pharo-users] [ANN] Cryptography moved to pharo-contributions

2018-10-10 Thread Esteban Maringolo
Thank you Norbert. How do to achieve the forwarding of the old repo to the new one? Esteban A. Maringolo El mié., 10 oct. 2018 a las 7:37, Norbert Hartl () escribió: > > Just a note that I moved the repository > > https://github.com/zweidenker/Cryptography > > to > >

Re: [Pharo-users] Is it possible to follow an object through a computation?

2019-01-02 Thread Esteban Maringolo
Hi Paul, You can set the object to be "read only" (aka "immutable") and handle the exception. E.g. | u | u := User named: 'Paul'. u beReadOnlyObject. [ "your code modifying u's state" ] on: ModificationForbidden do: [ :ex | ex halt. "inspect state" u beWritableObject. ex resume ]. Probably

Re: [Pharo-users] Transforming objects

2019-01-16 Thread Esteban Maringolo
This is a challenging modelling issue, life progress or any other dissipative/emergent structure are "restricted" by the boundaries of your objects (e.g. if you model a flock, and it divides into two flocks, and then merges again, which flock remains? Note: I wouldn't model the Flock at all). So

Re: [Pharo-users] Transforming objects

2019-01-16 Thread Esteban Maringolo
El mié., 16 ene. 2019 a las 14:49, Ben Coman via Pharo-users (< pharo-users@lists.pharo.org>) escribió: > > > On Wed, 16 Jan 2019 at 17:16, Loïc Pagès wrote: > >> >> Maybe a naive question ? >> > > Maybe #become: ... > https://gbracha.blogspot.com/2009/07/miracle-of-become.html > > Although

Re: [Pharo-users] [ANN] SETT (Store Export to Tonel Tools) for Pharo6.1

2019-01-16 Thread Esteban Maringolo
This is great! One less fence to move code from one dialect to another. :) I will follow the examples and try to export code from Store and load id in Pharo. Is it mandatory to use Linux? Esteban A. Maringolo El mié., 16 ene. 2019 a las 16:38, Dale Henrichs (<

[Pharo-users] Move methods to other class in P7/Calypso

2018-12-26 Thread Esteban Maringolo
What the canonical way of moving a set of methods from one class to another? I couldn't find it in the contextual menu or in the refactorings. Regards, Esteban A. Maringolo

Re: [Pharo-users] PostgresV3 with parameter binding

2018-12-26 Thread Esteban Maringolo
Excellent, thank your for this. Esteban A. Maringolo El mar., 25 dic. 2018 a las 5:16, Pierce Ng () escribió: > > Hi all, > > I've modified PostgresV3 to do parameter binding, i.e., parsing SQL and > binding/executing with data are performed in separate protocol steps. > I've add a simple client

Re: [Pharo-users] Lambda World 2018 - What FP can learn from Smalltalk by Aditya Siram

2018-11-23 Thread Esteban Maringolo
I watched it and shared it to friends and social networks. I think it's an excellent example of good organic marketing from a not-so-much outsider, but certainly not daily user of Pharo, to an audience that might have heard about it for the very first time. Regards, Esteban A. Maringolo El

Re: [Pharo-users] My Keynote at the Salta Conference

2018-11-21 Thread Esteban Maringolo
It feels to me that the money came unexpectedly and your plan was just a loosely defined idea. Appealing to money or competition to youngsters in a pop culture is a waste of money, Go to "pop tech" conferences and see what people value and praise. It's never money. And yes, there are hackatons

Re: [Pharo-users] My Keynote at the Salta Conference

2018-11-21 Thread Esteban Maringolo
Richard, Please apologize if my reply was too harsh and without anesthesia. I'm happy a private company/person decided to fund this, I was there and applauded it then and I still celebrate it, I really hope it does good. What I'm skeptical about is about the return of this, and its effectiveness

Re: [Pharo-users] [ANN] JSON schema implementation

2018-11-22 Thread Esteban Maringolo
Thank you Norbert and IID. Another brick in the bridge towards mainstream. :) Regards, El jue., 22 nov. 2018 a las 18:11, Sven Van Caekenberghe () escribió: > > Nice. Another piece of the puzzle. Thank you. > > > On 22 Nov 2018, at 17:56, Norbert Hartl wrote: > > > > JSONSchema > > ===

Re: [Pharo-users] [ANN] Teapot was moved to GitHub

2018-11-28 Thread Esteban Maringolo
El mié., 28 nov. 2018 a las 16:01, Sven Van Caekenberghe () escribió: > > Nice docs, thank you. +1 I couldn't avoid reading the whole getting started doc. Excellent material. I also liked that you not only provided instructions for installation, but also to set Teapot as a dependency. Please

Re: [Pharo-users] NeoJSON Custom Mapping Question

2019-01-09 Thread Esteban Maringolo
This could be very useful, in the past I used ExtJS which serialized its components in JSON format with a similar "xtype" attribute that was used to lookup the proper class to instantiate. But NeoJSON being stream based, and requiring a mapping to instantiate specific classes, the only, dirty,

Re: [Pharo-users] Website is down

2019-01-22 Thread Esteban Maringolo
Well... is down again. :( Pharo 8.0 will have a PR team attending these aspects, and then... world conquer. :) Esteban A. Maringolo El mar., 22 ene. 2019 a las 13:17, Cyril Ferlicot () escribió: > On Tue, Jan 22, 2019 at 5:07 PM Sven Van Caekenberghe > wrote: > > > > Not good right now ... >

Re: [Pharo-users] Website is down

2019-01-22 Thread Esteban Maringolo
El mar., 22 ene. 2019 a las 14:03, Esteban Lorenzano () escribió: > > There is a problem with INRIA servers :( > They does not seems to support high traffic > They don't support high traffic nor high volume either. The download speed was awful then, and it's even worst now. But hey, those who

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Esteban Maringolo
I would do it as an iterator (a circular one). The structure of the underlying list is irrelevant here (as long as it is sequenceable), IMO. Regards, El vie., 29 de mar. de 2019 07:21, Peter Kenny escribió: > Tim > > But the beauty of Smalltalk is that, if you need to use a particular >

Re: [Pharo-users] How to catch and handle multiple exceptions

2019-04-08 Thread Esteban Maringolo
Richard, I was going to comment the #when:do:[when:do:] approach of VAST [1]. Why do you say it won't be fast? Because of the multiple exception handlers in the call stack? I think that some construct might be used to obtain the same as the #when:do:when:do: but using a chained approach

Re: [Pharo-users] How to catch and handle multiple exceptions

2019-04-08 Thread Esteban Maringolo
Maybe the abstraction needed wraps everything within a single handler, but internally does a switch like statement dispatching to a particular error handler block. handledBlock exceptionDispatcher on: NotFoundError do: [:ex | ...]; on: MessageNotUnderstood do: [:ex | .. ].

Re: [Pharo-users] Teapot or Zinc adding extra node to JSON POST

2019-02-27 Thread Esteban Maringolo
I can't speak for Teapot, but I can tell you that the extra "body" container object is not standard for JSON/REST API's. Are you certain that it isn't the client who's adding such container to the request? Regards, Esteban A. Maringolo El mié., 27 feb. 2019 a las 18:56, BrunoBB () escribió: >

Re: [Pharo-users] why do I not see the right text here (seaside)

2019-03-02 Thread Esteban Maringolo
I haven't used MDL before, but moving code around I found that you are not nesting the MDL tags properly. The #mdlLayout must contain all the other elements, including the header. So using your own classes the best way would be to do the following: TBApplicationRootComponent>>renderContentOn:

Re: [Pharo-users] why do I not see the right text here (seaside)

2019-03-02 Thread Esteban Maringolo
er: [ self renderPageContentOn: html ] Regards, Esteban A. Maringolo El sáb., 2 mar. 2019 a las 16:03, Roelof Wobben () escribió: > > Op 2-3-2019 om 19:36 schreef Esteban Maringolo: > > renderContentOn: html > > html render: header > > html mdlLayoutContainer: [ self renderPageContentOn:

Re: [Pharo-users] [ANN] Pharo-SQLite even more multilingual

2019-03-02 Thread Esteban Maringolo
Wow! I wasn't aware SQLite supported that. Thank you from bringing such powerful, yet small, database to Pharo. Esteban A. Maringolo El sáb., 2 mar. 2019 a las 10:17, Pierce Ng () escribió: > > Hi all, > > I've enhanced the Pharo SQLite library to be even more multilingual. It has > always

Re: [Pharo-users] A "with" construct like Pascal - easy to do, but is it terrible?

2019-03-04 Thread Esteban Maringolo
Well... you have the cascading that provides you that. book1 title:'C Programming'; author: 'Nuha Ali '; subject: 'C Programming Tutorial'; book_id: 6495407. What I would like, sometimes, is the option to nest cascades, very much like the WITH DO construct of Pascal, Basic and

Re: [Pharo-users] [ANN] SETT (Store Export to Tonel Tools) for Pharo6.1

2019-02-20 Thread Esteban Maringolo
hat you ran into issues ... > > Dale > > [1] https://github.com/GemTalk/SETT/issues > On 2/19/19 4:36 PM, Esteban Maringolo wrote: > > Dale, > > I tried to test SETT to migrate a Package from Store to our repo. > > But it fails while initializing the git repository.

Re: [Pharo-users] Pharo general questions for a commercial application

2019-02-20 Thread Esteban Maringolo
Hi Bruno, Is good to see you here as well :) 1) 7.0+. If you're in Windows only 32 bit is supported. 2) For RDBMS forget about DBXTalk and Garage, I would suggest you go straight to the PostgreSQL client (P3) or SQLite. Those are maintained and used, the rest... who knows. If you need ORM you

[Pharo-users] Zinc Error Hierarchy

2019-02-21 Thread Esteban Maringolo
Hi all, Sven, :-) I'm writing some client REST API code and need to handle errors in the call, and found that all Errors are direct descendants of the Error class, why aren't Zinc Errors descendants of a common ZnError class? Regards, Esteban A. Maringolo

Re: [Pharo-users] How exactly is "share repositories between images" supposed to work without tripping each other up?

2019-03-06 Thread Esteban Maringolo
I couldn't find a "simple enough" solution to deal with that, so I moved to emulated Linux [1]. I don't know if the long file path is a limitation of Windows itself or libgit2. Because if it's the former, then I'll try this setting in Windows 10 and let you know if it works:

Re: [Pharo-users] Embedding object properties in NeoJSON mappings

2019-02-22 Thread Esteban Maringolo
Hi, El vie., 22 feb. 2019 a las 7:55, Sven Van Caekenberghe () escribió: > > On 22 Feb 2019, at 02:05, Esteban Maringolo wrote: > > Am I stretching it too much? :) > > Yes, this is out of the scope of NeoJSON. > > As you know, JSON is strictly limited and kept simple, by

Re: [Pharo-users] firebase client in pharo?

2019-02-22 Thread Esteban Maringolo
Not that I know, I'm working on a CouchDB client to have something close to what Firebase, or even better, Firestore can provide. There is a thread about it. Esteban A. Maringolo El vie., 22 feb. 2019 a las 15:37, Tudor Girba () escribió: > > Hi, > > Did anyone worked on connecting Pharo with

[Pharo-users] JSON keys not quoted?

2019-02-22 Thread Esteban Maringolo
If you convert a Dictionary with numbers as keys it will produce not valid JSON [1], since all object keys must be quoted. E.g. NeoJSONWriter toString: (Dictionary with: 1->'foo'). or (Dictionary with: 1->'foo') asJson Should the library generate quoted keys? Seaside's WAJsonCanvas is manual,

Re: [Pharo-users] JSON keys not quoted?

2019-02-22 Thread Esteban Maringolo
El vie., 22 feb. 2019 a las 18:24, Sven Van Caekenberghe () escribió: > > Good catch. > > Indeed, JSON keys have to be strings. > > The question is, should the writer convert them for you, or should you simply > not use them ? > > I mean, there are many Pharo constructs that cannot be converted

Re: [Pharo-users] How to write out simple Json?

2019-03-01 Thread Esteban Maringolo
What's missing is a "map" syntax. :) #{ 'track' -> 'pharo'. 'language' -> 'smalltalk'. 'exercises' -> #{ 'slug' -> 'hello'. 'id' -> 55. 'topics' -> #('a' 'b' 'c') } } The #{ } would be a mix of the existing { } construct, but somehow enforcing that elements return

Re: [Pharo-users] NeoJSON mapping question

2019-02-26 Thread Esteban Maringolo
El mar., 26 feb. 2019 a las 17:57, Sven Van Caekenberghe () escribió: > PS: Note also that mappings can live on the class side (where they are > global), but also inside specific NeoJSONReader instances (where they are > local), like here. This postscript should be a whole section in the docs,

[Pharo-users] Embedding object properties in NeoJSON mappings

2019-02-21 Thread Esteban Maringolo
Hi all (again), As part of writing the port (and adaptation to use Zinc and NeoJSON), a CouchDB JSON-REST API, now I find something I don't know how to solve using NeoJSON mappings. All objects you store in CouchDB at a particular URI are saved as "Documents", so if you save a dictionary with

Re: [Pharo-users] Zinc Error Hierarchy

2019-02-21 Thread Esteban Maringolo
El jue., 21 feb. 2019 a las 19:11, Sven Van Caekenberghe () escribió: > > On 21 Feb 2019, at 22:37, Esteban Maringolo wrote: > I don't know, but note that the exceptions in Zinc-HTTP-Exceptions are not > the only ones used, there are also those in Resource-Meta and > Cha

Re: [Pharo-users] Pluralising messages or choosing word alternatives

2019-02-20 Thread Esteban Maringolo
Why not use the condition macro so you have a single string literal, that in the future could be used for translation? E.g. | occurences | occurences := 3. 'There <1?is:are> <2p> <1?occurrence:ocurrences> of <3p>' expandMacrosWith: occurences = 1 with: 3 with: 'Foo' Esteban A. Maringolo El

[Pharo-users] Using ZnClient>>#contentWriter

2019-02-21 Thread Esteban Maringolo
Hi all, I'm doing this and it works ZnClient new method: #PUT; url: 'http://127.0.0.1:5984/baseball/2'; contents: (NeoJSONWriter toString: { 'foo' -> 'baz'} asDictionary); contentType: ZnMimeType applicationJson; execute. But if try to use a contentWriter it fails because it can't

[Pharo-users] [ANN] CouchDB Client for Pharo

2019-03-12 Thread Esteban Maringolo
Hello all, I finished polishing the repository a CouchDB client for Pharo that I forked from an old, and seemingly abandoned, client for VisualWorks. I took that code and refactored heavily to use Pharo and Zinc core classes, and that included renaming the client classes, methods and the

Re: [Pharo-users] [ANN] CouchDB Client for Pharo

2019-03-13 Thread Esteban Maringolo
a las 4:30, Torsten Bergmann () escribió: > Nice. How does it relate/compare to https://github.com/jmari/SCouchDB ? > > *Gesendet:* Mittwoch, 13. März 2019 um 03:18 Uhr > *Von:* "Esteban Maringolo" > *An:* "Pharo users" > *Betreff:* [Pharo-users] [ANN] Couch

Re: [Pharo-users] ldap, Pier3 & git migration

2019-03-08 Thread Esteban Maringolo
I wasn't aware of LDAP support in Pharo. Thanks for porting it. Wouldn't it be better to call the repo "pharo-ldap"? When my repositories are Pharo specific and don't have a fancy project name I name them "pharo-something", e.g. "pharo-couchdb", "pharo-base58", "pharo-bip39mnemonic", etc.

Re: [Pharo-users] The best way to construct a file/url path handling misplaced $/ chars

2019-03-08 Thread Esteban Maringolo
I don't know whether you want to build just "paths" or valid URIs, if it's the latter, I'd suggest ZnUrl as well. '/name/' asPath / 'resource'. -> /name/resource '/name/' asPath / '/resource'. -> /resource (which is correct) '/name/' asUrl / '/resource' -> /name//resource (which is correct as

Re: [Pharo-users] Why doesn't collection have #excludes (the mirror of includes)?

2019-03-18 Thread Esteban Maringolo
El dom., 17 mar. 2019 a las 6:33, Sven Van Caekenberghe () escribió: > > > > > On 17 Mar 2019, at 07:56, Richard O'Keefe wrote: > > > > (1) As it happens, my Smalltalk library *does* have > > "my mystery Smalltalk" ;-) Codename "Unicorn". :) Jokes aside, I'd love to see such implementation

Re: [Pharo-users] doWithIndex: or withIndexDo: ?

2019-03-12 Thread Esteban Maringolo
I don't like either of those and use #keysAndValuesDo: as it is polymorphic with other collection classes. That said, I'd prefer #withIndexDo: [:each :index | ... ] because it preserves the #with:do: structure. e.g. #($a $b $c) with: (1 2 3) do: [:char :number | ... ] Regards, Esteban A.

[Pharo-users] PharoLauncher image preferences (background, etc.)

2019-02-08 Thread Esteban Maringolo
Is there a way to disable the automatic loading of background pic and other preferences? I want new blank images to be that, blank, and customize each to provide a visual feedback that help me differentiate them at a quick look. I don't know if there are other preferences being copied as well.

[Pharo-users] Partition/Sync ready databases for Pharo?

2019-02-18 Thread Esteban Maringolo
I have the requirement that an app that I'm prospecting must be able to work offline and synchronize changes once the connection is restored. I want to avoid having to write "sync" logic manually. Is anybody using Pharo with a database that supports automatic synchronization (replicas?) like the

Re: [Pharo-users] Boostrap for seaside : incorrect JQuery version

2019-02-12 Thread Esteban Maringolo
Maybe it's just a matter of importing the latest Bootstrap files (v3.3.7) into the the corresponding FileLibrary. Regards, El lun., 11 feb. 2019 a las 18:51, Tomaž Turk () escribió: > I'm sorry, I should be more clear - I copy the Bootstrap 3.3.7 code > from here

[Pharo-users] Multiple NeoJSON mappings for the same domain object

2019-02-12 Thread Esteban Maringolo
Hi all, Sven, :) I'm working on a domain model that will have different JSON representations for the same domain objects, so depending on the context it will return one representation or another. In the past to solve the multiple representations, what I did was to build "helper" methods that

Re: [Pharo-users] Multiple NeoJSON mappings for the same domain object

2019-02-12 Thread Esteban Maringolo
and decoding, depending on the endpoint: Regards, Esteban A. Maringolo El mar., 12 feb. 2019 a las 19:34, Esteban Maringolo () escribió: > > Hi all, Sven, :) > > I'm working on a domain model that will have different JSON > representations for the same domain objects, so depending o

Re: [Pharo-users] Multiple NeoJSON mappings for the same domain object

2019-02-13 Thread Esteban Maringolo
e/Stargate-Examples/PetsRESTfulControllerSpecification.class.st > > > > Has a separate mapper for encoding and decoding, depending on the endpoint: > > > > Regards, > > > > Esteban A. Maringolo > > > > El mar., 12 feb. 2019 a las 19:34, Esteban

Re: [Pharo-users] Multiple NeoJSON mappings for the same domain object

2019-02-13 Thread Esteban Maringolo
n Van Caekenberghe () escribió: > > Wow, first time I heard about https://github.com/ba-st/Stargate - seems like > a great project. > > So much is happening in and around Pharo, it is really impossible to follow > everything. > > > On 13 Feb 2019, at 02:58, Esteban Maringolo w

Re: [Pharo-users] [ANN] P3 version 1.2

2019-02-14 Thread Esteban Maringolo
Thank you Sven. The timing is perfect. https://blog.digitalocean.com/announcing-managed-databases-for-postgresql/ :) Esteban A. Maringolo El mar., 12 feb. 2019 a las 11:23, Sven Van Caekenberghe () escribió: > > Hi, > > There is a new release of P3, the modern, lean and mean PostgreSQL

Re: [Pharo-users] [ANN] SETT (Store Export to Tonel Tools) for Pharo6.1

2019-02-19 Thread Esteban Maringolo
(< pharo-users@lists.pharo.org>) escribió: > > On 1/16/19 11:56 AM, Esteban Maringolo wrote: > > This is great! > > One less fence to move code from one dialect to another. :) > > I will follow the examples and try to export code from Store and load id > in Pharo.

Re: [Pharo-users] Partition/Sync ready databases for Pharo?

2019-02-19 Thread Esteban Maringolo
ounds like it can go a bit deeper than that (which seems quite interesting > and perhaps what Esteban is after?) > > Tim > > > > On 19 Feb 2019, at 01:46, Pierce Ng wrote: > > > > On Mon, Feb 18, 2019 at 02:56:10PM -0300, Esteban Maringolo wrote: > >> I

Re: [Pharo-users] [VIDEO TUTORIAL] How to use external code editors to code in Pharo

2019-01-25 Thread Esteban Maringolo
El vie., 25 ene. 2019 a las 10:36, Esteban Maringolo () escribió: > > El vie., 25 ene. 2019 a las 8:01, Sven Van Caekenberghe > () escribió: > > > On 25 Jan 2019, at 11:34, Tim Mackinnon wrote: > > > > Similarly, you might not also realise that can also use META-2

Re: [Pharo-users] [VIDEO TUTORIAL] How to use external code editors to code in Pharo

2019-01-25 Thread Esteban Maringolo
El vie., 25 ene. 2019 a las 8:01, Sven Van Caekenberghe () escribió: > > On 25 Jan 2019, at 11:34, Tim Mackinnon wrote: > > Similarly, you might not also realise that can also use META-2 to > > intelligently select wider portions of code - which is great for > > refactoring or correcting a

Re: [Pharo-users] Github pharo-* organizations

2019-02-04 Thread Esteban Maringolo
+1 to this question The "Pharoverse" is expanding faster every day. Esteban A. Maringolo El lun., 4 feb. 2019 a las 22:43, Pierce Ng () escribió: > > Hi all, > > Is there a definitive list of all the pharo-* organizations on GH? Like > pharo-rdbms, pharo-nosql, pharo-vcs, ... Or, a way to

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Esteban Maringolo
ke, and then do something like : > > stream := > > String streamContents: [:stream | gifts > do: [:each | stream nextPutAll: each ] > separatedBy: [ stream nextPut: $,; space ] > > > > stream nextputAll: 'all'; nextPut: ','; nextPut: gifts last > &g

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Esteban Maringolo
Maybe this is a better way to build what you want. String streamContents: [:stream | gifts do: [:each | stream nextPutAll: each ] separatedBy: [ stream nextPut: $,; space ] ] Esteban A. Maringolo On Thu, May 16, 2019 at 4:21 PM Roelof Wobben wrote: > Hello, > > Im testing all my

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Esteban Maringolo
do: [:each | stream nextPutAll: each ] > separatedBy: [ stream nextPut: $,; space ] > > > > stream nextputAll: 'all'; nextPut: ','; nextPut: gifts last > > ] > > stream nextputAll: 'all' > stream nextPut: ',' > stream nextPut: gifts last > > > Roelof &

Re: [Pharo-users] Bloc of code in tiers programming language

2019-05-15 Thread Esteban Maringolo
On Wed, May 15, 2019 at 5:21 PM Tim Mackinnon wrote: > > On a similar line - I’ve often noticed that an interesting block pattern in > Smalltalk which is overlooked in other languages is how we handle errors > through them. > > We often don’t throw exceptions but instead pass a useful block

Re: [Pharo-users] can I do this with a stream or a format

2019-05-17 Thread Esteban Maringolo
The good thing about these exercises is that you know about new selectors, I didn't know there was an #allButLast and #allButLastDo:. Regards, Esteban A. Maringolo On Fri, May 17, 2019 at 5:44 AM Sven Van Caekenberghe wrote: > I would make that > > ^ String new: gifts size * 10

Re: [Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-18 Thread Esteban Maringolo
ng to continue to plague us. > > Dale > > [1] https://github.com/pharo-vcs/iceberg/issues/1239 > On 6/18/19 6:40 AM, Esteban Maringolo wrote: > > Hi Guillermo, > > Your workaround effectively solved my issue. > > About the tonel format, in the .properties fil

[Pharo-users] SETT Commit per bundle/package

2019-06-17 Thread Esteban Maringolo
Hi, I don't know if anybody is using SETT to migrate from VW's Store to a Tonel repository, but I'm trying to pull back to Pharo a few packages I moved to VW and continued to maintain there. I don't understand why SETT creates a commit on a "per pundle" (package/bundle) basis. What would be the

[Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-17 Thread Esteban Maringolo
Hi, I'm trying to load a package from a Tonel repository[1] that was created using SETT[2]. The structure seems fine, but when I try to load a package, I'm getting the message saying that there is no version for the package in the current commit (which seems wrong at least to the naked eye).

Re: [Pharo-users] Playground auto-save?

2019-06-19 Thread Esteban Maringolo
I still don't know why there is no explicit "save", to at least capture that state in the play-stash. There is an explicit "publish" to the cloud, but no save. Esteban A. Maringolo On Wed, Jun 19, 2019 at 2:34 PM Sven Van Caekenberghe wrote: > if you give the playground's tab a name, it will

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Esteban Maringolo
The M:N relationship is pretty straightforward in pure OO design. You have anEpisode that references a collection with instances of Track. And each Track has a collection of episodes. Of course this could be elaborated even further, and have an object like TrackPlay sitting in between of

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Esteban Maringolo
> I was thinking that an object would have an instance variable that was an > ordered collection of objects.. So having one object belong to two parent > objects could be tricky. > > > > On Jun 10, 2019, at 1:27 PM, Esteban Maringolo wrote: > > You have anEpisode that refe

Re: [Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-18 Thread Esteban Maringolo
commit the missing files: > > > > If you commit those files, then you’ll be able to load your packages. > > Guille > > > El 18 jun 2019, a las 2:34, Esteban Maringolo > escribió: > > Hi, > > I'm trying to load a package from a Tonel repository[1] that wa

Re: [Pharo-users] [Pharo-dev] [Ann] Lifeware, Schmidt Pro contracts for the consortium

2019-05-20 Thread Esteban Maringolo
This is really good news! Congratulations! Esteban A. Maringolo On Mon, May 20, 2019 at 3:04 AM ducasse wrote: > The Pharo consortium is very excited and super happy to bring your > attention to the following announce > that was presented during Pharodays 2019: >

Re: [Pharo-users] Getting example images - https://picsum.photos

2019-04-29 Thread Esteban Maringolo
I remember Paul de Bruicker (cc'ed) used a similar service to get user profiles (with first and last name and pictures, so you can "simulate" users in your app, and you could ask for male or female profiles). I don't remember the name, hopefully he will :) Esteban A. Maringolo On Mon, Apr 29,

Re: [Pharo-users] Cryptography decrufted

2019-07-05 Thread Esteban Maringolo
Thank you Norbert! Esteban A. Maringolo On Fri, Jul 5, 2019 at 11:06 AM Cédrick Béler wrote: > > Excellent job Norbert ! > > Thx, > > Cédrik > > > Le 5 juil. 2019 à 13:04, Norbert Hartl a écrit : > > > > I cannot remember how many years I’m suffering with the poor quality of the > >

Re: [Pharo-users] [ANN] MessageFlowBrowser for Pharo 7 and 8

2019-07-12 Thread Esteban Maringolo
I like the soundtrack. If anything else must be added, subtitles is the first thing in the list. El vie., 12 de julio de 2019 08:59, Richard O'Keefe escribió: > Great tool. Helpful video. > One thing would improve the video: remove the sound track, or > replace it with spoken commentary. > > >

[Pharo-users] Comparing to commits in Iceberg

2019-07-08 Thread Esteban Maringolo
Is there a way I can compare, and eventually merge, two arbitrary commits with Iceberg? E.g. I'm working on the latest commit of the master branch and want to see what changed against two commits ago, and maybe roll back some change. Regards, Esteban A. Maringolo

Re: [Pharo-users] [OT] (slightly) What makes other dialects "enjoyable" for you? (WAS: difference between double dispatch...)

2019-04-10 Thread Esteban Maringolo
I love this attitude coming from the very core of the Pharo dev-team, which felt to me as being blind to what other dialects were doing or did in the past, and these is days seems to be catching up quite quickly. Dolphin Smalltalk: Practically all "widgets" (aka "views") are the native ones, and

Re: [Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
2019 at 9:30 AM Esteban Maringolo wrote: > > Hi, > > Is there a way to add deep recursion protection to the system? > > eg. > RecursiveObject>>#recurse > self recurse > > So calling `RecursiveObject new recurse` in Dolphin raises an > exception right away.

Re: [Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
ieve such tight loops end up in JIT machine code. > > Checking stack overflow on each stack manipulation is costly. > > But I totally agree that we should try to catch these situations even if > there is a cost. > > > On 25 Apr 2019, at 14:39, Esteban Maringolo wrote: > &g

[Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
Hi, Is there a way to add deep recursion protection to the system? eg. RecursiveObject>>#recurse self recurse So calling `RecursiveObject new recurse` in Dolphin raises an exception right away... Throws the following error with this stack: ProcessorScheduler>>stackOverflow: [] in

Re: [Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
Hi Sven, On Thu, Apr 25, 2019 at 10:04 AM Sven Van Caekenberghe wrote: > This way, you should run out of heap before the stack gets too large, since > you allocate and hold on to an array in each frame. I don't understand the purpose of such expression, since I'm not writing recursive code,

Re: [Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
On Thu, Apr 25, 2019 at 10:41 AM Sven Van Caekenberghe wrote: > > On 25 Apr 2019, at 15:27, Esteban Maringolo wrote: > > However I ran these examples in Dolphin and Pharo 7, and in Dolphin it > > triggers an memory exhaustion exception right away, and in Pharo it > > gro

Re: [Pharo-users] Migration from VW to Pharo

2019-04-17 Thread Esteban Maringolo
There is this tool: https://github.com/GemTalk/SETT I used it with a few packages with no special Namespace and it worked just fine. It provides, however, several settings to map namespaces, packages, etc, so it should work. It only works in Linux though, because of the dependency to external

Re: [Pharo-users] Migration from VW to Pharo

2019-04-17 Thread Esteban Maringolo
: > > Hey, > > Unfortunately I have Windows though. I will have a look at it. Thanks for > letting me know > > Best Regards, > Sree > > On Wed, Apr 17, 2019, 5:27 PM Esteban Maringolo wrote: >> >> There is this tool: https://github.com/GemTal

Re: [Pharo-users] Code of Conduct

2019-09-16 Thread Esteban Maringolo
On Mon, Sep 16, 2019 at 3:59 PM Ramon Leon wrote: > > On 2019-09-11 1:07 p.m., Sean P. DeNigris wrote: > > merely say that no one (including from those categories) will be harassed > > inside the Pharo community. Seems pretty reasonable, unless I'm missing > > something... > > You're missing what

Re: [Pharo-users] Code of Conduct

2019-09-17 Thread Esteban Maringolo
On Tue, Sep 17, 2019 at 10:28 AM Offray Vladimir Luna Cárdenas wrote: > For example, in Latin America I have not seen a huge movement about new > pronouns and I don't know any of such for Spanish. The movement in LATAM started by the use of gender-neutral plurals, with some phonetic aberrations

Re: [Pharo-users] Warning Newbie Question: Bootstrap Navbar example works my copy and paste fails?

2019-08-01 Thread Esteban Maringolo
Hi Jeff, Here Regards, Esteban A. Maringolo On Thu, Aug 1, 2019 at 3:48 AM Jeff Gray wrote: > > Have I missed something? Is there a pharo Bootstrap 4? How do I get that? > > > > > -- > Sent from:

Re: [Pharo-users] How to modify a non-forked Iceberg repository to create a pull request

2019-07-27 Thread Esteban Maringolo
Thank you Gabriel. It was even simpler. Esteban A. Maringolo On Sat, Jul 27, 2019 at 5:37 PM Gabriel Cotelli wrote: > > Forth the repo > Add the remote > And just push to your remote > Then use the usual flow for pr > > On Sat, Jul 27, 2019, 16:33 Esteban Maringolo wrote

Re: [Pharo-users] Warning Newbie Question: Bootstrap Navbar example works my copy and paste fails?

2019-07-29 Thread Esteban Maringolo
You're using the Bootstrap 4 library and methods. I don't know about the one referenced in the MOOC, but there are several differences between Torsten's Bootstrap 3 (TBS prefixed classes) and Bootstrap 4 (SBS prefix), in particular because Bootstrap 4 library wrapper uses a subclass of

Re: [Pharo-users] A Canticle for Smalltalk

2019-08-06 Thread Esteban Maringolo
I'm not a native speaker but grammatically speaking "used" (simple past) means you did use it in the past but there is no information about whether you use it now, and "have been using" (present perfect) means you did use it in the past and continue to do so in the present. Esteban A. Maringolo

[Pharo-users] How to modify a non-forked Iceberg repository to create a pull request

2019-07-27 Thread Esteban Maringolo
I was working on something using Glorp, loaded as a Metacello dependency cloned directly from the pharo-rdbms/Glorp GitHub repo. Then I found what I think is a bug, make a few modifications and make created a new commit. I cannot commit to the `origin` remote since I'm not a member, but I can't

Re: [Pharo-users] A Canticle for Smalltalk

2019-08-06 Thread Esteban Maringolo
What is the intentend audience of this? Personally I don't like the aesthetics, the pace of text and its "nostalgia", and the overall message of the song lyrics ; and although I like the band and song, it's a proven plagiarism of Satriani's "If I could fly". [1] Regards, [1]

Re: [Pharo-users] [OrderedCollection] add a reference or a copy?

2019-07-24 Thread Esteban Maringolo
Yes, it is the same. Everything is passed by "reference" (*). And if you copy the collection you'll get two collections referencing the same object. E.g. | a c1 c2 | a := Object new. b := OrderedCollection with: a. b identityIncludes: a. "true" c := b copy. c identityIncludes: a. "true" (*)

Re: [Pharo-users] OrderedCollection as an instance variable

2019-07-24 Thread Esteban Maringolo
I agree with that, but in some cases, like reading objects from an ORM, you would be creating lots of instances of objects that are going to be discarded right away. This would put no stress on GC since it would happen in the "new" space, but would consume more memory (although I never measured

Re: [Pharo-users] Code of Conduct

2019-09-19 Thread Esteban Maringolo
Peter, I also understand that Esteban Lorenzano didn't aim the comment at you, and there was a language mismatch in the tone or intention of the last sentence. Let's get back to the discussion of the CoC (if something else must be discussed) and avoid the "you said"/"he said" kind of side-debate

Re: [Pharo-users] Microsoft COM

2019-09-26 Thread Esteban Maringolo
On Wed, Sep 25, 2019 at 8:35 PM Vince Refiti < vince.ref...@trapezegroup.com.au> wrote: > Have you checked out Dolphin Smalltalk's way of creating COM components? > The Dolphin guys have a wizard to "automatically generate wrapper classes > for all the interfaces defined in the type-library"

Re: [Pharo-users] Reminder: Smalltalk Webcamp, 22nd of October

2019-09-24 Thread Esteban Maringolo
Hi, I'll arrive to Ghent by train on Monday afternoon, and will likely wander around the city/museum and/or any other point of interest. I still haven't booked any lodging, and will likely go for a simple bed & breakfast since I plan to be outside as much as possible (if weather enables it).

Re: [Pharo-users] Workflows and possible usages

2019-09-30 Thread Esteban Maringolo
Bruno, There was the MockGemstone package that created "compatible" reduced conflict classes (that provide name compatibility but no RC behavior) and other Gemstone globals (such as System) that you can use. The develop in Pharo deploy in Gemstone is used by a few projects that I'm aware of. As

  1   2   3   >