~qeef

~qeef/mapathoner

Last active 2 months ago

~qeef/gen-sdf

Last active 2 months ago

~qeef/damn-project

Last active 6 months ago

~qeef/damn-dev

Last active 2 years ago

~qeef/public-inbox

Last active 2 years ago
View more

Recent activity

Re: Which files should be included in the repo to generate the webpage for srht.site 6 days ago

From Jiri Vlasak to ~sircmpwn/sr.ht-discuss

> You could add a build manifest to generate and publish the web pages via
> builds.sr.ht every time you push changes to the repo, take this example:
> 
>     https://git.sr.ht/~sircmpwn/pages.sr.ht-examples/tree/master/item/hugo.yml

Please, note that acurl is deprecated. It is recommended to use hut
instead:

	https://srht.site/quickstart

It simplifies things as you don't need to create the archive, see the
doc:

	https://git.sr.ht/~emersion/hut/tree/master/item/doc/hut.1.scd

Re: Visually differentiate between main project page and git/lists/etc a month ago

From Jiri Vlasak to ~sircmpwn/sr.ht-discuss

> Or something else to make it more obvious that I actually landed on
> some different page?

It's small detail, but the selected "subpage" (like git, builds, todo,
lists, etc...) is black instead of gray at the top of the page.

If nothing is black, it's projects hub page.

idea on how to solve click building 2 months ago

From Jiri Vlasak to ~qeef/mapathoner

Click building is a potential feature for the mapathoner plugin that
creates rounded or squared building based on the background imagery when
clicked to the middle of the building.

I somewhere read about "coloring book formulated as multiway cut
problem" and was wondering if that approach could be used for the click
building feature?

[PATCH bare-py 5/5] Extend varint tests with data from RFC's appendix 4 months ago

From Jiri Vlasak to ~martijnbraam/public-inbox

---
 bare/test_varint.py | 42 ++++++++++++++++++++++++++++++++++--------
 1 file changed, 34 insertions(+), 8 deletions(-)

diff --git a/bare/test_varint.py b/bare/test_varint.py
index 61e71f9..c20d065 100644
--- a/bare/test_varint.py
@@ -8,25 +8,51 @@ from bare import _pack_varint, _unpack_varint

class Test(TestCase):
    def test__pack_varint(self):
        self.assertEqual(_pack_varint(0), b'\0', 'uint zero')
        self.assertEqual(_pack_varint(0x7F), b'\x7f', 'uint 0x7f')
[message trimmed]

[PATCH bare-py 4/5] Fix unpack varint test comment 4 months ago

From Jiri Vlasak to ~martijnbraam/public-inbox

---
 bare/test_varint.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bare/test_varint.py b/bare/test_varint.py
index d3cd034..61e71f9 100644
--- a/bare/test_varint.py
@@ -27,7 +27,7 @@ class Test(TestCase):
        self.assertEqual(_unpack_varint(b'\0', 0, signed=True)[0], 0, 'int 0')
        self.assertEqual(_unpack_varint(b'\x02', 0, signed=True)[0], 1, 'int 1')
        self.assertEqual(_unpack_varint(b'\x01', 0, signed=True)[0], -1, 'int -1')
        self.assertEqual(_unpack_varint(b'\xf1\x14', 0, signed=True)[0], -1337, 'int -1')
        self.assertEqual(_unpack_varint(b'\xf1\x14', 0, signed=True)[0], -1337, 'int -1337')
[message trimmed]

[PATCH bare-py 3/5] Compare none using "is" (accomply to PEP8) 4 months ago

From Jiri Vlasak to ~martijnbraam/public-inbox

---
 bare/test_primitives.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bare/test_primitives.py b/bare/test_primitives.py
index 620b108..b5f477e 100644
--- a/bare/test_primitives.py
@@ -155,4 +155,4 @@ class Test(TestCase):
        ast = BarePrimitive(TypeKind.Void)
        packed = _pack_primitive(ast, None)
        result = _unpack_primitive(ast, packed, 0)[0]
        assert result == None
        assert result is None
[message trimmed]

[PATCH bare-py 2/5] Remove unused import 4 months ago

From Jiri Vlasak to ~martijnbraam/public-inbox

---
 bare/test_primitives.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bare/test_primitives.py b/bare/test_primitives.py
index e18314e..620b108 100644
--- a/bare/test_primitives.py
@@ -1,7 +1,7 @@
from math import isnan
from unittest import TestCase

from hypothesis import given, note, seed
from hypothesis import given, note
[message trimmed]

[PATCH bare-py 1/5] Fix test_int typo 4 months ago

From Jiri Vlasak to ~martijnbraam/public-inbox

---
 bare/test_primitives.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bare/test_primitives.py b/bare/test_primitives.py
index 5315629..e18314e 100644
--- a/bare/test_primitives.py
@@ -81,7 +81,7 @@ class Test(TestCase):
        assert result == number

    @given(integers())
    def test_i64(self, number):
    def test_int(self, number):
[message trimmed]

Re: Manager and Josm plugin + Notes 6 months ago

From Jiri Vlasak to ~qeef/damn-project

An (a bit late) update on this.

> 1.- It´s possible to add "back link" [...]

the "get areas" link has been added to the manager [1] and the mappy [2]
clients.

> 2._ I don't know if this is impossible [...]

This was about JOSM update to include changeset URL in note comment if
feasible [3]. Thanks to the Taylor Smock it will be available in the
next JOSM version. (Even the patch is "by qeef", it is by Taylor, who
more likely get inspired by what I drafted.)

Re: Manager and Josm plugin + Notes 7 months ago

From Jiri Vlasak to ~qeef/damn-project

>1.- It´s possible to add "back link" on manager specific area to go back "manage area" list? Make sense? ( actually you click the browser back button, it´s fine for me ).


This is completely legit and makes perfect sense. I will improve the navigation for all the web clients. A link to "list of all areas" is truly missing.


>2._ I don't know if this is impossible but i'm asking anyway... My actual workflow:


I need to check the JOSM documentation and I will let you know. I will start working on both issues after the weekend.

Thank you for your ideas!