The following docker-compose.yml file setups a local WordPress docker instance alongside a MySql server and an Adminer web app which can be used as an alternative to PhpMyAdmin. version: '3.9' services: wp_mysql: image: mysql:latest container_name: wp_mysql command: mysqld --character-set...
How to let Avada Post Cards element fetch posts from the database based on a value of a custom field in the posts
Context In the last couple of months, I have been working on the website of Stichting Civic. Stichting Civic is a Dutch foundation committed to improving the Dutch civic integration policy for refugees and other newcomers. The foundation aims at 1) collecting and stimulating socio-scientific and...
How to check/uncheck all checkboxes on a web page using vanilla Javascript
A couple of years ago I wrote this short post about checking/selecting all checkboxes on a web page using jQuery. However, how would we do that if we can’t included jQuery on the page or if we want to do it only with Javascript! To uncheck all checked checkboxes on a web page using only...
How dev-books.com turns your computer into a Cryptocurrency miner
A couple of months ago I saw a topic on Hacker News calledĀ The most mentioned books on Stack Overflow LinkĀ . I was really happy to see the website and I thought I could use it later once I need a book. Today I wanted to search for couple of books about Artificial Intelligence and Image Processing...
How to enable HTTP2 on Ubuntu 16.04 server with Apache 2.4.27
Two days ago I wanted to enable HTTP2 my website because it’s faster, simpler, and more robust than HTTP1.Ā Check this linkĀ to read more about it. I have searched online how to enable it and I have followed almost every tutorial to enable it, but I couldn’t get it working. Everything...
How to solve “http doesn’t redirect to https”
This website is running on VPS from Linode.comĀ . I have configured every single detail about the site, and as you have noticed that the website has only one version with https. I have only peshmerge.io (non-www) version. This morning I have clicked on the link of my website on my twitter profile...
How to read decorrespondent.nl for free
I am a programmer, but I am also interested in Sociology, Anthropology and Politics. I read frequently articles online about them. I follow also specific sociologist or anthropologists who write about the those certain topics, for example Willem Schinkel. He isĀ a Professor of Social Theory at...
Select all checkboxes on a webpage using Jquery
I wanted to select all inbox messages on a website which I use for the university, the website doesn’t have a “select all ” functionality. This jquery code snippet selects all checkboxes and check them. jQuery('input:checkbox').each(function () { var elem= jQuery(this); elem...