Tutorials

golang.pngGolang : Create and shuffle deck of cards example

17th May 2016

Problem:

You want to create a computer game like Strip Poker or you simply want to create a….... read more



golang.pngGolang : Variadic function arguments sanity check example

17th May 2016

Problem:

Golang is cool and you love to use variadic function frequently. You have a variadic function such as a….... read more



golang.pngGolang : Simple histogram example

16th May 2016

This is a simple histogram program written in Golang. Can be useful in situations where you want to roughly assess….... read more



golang.pngGolang : Get ASCII code from a key press(cross-platform) example

14th May 2016

Problem:

Somehow you are feeling nostalgic and played some retro games from the 80s such as Load Runner.... read more



golang.pngGolang : Extract unicode string from another unicode string example

14th May 2016

Problem:

You have a string with unicode (UTF-8) characters and you want to extract part of the string by using….... read more



golang.pngGolang : Test input string for unicode example

29th April 2016

Problem:

You are trying to create a slightly different solution for user that use unicode and you want to test….... read more



golang.pngGolang : Handle Palindrome string with case sensitivity and unicode

29th April 2016

Problem:

You are studying Computer Science and you have an assignment to check if a word, phrase, number or any….... read more



golang.pngHow to tell if a binary(executable) file or web application is built with Golang?

28th April 2016

Problem:

How to tell if a binary(executable) file or web application is built with Golang?

Solutions:

Back in the DOS….... read more



golang.pngGolang : Compound interest over time example

28th April 2016

It is time for me to do something "lighter" now.... such as investing rather than heavy duty programming ..... so….... read more



php.jpgFix "Failed to start php5-fpm.service: Unit php5-fpm.service is masked."

26th April 2016

Problem:

Encounter this error message :

Failed to start php5-fpm.service: Unit php5-fpm.service is masked.

after upgrading Ubuntu with do-release-upgrade.... read more



golang.pngGolang : Proper way to test CIDR membership of an IP 4 or 6 address example

25th April 2016

Problem:

You have generated a range of IP addresses from a given Classless Inter-Domain Routing address(CIDR) address and you want….... read more



golang.pngGolang : Recombine chunked files example

23rd April 2016

Problem :

You use the previous tutorial on how to split or chunk a big file into smaller….... read more



golang.pngGolang : Function wrapper that takes arguments and return result example

13th April 2016

Continuing from our previous "primitive" tutorial on implementing a simple metaprogramming by creating a wrapper for a function.….... read more



golang.pngGolang : Perform sanity checks on filename example

12th April 2016

Problem:

Your Golang application accepts files uploaded by visitors. However, you want to sanitize the uploaded filenames for security purpose.….... read more



golang.pngGolang : Get digits from integer before and after given position example

11th April 2016

This is more like just for fun tutorial, but can useful in a situation such as extracting suffix or prefix….... read more



golang.pngGolang : Metaprogramming example of wrapping a function

11th April 2016

One of the most important mantras in programming is "DRY" or "Don't Repeat Yourself". Software developers should try to master….... read more



golang.pngGolang : Individual and total number of words counter example

11th April 2016

Problem:

You need to count the unique instances of words and the total number of words in a given string.….... read more



golang.pngGolang : Byte format example

11th April 2016

Problem:

You want to format the long integer or number string representing a byte size such as giga, mega, peta….... read more



Advertisement