Check if order was created by customer or admin in Magento 2
A little trick to check if order was created by customer or admin in Magento 2.
In Magento 2, by default, if order was created...
Check if key exists in a map in Go
In this post, I will show you a tip to check if key exists in a map in Go (golang).
When we access the value...
URL Encode Query String Parameters in Go
In this post, I will show you how to perform URL encode query string parameters in Go (golang).
To URL encode query string parameters in...
Capture webcam images using ffmpeg on MacOS
To capture webcam images using ffmpeg on MacOS, use the following command:
$ ffmpeg -f avfoundation -r 30 -i "1" -frames:v 1 capture.jpg
To...
List all connected media devices in Windows
In this post, I will show you how to list all connected media devices in Windows. We will use ffmpeg for the job.
Make sure...