~sbinet

France

Particle physicist turned software engineer

~sbinet/go-hep

Last active 15 days ago

~sbinet/star-tex

Last active 10 months ago

~sbinet/vgogh

Last active 1 year, 3 months ago

~sbinet/star-tex-patches

Last active 2 years ago
View more

Recent activity

[PATCH go-scfg] scfg: add Encoder and Write 8 days ago

From Sebastien Binet to ~emersion/public-inbox

Signed-off-by: Sebastien Binet <s@sbinet.org>
---
 marshal.go      | 107 ++++++++++++++++++++++++++++++++++++++++++++++++
 marshal_test.go |  94 ++++++++++++++++++++++++++++++++++++++++++
 writer.go       |  10 +++++
 3 files changed, 211 insertions(+)
 create mode 100644 marshal.go
 create mode 100644 marshal_test.go
 create mode 100644 writer.go

diff --git a/marshal.go b/marshal.go
new file mode 100644
index 0000000..5b661e9
--- /dev/null
[message trimmed]

Re: Replying to HTML-only emails 2 months ago

From Sebastien Binet to ~rjarry/aerc-discuss

On Fri Jul 14, 2023 at 22:25 CET, Bence Ferdinandy wrote:
>
> On Fri Jul 14, 2023 at 21:58, Vitaly Ovchinnikov wrote:
> > When replying to HTML-only email (e.g. containing only text/html part)
> > with quoting, the HTML content is quoted as is and the filter (if any)
> > is ignored.
> >
> > So in preview I have a text representation of HTML content made with a
> > filter, but once I reply the message, I get a ton of HTML tags added
> > which I have to clean up manually.
>
> You need to change your reply template:
> https://github.com/ferdinandyb/dotfiles/blob/eb8eda113fd002f5a004e50f99f9619720b8a059/.config/aerc/templates/quoted_reply#L5

Re: [PATCH gio 3/3] internal/stroke: optimize SplitCubic 2 months ago

From Sebastien Binet to ~eliasnaur/gio-patches

On Tue Jun 27, 2023 at 10:44 CET, ~egonelbre wrote:
> From: Egon Elbre <egonelbre@gmail.com>
>
> │ sec/op │ sec/op vs base │
> SplitCubic/4-10 37.36n ± 0% 36.16n ± 0% -3.21% (p=0.000 n=10)
> SplitCubic/8-10 74.53n ± 0% 72.21n ± 0% -3.12% (p=0.000 n=10)
> SplitCubic/16-10 149.3n ± 1% 144.5n ± 0% -3.22% (p=0.000 n=10)
> SplitCubic/33-10 340.1n ± 0% 334.4n ± 0% -1.65% (p=0.000 n=10)
>
> Signed-off-by: Egon Elbre <egonelbre@gmail.com>
> ---
> internal/stroke/stroke.go | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>

Re: message body displayed at bottom of UI 4 months ago

From Sebastien Binet to ~rjarry/aerc-devel

On Wed May 10, 2023 at 13:18 CET, Tim Culverhouse wrote:
> On Wed May 10, 2023 at 3:42 AM CDT, Moritz Poldrack wrote:
> > What's your Pager set to?
> >
> > I think staceee on IRC found that `less +Gg` works. They also found that
> > there's a switch for less that disables paging if the content is too
> > short.
>
> staceee later mentioned 'less -Rc', which I find slightly nicer.
>
> BTW this is happening because the terminal is functioning properly now.
> If you run 'less' on a small file in the terminal, it will show the same
> behavior.
>

message body displayed at bottom of UI 4 months ago

From Sebastien Binet to ~rjarry/aerc-devel

hi there,

recently (I noticed it on Tuesday, back from the long week-end), aerc
has been displaying the message bodies (in the account view with :split
and in the message view) at the bottom of the pane:

https://drop.chapril.org/download/45a584bccf170061/#7eMk1pzddUgmnxZLuUCsUw
(link valid for 5 days)

when I resize the terminal holding aerc, the message body is moved back
up (as seen in the second screenshot).

I tried to bisect it in aerc, but it does not seem to be related to
changes in aerc proper (I went from 3c1703f back to b756cf3).

Re: screenshots and reproductibility 4 months ago

From Sebastien Binet to ~eliasnaur/gio

On Tue May 2, 2023 at 20:35 CET, Sebastien Binet wrote:
> On Tue May 2, 2023 at 20:31 CET, Elias Naur wrote:
> > On Tue, 2 May 2023 at 12:27, Sebastien Binet <s@sbinet.org> wrote:
> > >
> > > hi there,
> > >
> > > last question on my path to updating gonum/plot to the latest Gio
> > > version.
> > >
> > > how stable is the result of gpu/headless.Window.Screenshot ?
> > >
> > > up to now, we were using it like so:
> > >
> > > https://github.com/gonum/plot/blob/78cf2c9de82f73a249d8104a76e401706c9b34fb/vg/vggio/vggio.go#L128..L149

Re: screenshots and reproductibility 4 months ago

From Sebastien Binet to ~eliasnaur/gio

On Tue May 2, 2023 at 20:31 CET, Elias Naur wrote:
> On Tue, 2 May 2023 at 12:27, Sebastien Binet <s@sbinet.org> wrote:
> >
> > hi there,
> >
> > last question on my path to updating gonum/plot to the latest Gio
> > version.
> >
> > how stable is the result of gpu/headless.Window.Screenshot ?
> >
> > up to now, we were using it like so:
> >
> > https://github.com/gonum/plot/blob/78cf2c9de82f73a249d8104a76e401706c9b34fb/vg/vggio/vggio.go#L128..L149
> >

screenshots and reproductibility 4 months ago

From Sebastien Binet to ~eliasnaur/gio

hi there,

last question on my path to updating gonum/plot to the latest Gio
version.

how stable is the result of gpu/headless.Window.Screenshot ?

up to now, we were using it like so:

https://github.com/gonum/plot/blob/78cf2c9de82f73a249d8104a76e401706c9b34fb/vg/vggio/vggio.go#L128..L149

(mainly for CI and tests)

at some point (4 months ago), while still using our old Gio revision,

Re: blurry image w/ latest Gio 4 months ago

From Sebastien Binet to ~eliasnaur/gio

Chris,

On Tue May 2, 2023 at 14:42 CET, Chris Waldon wrote:
> Hi Sebastien,
>
> > I was able to reproduce the behaviour I noticed in gonum/plot:
> > - with the old API, the image would be rescaled w/o any noticeable blur,
> > - with the new API, the image would be rescaled with a very noticeable
> >   blur.
> > (in both cases, the image [1] is a 1500x1500 PNG image, scaled down to a
> > 300x300 image)
> >
> > as can be seen, nothing changed in the gioCanvas.Image(...) code:
>

Re: blurry image w/ latest Gio 4 months ago

From Sebastien Binet to ~eliasnaur/gio

On Fri Apr 28, 2023 at 12:36 CET, Sebastien Binet wrote:
> hi there,
>
> another prong in my path to upgrading to the latest Gio release.
>
> in gonum/plot, we have the ability to insert an image.Image inside a
> plot.
>
> with the latest Gio release (bba91263b077), it seems I am getting a
> blurry image
> (see the general aspect of the Gopher, as well as the vertical bars of
> the "matrix"):
>
> https://raw.githubusercontent.com/gonum/plot/f66389509686e702904a4650a395b12b84f5f90c/vg/vggio/testdata/image_golden.png