How to get the dimensions of an image in Golang
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.
How to change computer's IP address from command line
The command line tool used to change the IP address is netsh
which allows you to configure just about any aspect of your network connections in Windows. In order to use the tool the command line needs to be started as Administrator
How to rename a git branch
How to rename a git branch in simple steps: rename branch, delete old remote, push the new branch and reset the upstream branch.
How to remove a remote from git
To remove a remote you can use the command git remote rm in the terminal, from the root folder of your repository.
How to remane a remote from git
To rename a remote you can use the command git remote rename in the terminal, from the root folder of your repository.
Java Custom Annotations Example
How to create Java Custom Annotation. A simple example of creating Annotations in Java and usage by calling the Reflection API.