[Pharo-users] Google Protobuf and usage of Slots

2019-02-25 Thread Holger Freyther
Hi, from my point of view the pillars of future services are Google protobuf[1] and gRPC. Protobuf can be used for configuration files[2], tracing/logging[3] and storage[4]. gRPC is built on top-of HTTP2 and is using the protobuf IDL and marshaling. Many projects (etcd, envoy, Google Cloud, ...

Re: [Pharo-users] NeoJSON mapping question

2019-02-25 Thread BrunoBB
Hi, Finally i found a much more acceptable solution :) neoJsonMapping: mapper "Map the receiver from a json with " mapper for: self do: [ :mapping | mapping mapAccessor: #locator mutator: #setLocator: to: 'booking'. ]. setLocator: aDictionary loc

Re: [Pharo-users] NeoJSON mapping question

2019-02-25 Thread BrunoBB
Hi, The following implementation do what i want without the need to create a class for each level of the JSON, however i really dislike my solution. neoJsonMapping: mapper "class side" "Map the receiver to a json with " mapper for: self do: [ :mapping | (mapping ma

[Pharo-users] NeoJSON mapping question

2019-02-25 Thread BrunoBB
Hi, How to set a path to JSON value in the mapping definition ? I mean i have a simple object with and instance variable but the value of this inst var is deep inside the JSON. mapping mapInstVar: #locator to: 'locator'. This fail because 'locator' is not in the first JSON level. Is possible t

Re: [Pharo-users] what did I do wrong here

2019-02-25 Thread Sven Van Caekenberghe
> On 25 Feb 2019, at 22:30, Roelof Wobben wrote: > > Thanks, > > How do I know the next time if I need to use a instance or a class method ? Instance creation happens on the class side, when your are on the instance side, your already have an instance (self) that was already created [this i

[Pharo-users] Display MozCanvas on screen?

2019-02-25 Thread David Richards
| canvas | . canvas := BlSpartaMozCanvasBuilder extent: 600@400 How do I display this MosCanvas on screen? Does anyone know where I can get documentation on how to do graphics in Pharo? The comments in the code are not understandable to a beginner.

[Pharo-users] [Seaside] Resource Based routing

2019-02-25 Thread sergio ruiz
Okay, gathering info regarding my last post. I need to create REST urls to point to things in my app like blog posts, show notes, etc.. I am thinking to do this, I should probably follow this: http://book.seaside.st/book/advanced/restful/handler-filter Am I on the right track? Thanks! pe

Re: [Pharo-users] what did I do wrong here

2019-02-25 Thread Roelof Wobben
Thanks, How do I know the next time if I need to use a instance or a class method ? That was the trick. Roelof Op 25-2-2019 om 22:05 schreef Sven Van Caekenberghe: json := (NeoJSONReader fromString: (ZnEasy get: 'https://www.rijksmuseum.nl/api/nl/collection?key=14OGzuak&format=json&type=sc

Re: [Pharo-users] what did I do wrong here

2019-02-25 Thread Sven Van Caekenberghe
Your #fromJSON: methods should be on the class not the instance side. > On 25 Feb 2019, at 21:52, Roelof Wobben wrote: > > Hello, > > I try to ask a api for some data and then display the data I want. > > But when I do : > > json := (NeoJSONReader fromString: (ZnEasy get: > 'https://www.

Re: [Pharo-users] Mac OS X test [ smaller image ]

2019-02-25 Thread Sven Van Caekenberghe
> On 25 Feb 2019, at 21:41, Hilaire wrote: > > I think I am running out of option. > > Since about 10 years, it is the first time I am stuck with Pharo to > deliver an end user application on Mac. > > Any idea? > > Can some try on a mac to run as this for any meaningful feedback? > > cd ./

[Pharo-users] what did I do wrong here

2019-02-25 Thread Roelof Wobben
Hello, I try to ask a api for some data and then display the data  I want. But when I do : json := (NeoJSONReader fromString: (ZnEasy get: 'https://www.rijksmuseum.nl/api/nl/collection?key=14OGzuak&format=json&type=schilderij&toppieces=True') contents).

Re: [Pharo-users] Mac OS X test [ smaller image ]

2019-02-25 Thread Hilaire
I think I am running out of option. Since about 10 years, it is the first time I am stuck with Pharo to deliver an end user application on Mac. Any idea? Can some try on a mac to run as this for any meaningful feedback? cd ./DrGeo.app ./Contents/MacOS/Pharo ./Contents/Resources/drgeo.image Th

Re: [Pharo-users] Repeateble URLs - REST?

2019-02-25 Thread sergio ruiz
Gotcha.. So, in Seaside, should how should I handle the routes? with Seaside REST? On February 25, 2019 at 2:56:49 PM, S Krish ( krishnamachari.sudha...@gmail.com) wrote: https://restfulapi.net/resource-naming/ https://docs.microsoft.com/en-us/azure/arch

Re: [Pharo-users] Repeateble URLs - REST?

2019-02-25 Thread S Krish
This is fine: www.bagelconcertfinder.com/zipcodes/{zipCode} Preferred is : *https://..siteName.../boundedContext/resourceInPlural/{resourceId}* So this can be as you state but without _ underscores and "concertBlogging" is identified bounded context for a set of resources https://siteName

[Pharo-users] Repeateble URLs - REST?

2019-02-25 Thread sergio ruiz
Hi, all.. I am looking to have a repeatable url so users can save them and share them.. something like: www.bagelconcertfinder.com/zipcode/44805 and in my next project, I’ll be doing something like a CMS where you would get: /blog_entries/this-is-the-path I am thinking of using REST to flesh o

Re: [Pharo-users] Can't addChild:

2019-02-25 Thread Tudor Girba
Hi, addChild: expects a BlElement not a canvas. A BlElement draws on a canvas object that is passed to it. SpartaCanvas is an abstract class. If you want to instantiate a canvas, pick one of the subclasses. For example, for MozCanvas, see MozExamples. Cheers, Tudor > On Feb 25, 2019, at 4:

Re: [Pharo-users] What does the Package and Sub-Package comment do?

2019-02-25 Thread Denis Kudriashov
Hi Tim. Behaviour is similar to Pharo 6. When class is selected the comment belongs to the class. If not then it belongs to the package. There is no such thing as a tag comment. I thought the default comment text is clear enough to avoid confusion. But probably it's not as you wrote this mail. So

Re: [Pharo-users] Windows 64bit, long filename issue but after a second load, how to categorise and report this?

2019-02-25 Thread Tim Mackinnon
I’ve created - https://github.com/pharo-vcs/iceberg/issues/1204 > On 25 Feb 2019, at 17:12, Tim Mackinnon wrote: > > Just to add some additional notes on this (and I will also file an issue, as > I don’t think one has been submitted, and I don’t think this is fully down to > file path length a

Re: [Pharo-users] Windows 64bit, long filename issue but after a second load, how to categorise and report this?

2019-02-25 Thread Tim Mackinnon
Just to add some additional notes on this (and I will also file an issue, as I don’t think one has been submitted, and I don’t think this is fully down to file path length alone) - After some more testing, we have also seen the error on Windows 32bit as well (so while easier to get in 64bit, it

[Pharo-users] How can I the best filter out data and make a collection of paintings

2019-02-25 Thread Roelof Wobben
Hello, I have ask this before on the discord channels but I cannot find there the solutions anymore. I try to make a website that displays the paintings of the Rijksmuseaum in Amsterdam. That provides a json response So I do : | json pain

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

2019-02-25 Thread Sven Van Caekenberghe
> On 23 Feb 2019, at 03:53, Ben Coman wrote: > > Just curiousity... Is an idempotent round trip required/expected ? Not necessarily, but symmetry is important and a lack of symmetry is often a possible indication of trouble. Anyway, since the standard is crystal clear that JSON keys/names i

[Pharo-users] Can't addChild:

2019-02-25 Thread David Richards
| canvas space node text | . BlUniverse reset . space := BlSpace new . space show . space title: 'Test Space' . space extent: 800@400 . space root background: Color lightBlue . space position: 1@25 . canvas := BlSpartaMozCanvasBuilder extent: 400@250 . space root addChild: canvas This fails.

Re: [Pharo-users] What does the Package and Sub-Package comment do?

2019-02-25 Thread Tim Mackinnon
Anyone have any thoughts on this? Not sure whether to report a bug or not. > On 22 Feb 2019, at 14:48, Tim Mackinnon wrote: > > Hi - I notice that you can sort of put comments on packages - but I’m not > sure if this is working or if its supposed to work? > > When I type something it seems to

Re: [Pharo-users] Pharo Launcher update installation issues

2019-02-25 Thread Christophe Demarey
Hi, > Le 24 févr. 2019 à 06:33, Sanjay Minni a écrit : > > Hi, > > I am trying to install Pharo Launcher 1.6 (.msi) in Windows 10 > it says "a more ecent version is already installed" and does not proceed > but the version installed is 1.5.1 > > also > in 1.5.1 the left panel shows in the Dis

[Pharo-users] instantiate Sparta canvas?

2019-02-25 Thread David Richards
canvas := SpartaCanvas extent: 400@250 This fails even though the documentation says: ''I am an abstract class and should not be instantiated. However, the best way to create an instance of sparta canvas is to send extent: message.'' !! Example: Create an empty canvas of size 400@250: [[[langua

Re: [Pharo-users] Why is #findString: in accessing?

2019-02-25 Thread Tim Mackinnon
Hi Sven, thanks for kicking in - yes I do resort to that Finder (and I keep meaning to learn how to port that example search to spotter somehow) - however it only works for non-keyword selectors… (another one to investigate to see if it could potentially let you specify a parameter for its searc

[Pharo-users] Why is #findString: in accessing?

2019-02-25 Thread Tim Mackinnon
I always struggle (even after years of casually using smalltalk) to find the String methods that do the heavy lifting (and are comparable to other languages). The methods are normally there, but they often have names that don’t compare well with other languages. I think that what doesn’t help i