Remember a setting in a Cookie

When you have jquery:

$(document).ready(function(){

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() {
		$('a.nturl.single-language.es').click();
	}, 0);
}
if (mylng == "nl") {
	window.setTimeout(function() {
		$('a.nturl.single-language.nl').click();
	}, 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!

Zodiac Signs / Sterrenbeelden

Looks like nobody knows what the actual dates should be?

♈ Aries (Ram): March 21–April 19
♉ Taurus (Bull/Stier): April 20–May 20
♊ Gemini (Twins/Tweelingen): May 21–June 21
♋ Cancer (Crab/Kreeft): June 22–July 22
♌ Leo (Lion/Leeuw): July 23–August 22
♍ Virgo (Virgin/Maagd): August 23–September 22
♎ Libra (Balance/Weegschaal): September 23–October 23
♏ Scorpius (Scorpion/Schorpioen): October 24–November 21
♐ Sagittarius (Archer/Boogschutter): November 22–December 21
♑ Capricornus (Goat/Steenbok): December 22–January 19
♒ Aquarius (Water Bearer/Waterman): January 20–February 18
♓ Pisces (Fish/Vissen): February 19–March 20

Continue reading Zodiac Signs / Sterrenbeelden

Mijn.Host

After the recent price changes I’ve been searching.
No more Neostrada (= Versio = TWS) for me.
Never again!

I also decided to move all my clients to their own hosting accounts and packages. I started using the services of mijn.host myself. Much faster, Litespeed servers, easy Directadmin environment and affordable.
Takes time to move, but so worth it.

That’s all folks!
Have a nice day…

PS. update 28 november 2023:
Whoppaah, and another >20% added for whatever reason!
So glad I switched to mijn.host!

Blockchain.com SCAM

I have been receiving phone calls to my business number from +447500177036 and +447700134363.
Someone calling from blockchain.com… you have an account with us… balance 4.2 bitcoin… no activity, so frozen account… “Please let me send you an e-mail with instructions how to unfreeze the account”, “We are here to help you with all the steps.” …

Let me show you the e-mail:

Continue reading Blockchain.com SCAM