Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272

Categoria: Articoli

Add basic authentication to your IdHttpServer with Delphi

To add basic authentication to you own http server is really simple, you only need to add inside the “onCommandGet” method the authentication check, as in the example shown after the image Inside the method you can:

related articles: Build your own HTTPS server with Delphi – Open SSL Example

How To Install different version of PHP on Ubuntu

  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  

1. Check Active PHP Version

2. Install php on system Set the required PPA wich contains any…
Leggi tutto

KVM -HowTo move or copy a VM from Host to onther Host

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

TDataSetSQLStatement c esempio di “class helper” in Delphi.

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: 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

Ubuntu LTS update Apache2 to the lastest version via SSH

To update Apache2 to the lasted version on Ubuntu is quite simpe:     Verify current Apache version:  

Add Apache repository:

Update apt:

Upgrade apt:

  And now ( in my case, with Ubuntu 22.04 current date) my new Apache2 release is:  

Linux Tips – How to – Install Samba Server on Ubuntu 22.04 desktop & server

Install samba server:

backup config filee:

create a shared folder for your user, like:

edit samba config file:

replace all smb.conf with this:

restart samba:

associarte a samba password to your systemm user:

restart samba: