~devrtz

Recent activity

[PATCH 2/2] Make GtkLabels selectable 2 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

This allows copy and pasting from the UI.
---
 src/pages.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pages.py b/src/pages.py
index 2475553..b2f5d87 100644
--- a/src/pages.py
+++ b/src/pages.py
@@ -203,6 +203,7 @@ class ConferencePage(BasePage):
        LBL_PROPS = {
            'justify': Gtk.Justification.CENTER,
            'halign' : Gtk.Align.CENTER, 
            'selectable' : True,
[message trimmed]

[PATCH 1/2] Don't track visited links in GtkLabel 2 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

Visited links might get mistaken for underlined text,
so disable tracking visiting links.
---
 src/pages.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pages.py b/src/pages.py
index be772f5..2475553 100644
--- a/src/pages.py
+++ b/src/pages.py
@@ -203,6 +203,7 @@ class ConferencePage(BasePage):
        LBL_PROPS = {
            'justify': Gtk.Justification.CENTER,
            'halign' : Gtk.Align.CENTER,
[message trimmed]

[PATCH v3] Convert markdown links to html hyperlinks 2 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

The following is an example of the regex:

>>> orig
'some text about [debian](https://debian.org "woohoo") yay!'
>>> re.sub("\[([^]]+?)\]\(([^)\s]+?)(?:\s.*?)?\)", r'<a href="\2">\1</a>', orig)
'some text about <a href="https://debian.org">debian</a> yay!'

Closes #19
---
 src/pages.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/pages.py b/src/pages.py
index be772f5..caa4932 100644
[message trimmed]

Re: [PATCH v2] Convert markdown links to html hyperlinks 2 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

please disregard the previous email,
I'm having a hard time with specifying the right commit :o

On Thu, 2022-07-21 at 22:51 +0200, Evangelos Ribeiro Tzaras wrote:
> The following is an example of the regex:
> 
> > > > orig='some text about [debian](https://debian.org "woohoo")
> > > > yay!'
> > > > re.sub("\[([^]]+?)\]\(([^)\s]+?).*?\)", r'<a href="\2">\1</a>',
> > > > orig)
> 'some text about <a href="h">debian</a> yay!'
> 
> Closes #19
> ---

[PATCH v2] Convert markdown links to html hyperlinks 2 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

The following is an example of the regex:

>>> orig='some text about [debian](https://debian.org "woohoo") yay!'
>>> re.sub("\[([^]]+?)\]\(([^)\s]+?).*?\)", r'<a href="\2">\1</a>', orig)
'some text about <a href="h">debian</a> yay!'

Closes #19
---
 src/pages.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/pages.py b/src/pages.py
index be772f5..caa4932 100644
--- a/src/pages.py
[message trimmed]

Re: [PATCH] Convert markdown links to html hyperlinks 2 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

Nvm,

the links are actually broken currently

expect a v2 soon.

On Wed, 2022-07-20 at 15:42 +0200, Evangelos Ribeiro Tzaras wrote:
> The following is an example of the regex:
> 
> > > > orig='some text about [debian](https://debian.org "woohoo")
> > > > yay!'
> > > > re.sub("\[([^]]+?)\]\(([^)\s]+?).*?\)", r'<a href="\2">\1</a>',
> > > > orig)
> 'some text about <a href="h">debian</a> yay!'

[PATCH] Convert markdown links to html hyperlinks 2 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

The following is an example of the regex:

>>> orig='some text about [debian](https://debian.org "woohoo") yay!'
>>> re.sub("\[([^]]+?)\]\(([^)\s]+?).*?\)", r'<a href="\2">\1</a>', orig)
'some text about <a href="h">debian</a> yay!'

Closes #19
---
 src/pages.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/pages.py b/src/pages.py
index be772f5..46dce9e 100644
--- a/src/pages.py
[message trimmed]

[PATCH v4] Fix division by zero for events with zero duration 1 year, 3 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

When a event has duration zero because the start and end times are identical,
ZeroDivisionError's are raised:

```
Traceback (most recent call last):
  File "/home/fortysixandtwo/install/lib/python3.9/site-packages/confy/widgets.py", line 130, in _on_draw
    prc = min(max(pos/dur, 0.0), 1.0)
ZeroDivisionError: float division by zero
```

This patch ensures that prc is either 0 if the event is in the future
or 1, if it's in the past.

Closes #18
[message trimmed]

Re: [PATCH v3] Fix division by zero for events with zero duration 1 year, 3 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

Hi,

On Mon, 2021-06-14 at 08:23 +0200, Fabio wrote:
> 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)

Re: [PATCH v2] Fix division by zero for events with zero duration 1 year, 3 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

Looks, like I didn't reply to the mailinglist, sorry for the noise!

On Mon, 2021-06-14 at 02:18 +0200, Evangelos Ribeiro Tzaras wrote:
> Hi,
> On Sun, 2021-06-13 at 16:32 +0200, Fabio wrote:
> > 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)