Amule icon tray in wayland

Unlike X11, Wayland doesn’t allow to have a icon tray for some apps, such as amule. To get icon tray also for amule you can follow these steps:

  • install gir1.2-appindicator3-0.1 (or something similar) [maybe not necessary]
  • try to start amule from terminal with : GDK_BACKEND=x11 amule

If this trick works, you could use always it, modifying your .desktop file, with something like:

[Desktop Entry]
Type=Application
Name=amule
Exec=env GDK_BACKEND=x11 amule
Icon=amule

How to avoid double slash

If your link points to a folder it should ends with a slash (/), but if you use a php variable to define it and you sometimes need to add some page at the end of your link, you could have a problem: the double slash (//).
I.g. you could have this variable php

$mypath="mypath1/mypath2/";

The final slash is recommended to avoid a redirect (that you would have with $mypath="mypath1/mypath2).
And you can call that variable in all your webpages pointing at that folder, in this way:

<a href=”<?php echo $mypath ?>”>some name</a>

But if you have to point to a specific page in that folder, you shouldn’t use this code:

<a href="<?php echo "$mypath/a-specific-page.php" ?>">some other name</a>

otherwise you will get, in the final html, a double slash. No way, course to write $mypatha-specific-page.php , because in this case your would call a not existing variable ($mypatha-specific-page.php ).

A good solution could then be this

<a href="<?php echo $mypath . 'a-specific-page.php' ?>">some other name</a>


Using a smartphone wi-fi connected for ♆USB tethering

It is possible, at least with some smartphone (and some, new) adroid releases to have a smartphone connected to a wi-fi network and to use it for usb tethering (of course not for wi-fi hotspot).

This could sound a bit strange, but it can be useful, i,g., if your laptop has not a wi-fi reception as powerful as your smartphone: so, you can use your smartphone to receive the wi-fi signal and to share it with the laptop.

PhpMyAdmin: wildcards as default in search tab

The new PhpMyAdmin, the 5.2.3, unlike the previous, the 5.2.2, has “like” instead of “like %…%” as default search command.

If you prefer the previous default you can do it following these instructions .

I managed to bo back to the previous default modifying only the file
phpMyAdmin/libraries/classes/Types.php
at rows 99 -100

from

return [
'LIKE',
'LIKE %...%',

to
return [
'LIKE %...%',
'LIKE',


Syncthing’s problems

If you are not able to connect your PC to your mobile device, using Syncthing in both of them, you should check your firewall, both on PC and on mobile.
And, of course you have to set, in firewalls, permissions to communicate each other.