Re: [Pharo-users] Websocket features

2018-02-09 Thread Stephane Ducasse
Yes synectique uses them heavily.

On Fri, Feb 9, 2018 at 7:47 AM, Sven Van Caekenberghe  wrote:
> Ben,
>
>> On 9 Feb 2018, at 04:17, Ben Coman  wrote:
>>
>> @Sven,
>>
>> I'm new to websockets and don't properly grok all the features in columns 
>> here...
>> https://en.wikipedia.org/wiki/Comparison_of_WebSocket_implementations
>>
>> but could you comment on which are provided by Zinc Websockets?
>>
>> cheers -ben
>
> I would say all of them. ZnWebSockets is a complete/compliant RFC 6455 
> implementation.
>
> https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/WebSockets/WebSockets.html
>
> https://github.com/svenvc/docs/blob/master/zinc/zinc-websockets-paper.md 
> [older]
>
> http://websocket.stfx.eu/ [live demo]
>
> It has been used successfully by many people before.
>
> Sven
>
>
>



Re: [Pharo-users] Pillar Re: Neural Network - Handwritten Digit Recognition

2018-02-09 Thread Stephane Ducasse
you can change the size of the image using |width=60| it is expression
is given in %
I fixed it. I will read it and give you feedback.
Now I just skimmed throw it and I would
- structure the text with some sections like setup, importing,
computing, rendering, conclusions
- then I would turn the large roassal script in a tiny and beautiful class

Stef

On Sat, Feb 10, 2018 at 2:35 AM, Pierce Ng  wrote:
> On Thu, Feb 08, 2018 at 07:42:09PM +0800, Pierce Ng wrote:
>> On Wed, Feb 07, 2018 at 08:24:29PM +0100, Stephane Ducasse wrote:
>> > Here is the link 
>> > https://github.com/SquareBracketAssociates/Booklet-IA-Neurons
>> > I can give you commit rights.
>>
>> My Github username is PierceNg. Thank you.
>
> Stef, thanks for adding me to the repo. I've plugged my blog post in as 
> chapter
> 1.
>
> On Pillar, I see that the generated PDF shows the array inspector screenshot 
> as
> an outsized image. What's the best practice on sizing images?
>
> Anyhow, I've set up Docker with the texlive:pillar image and just did a
> successful test run. I can now experiment with agility. :-)
>
> Pierce
>



[Pharo-users] Pillar Re: Neural Network - Handwritten Digit Recognition

2018-02-09 Thread Pierce Ng
On Thu, Feb 08, 2018 at 07:42:09PM +0800, Pierce Ng wrote:
> On Wed, Feb 07, 2018 at 08:24:29PM +0100, Stephane Ducasse wrote:
> > Here is the link 
> > https://github.com/SquareBracketAssociates/Booklet-IA-Neurons
> > I can give you commit rights.
> 
> My Github username is PierceNg. Thank you.

Stef, thanks for adding me to the repo. I've plugged my blog post in as chapter
1.

On Pillar, I see that the generated PDF shows the array inspector screenshot as
an outsized image. What's the best practice on sizing images?

Anyhow, I've set up Docker with the texlive:pillar image and just did a
successful test run. I can now experiment with agility. :-)

Pierce



Re: [Pharo-users] Roassal to ODG

2018-02-09 Thread Peter Uhnák
There is SVG exporter.

I've never heard about ODG, is it commonly used outside of OpenOffice
itself?

Peter

On Fri, Feb 9, 2018 at 9:29 PM, Stephane Ducasse 
wrote:

> Hi Arturo
>
> I have no idea about the answer. But hello from snowy France :)
>
> Stef
>
> On Fri, Feb 9, 2018 at 6:49 PM, Arturo Zambrano
>  wrote:
> > Hi all,
> >  Is there any project for exporting Roassal to ODG (vector graphic format
> > from open document format standard)? The closest thing I could find is
> > RTPDFExporter (the generated PDF can be opened using (Libre/S/G)Office
> > suite).
> >
> > If there no such exporter, how difficult should it  be to build one,
> > compared to RTPDFExporter?
> >
> >  TIA
> > Arturo
>
>


Re: [Pharo-users] Roassal to ODG

2018-02-09 Thread Stephane Ducasse
Hi Arturo

I have no idea about the answer. But hello from snowy France :)

Stef

On Fri, Feb 9, 2018 at 6:49 PM, Arturo Zambrano
 wrote:
> Hi all,
>  Is there any project for exporting Roassal to ODG (vector graphic format
> from open document format standard)? The closest thing I could find is
> RTPDFExporter (the generated PDF can be opened using (Libre/S/G)Office
> suite).
>
> If there no such exporter, how difficult should it  be to build one,
> compared to RTPDFExporter?
>
>  TIA
> Arturo



[Pharo-users] cancel changes in Nautilus broken on 6.1?

2018-02-09 Thread Siemen Baader
Hi all,

I downloaded Pharo 6.1 for OSX and whenever I revert changes in Nautilus
with CMD-L, the content is reverted and the orange dirty marker triangle
disappears. But when I switch to a different method, Nautilus shows the
'Content has been modified. What do you want to do?' dialog, as it only
should when content is actually different.

I use this all the time, I can't imagine I'm the only one, but I couldn't
find the problem mentioned anywhere. Does anyone else have it? What to do?

-- Siemen


[Pharo-users] Roassal to ODG

2018-02-09 Thread Arturo Zambrano
Hi all,
 Is there any project for exporting Roassal to ODG (vector graphic format
from open document format standard)? The closest thing I could find is
RTPDFExporter (the generated PDF can be opened using (Libre/S/G)Office
suite).

If there no such exporter, how difficult should it  be to build one,
compared to RTPDFExporter?

 TIA
Arturo


Re: [Pharo-users] Generate equality

2018-02-09 Thread Denis Kudriashov
I will add it to Calypso.
I use it often.

2018-02-08 17:23 GMT+03:00 Herbert Vojčík :

>
> Stephane Ducasse wrote:
>
>> http://smalltalkhub.com/#!/~CAR/ReusableBricks/packages/Equals
>>
>
> Ah. It uses trait that does it dynamically.
>
> Good to know, usable for some more dynamic scenarios; but here I wanted
> something more explicit a la existing "generate xxx", so I went for
> Alistair's suggestion, so it was just a matter of Playground and:
>
> (RBGenerateEqualHashRefactoring className: PharktSymbol variables:
> #(baseAsset quoteAsset)) execute
>
> Thanks.
>
> (btw, it would be nice if that was actually in a menu; but if Nautilus if
> phased out, at least in Calypso in Pharo 7 :-) )
>
> Herby
>
>
> On Thu, Feb 8, 2018 at 12:47 PM, Herbert Vojčík  wrote:
>>
>>>
>>> Alistair Grant wrote:
>>>
 Hi Herby,

 On 8 February 2018 at 03:10, Herbert Vojčík   wrote:

> 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.
>

 The refactoring browser is already capable of generating #= and #hash:

>>>
>>> Now somebody tell me it actually is there in the Nautilus menu, I just
>>> did
>>> not find it. Which would be the best outcome, save making myself
>>> ridiculous
>>> online... :-)
>>>
>>>
>>> | r |

 r := RBGenerateEqualHashRefactoring
   className: MyClass
   variables: #(vars which should be used in equal and hash).
 r execute


 HTH,
 Alistair


>>
>


Re: [Pharo-users] How to have an in-image map (morph/spec/brick) showing a gps location

2018-02-09 Thread Cédrick Béler
Thanks all,

I’ll give a try to roassal so. 

Cheers,

Cedrick

> Le 9 févr. 2018 à 08:59, Thierry Goubier  a écrit :
> 
> 2018-02-09 7:50 GMT+01:00 Sven Van Caekenberghe :
>> 
>> 
>>> On 9 Feb 2018, at 06:40, Thierry Goubier  wrote:
>>> 
>>> Le 09/02/2018 à 00:46, Arturo Zambrano a écrit :
 I used Roassal + OSM and worked perfectly (2 year ago at least). Although 
 I think there is no support for something like a tiles cache.
>>> 
>>> We did the OSM support with an in-image tiles cache, but limited to the 
>>> current map section being viewed.
>>> 
>>> It would be easy to add an on-disk cache to that code.
>>> 
>>> Thierry
>>> 
 On Thu, Feb 8, 2018 at 7:46 AM, Cédrick Béler > wrote:
   Hello,
   I would like to have a representation of a map in the image to show
   (my) GPS coordinates.
   I haven’t really tried nor searched yet but I’ve seen Roassal
   examples that could do the job, especially the Open Street Map
   integration.
   So does people here have advices on how to to that (having a morph
   that shows a map and positions) ?
   Ideally I would like to have it work offline (meaning I download
   first tiles…or a vectorized map would do the job too).
   TIA,
   Cédrick
>> 
>> Thierry,
>> 
>> Where are the load instructions ? Does it still work for Pharo 7 ?
> 
> It should still be part of Roassal, with some issues with the data
> sources used to retrieve cities coordinates (they went offline!).
> 
> I haven't started working with Pharo 7 yet, so I can't say.
> 
> Thierry
> 
>> Sven
>> 
>> 
> 



Re: [Pharo-users] How to have an in-image map (morph/spec/brick) showing a gps location

2018-02-09 Thread Thierry Goubier
2018-02-09 7:50 GMT+01:00 Sven Van Caekenberghe :
>
>
>> On 9 Feb 2018, at 06:40, Thierry Goubier  wrote:
>>
>> Le 09/02/2018 à 00:46, Arturo Zambrano a écrit :
>>> I used Roassal + OSM and worked perfectly (2 year ago at least). Although I 
>>> think there is no support for something like a tiles cache.
>>
>> We did the OSM support with an in-image tiles cache, but limited to the 
>> current map section being viewed.
>>
>> It would be easy to add an on-disk cache to that code.
>>
>> Thierry
>>
>>> On Thu, Feb 8, 2018 at 7:46 AM, Cédrick Béler >> > wrote:
>>>Hello,
>>>I would like to have a representation of a map in the image to show
>>>(my) GPS coordinates.
>>>I haven’t really tried nor searched yet but I’ve seen Roassal
>>>examples that could do the job, especially the Open Street Map
>>>integration.
>>>So does people here have advices on how to to that (having a morph
>>>that shows a map and positions) ?
>>>Ideally I would like to have it work offline (meaning I download
>>>first tiles…or a vectorized map would do the job too).
>>>TIA,
>>>Cédrick
>
> Thierry,
>
> Where are the load instructions ? Does it still work for Pharo 7 ?

It should still be part of Roassal, with some issues with the data
sources used to retrieve cities coordinates (they went offline!).

I haven't started working with Pharo 7 yet, so I can't say.

Thierry

> Sven
>
>