syncing firefox

Symlinking logins.json is not possibile, you have to copy it every time. And it is necessary that logins.json matchs to key4.db.

Markdown editor

Unfortunately same of the best MD editors have critical limitations

  • Dynalist, i.g., would be an excellent md editor, but it forces you to use an online account (that means: a) you must be connected to the internet, and b) you share your data with Dynalist, and so your privacy goes away).
  • VNote too would be a good md editor, but it forces you to use its proprietary format (with only files in its own folder), and so you can’t open any existing md file.
  • LogSeq is very slow in starting, doesn’t provide a wysing editor, can’t edit long files, and, as the other above editors, it don’t let you open, modify and save existing md files.
  • Joplin is a bite better, but it too don’t let open, modify and save existing md files: you must use its folder, and its proprietary format.
  • Siyuan is another app that force you to use its folder and its proprietary format.
  • MdSilo is not a bad program, but is very basic. Its wysing is alternative to the source code. Re-open a file is not easy at all. Styling the editor impossible.
  • Markflowy: not too bad, open source, and wysing; but you cannot see the source code, and most important, you cannot open the file you want, neither from outside the app, nor inside it.
  • Obsidian (not open source) was not able to open or save any md file, even though it uses markdown. Now it can do both open and save a md file, in a very interesting wysing mode, but it forces you within its narrow proprietary boundaries.
  • MarkText would be quite good wysing md editor, quite similar to Typora, but unfortunately it is discontinued.
  • Typora is the best md wysing editor: it support css customization and symlinks, you can easily open and save your md existing files (wherever they are). But is is not open source, but a pay app.

KDE user dictionary

You can find it i.g. in your home folder, as hidden file with a name such as .hunspell_it_IT.

If you have many PC you can share it between your devices.

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.