golang.pngGolang : Convert seconds to human readable time format example

3rd August 2017

Occasionally in the scientific world, we will encounter instruments that gave reading in seconds denomination and in this tutorial, we….... read more

golang.pngGolang : Login and logout a user after password verification and redirect example

2nd August 2017

Writing this tutorial for my own future reference. User name and password authentication is a fairly common task for any….... read more

golang.pngGolang : Get remaining text such as id or filename after last segment in URL path

1st August 2017


Retrieving the last segment/part or the remaining text after a slash in the URL or filename in a path….... read more

golang.pngGolang : Roll the dice example

20th July 2017

Just a simple example on how to simulate dice rolling. Useful in situation where you need to use random single….... read more

golang.pngGolang : Convert string slice to struct and access with reflect example

19th July 2017

Writing this down here for my own future references. Basically, what this code does is to convert a given string….... read more

golang.pngGolang : Scramble and unscramble text message by randomly replacing words

19th July 2017

For this tutorial, we will learn how to make a text string unreadable by replacing some of the words inside….... read more

golang.pngGolang : Sort words with first uppercase letter

18th July 2017


You use the sort.Strings() function to sort a slice of words. However, you noticed that words with the first….... read more

golang.pngGolang : Sort lines of text example

17th July 2017

Here is an example of how to convert lines of text into a slice in Golang, sort them in descending….... read more

golang.pngGolang : Find the shortest line of text example

17th July 2017

Continue from previous tutorial on how to find the longest line in a given text. This example demonstrates how to….... read more

golang.pngGolang : Convert spaces to tabs and back to spaces example

17th July 2017

A simple example on how to convert spaces to tabs and convert back the tabs to spaces again in a….... read more

golang.pngGolang : Find the longest line of text example

17th July 2017

Ability to find the longest find in a given text file can be useful in a situation where you want….... read more

android.jpgAndroid Studio : Simple input textbox and intercept key example

16th July 2017

A GUI(Graphical User Interface) such as Android OS has input text box to allow users to enter text and able….... read more

javascript.jpgJavascript : Push notifications to browser with Push.js

14th July 2017


Instead of RSS, you want to send notifications to your visitor's computer through their browser about the latest updates….... read more

golang.pngGolang : ROT47 (Caesar cipher by 47 characters) example

12th July 2017

Here is an example of how to implement the ROT47 - Rotate 47 characters algorithm in Golang. ROT47 is a….... read more

golang.pngGolang : Frobnicate or tweaking a string example

12th July 2017

A simple example of how to frobnicate(tweaking) a string with UTF-8 characters. Useful in obscuring plain text in embedded….... read more

golang.pngGolang : ROT32768 (rotate by 0x80) UTF-8 strings example

12th July 2017

Previously we learned how to implement ROT13, ROT5 and ROT47 character substitution algorithms in Golang. However, these implementations….... read more

golang.pngGolang : Rot13 and Rot5 algorithms example

12th July 2017

Continuing from our previous ROT47 tutorial, we will now learn how to implement the ROT13 + ROT5 algorithms. ROT13….... read more

golang.pngGolang : Reverse text lines or flip line order example

11th July 2017


You are given lines of text and you need to reverse the lines order before encrypting the text. Reversing….... read more