How to change the hostname in Ubuntu

  • 11 June 2018
  • ADM

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

  • 04 April 2018
  • ADM

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

  • 04 April 2018
  • ADM

Maven local repository default location for Linux and Windows and how to change the location.


How to read XML file in Java using SAX Parser

  • 04 April 2018
  • ADM

How to read XML file in Java using SAX Parser.


Tomcat default administrator password

  • 04 April 2018
  • ADM

How to activate the default tomcat manager application administrator password. This setting is for Tomcat 7 and newer.


How to check if file exists in Golang

  • 29 March 2018
  • ADM

How to check if a file exists in Golang using os.Stat method. A FileInfo describing the named file or an error is returned.