Tutorials

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

1st August 2017

Problem:

Retrieving the last segment/part or the remaining text after a slash in the URL or filename in a path….... 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 : Sort words with first uppercase letter

18th July 2017

Problem:

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

Problem:

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

Problem:

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



android.jpgAndroid Studio : Highlight ImageButton when pressed on example

10th July 2017

There are times when we want to spice up our Android app with buttons that are aware of being pressed….... read more



golang.pngGolang : Allow Cross-Origin Resource Sharing request

10th July 2017

Problem:

You have a client JavaScript code that want to make XHR(XMLHttpRequest) request to another Golang server which is also….... read more



golang.pngGolang : Humanize and Titleize functions

6th July 2017

Humanize function takes multiple words separated by a given separator and changes them to spaces. Titleize converts a given string….... read more



golang.pngGolang : Ordinal and Ordinalize a given number to the English ordinal numeral

6th July 2017

Two functions that will convert a given number to the English ordinal numeral. Can be handy in developing chat bot….... read more



Advertisement