Tutorials
Golang : Build and compile multiple source files
One of the many challenges for new comers to Golang is to learn how to use go install
command to….... read more
Golang : Strip slashes from string example
A quick post on how to get an equivalent to PHP's stripslashes()
function in Golang. Basically in PHP, the stripslashes()
….... read more
Linux/MacOSX : Search and delete files by extension
Continuing from previous tutorial on how to search for files by extension with find
command. For this post,….... read more
Linux/MacOSX : Search for files by filename and extension with find command
Jotting down these useful commands here for future references, never know when I might need to recall them again on….... read more
PHP : Proper way to get UTF-8 character or string length
Problem :
Was trying to get a length of an unicode(UTF-8) character with PHP. Trouble is, PHP echoes back 3,….... read more
Elastic Search : Return all records (higher than default 10)
Problem :
You only get 10 results from elastic search query and you suspected that there should be more results….... read more
Golang : Determine if time variables have same calendar day
Problem :
You have two or more variables that are of type time.Time
and you want to find out if….... read more
Golang : UDP client server read write example
In this tutorial, we will learn how to build a bare bone client-server UDP program with Golang. This UDP example….... read more
Golang : Get UDP client IP address and differentiate clients by port number
Problem :
Your UDP server program needs to find out the UDP client IP address before writing to client. However,….... read more
Golang : How to flush a channel before the end of program?
Problem :
Your program that uses channels and go routines did not print out all the expected result. Upon investigation,….... read more
Golang : How to verify input is rune?
Problem :
You need to determine if the user input is a valid rune. How to do that?
Solution :
….... read moreGolang : Get S3 or CloudFront object or file information
Here is a simple example on how to get the S3, CloudFront object (in fact, any file accessible from URL)….... read more
Golang : Handle sub domain with Gin
Just a supplementary tutorial for the previous tutorial on how to deal with sub domain in Golang. In….... read more
Golang : Listen and Serve on sub domain example
At this moment, Golang's ListenAndServer()
is able to handle URL with such pattern
www.example.com/api
However, if….... read more
Swift : Convert (cast) Character to Integer?
Problem :
How to convert (cast) character to integer in Swift programming language ?
Solution :
Simple. Just cast the….... read more
Golang : Gin framework accept query string by post request example
Golang's standard net/http
package has excellent and sufficient functions to handle web applications such as a micro service or API….... read more
Golang : Generate universally unique identifier(UUID) example
A UUID ( universally unique identifier ) is a 128-bit string value that is used in developing software. An example….... read more
Golang : Reverse by word
This tutorial will show you how to reverse the order of words in a string. Reversing the words or elements….... read more