Tutorials
Golang : Natural string sorting example
Problem:
You want to sort a couple of strings with numbers in natural order so that the list looks nice….... read more
Golang : Transform comma separated string to slice example
Got a request from a junior software developer from India. Her question is how to convert a given comma-separated string….... read more
Golang : Valued expressions and functions example
Writing this simple example down here as a reminder for myself on how to use valued expressions in Golang. Nothing….... read more
Golang : Bcrypting password
From my past tutorial on salting password, a reader pointed out that there is a better way to….... read more
Golang : Get all local users and print out their home directory, description and group id
In this short tutorial, we will explore how to get a list of users from the local machine and iterate….... read more
Golang : Fix opencv.LoadHaarClassifierCascade The node does not represent a user object error
Problem:
You're trying load a Haarcascade file with opencv.LoadHaarClassifierCascade()
function in Golang, but you get this error message instead :
Javascript : Detect when console is activated and do something about it
Problem:
You do not want your website visitors to see what is behind the curtain of your website. You want….... read more
Golang : Hue, Saturation and Value(HSV) with OpenCV example
Problem:
BGR colorspace has pixels intensity information encoded into the blue, green and red channels. You want to convert an….... read more
Golang : Find and draw contours with OpenCV example
Ability to detect shapes is often the most important steps in allowing a computer to make decision...such as deciding if….... read more
Golang : Eroding and dilating image with OpenCV example
I'm learning OpenCV by going through some of the examples found on OpenCV website. For this post, below is an….... read more
Golang : Gaussian blur on image and camera video feed examples
The following code examples demonstrate how to use Golang and OpenCV to apply Gaussian blur filter on static image and….... read more
Golang : Select region of interest with mouse click and crop from image
Just a short Golang OpenCV program that allows the user to select a region of interest on an image with….... read more
Golang : Find and replace data in all files recursively
Alright, this tutorial is an enhancement of previous tutorial on how to search for file recursively with wildcard support. In….... read more
Golang : Search folders for file recursively with wildcard support
Ok, here is an example on how to search for a file starting from a target directory and recursively search….... read more
Gogland : Single File versus Go Application Run Configurations
This is a follow up from the previous guide on how to place the source code files in….... read more
Gogland : Where to put source code files in package directory for rookie
Below is a simple guide for JetBrains Gogland IDE on how to add your own package and invoke….... read more
Golang : Repeat a character by multiple of x factor
In Python, it is pretty easy to repeat some characters inside a string. All you need to do is to….... read more
Golang : Add build version and other information in executables
Problem:
You want to add version and other information such as compilation time into your executables(binaries) and display the information….... read more