How to set Windows audio balance using Python
In our previous post we showed how to set the Windows audio volume using pycaw. First, we install the library using pip install pycaw Note: pycaw does not work with WSL (Windows Subsystem for Linux)!...
View ArticleHow to auto-set Windows audio balance to a specific L-R difference using Python
When you can’t place your speakers equally far from your ears, you need to adjust the audio balance in order to compensate for the perceived difference in volume. Windows allows you to compensate the...
View ArticleHow to find out if your WSL Ubuntu is running on WSL1 oder WSL2
In order to find out if your Ubuntu or other WSL linux installation is running on WSL1 or WSL2, open a Powershell and run wsl --list -v This will show you all WSL installations and the associated WSL...
View ArticleHow to make PowerShell output error messages in English
If you want to see a PowerShell output (e.g. an error message) in english instead of your local language, prefix your command by [Threading.Thread]::CurrentThread.CurrentUICulture = 'en-US'; For...
View ArticleHow to generate filename with date and time in PowerShell
You can use Get-Date like this to generate a date that is compatible with characters allowed in filenames: Get-Date -UFormat "%Y-%m-%d_%H-%m-%S" Example output: 2020-12-11_01-12-26 In order to generate...
View ArticleHow to fix Windows “echo $PATH” empty result
When you try to run echo $PATH you will always get an empty result. Instead, if you are in cmd, use echo %PATH% but if you are using PowerShell, you need to use $env:PATH
View ArticleHow to print PATH environment variable in PowerShell (Core)
Run $env:PATH to show the PATH environment variable in PowerShell.
View ArticleHow to fix Visual Studio Code still not finding binary after changing PATH...
Problem: Your Visual Studio Code integrated shell on Windows still doesn’t find a binary (e.g. a Python binary) even though you have just added it to the PATH environment variable and have opened a new...
View ArticleHow to fix Python ModuleNotFoundError: No module named ‘cv2’ on Windows
Problem: You see an error message like the following one when running some Python code on Windows: Traceback (most recent call last): File "<stdin>", line 1, in <module> File...
View ArticleWindows Auto-Login registry .reg file generator
This generator allows you to generate a .reg registry file to autologin any user (even admin users), allowing for basically a one-click installation. Tested with Windows10. Your inputs are not sent to...
View Article