Re: [Pharo-users] Moving/rolling average implementations ?

2020-04-08 Thread Richard O'Keefe
I note that "self species ofSize: n" is not generally a good idea. Consider ByteArray, ShortIntegerArray, WordArray. Computing rolling means of these is perfectly sensible, but the results will not fit into an array of the same species. I'd stick with Array. The suggestion about subtracting an

Re: [Pharo-users] Can't able to understand the code

2020-04-08 Thread Renaud de Villemeur via Pharo-users
--- Begin Message --- Hi I'm not a FFI expert, and you code may not be the latest FFI version. However, If I look at it from Pharo side: When you want to use Athens with Cairo backend, you have to initialize its surface using a call like: surface := AthensCairoSurface extent: self extent Note

Re: [Pharo-users] [Pharo-dev] Cover for PBE8

2020-04-08 Thread Hilaire
Nice Le 07/04/2020 à 14:31, Cédrick Béler a écrit : I searched for free picture around the words lighthouse and/or (mosaic patchwork painter…). -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] [Pharo-dev] Cover for PBE8

2020-04-08 Thread Alexandre Bergel via Pharo-users
--- Begin Message --- I like the mosaic Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > On Apr 7, 2020, at 8:31 AM, Cédrick Béler wrote: > > Just a try. > > I searched for free picture

[Pharo-users] [ANN] RewriteTool has successfully ported to Spec2

2020-04-08 Thread stephan
Thanks. I've done a PR and also one in Matchtool Stephan

Re: [Pharo-users] [Pharo-dev] Cover for PBE8

2020-04-08 Thread Richard O'Keefe
Speaking of PBE8, the draft I downloaded still mentions SkipList in the Collections chapter. On Tue, 7 Apr 2020 at 22:25, Sven Van Caekenberghe wrote: > > Not bad at all, made me smile. > > > On 7 Apr 2020, at 12:21, Nicolas Anquetil wrote: > > > > > > :-) > > > > > > > > > > On Tue, 2020-04-07

Re: [Pharo-users] Automation of MS Office from Pharo

2020-04-08 Thread PBKResearch
Hello Pablo Success! I have rerun one of the troublesome cases, with no problem. I then re-ran the test on the latest 16 messages, collecting all the HTML outputs in an array, which took just over 5 secs total; quicker than I expected. The longest texts, from the most verbose newsletters, run

Re: [Pharo-users] Moving/rolling average implementations ?

2020-04-08 Thread Christian Haider
Hi Cédrick, for smallCharts, I had to implement the same, but for stock market time series, which are a bit bigger than your example (like creating a 38 day moving average over 5 years). Always copying the values to average is far too slow in this case. My solution is to add up the

Re: [Pharo-users] Automation of MS Office from Pharo

2020-04-08 Thread Guillermo Polito
Cool, thanks to the three :) @Peter, I’d like if you tell us at the end if you had success at automating you mail workflow ^^ > El 8 abr 2020, a las 10:15, Tomaž Turk escribió: > > Thanks Pablo for your quick response! I tested 32 and 64 bit images with > >1.000.000 strings and it works just

Re: [Pharo-users] Automation of MS Office from Pharo

2020-04-08 Thread Tomaž Turk
Thanks Pablo for your quick response! I tested 32 and 64 bit images with >1.000.000 strings and it works just fine. Best wishes, Tomaz -- Original Message -- From: "teso...@gmail.com" To: "Any question about pharo is welcome" Cc: "Tomaž Turk" Sent: 8.4.2020 9:54:35 Subject: Re:

[Pharo-users] Moving/rolling average implementations ?

2020-04-08 Thread Cédrick Béler
Hi, I wanted to do a moving/rolling average on raw data [1]. I haven’t find code for that (maybe this is done in polymath though). So I ended writing that (I thing this is SMA): SequenceableCollection>>movingAverage: anOrder "Answer the moving or rolling average for anOrder window" |

Re: [Pharo-users] Automation of MS Office from Pharo

2020-04-08 Thread teso...@gmail.com
Hi!!! This was a great report. I have submitted a fix in the master of Pharo-COM. Basically the problem was to free twice the BSTR in the Variant. It was being free in the access to the value and in the free of the struct. Why it works with other BSTR when they are smaller, I cannot know. I

Re: [Pharo-users] Automation of MS Office from Pharo

2020-04-08 Thread PBKResearch
Tomaz, that was my understanding from the VBA piece you cited yesterday. So presumably it must be something in Pharo-Com which imposes the limits we have seen. I am OK at the moment, because all this work is just an exploration of possibilities; I can wait until you and Pablo have sorted it

Re: [Pharo-users] Can't able to understand the code

2020-04-08 Thread Guillermo Polito
Hi Shawon, where did you get the docs? Have you tried the latest version (january/february this year) http://books.pharo.org/booklet-uffi/ ? > El 8 abr 2020, a las 4:44, shawon58 escribió: > > actually i am just exploring UFFI from the pdf "Calling

Re: [Pharo-users] Automation of MS Office from Pharo

2020-04-08 Thread Tomaž Turk
Thanks, Stephane, for the acknowledgement. Peter, as I understand, the limits in COM BSTR data type are defined by the header's length prefix (which is 4 bytes) and software implementatios - for instance, string data type in Visual Basic for Applications is described as "a variable-length