Universal initialization in C++
How to use x86_64 packages in Conda on M1 Mac
JavaScript: functions
As any programming language, JavaScript allows to pack useful things into functions, and it is the key to good JavaScript knowledge, to use them efficiently. In this post, I describe three ways that the functions can be declared in JavaScript, talk about visibility of variables inside the functions, how to have optional function arguments with default values, how to create closures (functions, bound to outer variables), and how to use recursion.
Solving Perfect Squares problem using breadth-first search
How to reencode H.264 videos to H.265
I had videos in H.264 codec that I wanted to reencode to H.265. The reason is that H.265 (a.k.a. High Efficiency Video Codec, HEVC) is a more modern and efficient format than H.264 (a.k.a. Advanced Video Codec, AVC), which allows to keep the same quality with about twice less storage.
As I make from time to time YouTube, Instagram, and TikTok videos, which I need to backup, it is always good to store your data in the most storage-efficient format.
Redirection of stdout and stderr to the same file
Get list of open files on external volume in macOS
Javascript: control flow
Javascript: expressions and variables
I was recently studying Javascript out of curiousity as this language is used so much in the current web and mobile development. These are notes on basic Javascript knowledge to better memorize its syntax.