~kmaasrud

Oslo

https://kmaasrud.com

~kmaasrud/inbox

Last active 3 months ago
View more

Recent activity

Re: setting CSP "img-src: https:;" breaks embedded images 19 days ago

From Knut Magnus Aasrud to ~sircmpwn/sr.ht-discuss

> I'm fine with allowing data: urls, can you send a patch with the
> appropriate fix?

Sure! Just sent a patch [1].

[1]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/49280

setting CSP "img-src: https:;" breaks embedded images 19 days ago

From Knut Magnus Aasrud to ~sircmpwn/sr.ht-discuss

After `aa82be3` [1], images embedded as base64 via `data:` URIs do not
work anymore. Before, `img-src` was not set, so it followed
`default-src` which includes `data:`. However, now that `img-src` is set
explicitly to only `https:`, this does not work anymore. I would assume
that `'self'` should be added as well, to have relative paths work, but
I haven't tested if that is necessary. 

Is this intentional, or can we set `img-src: 'self' https: data:;`?

[1]: https://git.sr.ht/~sircmpwn/pages.sr.ht/commit/27e1f6de8474c31f3e161ee633393c1d757878de

-- 
Knut Magnus Aasrud

[New Year's Resolutions for 2024] What an inspirational post! a month ago

From Knut Magnus Aasrud to ~glorifiedgluer/inbox

Glad to see you had a great year, and I would like to also say that I'm
impressed by all you've learned and the goals you have reached. Very
inspirational!

I might consider writing something similar myself...

-- 
Take care,
Magnus

Re: How to send mails with attachments using Himalaya 3 months ago

From Knut Magnus Aasrud to ~soywod/pimalaya

Oops, sorry about the asterisks, that was the mail client on my phone 
trying too hard 😅 Here is the example in proper plain text:

<#part filename=./path/to/attachment.png disposition=attachment 
description="This is an attachment.">
<#/part>

Re: How to send mails with attachments using Himalaya 3 months ago

From Knut Magnus Aasrud to ~soywod/pimalaya

> Is there the function of attaching files to emails in Himalaya now?

I think the main way of doing this in Himalaya now is through [mml] 
templating. I'm not sure whether the --attachment flag is removed or not, 
but templating is quite intuitive either way. Here is an example:

*<#part filename=./path/**_to_**/attachment.png disposition=attachment 
description="This is an attachment.">*
*<#/part>*

[mml]: 
https://www.gnu.org/software/emacs/manual/html_node/emacs-mime/Composing.html

Re: [You should track your finances in TOML] 3 months ago

From Knut Magnus Aasrud to ~kmaasrud/inbox

> It's an interesting idea, but I think that data entry is just too
> cumbersome compared to the ledger formats. I think it might be better 
> to
> push for each ledger-like tool to export to a common TOML format for
> other tools to ingest.

Yeah, it is quite verbose, I get that. If TOML could work as a polyglot 
format for these, that would be super cool! The community would have to 
strive towards a common standard, though, to ensure everything works well 
together.

> I'm curious to see how your tool pans out.

Me too! Its mostly a playground for experimenting right now, but I am

Re: Updated attribute on atom feed 3 months ago

From Knut Magnus Aasrud to ~kmaasrud/inbox

> Oh, sorry to not be more clear. If you go to your atom feed and search 
> for "2023-11-14T07:48:29+00:00", you will see that all your entries 
> were updated, even though not all of them have actually changed.

Shit, you are totally right! Will fix ASAP.

Thanks for _noticing!_

Re: Updated attribute on atom feed 3 months ago

From Knut Magnus Aasrud to ~kmaasrud/inbox

> I have noticed that you update all entries `updated` attribute when
> you generate your atom feed. This makes all your posts receive an
> "updated" status on some feed readers.

From [RFC 4287], it seems like the `updated` field is indeed meant to
indicate whenever a feed entry is changed, which is what the script is
picking up on with the `date -u -r <file>` command.

Are you finding that your feed reader is using the `updated` field as
the post date?

[RFC 4287]: https://www.rfc-editor.org/rfc/rfc4287#section-4.2.15

Re: CV-page is missing 3 months ago

From Knut Magnus Aasrud to ~kmaasrud/inbox

> I noticed that your CV-page is giving a 404 (both with `curl` and in
> the browser), although it is present in your Git-repo:
> https://git.sr.ht/~kmaasrud/kmaasrud.com/tree/main/item/src/cv.txt
>
> Just wanted to give you a heads up! :)

Thanks a lot for pointing that out, Tim! I was actually planning on
removing it, but seems like I lost track a bit. My homepage should be
fixed now.

-- 
Best,
Knut Magnus Aasrud

Re: [PATCH mouse.community] make logo responsive 3 months ago

From Knut Magnus Aasrud to ~kmaasrud/inbox

Thanks for the patch! Seems like you have applied it and pushed already,
so that's good.