TL;DR (se avete fretta, cosa che è assolutamente errata quando ci si deve informare, saltate subito alla parte finale con scritto MORALE). Torno sull’argomento. Fin da subito mi sono schierato contro questa pratica inquinate e pericolosa ricevendo anche qualche critica
Spring 4+ with Ehcache 3.x
This post describes an example of using Ehcache with a Spring MVC application deployed on Tomcat (not using Spring boot). It is a legacy app that needs to be upgraded. The dependencies are: Application context must be updated in this
React.js: fill options of Autocomplete with API results
The autocomplete is a normal text input enhanced by a panel of suggested options. Autocomplete is a feature that helps in predicting the rest of the word typed by a user. Autocomplete is helpful from the user as well as
Mongo Replica set with docker-compose
A replica set in MongoDB is a group of mongod processes that maintain the same data set. Replica sets provide redundancy and high availability and are the basis for all production deployments. Replication provides redundancy and increases data availability. With multiple copies of data on different database
Java: Sort a list of objects according to matching string/pattern
I need to sort a list of objects in which the matching items come up and others will go down so. For instance, a list of objects on which all the labels are in alphabetical order except for all the
Global warming e inquinamento in genere
L’ecologia mi sta a cuore, il pericolo che corriamo è concreto. Sensibilizzare le masse su tale pericolo è fondamentale e lottare perché si trovi una soluzione è quantomeno doveroso. È giusto però puntualizzare alcune cose. È facile andare in piazza e gridare
Import SQL file using pgAdmin
I have a docker Postgres image and I want to import the data from another Postgres db. The first thing I have done is to create a pg_dump on the remote server and then I have tried to import it.
Install MySQL server with Docker Compose
Inside a new directory, create a data directory and docker-compose.yml with these rows: version: ‘3’ services: db: container_name: docker-local-mysql image: mysql:5.7.21 volumes: – "./data:/var/lib/mysql" restart: always ports: – 3306:3306 environment: MYSQL_ROOT_PASSWORD: passwordversion: ‘3’ services: db: container_name: docker-local-mysql image: mysql:5.7.21
Warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
After a recent Ubuntu update, I get this error. What finally helped was putting to the file /etc/environment: LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 For some reason, it was missing. The outputs for locale and other commands appeared like the variables were properly
How to fix a locale setting warning from Perl and/or *nix bash?
Perl is sometime called by a *nix script and, after an update I get recently this warning message (in particular when I run apt or npm command): perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: