problems with an encrypted partition

In Linux you could face an impossibility to mount a crypted partition.

The command that could be useful then are

1. sudo dmsetup ls --tree
2. ls -l /dev/mapper/
3. sudo dmsetup remove /dev/dm-0

You have to replace dm-0 with your result in 2.

set a variable php from another webpage

This can be useful to build a multilingual website. The code is very simple. Suppose to have a variable lang of the body of you pages. Something like this:

<body lang="<?php if(empty($lang)) {echo "it";} else {echo"$lang";} ?>">
 

And suppose that you want set the lang (language) of the target page from a link in a starting page.

You can use a code like the following

In the starting (aaa.1.php):

<p><a href="aaa.2.php?setlang=en">eng</a><br /><a href="aaa.2.php?setlang=it">ita</a><br /><a href="aaa.2.php?setlang=es">esp</a></p>

In the target page (aaa.2.php):

<?php
$lang = $_GET['setlang'];
?>
<html>
 <body lang="<?php if(empty($lang)) {echo "it";} else {echo"$lang";} ?>">
<p>your content here</p>

webdav after changing cloud password

I.G. you could have changed the psw switching to 2FA. So, in Linux, Dolphin o any other file manager could not recognize any more your cloud webdav.

To fix this problem, try the following steps:

1. in system settings -> KDE Wallet -> Wallet Manager -> Passwords – > Maps,

2. find your old cloud account and delete it,

3. then you will asked, as expected, for a new user and password.

4. And then it should work.

Sound in Musescore 4

In Ubuntu, to get the sound in Musescore 4, after installing Pipewire (with its repo) you could have to follow these steps (in Italian, but you can find it in English as well).

If you have, following that steps, an error (such as Error while installing package: trying to overwrite '/usr/share/man/man1/pipewire-pulse.1.gz', which is also in package pipewire-pulse 0.3.48-1ubuntu3) you can resolve with this command:

sudo dpkg -r pipewire-pulse

As said here.