Basic HTML

Dana Sallow wrote me a note:

“Hello – I read your page markohoven.com/2020/05/15/css-stylesheet-selectors/ and have two words: incredibly useful! I loved the HTML-related resources you mention there. I shared your post with a co-worker, and he shared with me a very helpful guide on how to use HTML. https://www.websiteplanet.com/blog/html-guide-beginners/ Since your readers might need this for either their work or personal life, I do believe they’ll find it useful if you add it to your page. Thanks again for the resource! Best, Dana.”
So here it is:

Continue reading Basic HTML

Forget NAS login

Connected to a NAS, like Synology SMB Service, and clicked ‘remember my credentials’? Sure, that makes it easy whenever you want to go back to that same shared folder, but now what happens if you want to connect using a different user, with different rights to the share?
You would have to remove the exisiting connection first, and make sure Windows 11 forgets how to connect to that Server/NAS/Share. So what do you do?

  1. In your Windows Start menu, search for “Credential Manager”.
  2. In the “Windows Credentials” section, remove any stored credentials referencing the share, network drives or similar:
  3. Open the details with the ‘arrow down’ and click “Remove”.
  4. Repeat these steps until you remove all of the credentials associated with the NAS.

Now you can reconnect to your share and use the correct login.
Have a nice day!

Watch Free Formula 1 streams F1

2021… Red Bull outsmarted Mercedes:
Max Verstappen beat Lewis Hamilton!

Now do you want to see the upcoming 2022 season? You may have to get a F1 membership, or watch it using a free livestream. Most of the time these streams are limited to the country, but you can use a good VPN service to watch it anyway. I promote NordVPN… they say this is how it works:

Continue reading Watch Free Formula 1 streams F1

Skip Thunderbird calendar item summary

Since TB91 behaviour for opening an item in your Thunderbird Lightning calendar has changed from ‘edit item’ to ‘view summary’. Yes, you can click ‘edit’ or hit enter, but it just adds another step to an operation that should be default, or at least be a preference you can set.

So Google to the rescue… read this, this, this (text below) and this… and solve the problem just like we solved the transparent items issue.

Continue reading Skip Thunderbird calendar item summary

Saving Energy

We all have to save some. It starts with the realisation what you are actually using energy for… continue to read some facts/indications in Dutch:

1 standaard kubieke meter gas (m3(n)) heeft een bovenwaarde van 35,17 MJ
1 kWh electriciteit heeft een energie inhoud van 3,6 MJ.

Berekening
1 m3(n) gas komt overeen met 35,17 MJ/3,6 MJ = 9,769 kWh electriciteit

Met 1 kWh kunt u ongeveer…
20 maaltijden in de magnetron opwarmen,
4 avonden tv kijken,
30 uur uw koelkast laten koelen en vriezen,
15 cd’s luisteren.

Met 1 kubieke meter gas kunt u ongeveer…
1 uur uw huis warm stoken in de winter,
3 keer douchen – of 5 keer met een spaardouche,
1 keer in bad,
6 hele maaltijden koken,
50 keer handenwassen.

So how to save some energy?
Wear something warm and read a book by candlelight!

center

Centering things in CSS is the poster child of CSS complaining. Why does it have to be so hard? They jeer. I think the issue isn’t that it’s difficult to do, but in that there so many different ways of doing it, depending on the situation, it’s hard to know which to reach for.

So let’s make it a decision tree and hopefully make it easier. Continue reading center

419 HTTP status code

… does not exist
https://nl.wikipedia.org/wiki/Lijst_van_HTTP-statuscodes

However it did take some of my time to figure this one out as the response code was really in my webserver logfiles and as usual… I was not the first to run into this problem, see: https://stackoverflow.com/questions/46266553/why-laravel-api-return-419-status-code-on-post-and-put-method

You get a 419 status code, if an (external) script tries to post to your Laravel application, without the o-so-needed CSRF token.

First option is to change in App\Http\Middleware\VerifyCsrfToken:
protected $except = [ ‘/*’, ];
(or maybe something more specific and a little more safe, like ‘/myapiurl/*’,)

Second option is to put the route in api.php instead of web.php, but that implies prefixing all your routes with /api/

… your choice!