Tested on: Ubuntu 22.04 Default php version is 8.1 and we want install php 7.4 Ondrej PPA contains PHP 8.2, 8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 7.0 & PHP 5.6 packages. First update the system sudo apt update && sudo apt upgrade 1. Check Active PHP Version php -v 2. Install php on system…
Leggi tutto
To transfer a KVM virtual machine (VM) from one host to another, you can follow the steps below: Make sure you have the same version of KVM on both hosts. You can verify this by running the kvm –version command. Stop the VM you want to transfer. You can do this using the command virsh…
Leggi tutto
Gli helper sono un modo per estendere una classe senza utilizzare l’ereditarietà, utile anche per i record che non consentono affatto l’ereditarietà. La documentazione ufficiale è disponibile all’indirizzo: https://docwiki.embarcadero.com/RADStudio/Sydney/en/Class_and_Record_Helpers_(Delphi). Spesso mi son trovato a creare del codice per esportare un dataset o un singolo record con i suoi valori in uno statement SQL, e tutte…
Leggi tutto
To update Apache2 to the lasted version on Ubuntu is quite simpe: Verify current Apache version: sudo apache2 -v Add Apache repository: sudo add-apt-repository ppa:ondrej/apache2 Update apt: sudo apt update Upgrade apt: sudo apt upgrade And now ( in my case, with Ubuntu 22.04 current date) my new Apache2 release is:…
Leggi tutto
Install samba server: sudo apt install samba backup config filee: sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup create a shared folder for your user, like: mkdir /home//mmyshare edit samba config file: nano /etc/samba/smb.conf replace all smb.conf with this: [global] workgroup = WORKGROUP server string = %h server (Samba, Ubuntu) log file = /var/log/samba/log.%m max log size = 1000…
Leggi tutto
Collegandosi al precedente articolo (articolo disponibile a questo link) in cui si esamiva l’ipotesi di creare un WebSocket client partendo dalla classe indy e implementando il protocollo web socket da zero (come piace agli anglofoni “from scratch”). Di seguito elenco le librerie ( generalmente commerciali ) che ho utilizzato nei miei progetti magari facendo un…
Leggi tutto