Vendor IDs (VID) and product IDs (PID) are 16-bit numbers used to identify USB devices. By these numbers a computer identifies what USB device is plugged in and what drivers to use with it. If you are developing for example some Arduino-based USB HID keyboard, you may want to change the device’s VID/PID and the […]
Arduino: /dev/ttyACM0 – Permission Denied [SOLVED]
If you use an Arduino IDE on Linux (e.g. Ubuntu, Linux Mint, etc.), you may get the following errors while trying to upload a sketch to the Arduino broad: Caused by: processing.app.SerialException: Error touching serial port ‘/dev/ttyACM0’. – and – Caused by: jssc.SerialPortException: Port name – /dev/ttyACM0; Method name – openPort(); Exception type – Permission […]
WordPress: Debug Mode – Enable & Locate Logs
Do you need to find and fix some errors in a WordPress website? The WordPress comes with a built-in debug mode that can be enabled in the website’s wp-config.php file. This note shows how to enable the debug mode in the WordPress and how to find the location of the debug.log file.
Disable Emoji – Stop Rendering HTML Code as Emoji
Emojis look like images or icons, but actually they are characters from the UTF (Unicode Transformation Format) character set. When OS or browser is rendering HTML it may automatically convert Unicode characters to emojis, that is not always necessary. This short note shows how to disable emojis and prevent Unicode characters in HTML from rendering […]
Telegram: Rename Bot
To change the name of a Telegram bot, start a chat with the @BotFather and send the /setname command. You will be prompted to select the Telegram bot which you want to rename and once selected you will be asked to type the new name of your bot.
WordPress: Comment Hook – Trigger Action Example
Actions are the hooks that the WordPress core launches at specific points during execution, or when specific events occur. To trigger the action firstly you need to write a custom function known as a callback, and then register it with a WordPress hook using the add_action function in your child theme’s functions.php file. This note […]
Telegram: Send Message using PHP
To send a message to a Telegram channel using PHP, you need to know a Telegram API token and a chat ID, that you will get when you create a Telegram bot. This note shows the PHP code examples for sending messages, images and other data types to the Telegram channel through API.
Run PHP Script From Command Line
A PHP script can be executed from the command line even without having any web server software installed. To run the PHP script from the command line you should just have a PHP CLI (PHP Command Line Interface) installed on your system. This note shows how to run the PHP script from the command line […]
Find ‘php.ini’ – PHP Configuration File Location
The php.ini file is the default configuration file for PHP, that provides a lot of configuration directives that allow you to modify various behaviors of PHP. To change PHP settings you need to edit the php.ini file, but firstly you should locate it. In this short note i will show the easiest method of how […]
“Show Desktop” Shortcut in Linux Mint (MATE)
In Windows, there is a keyboard shortcut ⊞ Win + D used to minimize all the currently open windows and show the desktop. To hide all windows and show the desktop in MATE edition of the Linux Mint there is a Ctrl + Alt + D shortcut.