Checkout hplip installation on Ubuntu 20.04 I think that HP devices like printers and scanners are very good products, well designed and easy to use. Anyway, if you are a Linux user, you could have some problems to install the vendor software. Here is a simple guide to install all the drivers. First of all…
Author: Edoardo
VPS, DNS and Apache: how to create a subdomain for a new web service
If you bought a VPS and you are now running your website, maybe you want also to install a new self-hosted web service like a cloud server to store your data. For example, you would like to run Nextcloud but actually you don’t know how to setup the environment and how to be able to…
Hide Apache and PHP version
Sometimes, the most easy way for an hacker to exploit your server is just to know the version of the web server that you are running on your machine. The first thing to do when you setup for example Apache, is to hide this information. In fact, the default setting is to show all the…
Remove link from HTML with CSS
This is a simple work-around to remove actions and links from a link tag without replacing the inner HTML code. For example it can be useful if you are trying to edit a CMS template like a WordPress or Joomla template. These lines of code will do the work easily: .the-outer-container a{ pointer-events: none; color:…
PostgreSQL date/time tips
I know, editing date/time fileds in a database is not easy and sometimes we don’t use good techniques to do it because of the difficulty. In some of my projects I had to manage timestamp, so, I would like to share some useful tips. Split a timestamp into two elements: SELECT d[1] AS date, d[2]…
Easy and free HTML to PDF with PHP
Transforming your html and php webpages into a great PDF it’s going to be super easy from now. Online I googled hundred times a good library to generate PDF dinamically and the only interesting found was the following https://github.com/spipu/html2pdf I think it’s absolutely the best free lib and it’s very easy to use. It uses…
Android Studio cannot preview?
You are starting a new Android project, you open your Android Studio, Gradle is building…exciting! You open your main activity .xml file, put a new button and….nothing happens. Android Studio won’t preview the layout of your application…damn… Solution: for most of the tamplates that you can choose from the wizard, the fix is very simple….
Reti di calcolatori: riassunti dall’UNIMI
Durante il corso di “Reti di calcolatori” del corso triennale in Informatica presso l’Università statale di Milano ho raccolto appunti e immagini per pubblicarli sotto forma di libro di circa 90 pagine. Contiene i concetti base delle reti e spero possano essere d’aiuto sia per gli studenti di Milano che di tutti gli altri studenti…