Re: [Pharo-users] Small query about ZnClient post - with "; " form values

2019-05-17 Thread Sven Van Caekenberghe
Tim, > On 17 May 2019, at 03:04, Tim Mackinnon wrote: > > I was trying to automate posting some values to a website (I would use > Stfx.eu but it doesn’t do syntax highlighting and only seems to work for > quite small amounts). Hmm, it does highlighting (but it is far from perfect). There

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

2019-05-17 Thread Sven Van Caekenberghe
I would make that ^ String new: gifts size * 10 streamContents: [ :stream | gifts allButLastDo: [:each | stream nextPutAll: each; nextPutAll: ', ']. stream nextPutAll: 'and '; nextPutAll: gifts last ] Your iteration is well done, clear and to the point. > On 17 May 2019, at 02:44,

Re: [Pharo-users] Zinc - multipart forms query

2019-05-17 Thread Sven Van Caekenberghe
Hi Ben, Try: ZnClient new systemPolicy; beOneShot; url: 'http://dpaste.com/api/v2/'; addPart: (ZnMimePart fieldName: 'syntax' value: 'smalltalk'); addPart: (ZnMimePart fieldName: 'content' value: 'hello; world'); post. Although curl is powerful, well known and well supported,

[Pharo-users] Pharo Launcher could select newly created image (to be played) by default

2019-05-17 Thread Christopher Fuhrman
I posted a feature request at https://github.com/pharo-project/pharo-launcher/issues/339

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] Small query about ZnClient post - with "; " form values

2019-05-17 Thread Sven Van Caekenberghe
Tim, > On 17 May 2019, at 11:57, Tim Mackinnon wrote: > > Thanks for chipping in Sven - I’d asked Ben for some help as I’d seen him on > discord - that solution does indeed work. > > See: http://dpaste.com/218RW5G (which isn’t bad - not sure about he red boxes > around things, but the

Re: [Pharo-users] Small query about ZnClient post - with "; " form values

2019-05-17 Thread Sven Van Caekenberghe
> On 17 May 2019, at 13:17, Tim Mackinnon wrote: > > Thanks Sven - I’ll ping the guy at dpaste and ask - I was just curious if I > was missing something obvious in encoding… his docs are sparse. > > Muy point about stfx vs dpaste is that the latter uses one of those js syntax >

Re: [Pharo-users] Small query about ZnClient post - with "; " form values

2019-05-17 Thread Sven Van Caekenberghe
> On 17 May 2019, at 12:15, Sven Van Caekenberghe wrote: > >> As a related question - how would I know to use #addPart: vs: #formAt: ? > > By knowing/understanding a bit more about HTTP ? ;-) As I wrote in my reply to Ben: Although curl is powerful, well known and well supported, I would

[Pharo-users] [ANN] Next Pharo Sprint: May 24

2019-05-17 Thread Marcus Denker
We will organize a Pharo sprint / Moose dojo May 24, starting at 10:00am. (Local Time Paris). Goals of this sprint: - Pharo 8: Fix issues from tracker https://github.com/pharo-project/pharo/issues Remote Sprint: Remotely, you can join us on Discord. During the sprint, we

Re: [Pharo-users] Small query about ZnClient post - with "; " form values

2019-05-17 Thread Tim Mackinnon
Thanks for chipping in Sven - I’d asked Ben for some help as I’d seen him on discord - that solution does indeed work. See: http://dpaste.com/218RW5G (which isn’t bad - not sure about he red boxes around things, but the smalltalk highlighting is quite good (pygments

Re: [Pharo-users] Small query about ZnClient post - with "; " form values

2019-05-17 Thread Tim Mackinnon
Thanks Sven - I’ll ping the guy at dpaste and ask - I was just curious if I was missing something obvious in encoding… his docs are sparse. Muy point about stfx vs dpaste is that the latter uses one of those js syntax highlighting libraries (not sure what you use) and so you get something that

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

2019-05-17 Thread Brainstorms
Richard O'Keefe wrote > I did not mean "course of instruction on the topic of continuations", > I meant "that class whose name is Continuation in the Smalltalk image." > In a Playground, type Continuation and then Control-B. Of course... My inexperience again, coupled with hopes for a course of

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

2019-05-17 Thread Tim Mackinnon
Actually that is the hidden gem on all of this - thinking about the common things people do through new eyes, has forced me to learn new things (and that feels very compatible with Pharo). I also thank everyone here for entertaining these questions and hopefully help build another way for

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

2019-05-17 Thread Offray Vladimir Luna Cárdenas
Hi, Is nice to see this similitude between Lua and Pharo. We have been using both in the Grafoscopio[1] project, because Lua is Pandoc's default choice for embedded scripting language, and is pretty fast on the Abstract Syntax Tree filters. [1] https://mutabit.com/grafoscopio/index.en.html For

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

2019-05-17 Thread Brainstorms
Hi Offray, You probably know that you can develop Lua using OOP techniques, so they're not so opposite for me, at least. There is a significant difference as far as their OOP styles, however: Lua OOP is prototype-based, not class-based. But you can fashion class(like) objects in Lua and

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

2019-05-17 Thread Offray Vladimir Luna Cárdenas
Hi t, Yes, I know that Lua support OOP, with several implementations and using metatables. I have not looked in detail. But the idea of shared similarities while being at opposite extremes of the programming spectrum/experience is more related with both sharing minimalist concepts applied

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

2019-05-17 Thread Brainstorms
Hi Offray, Yes, I definitely agree with you that Lua does not have the nice development environment of Pharo (what other language does?), and is very bare-bones, as it was originally intended for embedded applications. I've gone through nearly all of the online version of the Pharo MOOC now, and

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

2019-05-17 Thread Offray Vladimir Luna Cárdenas
Hi Ted, On 17/05/19 6:38 p. m., Brainstorms wrote: > Hi Offray, > > Yes, I definitely agree with you that Lua does not have the nice development > environment of Pharo (what other language does?), and is very bare-bones, as > it was originally intended for embedded applications. Yep, Pharo