Re: [Pharo-users] Yet another Pharo in docker

2018-09-18 Thread Herbert Vojčík
Updated with 60543 release of 6.1, now that zeroconf (used to build this) contains newer vm. Herby P.S.: Not used the official one yet, if it proves to be composable enough, I'd gladly abandon this one. Herbert Vojčík wrote on 27. 6. 2018 20:27: Updated with 60541 release of 6.1. Herby

Re: [Pharo-users] Why is there no #assert:notEquals: or #shouldnt:equal: or #deny:equals: method?

2018-08-10 Thread Herbert Vojčík
If you want expressive DSL for various assertions, Mocketry has one. I sort-of used to this approach from JS testing where mocha actually expects you will use your own assertion lib (eg. chai). Herby Tim Mackinnon wrote on 10. 8. 2018 16:34: Actually - all those methods are already there -

Re: [Pharo-users] [Pharo-dev] New Iceberg Version 1.2.1

2018-08-08 Thread Herbert Vojčík
Norbert Hartl wrote on 8. 8. 2018 10:27: Am 07.08.2018 um 16:00 schrieb Guillermo Polito : Hi, I'll write down some of the reasons of the project's design, like that I can afterwards copy paste it in the wiki :). First, this design did not came up from an egg. We worked on it for about

Re: [Pharo-users] [Pharo-dev] New Iceberg Version 1.2.1

2018-08-08 Thread Herbert Vojčík
Damien Pollet wrote on 8. 8. 2018 13:53: First of all, quick stupid question: I'm currently loading my code with gitlocal://./src as the repository URL (my workflow starts in a terminal rather than in a Pharo image) Should I just remove the /src part, now that my repo has the project

Re: [Pharo-users] Working with urls that contain non latin characters

2018-07-27 Thread Herbert Vojčík
Offray Vladimir Luna Cárdenas wrote on 27. 7. 2018 12:39: Hi, I was ready to show a friend the Pharo web capabilities with the classical "myString asUrl retrieveContents", but the friend gave me a url that contains non Latin characters[1] and then I got an ZnInvalidUTF8 error. [1]

Re: [Pharo-users] Which command-line handlers do you use most?

2018-07-11 Thread Herbert Vojčík
Herbert Vojčík wrote on 11. 7. 2018 14:48: Damien Pollet wrote on 9. 7. 2018 17:38: Hi all, I'm starting to port / reimplement existing command line handlers using Clap. There's a dozen, but I wonder which ones are the most relied upon, because it's a good opportunity for refactoring

Re: [Pharo-users] Which command-line handlers do you use most?

2018-07-11 Thread Herbert Vojčík
Damien Pollet wrote on 9. 7. 2018 17:38: Hi all, I'm starting to port / reimplement existing command line handlers using Clap. There's a dozen, but I wonder which ones are the most relied upon, because it's a good opportunity for refactoring the command line API as a whole and simplifying

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Herbert Vojčík
Herbert Vojčík wrote on 3. 7. 2018 11:21: Sven Van Caekenberghe wrote on 3. 7. 2018 10:55: On 3 Jul 2018, at 10:08, Herbert Vojčík wrote: Sven Van Caekenberghe wrote on 2. 7. 2018 16:00: On 25 Jun 2018, at 12:56, Herbert Vojčík wrote: Peter Uhnák wrote on 23. 6. 2018 15:39: Hi

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Herbert Vojčík
Sven Van Caekenberghe wrote on 3. 7. 2018 10:55: On 3 Jul 2018, at 10:08, Herbert Vojčík wrote: Sven Van Caekenberghe wrote on 2. 7. 2018 16:00: On 25 Jun 2018, at 12:56, Herbert Vojčík wrote: Peter Uhnák wrote on 23. 6. 2018 15:39: Hi, I'm starting to familiarize myself with new

Re: [Pharo-users] Pharo 7 streams API

2018-07-03 Thread Herbert Vojčík
Sven Van Caekenberghe wrote on 2. 7. 2018 16:00: On 25 Jun 2018, at 12:56, Herbert Vojčík wrote: Peter Uhnák wrote on 23. 6. 2018 15:39: Hi, I'm starting to familiarize myself with new streams, and one thing I've noticed is the removal of #lineEndConvention (which I use all the time

Re: [Pharo-users] Yet another Pharo in docker

2018-06-27 Thread Herbert Vojčík
Updated with 60541 release of 6.1. Herby Vojčík wrote on 18. 10. 2017 22:17: Herby Vojčík wrote: https://hub.docker.com/r/herbysk/pharo/ Thanks to gotchas@dockerhub whose scripts I adapted.

Re: [Pharo-users] Pharo 7 streams API

2018-06-25 Thread Herbert Vojčík
Peter Uhnák wrote on 23. 6. 2018 15:39: Hi, I'm starting to familiarize myself with new streams, and one thing I've noticed is the removal of #lineEndConvention (which I use all the time). So a statement like this aFile writeStreamDo: [ :stream | stream lineEndConvention: #lf. stream <<

Re: [Pharo-users] Windows installation broken?

2018-06-18 Thread Herbert Vojčík
Esteban Lorenzano wrote on 18. 6. 2018 16:04: On 18 Jun 2018, at 15:39, Herbert Vojčík wrote: horrido wrote on 18. 6. 2018 0:04: This is what concerns me. I don't care that there are workarounds (undocumented or hard to find). I care that Windows is a most popular development platform

Re: [Pharo-users] Windows installation broken?

2018-06-18 Thread Herbert Vojčík
horrido wrote on 18. 6. 2018 0:04: This is what concerns me. I don't care that there are workarounds (undocumented or hard to find). I care that Windows is a most popular development platform. I care that newcomers to Pharo easily find what they need to get started. I care about Pharo's

Re: [Pharo-users] Is it bad to have an order NeoJsonObject?

2018-06-12 Thread Herbert Vojčík
Richard O'Keefe wrote on 12. 6. 2018 3:54: Herbert Vojčík ​wrote " it is already part of the spec a few years already that enumeration on the object keys MUST respect the order in which keys were created". The JavaScript (ECMA-262) spec, not the JSON (ECMA 404) spec.

Re: [Pharo-users] Is it bad to have an order NeoJsonObject?

2018-06-11 Thread Herbert Vojčík
Norbert Hartl wrote on 11. 6. 2018 23:38: Am 11.06.2018 um 16:48 schrieb Richard O'Keefe >: I'm really baffled here. Look at the definition at json.org . ​An object is an UNORDERED set of name/value pairs. Or look at ECMA-404, which

Re: [Pharo-users] How does iceberg handle caching of packages with different versions?

2018-05-15 Thread Herbert Vojčík
Tim Mackinnon wrote: Hi - while I’ve been trying to troubleshoot my tonel build woes - I noticed something that might be a potential problem with baselines not loading the correctly specified version. I was having no luck with GitHub:/repo references (see other thread on this), eg: spec

Re: [Pharo-users] WeakXxx and Pharo7+ (was: Re: Package extension. Adding instance variables to classes)

2018-05-14 Thread Herbert Vojčík
Guillermo Polito wrote: On Mon, May 14, 2018 at 11:22 AM, Herbert Vojčík <he...@mailbox.sk <mailto:he...@mailbox.sk>> wrote: Guillermo Polito wrote: On Sun, May 13, 2018 at 6:37 PM, Herbert Vojčík <he...@mailbox.sk <mailto:he...@mailbox.sk&g

Re: [Pharo-users] Package extension. Adding instance variables to classes

2018-05-13 Thread Herbert Vojčík
Guillermo Polito wrote: Just be careful, that privateState thing looks like a Moose only Famix feature. It't not available in plain Pharo objects :) In ES6 mailing list, they had this problem re how to do private state for objects, and it was shown that having private state is sort of

Re: [Pharo-users] Tonel, Pharo 6.1 and file per class?

2018-05-09 Thread Herbert Vojčík
Esteban Lorenzano wrote: the problem is that tonel relies in a .properties file to know a repository format. and for backward compatibility, if this .properties file is not present, iceberg assumes the repository is a plain old “filetree” repository. so, until we figure out how to provide

Re: [Pharo-users] Saving a Smalltalk Project

2018-05-05 Thread Herbert Vojčík
Stephan Eggermont wrote: Sean P. DeNigris wrote: OT: It's ironic that Smalltalkers are often accused of NIH syndrome, but the first reaction of people from less "productive" languages/systems is to rewrite a working Smalltalk app in their language of comfort… Indeed.

Re: [Pharo-users] Mocketry: what is used of #where ?

2018-05-04 Thread Herbert Vojčík
Herbert Vojčík wrote: Denis Kudriashov wrote: Hi Herbert. It is a bit experimental API to allow more descriptive failures. Evaluate following code: (2@3) where x should equal: 10 It will give you failure message: Got "2" from (2@3) x but it should equal "10".

Re: [Pharo-users] Mocketry: what is used of #where ?

2018-05-04 Thread Herbert Vojčík
on using magic with thisContext and reflectivity. But again the question is same: does it really make sense to do it for assertions? Best regards, Denis 2018-05-04 16:28 GMT+03:00 Herbert Vojčík <he...@mailbox.sk <mailto:he...@mailbox.sk>>: Hello, When I am writing test

[Pharo-users] Mocketry: what is used of #where ?

2018-05-04 Thread Herbert Vojčík
Hello, When I am writing tests using Mocketry's DSL, I get puzzled about how / when to use #where, and how is it different when it's used and when it is not? As far as i tried, I did not find any difference. That is, pasting part of one of my tests: response := znClient

Re: [Pharo-users] #(foo bar baz) min

2018-04-21 Thread Herbert Vojčík
Note: no need for #collect:thenFold: family, one can implement min as min ^ self detectMin: [ :x | x ] if you want to reuse existing one. But actually, the issue is, min: and max: are not there (correctly) for strings. Herby Richard O'Keefe wrote: #('a' 'b' 'c') min also fails on

[Pharo-users] #(foo bar baz) min

2018-04-20 Thread Herbert Vojčík
Hi all! Somehow intuitively I presume the subject line to return #bar, but it fails with ByteString not knowing min:, in Pharo 6.1. Is it a bug, bug fixed in Pharo 7, or a feature? Herby

Re: [Pharo-users] Where do we go now ?

2018-04-13 Thread Herbert Vojčík
Herbert Vojčík wrote: Just a bit of a bikeshedding here: But I prefer these names: * Calypso System Browser Calypso Browser Display * Calypso Debugger Calypso Debugger Display Calypso Debugger Gear * Iceberg Source Control Management\ Iceberg SCM Display Iceberg SCM Gear * Zinc

Re: [Pharo-users] Where do we go now ?

2018-04-13 Thread Herbert Vojčík
Esteban A. Maringolo wrote: On 13/04/2018 10:41, p...@highoctane.be wrote: A somewhat unique name makes it easier to google for it (like Roassal Pharo, or DeepTraverser Pharo, or Zinc Pharo). These will give us hits that are relevant. Try System Browser, Inspector... Just a bit of a

Re: [Pharo-users] installation of packages on 6.1

2018-04-11 Thread Herbert Vojčík
No, it is possible to install them without github account. You need to set protocol to https: Iceberg enableMetacelloIntegration: true; remoteTypeSelector: #httpsUrl. Herby Baveco, Hans wrote: Thanks Ben! I created a github account, installed git and git bash, created SSH keys, added keys

Re: [Pharo-users] Iceberg: whom to email directly?

2018-04-10 Thread Herbert Vojčík
Ben Coman wrote: On 10 April 2018 at 23:46, Herbert Vojčík <he...@mailbox.sk <mailto:he...@mailbox.sk>> wrote: I have a strict "no github account" policy. Whom/where should I post to report issues? Thanks, Herby https://pharo.fogbugz.com Ironically, I

[Pharo-users] Iceberg: whom to email directly?

2018-04-10 Thread Herbert Vojčík
I have a strict "no github account" policy. Whom/where should I post to report issues? Thanks, Herby

Re: [Pharo-users] STON shouldn't care about shared references in JSON mode

2018-03-27 Thread Herbert Vojčík
On Tue, Mar 27, 2018 at 6:41 PM, Herbert Vojčík<he...@mailbox.sk> wrote: Peter Uhnák wrote: Hi Sven, shouldn't it be set to #ignore by default for JSON then? Or is there a use case where it makes sense to have something else for JSON? To keep STON practices / assumptions while using JSO

Re: [Pharo-users] STON shouldn't care about shared references in JSON mode

2018-03-27 Thread Herbert Vojčík
(infinitely) recursive references, but I know; Sven explicitly asked what to do with cycles in that case, though. referencing the same object, e.g. Peter On Tue, Mar 27, 2018 at 6:08 PM, Herbert Vojčík <he...@mailbox.sk <mailto:he...@mailbox.sk>> wrote: Sven Van Caeken

Re: [Pharo-users] STON shouldn't care about shared references in JSON mode

2018-03-27 Thread Herbert Vojčík
Sven Van Caekenberghe wrote: Hi Peter, Both cases will pass using this expression: String streamContents: [ :out | STON jsonWriter referencePolicy: #ignore; on: out; nextPut: d ]. The problem is what to do with cycles. Be faithful to

[Pharo-users] Why should we not rely on #atEnd?

2018-03-26 Thread Herbert Vojčík
Citing from https://pharo.fogbugz.com/f/cases/21577/Cannot-read-from-dev-urandom, But we still shouldn't be relying on #atEnd so ... -- Alistair Grant Why should we not rely on #atEnd? I had the impression that it is one of the most fundamental stream APIs, alongside next, nextPut: and

Re: [Pharo-users] Problem setting up Tide demo - pls. Instructions for manual labor, identify culprit?

2018-03-22 Thread Herbert Vojčík
le tree with the new updated one. >Then run 'grunt devel'. >Is this all I need? > >Is there a way to explicitly describe the objects I need? >Or is there a way to check what exactly is missing? > >*** > >But would it not be a better approa

Re: [Pharo-users] Problem setting up Tide demo

2018-03-21 Thread Herbert Vojčík
In newer version of Amber the loading code changed significantly, as promises are used (best way to migrate old code is to actually created new project using `amber init` and only move the needed pieces (src/*.st files, .amd.json files, lists of packages in deploy.js / testing.js / devel.js /

Re: [Pharo-users] Yet another Pharo in docker

2018-03-21 Thread Herbert Vojčík
Pharo jenkins itself? Herby Herbert Vojčík wrote: Herbert Vojčík wrote: Sean P. DeNigris wrote: Sean P. DeNigris wrote https://hub.docker.com/r/herbysk/pharo/ How are the images built from https://lolg.it/herby/pharo-docker? Researching a bit it seems that Docker Hub only supports

Re: [Pharo-users] State of Tide / Amber ?

2018-03-14 Thread Herbert Vojčík
in_pharo_us...@nym.hush.com wrote: Hi Esteban, nice to meet you online. I saw your presentation on UTube. I found your concept quite intriguing, so I wonder why no one else is interested - besides the notorious lack of popularity that Smalltalk is cursed with, to the unreasonable great

Re: [Pharo-users] Yet another Pharo in docker

2018-03-05 Thread Herbert Vojčík
Herbert Vojčík wrote: Sean P. DeNigris wrote: Sean P. DeNigris wrote https://hub.docker.com/r/herbysk/pharo/ How are the images built from https://lolg.it/herby/pharo-docker? Researching a bit it seems that Docker Hub only supports GitHub and BitBucket, and IIUC you can't change

Re: [Pharo-users] Yet another Pharo in docker

2018-03-05 Thread Herbert Vojčík
Sean P. DeNigris wrote: Sean P. DeNigris wrote https://hub.docker.com/r/herbysk/pharo/ How are the images built from https://lolg.it/herby/pharo-docker? Researching a bit it seems that Docker Hub only supports GitHub and BitBucket, and IIUC you can't change the image name if you use

Re: [Pharo-users] Seaside and Ajax/JQuery

2018-02-20 Thread Herbert Vojčík
Dominique Dartois wrote: 2018-02-19 22:02 GMT+01:00 Cyril Ferlicot D. >: Le 19/02/2018 ?? 21:56, Dominique Dartois a ??crit : > Hello All. > I try to use Ajax/JQuery to update a value in a HTML table by clicking

Re: [Pharo-users] canonical way to convert Symbol into Class (retrieve class by its name)

2018-02-13 Thread Herbert Vojčík
Denis Kudriashov wrote: 2018-02-13 10:25 GMT+01:00 Marcus Denker >: Sometimes I think we should treat globals more in a “late bound” fashion. e.g. right now we say that “Undeclared” vars are to be avoided at any cost.

Re: [Pharo-users] Generate equality

2018-02-08 Thread Herbert Vojčík
) Herby On Thu, Feb 8, 2018 at 12:47 PM, Herbert Vojčík<he...@mailbox.sk> wrote: Alistair Grant wrote: Hi Herby, On 8 February 2018 at 03:10, Herbert Vojčík<he...@mailbox.sk> wrote: Hi! Do you think it would be reasonable to have, a la "generate accessors" / "gen

Re: [Pharo-users] Generate equality

2018-02-08 Thread Herbert Vojčík
Alistair Grant wrote: Hi Herby, On 8 February 2018 at 03:10, Herbert Vojčík<he...@mailbox.sk> wrote: Hi! Do you think it would be reasonable to have, a la "generate accessors" / "generate initialize method", a "generate equality" thingie that would

Re: [Pharo-users] [ANN] sentry.io (OSS error tracking platform) SDK

2018-02-07 Thread Herbert Vojčík
Peter Uhnák wrote: I guess the subject should say [ANN] too... :) On Tue, Feb 6, 2018 at 10:55 PM, Peter Uhnák > wrote: Hi, I've made an experimental SDK for sentry.io to track errors in end-user installations.

Re: [Pharo-users] Generate equality

2018-02-07 Thread Herbert Vojčík
t enough" discussion)... Herby Norbert Am 07.02.2018 um 17:10 schrieb Herbert Vojčík<he...@mailbox.sk>: Hi! Do you think it would be reasonable to have, a la "generate accessors" / "generate initialize method", a "generate equality" thingie that wo

Re: [Pharo-users] Generate equality

2018-02-07 Thread Herbert Vojčík
for initialize, Nautilus had some shortcuts to generate code which you can try https://gist.github.com/peteruhnak/d9ee54f67d88b20ba85618e189b15669#generating Peter On Wed, Feb 7, 2018 at 5:10 PM, Herbert Vojčík <he...@mailbox.sk <mailto:he...@mailbox.sk>> wrote: Hi! Do y

[Pharo-users] Generate equality

2018-02-07 Thread Herbert Vojčík
Hi! Do you think it would be reasonable to have, a la "generate accessors" / "generate initialize method", a "generate equality" thingie that would generate #= and #hash for the method, mechanically? Just created a new "piece of data" class and felt like it would be helpful. Herby

Re: [Pharo-users] FYI: HTTP mocking lib (alpha) at https://lolg.it/herby/znock

2018-01-31 Thread Herbert Vojčík
Herbert Vojčík wrote: License... ah I forgot to put it there... it'll be MIT. Just added. :-)

Re: [Pharo-users] FYI: HTTP mocking lib (alpha) at https://lolg.it/herby/znock

2018-01-31 Thread Herbert Vojčík
with my son. What is the license? Where is the code? On Tue, Jan 30, 2018 at 11:31 PM, Herbert Vojčík<he...@mailbox.sk> wrote: Hi! I started with a rudimentary HTTP mocking lib (adding features as needed) inspired by nock, but using the existing ZnClient / ZnRequest / ZnResponse api for m

Re: [Pharo-users] FYI: HTTP mocking lib (alpha) at https://lolg.it/herby/znock

2018-01-30 Thread Herbert Vojčík
Herbert Vojčík wrote: Hi! I started with a rudimentary HTTP mocking lib (adding features as needed) inspired by nock, but using the existing ZnClient / ZnRequest / ZnResponse api for mocking. Atm the feature are very basic (no filtering, matching only by host and scheme

Re: [Pharo-users] FYI: HTTP mocking lib (alpha) at https://lolg.it/herby/znock

2018-01-30 Thread Herbert Vojčík
Herbert Vojčík wrote: Hi! I started with a rudimentary HTTP mocking lib (adding features as needed) inspired by nock, but using the existing ZnClient / ZnRequest / ZnResponse api for mocking. Credits: Uses Mocketry's `ZnClient new stub will: ...` to set up mocked client; thanks Denis

[Pharo-users] FYI: HTTP mocking lib (alpha) at https://lolg.it/herby/znock

2018-01-30 Thread Herbert Vojčík
Hi! I started with a rudimentary HTTP mocking lib (adding features as needed) inspired by nock, but using the existing ZnClient / ZnRequest / ZnResponse api for mocking. Atm the feature are very basic (no filtering, matching only by host and scheme), but there it is for the interested.

Re: [Pharo-users] Regex: copy with ignoreCase

2018-01-29 Thread Herbert Vojčík
ien --- Julien Delplanque Doctorant à l’Université de Lille 1 http://juliendelplanque.be/phd.html Equipe Rmod, Inria Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq Numéro de téléphone: +333 59 35 86 40 Le 29 janv. 2018 à 23:11, Herbert Vojčík <he...@mailbox.sk <mailto:he...@mailbox.sk>&g

[Pharo-users] Regex: copy with ignoreCase

2018-01-29 Thread Herbert Vojčík
Hi! String >> #asRegex return an instance of RxMatcher, as I tried. Now, I would like to get an object that behaves exactly as the one I got from asRegex, just that it ignores case (regardless whether it did or didn't in the original object). I understand it is not possible to get that

[Pharo-users] How to specify generic (non-github) git dependency?

2018-01-28 Thread Herbert Vojčík
Hi, I know I can do, for example, [..snip..] package: 'Foo' with: [ spec requires: #('Mocketry') ]; baseline: 'Mocketry' with: [ spec repository: 'github://dionisiydk/Mocketry:v4.0.x' ]; [..snip..] but when I want to add dependency to a repo