How to change the hostname in Ubuntu
How to change hostname in Ubuntu. There are three options: temporary until the first restart and permanent by changing the hostname file or using command hostnamectl
How to change Tomcat default port
How to change Tomcat default port 8080 to any other port. Three steps: locate server.xml file, edit and restart the Tomcat service.
Maven local repository location
Maven local repository default location for Linux and Windows and how to change the location.
Git ignore file mode chmod changes
How to make Git to ignore file modified by chmod changes. Using core.fileMode git config.
HTTP URLConnection with proxy in Java
How to create an HTTP URLConnection with proxy in Java. Simple example including proxy authentication.
How to Check Alexa Rank in Java
How to Check Alexa Rank in Java using the undocumented API: http://data.alexa.com/data?cli=10&url=domainName. The code contains also the possibility of adding proxy settings