
How to determine the type and functions of USB Type-C: charging, connecting to a monitor, Thunderbolt
Posted by Alex On June 1, 2023
How to check what type of USB Type-C port my laptop has? Computers have a variety of ports, for example, there are at least 4 types of ports and wires for connecting a monitor alone. There is currently a strong trend towards the unification of ports and cables on both computers and mobile devices. USB-C […]

Updated workplace
Posted by Alex On May 31, 2023
This year marks 10 years since I switched from desktop computers to laptops. And I'm tired of it )))) I really love desktop computers! In general, I decided to gradually return to the desktop. I decided to start with a monitor, and bought a SAMSUNG ViewFinity S6 High Resolution Monitor (34", Curved) LS34A650UBEXXT. The monitor […]

How to enable HDR monitor support in Linux
Posted by Alex On May 28, 2023
Short answer: no way. Currently, HDR is not supported on Linux. What is HDR HDR is a technology that makes the display on a monitor or TV screen more vivid, contrasting and realistic. This is achieved by transferring metadata (in addition to the video stream), based on which some scenes (for proprietary HDR variants) or […]
How to save MySQL query results in a new table
Posted by Alex On May 26, 2023
In MySQL, in one SQL query, you can create a new table and store in it MySQL query results (search results of another table). Or you can save the MySQL query results to another, already existing table. How to store query results in a new table in MySQL Use the following construct: CREATE TABLE new_table SELECT […]

Windows guest OS freezes in VirtualBox 7 (SOLVED)
Posted by Alex On May 22, 2023
Upgrading to VirtualBox 7 brought bugs to guest operating systems, some of which are discussed in the notes: Some program areas become transparent or invisible in guest OS Windows after upgrading to VirtualBox 7 (SOLVED) Windows stopped booting in Virtual Machine after upgrading to VirtualBox 7 (SOLVED) After fixing the problems with the actually inoperable […]

How to get data from a web page using GET and POST methods in a Python script on Windows
Posted by Alex On May 21, 2023
Python programs and scripts can make requests to and receive data from websites and web services using the GET and POST methods (as well as other HTTP methods: PUT, PATCH and DELETE). But what if you want to pass data from a web page to a Python script? This can be done in several ways. […]

How to get data from a web page using GET and POST methods in a Python script
Posted by Alex On May 21, 2023
Python programs and scripts can make requests to and receive data from websites and web services using the GET and POST methods (as well as other HTTP methods: PUT, PATCH and DELETE). But what if you want to pass data from a web page to a Python script? This can be done in several ways. […]

How to install Python as a CGI module in Apache on Linux
Posted by Alex On May 21, 2023
Table of contents 1. How to run a Python script on a web server 2. How to set up Python as a CGI module in Apache on Debian (Ubuntu, Linux Mint, Kali Linux) 2.1 Setting up Python CGI for a single directory 2.2 Setting up Python CGI for the entire web server 3. How to […]

How to set up Python as a CGI module in Apache on Arch Linux (Manjaro, BlackArch)
Posted by Alex On May 21, 2023
Setting up Python CGI for a single directory Create a directory /srv/http/cgi-bin/ - this is where the Python scripts will be located: sudo mkdir /srv/http/cgi-bin/ Open the /etc/httpd/conf/httpd.conf file – the web server configuration file: sudo gedit /etc/httpd/conf/httpd.conf Find a group of lines: <Directory "/srv/http/cgi-bin"> AllowOverride None Options None Require all granted </Directory> And replace […]

How to set up Python as a CGI module in Apache on Debian (Ubuntu, Linux Mint)
Posted by Alex On May 21, 2023
Setting up Python CGI for a single directory Run the command to enable the CGI module: sudo a2enmod cgi Restart the web server for the changes to take effect: sudo systemctl restart apache2 Create file /usr/lib/cgi-bin/test.py: sudo gedit /usr/lib/cgi-bin/test.py Copy the following content to this file: #!/usr/bin/python3 print ("Content-type: text/html") print ("") print ("") print […]