Java: Pass By Value or Pass By Reference
Data is shared between functions by passing parameters. Now, there are 2 ways of passing parameters: Passing by value: this method copies the value of actual parameter. The called function […]
Data is shared between functions by passing parameters. Now, there are 2 ways of passing parameters: Passing by value: this method copies the value of actual parameter. The called function […]
Every system transform data into output and that’s why is important to understand the efficiency of our algorithms and data structures according to each solution. Big O Notation measures the […]
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 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 […]
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 […]
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 […]
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 […]
Inside a new directory, create a data directory and docker-compose.yml with these rows: To start the container, run docker-compose up -d. To stop & remove the container, run docker-compose down. […]
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 […]
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 […]