golang.pngGolang : Detect number of active displays and the display's resolution

15th July 2019

There are times when we need to find out the number of active displays and their resolution. The following code….... read more

golang.pngGolang : Translate language with language package example

14th July 2019

Just a simple example on how to use the language package to do language translation. Not a google translate type….... read more

golang.pngGolang : Human readable time elapsed format such as 5 days ago

8th July 2019


You need to convert a date time stamp such as this 02 March 1992 10:10:50 into a human readable….... read more

golang.pngGolang : Gargish-English language translator

1st July 2019

Another just for fun example where I get to translate English text into Gargoyle's language - Gargish. I first got….... read more

golang.pngGolang : Grab news article text and use NLP to get each paragraph's sentences

25th June 2019

This tutorial is a slight improvement over the previous tutorial which uses prose natural language processing library to get….... read more

golang.pngGolang : Use NLP to get sentences for each paragraph example

25th June 2019

Instead of reading ALL the news with human eyes to find out what's going on with the economy or market….... read more

golang.pngGolang : Derive cryptographic key from passwords with Argon2

24th June 2019

Argon2 is a method used to derive cryptographic key from passwords which has a few advantages over the "traditional method"….... read more

golang.pngGolang : Calculate Relative Strength Index(RSI) example

17th June 2019

Alright, below is a simple example on how to calculate the Relative Strength Index(RSI) using data from Binance.com and Golang.….... read more

golang.pngGolang : Send data to /dev/null a.k.a blackhole with ioutil.Discard

17th June 2019

In Unix/Linux system administration, there are times when the system administrator needs to reduce the size of a file to….... read more

golang.pngGolang : How to run your code only once with sync.Once object

17th June 2019

Problem :

You have a function that will load a resource such as reading configuration data from an external file….... read more

golang.pngGolang : Read a file into an array or slice example

17th June 2019

Ok, got a junior developer that wants to know how to read a text file content line by line into….... read more

golang.pngGolang : Add ASCII art to command line application launching process

15th June 2019

Problem : You worked hard on creating your application and you want add some ASCII art to prettify the launching….... read more

golang.pngGolang : A program that contain another program and executes it during run-time

15th June 2019

For this tutorial, what we are trying to achieve here is to write a program that contains another mini program….... read more

mariadb.pngMariaDB/MySQL : How to get version information

15th June 2019

Putting this here for my own future reference. Recently I need to move some databases to a new MariaDB server….... read more

golang.pngGolang : Launching your executable inside a console under Linux

14th June 2019

Problem: You want to launch your executable under a terminal window after clicking on an icon. Why you want to….... read more

golang.pngGolang : Convert an executable file into []byte example

14th June 2019

This small utility program will read an executable file(or just any file) and convert the content into a []byte slice.….... read more

golang.pngGolang : Calculate how many weeks left to go in a given year

13th June 2019

Here is a simple tutorial on how to calculate the number of weeks in a given year and figure out….... read more

java.pngJava : Get FX sentiment from website example

13th June 2019

A quick Java implementation of my previous Golang tutorial on how to "scrape" FX(forex) sentiment data from a web….... read more