How to run HyperV Ubuntu VM in full screen
When I installed Ubuntu Desktop in HyperV, the VM was running with a 1152x864 screen resolution and I could not get the machine to run full screen. The max resolution that hyperv_fb is supporting is 1920x1080.
Sending emails with Golang
To send an email directly from Golang you can use the package smtp
which implements the Simple Mail Transfer
Protocol (SMTP) as defined in RFC 5321. You also need a mail server, for this tutorial will use the Gmail mail server.
How to install Nginx on Ubuntu
Nginx is one of the most popular web servers in the world. It is also known to be more resource-friendly than Apache in most cases and can be used as a web server or as a reverse proxy.
Switch case statements in Golang
The switch statement is an easier way to have a sequence of if-else statements. In Golang you don't need to have break
at the end of
each case, it breaks implicitly. Also the golang switch statement work on values of any type.
Maps in Golang
Golang maps implements a hash table. Hash tables are one of the most used data structure. A hash table is an unordered collection of key-value pairs, where each key is unique.
Arrays in Golang
An array is a data structure with a fixed size containing elements (items) of the same type. Iterate over an array using for loop
or for range loop
.