Check if your php version is in apache mods-enabled (in /etc/apache2/mods-enabled).
Your current php should be in /etc/apache2/mods-available but not (if you have several php versions) in /etc/apache2/mods-enabled.
Tab session manager problem in Vivaldi
Recently I had a problem with Tab session manager in Vivaldi: impossible to see my sessions, and to add new ones.
I solved in Tab session manager settings in a very simple and easy way: disabling and re-enabling Tab session manager, with a simple mouse click in Vivaldi extensions.
Monetag? No, thanks!
Pro: automation of ads.
Cons: impossible to customize the type of ads. Therefore banal and vulgar advertising.
Gimp change colors
An useful tool to change undesired colors, in GIMP, is
colors -> map -> rotate colors
mozilla keyring problem
I had this problem:
E: https://packages.mozilla.org/apt mozilla InRelease is not (yet) available (The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C0BA5CE6DC6315A3)
After many attempts it seems solved removing (renaming) the file .org.kde.neon.packages.mozilla.org.sources in /etc/apt/sources.list.d/
sitemap php script
A script like the following can generate automatically your sitemap (in xml format):
<?php
function genera_sitemap($path) {
$sitemap = '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
$sitemap .= '<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">' . "\n";
// Scansiona le directory e sottodirectory del sito
$dir = './';
$files = scandir($dir);
foreach ($files as $file) {
if ($file != '.' && $file != '..' && strpos($file, '.') !== 0) {
if (is_dir($dir . $file)) {
// Scansiona la sottodirectory
$sitemap .= aggiungi_sottodirectory($dir . $file . '/', $path) . "\n";
} else {
// Aggiungi il file alla sitemap
if (preg_match('/\.php$/', $file) && $file != 'sql-pass.php') {
$sitemap .= '<url>' . "\n";
$sitemap .= ' <loc>' . $path . '/' . $file . '</loc>' . "\n";
$sitemap .= ' <lastmod>' . date('c', filemtime($dir . $file)) . '</lastmod>' . "\n";
//$sitemap .= ' <changefreq>daily</changefreq>' . "\n";
$sitemap .= ' <priority>1.0</priority>' . "\n";
$sitemap .= '</url>' . "\n";
}
}
}
}
$sitemap .= '</urlset>' . "\n";
// Salva la sitemap su file
$file = 'sitemap.xml';
$fp = fopen($file, 'w');
fwrite($fp, $sitemap);
fclose($fp);
}
function aggiungi_sottodirectory($dir, $path) {
$sitemap = '';
$files = scandir($dir);
foreach ($files as $file) {
if ($file != '.' && $file != '..' && strpos($file, '.') !== 0) {
if ($file == 'index.php') {
$priority = '1.0';}
elseif (preg_match('/testi/', $file)) {
$priority = 0.2;
}
else {
$priority = 0.6;
}
if (is_dir($dir . $file)) {
// Scansiona la sottodirectory
$sitemap .= aggiungi_sottodirectory($dir . $file . '/', $path) . "\n";
} else {
// Aggiungi il file alla sitemap
if (preg_match('/\.php$/', $file)) {
$sitemap .= '<url>' . "\n";
$sitemap .= ' <loc>' . $path . substr($dir, 2) . $file . '</loc>' . "\n";
$sitemap .= ' <lastmod>' . date('c', filemtime($dir . $file)) . '</lastmod>' . "\n";
//$sitemap .= ' <changefreq>daily</changefreq>' . "\n";
$sitemap .= ' <priority>' . $priority . '</priority>' . "\n";
$sitemap .= '</url>' . "\n";
}
}
}
}
return $sitemap;
}
?>
You can call it from different websites, with a code like the following (assuming that your script is genera-sitemap-commune.inc:
<?php
$path="https:[your-desired-path]";
include "genera-sitemap-commune.inc";
genera_sitemap($path);
?>
strange behavior in Vivaldi
If you get a pop-up window to unlock Vivaldi profile, and you share your Vivaldi profile between different Linux installation (devices), you could try to copy the folder .local/share/kwalletd from the working installation of Vivaldi to the other ones.
avif metadata
To write metadata in avif image files with Digikam, you have to set it in
settings – > metadata -> behavior, as in the attached image:

PixelPhone
Is a small android dialer app from Hong Kong. Its best value is to add groups to to Phone, so that you can choose from a group a contact.
But the problem is that groups are incredibly displayed not in alphabetical order (maybe a problem from the Chinese culture?). And so groups tab result perfectly useless.
Moreover deleting a call from log call is very, very complicated (if you press a call then start immediately a call to that number). No way to select more than one call (to delete it from the screen of calls). In Fossify Phone you can select and delete several calls.
Another problem is the impossibility to block unknown numbers (what is present in Fossify Phone).
Another problem is that you cannot find the website of the app, and a forum where speak of your problems with this app.
To sum up: a potentially good app, with many improvements to do.
The Markdown benefits
The Markdown format It is a format that guarantees the maximum of graphic rendering with the minimum of code. Why is this important?
A rich graphic rendering, on the one hand, is a value because the things that are written (and then they must be correctly readable) do not all have the same importance. And, on the other hand, the minimal use of the code helps to reduce the size of the file, occupying as little space as possible on the device. Moreover, Markdown helps also to modify directly and easily the code, since it is an extremely “clean” code and very similar to its graphic rendering.
titles
A title must hit more than the body of the text. And a main title must hit more than secondary titles. A way to do this is a different size of characters. Markdown can do this.
the TOC
The use of titles is also useful for “browsing” quickly in a document, jumping from one title to another, without having to flow the whole body of the text. A good text viewer is able to provide a TOC (Table of Content) which allows you to browse quickly between the parts of the document (characterized by higher or lesser level titles).
text formatting
But the body of the text is also important to highlight what is most important from what is less: bold and italics are ways to do it.
blockquotes
Then it is good to be able to distinguish between what the author of the document and the blocks of text said by other authors (i.e. long citations) writes, and for this there is the blockquote, which is good is also graphically distinct from the rest of the body of the text.