If you want to get a php variable if another is not present, without using the if ... then syntax, you can use this code
$some_variable = $optimal_variable ?? $alternative_variable;
a thoughtful use of digital
If you want to get a php variable if another is not present, without using the if ... then syntax, you can use this code
$some_variable = $optimal_variable ?? $alternative_variable;
IFTT is a good app, but with a free plan you can connect only one wordpress category to one facebook page.
There are many plugins and many web services, such as Zapier, or Activepieces, that can connect wordpress with a facebook page, but if you have a free wordpress plan (with an address like yourdomain.wordpress.com) you can install plugins only upgrading your plan.
If you cannot login with x11, but only with wayland, you can can try to remove maliit framework.
The url should have this pattern:
https://your-wordpress-blog/category/your-category/
With editor like Avidemux you can cut a video only in correspondence with certain specific points (the Keyframes). Otherwise the video is corrupt. But there are applications that allow you to overcome this limit: for example ShotCut.
To use it a simple way is to add the video to the timeline (with “+”), and to set a cut point (with “][“), so splitting the video, and then to remove the undesired part (after selecting it). Then export the resulting video.
Update-grub could not recognized as bootable a btrfs partition.
A workaround to make a btrfs (bootable) partition recognized by update-grub is to create symlinks to /boot and /etc folders, in this simple way:
ln -s @/boot bootln -s @/etc etcupdate-grubIn KDE Neon the upgrade to Plasma 6 has produced several problems:
[Desktop Entry]
Comment=Twin-Panel File Manager
Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true krusader
GenericName=File Manager
Icon=krusader_user
Name=Krusader-root
NoDisplay=false
Path=
StartupNotify=true
StartupWMClass=krusader
Terminal=false
TerminalOptions=
Type=Application
X-DocPath=krusader/index.html
X-KDE-SubstituteUID=false
X-KDE-Username=root
sudo mv /usr/share/kservices5/ServiceMenus/reimage* /usr/share/kio/servicemenus/
The simplest way to get the right icons is to choose breeze as main theme, and then go (as root, ui.g. with Krusader in root mode) to usr/share/icons and rename breeze/places to places.orig, and afterwards symlink places from Humanity Classic to breeze.
To get correctly Humanity Classic you have to install (via Synaptic) Adwaita icons, otherwise you could be forced to remove a lot of essential packages. Installing Adwaita will ask you a very small kind of change.
Many Linux distros are leaving xorg (x11) for Wayland, as display server protocol. Unfortunately not all the applications are ready for Wayland.
In particular Autokey, a very useful application to expand text and automatize typing operations, is not (yet) compatible with Wayland.
A quite good replacement of Autokey is Espanso. But there are also some limitations:
However, as long as the main typing operations are in LibreWriter, or Kate, you can use that applications possibilities to expand text.
in LibreWriter there are at least two possibilities (to expand an abbreviation):
In Kate you can use snippets to create something similar to Autokey.
I.g. to create a snippet to wrap selected text with the tag <h1>, you can add this code as snippet code:
${rangeCommand("<h1>%%1</h1>", "title")}
Choose the title as you prefer (obviously without spaces), and a key combination, i.g. ctrl+1.
Don’t forget to add, in the javascript section (the tab scripts) this code
function rangeCommand(command, def) {
if (view.selectedText().length > 0) {
return command.replace("%%1", view.selectedText());
} else {
return command.replace("%%1", def);
}
}
In this way, you will be able to add a title <h1> to your selected text.
Using KDE in a new installation you could don’t have all the gtk icons. If so, try with:
sudo apt-get install --reinstall adwaita-icon-theme-full