On a multi-GPU machine used by multiple people for running Python code, like university clusters (in my case, the cluster offered by my university, University of Twente ), it’s important to specify which GPU to use when you want to run your code. By default, torch-based Machine Learning and Deep Learning libraries/packages/frameworks and even Tensorflow will use GPU=0 the first GPU...
How to restore files from a disk storage with bad sectors using GNU ddrescue on Ubuntu Linux
Background Losing access to our precious data due to hardware failures is a nightmare for all of us. Bad sectors on a hard disk drive (HDD) or any other similar failures can block normal data copy/transfer operations and render some of your files inaccessible. Fortunately, there are advanced tools and techniques available that can help rescue this data. One such tool isGNU ddrescue, that...
How to set up a local WordPress development server with phpMyAdmin using Docker
In a previous post I described how to set up a local WordPress dev server with an Adminer web app to control the Mysql database. I have been using that setup for quite some time now. Despite being very lightweight, I feel Adminer is very limited. In addition, I didn’t really get used to it. Therefore, I decided to switch back to phpMyAdmin. I have been using it for over 10 years, and...
How to order posts in Avada Post cards element by a custom field
Context In a previous post, I wrote about customizing the Avada Post Cards element to fetch posts from the database based on a custom field value. It’s good to mention it once more that this feature was added to Avada later on, and it’s now shipped by default in all new versions of Avada starting from June 2022 I made something similar this time because I needed it, and it was not...
How to set up a local WordPress development server using Docker
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-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password...
How to create your own reverse geocoding API using OpenStreetMap Docker, Osimium and Nominatim
During my master’s at the University of Twente and for the course Managing Big Data, I worked with three other students on a very interesting project in the field of big data. We measured global internet speed and latency changes between 2019 and 2022 (Covid period). The dataset we used for the project was “The Internet Speed Dataset” by Ookla. The dataset consists of internet...
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 legal research into the outcomes of the current policy and 2) providing proposals for better...
A fully automated Filezilla installer bash-script on Ubuntu Linux 20.04
Almost five years ago, I wrote this blog post Making an installer/updater for Filezilla on Ubuntu Linux Today in this blog post, I present a fully automated bash script based on my earlier script. This script automatically pulls the latest version of FileZilla tarball from Filezilla project website and installs it on your Ubuntu machine 🙂 Personally, I use this script on my laptop whenever a new...
How to change the prefix of WordPress database tables using MySql in phpMyAdmin
In this article you will learn how to change the name of all MySql (WordPress) database tables in one shot to save you time and maybe money too :)
How to use Google Workspace Gmail server alongside other mail server
A step-by-step guide on how to setup a split-delivery to use Google-Workspace email service and your traditional mail service offered by your hosting provider