Rasmus​.krats​.se

Denna sida på svenska

Posts tagged “r4s”

Reminiscing this and that, on the web since 1994.

Light or dark?

Posted 2022-05-16 22:11. Tagged , , , , .

I’ve had a light and a dark theme on this site since I switch from python to rust. But until now I have only used css @media selection to enable the dark theme, so it hasn’t been very discoverable. If you have a browser that supports the prefers-color-scheme query and you have found that setting and enabled dark mode, you have seen this site in the dark theme (and may not know that it had a light theme), otherwise you have seen the site in the light theme (and not known about the dark).

Read whole Light or dark?.

Tracker-free youtube embedding

Posted 2022-04-03 18:04. Tagged , , , , , .

Sometimes I want to embed a video on my site. Most of the videos I want to embed are on youtube. Klicking “share” on a video and choosing embed, I get a bunch of html code I can copy into a post. Something like this, for example:

<iframe width="560" height="315" src="https://www.youtube.com/embed/3St1CoH1rKU"
  title="YouTube video player" frameborder="0"
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
  allowfullscreen>
</iframe>

Read whole Tracker-free youtube embedding.

New blog software

Posted 2022-01-16 22:07. Tagged , , , , .

I have written a new blog software again! The previous one was named r5, as in Rasmus (5 letters omitted). The new one is written in Rust (.rs source files), so it was natural to call it r4s, also as in Rasmus (but with only 4 letters omitted 😎).

Now let’s see if having a new shiny project for my blog engine makes me write more posts.

Read whole New blog software.