Tag: websites

How to take a screenshot of a website in the command line (with JavaScript and lazy download support)

Brief summary of the article: You can take a screenshot of a website in the command line using a headless web browser – the article describes in detail how to do this If you do not want to bother with installation and configuration, then you can take a screenshot of websites (including JavaScript and lazy download) using the online service:...

What is a WebP file and how is it better than other formats

WebP is a raster graphics file format developed by Google intended as a replacement for JPEG, PNG, and GIF file formats. It supports both lossy and lossless compression, as well as animation and alpha transparency. What is a WebP file A file with the .webp extension is a file format developed by Google to reduce the size of images without...

How to take a screenshot of the entire website page even beyond the screen

Summary Go to the service website https://w-e-b.site/?act=screenshot and enter the page address to create a screenshot of it in its entirety, even if it extends beyond the edges of the screen. A simple way to take a screenshot of the entire web page Taking a screenshot is a fairly simple task for which there are many specialized applications designed to...

How to save the entire HTML DOM in its current state

What is Document Object Model (DOM)? The content of a web page consists of HTML code received from a web server. But modern technologies (HTML 5 and JavaScript) allow you to change the content of a web page on the fly: JavaScript can add new elements, change the properties of existing elements, remove elements and perform a variety of actions...

Alternatives for Google Domains

For the second year now, I have been using Google Domains to register domains – I really like their service: low prices, free Domain Privacy, convenient management, no restrictions, automatic verification of sites in Google Search Console. Overall, I could definitely recommend this domain registrar if it still worked... Note: Domain Privacy is the hiding of your personal data (your...

PHP Fatal error: Uncaught mysqli_sql_exception: No database selected (SOLVED)

Let's look at a small PHP code that tries to connect to a MySQL or MariaDB DBMS and execute a query with a “SELECT” statement: <?php $db_user = "root"; $db_password = ""; $mysqli = new mysqli("localhost", $db_user, $db_password); if ($mysqli->connect_errno) { printf("Somehow we failed: %s\n", $mysqli->connect_error); exit(); } $query = "SELECT * FROM TestTABLE;"; $result = $mysqli->query($query); while ($row =...

“ERROR 1366 (22007): Incorrect string value” in MySQL/MariaDB (SOLVED)

How to insert emoji into MySQL/MariaDB database On the one hand, inserting emoji into a MySQL / MariaDB database table does not require any special preparatory steps – just insert one or more emoji characters, which may contain other text. For example: INSERT INTO TestTABLE (`test_column`) VALUES ("🎫⏭️✈️ and hi 🌅"); But when executing the previous request, you may encounter...

PHP not displaying emoji from MySQL/MariaDB database (SOLVED)

When retrieving rows from a MySQL (MariaDB) database, you may encounter a situation where all the text is displayed correctly, but question marks are displayed instead of emoji. The most likely problem is an incorrectly used encoding when executing queries against the MySQL (MariaDB) DBMS. There are two ways to fix this situation. 1. Select utf8mb4_unicode_ci encoding when creating database...

Automatic code highlighting on websites

Automatic markup of code on sites In this article, you will learn how to enable syntax highlighting of the source code on your websites. Code highlighting means automatic coloring of program source code elements in different colors in accordance with the syntax of the programming language. The shown option is suitable for both WordPress sites and any other sites. Note:...

How to get data from a web page using GET and POST methods in a Python script on Windows

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...
Loading...
X