~martijnbraam

The Netherlands

https://brixit.nl/

I do computer stuff

~martijnbraam/public-inbox

Last active a month ago

~martijnbraam/openatem

Last active a month ago

~martijnbraam/pts-devel

Last active 2 months ago

~martijnbraam/pts-announce

Last active 2 months ago

~martijnbraam/boarddb

Last active 7 months ago

~martijnbraam/fathub

Last active 7 months ago

~martijnbraam/postmarketos

Last active 11 months ago

~martijnbraam/rptr-devel

Last active 1 year, 1 month ago

~martijnbraam/rptr-announce

Last active 1 year, 1 month ago

~martijnbraam/ofonoctl

Last active 2 years ago
View more

Recent activity

[PATCH pmbootstrap] README: Document git commands for setting the git-send-email defaults a month ago

From Martijn Braam to ~postmarketos/pmbootstrap-devel

It's possible to set the default To: address and subject prefix in the
git config of the local checkout. This makes the workflow a bit easier
and makes sure the subject starts with [PATCH pmbootstrap] instead of
the regular [PATCH].
---
 README.md | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/README.md b/README.md
index 005e7bc1..de3554f3 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,12 @@ Send patches via mail or web UI to
~postmarketos/pmbootstrap-devel@lists.sr.ht
[message trimmed]

Re: himitsu-keyring: Odd casing in protocol group labels a month ago

From Martijn Braam to ~martijnbraam/public-inbox

This behavior is because it's title-casing it with a few exceptions.

https://git.sr.ht/~martijnbraam/keyring/tree/master/item/himitsu_gtk/window.py#L83

I did not account for imaps vs imap here, mainly there's not really a 
spec for this part. The title casing works a lot better with everything 
that's not an acronym like the web protocol.

On 10/22/22 01:59, Hugo Osvaldo Barrera wrote:
> For some odd reason, the casing of the protocol "titles" (e.g.: the labels on
> the top of each protocol) is mixed up; the first one is shown all uppercase
> ("SMTP"), while others are title-case ("Imaps", "Smtps", etc).
>
> A screenshot might be much clearer, but emails with image/png attachment are

Re: [PATCH] Sanitize types 4 months ago

From Martijn Braam to ~calebccff/pbsplash

On 7/6/22 15:06, Caleb Connolly wrote:
>
>
> On 05/07/2022 17:10, Martijn Braam wrote:
>> Make the types for variables more consistent to limit casts. All
>> physical dimensions are floats and pixel coordinates are long except on
>> the interface with tflib which uses int.
> Out of interest, why use long for pixel coordinates instead of int? Do 
> any values get close to exceeding INT_MAX?

they don't, but on ARM int and long are both 32 bits. since most C apis 
dealing with numbers give long as result making all
the coordinates consistently long makes most of the code a bit neater. 
the (int)somelong casts are no-ops on the ARM builds when checking with

[PATCH] Sanitize types 4 months ago

From Martijn Braam to ~calebccff/pbsplash

Make the types for variables more consistent to limit casts. All
physical dimensions are floats and pixel coordinates are long except on
the interface with tflib which uses int.
---
 include/pbsplash.h |  2 +-
 src/animate.c      | 30 +++++++++------
 src/pbsplash.c     | 96 ++++++++++++++++++++++------------------------
 3 files changed, 65 insertions(+), 63 deletions(-)

diff --git a/include/pbsplash.h b/include/pbsplash.h
index b855f28..423f128 100644
--- a/include/pbsplash.h
+++ b/include/pbsplash.h
@@ -10,6 +10,6 @@ struct col {
[message trimmed]

Support the other splash screen mockups 4 months ago

From Martijn Braam to ~calebccff/pbsplash

There are boot flow mockups on 
https://gitlab.com/postmarketOS/pmaports/-/issues/1356

My proposal:

1. Add an unix socket to pbsplash that is listened on for commands while 
it's displaying the splash screen in the initfs

2. Create a pbctl utility to send messages to that socket to update the 
screen

There would be 4 different states for the UI that can be switched to 
with pbctl:

[PATCH] DPI scaling for the dots 4 months ago

From Martijn Braam to ~calebccff/pbsplash

---
Make all the dot render metrics relative to the dot size and the dot
size relative to the DPI so the dots always have a consistent physical
size.

 include/pbsplash.h |  4 ++--
 src/animate.c      | 39 ++++++++++++---------------------------
 src/pbsplash.c     |  2 +-
 3 files changed, 15 insertions(+), 30 deletions(-)

diff --git a/include/pbsplash.h b/include/pbsplash.h
index bb2ba0a..b855f28 100644
--- a/include/pbsplash.h
+++ b/include/pbsplash.h
[message trimmed]

Re: [PATCH 1/2] frontend/home: Add HTTP 404 page 7 months ago

From Martijn Braam to ~martijnbraam/boarddb

I've changed the 404 handler into a global one so it just works when you 
abort(404) anywhere :)

On 3/15/22 11:46, Raffaele Tranquillini wrote:
> Signed-off-by: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>
> ---
>   boarddb/frontend/home.py                 |  5 ++++-
>   boarddb/static/css/component/layout.less |  2 +-
>   boarddb/templates/404.html               | 10 ++++++++++
>   3 files changed, 15 insertions(+), 2 deletions(-)
>   create mode 100644 boarddb/templates/404.html
>
> diff --git a/boarddb/frontend/home.py b/boarddb/frontend/home.py
> index 5b3f942..1a7f8a2 100644

[PATCH todo.sr.ht] Remove ability to create an issue comment with only whitespace 7 months ago

From Martijn Braam to ~sircmpwn/sr.ht-dev

---
 todosrht/blueprints/ticket.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/todosrht/blueprints/ticket.py b/todosrht/blueprints/ticket.py
index b04e560..3f1bcb3 100644
--- a/todosrht/blueprints/ticket.py
+++ b/todosrht/blueprints/ticket.py
@@ -158,7 +158,7 @@ def ticket_comment_POST(owner, name, ticket_id):
    reopen = valid.optional("reopen")
    preview = valid.optional("preview")

    valid.expect(not text or 3 <= len(text) <= 16384,
    valid.expect(not text or 3 <= len(text.strip()) <= 16384,
[message trimmed]

Re: [PATCH numberstation] Improve behavior when launching multiple instances 9 months ago

From Martijn Braam to ~martijnbraam/public-inbox

This is great! Thanks, I've applied it and released 1.1.0 with this and 
your previous patch.

On 2/2/22 16:59, Kazutoshi Noguchi wrote:
> The current implementation ignores a key passed to the second instance
> and always tries to add a key passed to the first instance.
>
> This patch fixes this bug by handling arguments with GApplication.
>
> This patch also makes this app focusing the existing window instead of creating
> a new one when launching the second instance.
> ---
>   numberstation/__main__.py | 29 ++++++++++++++++++-----------
>   numberstation/window.py   | 10 ++++------

Re: [PATCH] WIP: Implement board comparison page 10 months ago

From Martijn Braam to ~martijnbraam/boarddb

Nice

On 1/21/22 13:28, Raffaele Tranquillini wrote:
> ---
>   boarddb/__init__.py                 | 18 +++++++++
>   boarddb/frontend/home.py            | 11 ++++++
>   boarddb/templates/boardcompare.html | 57 +++++++++++++++++++++++++++++
>   3 files changed, 86 insertions(+)
>   create mode 100644 boarddb/templates/boardcompare.html
>
> diff --git a/boarddb/__init__.py b/boarddb/__init__.py
> index 54f80b5..cc27208 100644
> --- a/boarddb/__init__.py
> +++ b/boarddb/__init__.py