Jan Hřídel

Full-stack web developer, web technology enthusiast, lecturer, team player as well as strong individual, daddy & family man.
December 30, 2023

PF 2024

Pour Féliciter 2024 “A lot of drops of joy next year.” https://hridel.com/pf
Read more
March 8, 2023

Set up an Nginx virtual host as a reverse proxy

To set up an Nginx virtual host as a reverse proxy, just follow these steps: Install Nginx First, you need to install Nginx on your server. You can do this by running the following command: sudo apt-get install nginx Create a new virtual host configuration file Create a new configuration file for your virtual host using your favorite t...
Read more
March 7, 2023

Array shuffling by Fisher-Yates algorithm

If you need to shuffle array of any objects, you can use the Fisher-Yates algorithm. The algorithm is very simple in principle. const shuffleArray = (arr: any[]): any[] => { let currentIndex: number = arr.length; let randomIndex: number; // While there remain elements to shuffle. while (currentIndex !== 0) { // Pick a remaining element...
Read more
December 31, 2022

PF 2023

Pour Féliciter 2023 “to move forward, you must first take a step” https://hridel.com/pf
Read more
December 30, 2021

PF 2022

Pour Féliciter 2022: Keep going… https://hridel.com/pf
Read more