How to get the dimensions of an image in Golang

  • 20 June 2019
  • ADM

Here are two simple methods to get the dimensions of an image in Golang: using image.DecodeConfig method if the image is not already loaded and image.Decode method is the image is loaded.


Java Custom Annotations Example

  • 26 July 2018
  • ADM

How to create Java Custom Annotation. A simple example of creating Annotations in Java and usage by calling the Reflection API.


How to read XML file in Java using SAX Parser

  • 04 April 2018
  • ADM

How to read XML file in Java using SAX Parser.


How to Install GoLang 1.10 on Ubuntu

  • 10 March 2018
  • ADM

How to Install GoLang 1.10 on Ubuntu. This can be applied to any Golang version and for any Ubuntu version.


How to stop and remove all Docker containers

  • 16 March 2018
  • ADM

How to stop and remove all Docker containers using two commands. Useful for fresh restart or when you run out of disk space.


How to setup a proxy with authentication for HTTP client in Golang

  • 22 March 2020
  • ADM

How to setup a proxy with authentication for HTTP client in Golang example using http.Transport and http.Client. Simple example calling httpbin.org test server.