~fabrixxm

~fabrixxm/confy-dev

Last active 7 days ago

~fabrixxm/lesanaweb-dev

Last active 5 months ago

~fabrixxm/public-inbox

Last active 7 months ago
View more

Recent activity

Re: [PATCH v3] Fix division by zero for events with zero duration 7 days ago

From Fabio to ~fabrixxm/confy-dev

Il giorno lun, 14/06/2021 alle 02.18 +0200, Evangelos Ribeiro Tzaras ha
scritto:
> --- a/src/pages.py
> +++ b/src/pages.py
> @@ -506,8 +506,14 @@ class EventDetailPage(BasePage):
>          w = self.get_allocated_width()
>  
>          dur = (obj.end.timestamp() - obj.start.timestamp())
> -        pos = (now.timestamp() - obj.start.timestamp())
> -        prc = min(max(pos/dur, 0.0), 1.0)
> +        if dur > 0:
> +            pos = (now.timestamp() - obj.start.timestamp())

If you move pos inside this branch...

Re: [PATCH v2] Fix division by zero for events with zero duration 8 days ago

From Fabio to ~fabrixxm/confy-dev

Il giorno dom, 13/06/2021 alle 02.38 +0200, Evangelos Ribeiro Tzaras ha
scritto:
> 
> +        prc = min(max(pos/dur, 0.0), 1.0) if dur > 0 else int(pos >=
> 0)

While it's correct (and more correct than the code I was writting to
fix this), it's a little to difficult to read.
I would prefer an explicit if/else, with some comments, something like

```
if dur > 0:
	prc = min(max(pos/dur, 0.0), 1.0)
else:

Re: [PATCH] Whitespace cleanups 8 days ago

From Fabio to ~fabrixxm/confy-dev

Merged,

thought I'm not so strict with whitespaces :)

Conf 0.6.0 released 9 days ago

From Fabio to ~fabrixxm/confy-dev

Confy 0.6.0 has been released

see changes here https://git.sr.ht/~fabrixxm/confy/refs/0.6.0

ArchLinux AUR package is updated
https://aur.archlinux.org/packages/confy/

Flatpak package is scheduled
https://flathub.org/apps/details/net.kirgroup.confy

Re: [PATCH] Modify primary menu to better fit GNOME guidelines a month ago

From Fabio to ~fabrixxm/confy-dev

Il 07/05/21 16:45, Sebastian Crane ha scritto:
> - Remove 'Quit' item
> - Move 'Keyboard shortcuts' item to below 'Preferences' item
> 
> Please see https://developer.gnome.org/hig/stable/primary-menus.html
> for the relevant GNOME design guidelines.

Thank you Sebastian!

I'll merge this patch as soon as possible 👍

Re: [PATCH] Move 'star event' button to end of event widget a month ago

From Fabio to ~fabrixxm/confy-dev

Hi Sebastian


Thank you for your patch,

your reasoning about primary and secondary actions sounds very correct (and looks like 100% of the users interviewed agree :) )

Unfortunately some days ago my laptop died, so I can't test and merge right now.


Thinking about this, I could try to setup the dev env on the pinephone directly... mmmh...

Confy 0.5.5 2 months ago

From Fabio to ~fabrixxm/confy-dev

Confy 0.5.5 has been tagged.

It's a small change I had around for a while, I thought it was time to 
release: when possible, urls are opened with default application for 
file type instead always the browser: this means that videos will be 
played by your preferred video player, which is a nice thing to have 
while browsing archived FOSDEM talks :)

Flatpak update has been pushed also.

Arch Linux AUR package 3 months ago

From Fabio to ~valhalla/lesana-discuss

Hi

lesana is now available on Arch Linux via AUR

https://aur.archlinux.org/packages/lesana/

:)