Re: [Pharo-users] TaskIt

2019-12-17 Thread Norbert Hartl
Hi, > Am 16.12.2019 um 11:41 schrieb Santiago Bragagnolo > : > >  > Hi everybody! >We are starting to discuss with norbert about letting taskit to leave my > incubator (my github account to go elsewhere). I have being thinking about it > since long time, since i would like it to allow ta

[Pharo-users] [ANN] Next Pharo Sprint: Dec 20

2019-12-17 Thread Marcus Denker
We will organize a Pharo sprint / Moose dojo Dec 20, 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 ca

Re: [Pharo-users] [Pharo-dev] TaskIt

2019-12-17 Thread Santiago Bragagnolo
El mar., 17 dic. 2019 a las 9:40, Norbert Hartl () escribió: > Hi, > > > Am 16.12.2019 um 11:41 schrieb Santiago Bragagnolo < > santiagobragagn...@gmail.com>: > > > >  > > Hi everybody! > >We are starting to discuss with norbert about letting taskit to leave > my incubator (my github account

[Pharo-users] Pharo TechTalk December 19th

2019-12-17 Thread Marcus Denker
A regular chat about Pharo. Topic: “Working with Spec2 and GTK” https://association.pharo.org/event-3419547 There is a Discord channel where everything else will be organised (e.g. youtube life streaming if needed).

[Pharo-users] Printer device communications

2019-12-17 Thread dario.trussardi65
Ciao, i have to manage bidirectional communications with a printing device. For now from Pharo i open a TCP-IP connection on the device that acts as a server. So from the program ( client ) i manage the synchronous transmission and reception of the various commands to the device an

Re: [Pharo-users] Printer device communications

2019-12-17 Thread Noury Bouraqadi
Hi Dario, I suggest you use socket stream and more specifically the ZdcSocketStream class. Socket is too low level, and web socket is for communications over HTTP. Noury > On 17 Dec 2019, at 13:20, dario.trussardi65 > wrote: > > Ciao, > > i have to manage bidirectional communications with a

Re: [Pharo-users] [Pharo-dev] TaskIt

2019-12-17 Thread Torsten Bergmann
Santiago wrote: >What if we have links to all the groups in Pharo-project (pharo-misc, >pharo-processing, pharo-robotics, pharo-web) ? I can do the firsts steps if >we agree in here. Hi Santiago, yes - we should link the groups from the main "pharo-project" so they are easier to find. Here are t

[Pharo-users] how can I this refractor this so its more smalltalk

2019-12-17 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, My solution to day2 part1 is right this : processData: instructions     | opcode index firstNumber secondNumber placeToPut firstNumberIndex secondNumberIndex |     index := 1.     opcode := instructions at: index.     [ opcode ~= 99 ]         whileTrue: [ firstNumb

Re: [Pharo-users] how can I this refractor this so its more smalltalk

2019-12-17 Thread Kasper Osterbye
Hi Roelof I saw your posts earlier, and will try to take a look. I am not into the advent of code myself, but love a good puzzle. Would it be possible to provide a link to the puzzle you are trying to solve?

Re: [Pharo-users] how can I this refractor this so its more smalltalk

2019-12-17 Thread Roelof Wobben via Pharo-users
--- Begin Message --- of course but you have to use a githut account to reach it. All the puzzles can be found here :  https://adventofcode.com/ I try to solve day2 and then part1. Roelof Op 17-12-2019 om 18:33 schreef Kas

Re: [Pharo-users] how can I this refractor this so its more smalltalk

2019-12-17 Thread Todd Blanchard via Pharo-users
--- Begin Message --- Well my main run method looks like this: run | op | ram := self input. in := ReadStream on: ram. [ (op := in next) = 99 ] whileFalse: [ self processOpcode: op ]. ^self at: 0. ram is the array of integers. in is a ReadStream on them whi

Re: [Pharo-users] [Pharo-dev] TaskIt

2019-12-17 Thread Esteban Lorenzano
> On 17 Dec 2019, at 15:38, Torsten Bergmann wrote: > > Santiago wrote: >> What if we have links to all the groups in Pharo-project (pharo-misc, >> pharo-processing, pharo-robotics, pharo-web) ? I can do the firsts steps if >> we agree in here. > > Hi Santiago, > > yes - we should link the g

Re: [Pharo-users] how can I this refractor this so its more smalltalk

2019-12-17 Thread Ben Coman
Apart from using streams, part of making code less ugly is splitting it up its separate aaspects. One way it to to do as little as possible within your loop. See how Todd only does one thing within his loop. Apart from looking nicer, doing so improves how you "think" about the problem. cheers -be

Re: [Pharo-users] TaskIt

2019-12-17 Thread Ben Coman
On Mon, 16 Dec 2019 at 18:41, Santiago Bragagnolo < santiagobragagn...@gmail.com> wrote: > Hi everybody! >We are starting to discuss with norbert about letting taskit to leave > my incubator (my github account to go elsewhere). I have being thinking > about it since long time, since i would li

[Pharo-users] Localization of Months and Day names

2019-12-17 Thread Esteban Maringolo
What is the "official way" (if any) to localize the printing of Date Month and Day names? I saw there is a Locale class, but neither the primLongDateFormat and primShortDateFormat have any senders, so if they're used, it's not through message sends. Regards! Esteban A. Maringolo

Re: [Pharo-users] Localization of Months and Day names

2019-12-17 Thread Sven Van Caekenberghe
I don't know, Locale is not a very useful class. You might want to have a look at ZTimestampFormat, part of https://github.com/svenvc/ztimestamp (ZTimestampFormat fromString: 'SATURDAY, FEBRUARY 03 2001 (16:05:06)') french; format: DateAndTime now. "'MECREDI, DÉCEMBRE 1