"The strength of deep roots and the calm of a steadfast trunk that withstands every storm." “Photo: Holovousy (Czechia), October 2024” https://hridel.com/pf?year=2025
New NPM Package: @hridel/modulo – Modular Arithmetic for JavaScript
Hey everyone! I’ve just published a new npm package on my personal website, #WebDevWizard: @hridel/modulo. I created this package to tackle some challenges I encountered with modular arithmetic in JavaScript. If you ever need to handle both positive and negative numbers and consistently get non-negative results, this package is made fo...
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...
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...