Webhosters pricing development

It was not my imagination … it was getting ridiculous!
So glad I moved all my hosting to mijn.host and my customers to their own hosting accounts. Just read this article today:


Webhosting behoorlijk duur geworden

Webhosting pakketten zijn sinds mei 2020 gemiddeld 39,83 procent duurder geworden. Dat blijkt uit onderzoek van Start24.

Prijzen van hostingproviders die tot een conglomeraat behoren zijn met gemiddeld 71,15 procent omhoog gegaan. Bij onafhankelijke providers zijn de prijzen met 22,29 procent gestegen. Bij drie van de 39 onderzochte providers bedroegen de prijsstijgingen zelfs meer dan 100 procent. Dit was het geval bij Versio (221,98%), Neostrada (189.38%) en Argeweb (162,57%).


Prijsvoering zegt aardig wat over de ethiek van een onderneming, stelt Boer. Bedrijven die hun prijzen met een factor 3 verhogen zonder een aanmerkelijk betere dienstverlening aan te bieden, hebben over het algemeen minimale interesse in jouw belang als klant. Met dit soort bedrijven wil je (waarschijnlijk) niet in zee gaan. Hosting providers wiens prijzen echter binnen een redelijke marge zijn gestegen, zullen in de regel betrouwbaarder zijn.

Remember a setting in a Cookie

When you have jquery:


function setmyCookie(cname, cvalue, exdays) {
  const d = new Date();
  d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
  let expires = "expires="+d.toUTCString();
  document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
function getmyCookie(cname) {
  let name = cname + "=";
  let ca = document.cookie.split(";");
  for(let i = 0; i < ca.length; i++) {
    let c = ca[i];
    while (c.charAt(0) == " ") {
      c = c.substring(1);
    if (c.indexOf(name) == 0) {
      return c.substring(name.length, c.length);
  return "";
$('a.nturl.single-language.es').click(function () { 
	setmyCookie("mylng", "es", 365);
$('a.nturl.single-language.en').click(function () { 
	setmyCookie("mylng", "en", 365);
$('a.nturl.single-language.nl').click(function () { 
	setmyCookie("mylng", "nl", 365);

mylng = getmyCookie("mylng");
if (mylng == "") {
	mylng = "es";
if (mylng == "es") {
	window.setTimeout(function() {
	}, 0);
if (mylng == "nl") {
	window.setTimeout(function() {
	}, 0);


And if you’re trying to figure out the functionality;
The links are from a plugin and a click also activates a language. This script just adds another click-hook to save the language in a cookie, and also activate the chosen language on every page load.
That’s all!

OceanWP Header background image black

Did you try to control this with a function?
And did it stop working recently and is now only showing a blacked out area?
Did you use the hook ocean_page_header_background_image and the function as posted in the OceanWP docs?

Well… Just change your script to give back the image ID instead of the URL:

if ( is_singular( 'post' ) ) {
  // $bg_img = get_stylesheet_directory_uri() . '/img/my-image.jpg';
  $bg_img = 1394;

You’re welcome.
Have a nice day!

Also posted to support hoping maybe OceanWP can fix this, so we can use the image filename/URL again?

PHP8 and function list() = each()

Time to write something about PHP again. With PHP 7.2, the function each() is deprecated. The documentation says: “Warning This function has been DEPRECATED as of PHP 7.2.0. Relying on this function is highly discouraged.“.
If you ignored this warning before, in PHP8 you will now get the following error: Fatal error: Uncaught Error: Call to undefined function each() in /path/file.php:line
So, what do you do when you find this in your old code or in some library that you use, but is not being updated anymore? Stackoverflow to the rescue…

Continue reading PHP8 and function list() = each()

NordVPN 3 year plan discount

Even though I get no commission, I would like to share a discountcode to get a better offer for NordVPN.
My subscription was up for renewal, but the renewal-offer was way more expensive per month, so I cancelled the subscription. Now after it expired I went back to the NordVPN website to see if the price was any better, but unfortunately they only offered a month, year or 2-year plan. I started searching and fount the following discount code, with the added bonus of getting a three year plan in the process.

Use this discount code:

Continue reading NordVPN 3 year plan discount

Thunderbird 115 Calendar View scaled wrong

Ever since the latest upgrade of Thunderbird mailclient to version 115 many people have experienced problems. It started with the setting being changed to compact for the density of the mailbox views. That solution was simple; just change in your menu “View – Density” and change it back to ‘default‘.

However the view of the calendar has been giving problems. The right-hand-side of it is outside of the visible window, basically dropping off the date from the view; see screenshot and yes, that is to the edge of my screen with Thunderbird maximized.

So, how do we solve this?
Go to “Tools – Settings – General” and at the bottom open the ‘Config Editor…’
Now search for ‘layout.css.devPixelsPerPx‘ and change that value to 0.9
Since this scales everything on the screen, you may want to increase your font-size next:
Go to “View – Font Size – Increase Font Size”, and see the second screenshot for the result.
Good luck!

That’s all Folks!
Have a nice day…