Tutorials

golang.pngGolang : How to join strings?

24th March 2015

Apart from using fmt.Sprint() function to combine strings together. There is another way to concatenate string from different strings. One….... read more



golang.pngGolang : Squaring elements in array

23rd March 2015

Problem :

You need to calculate the square values of the elements in an array or slice.

Solution :

.... read more



golang.pngGolang : Generate MD5 checksum of a file

23rd March 2015

This is an update to the previous tutorial on how to generate checksum for a file, except that….... read more



golang.pngGolang : Generate random elements without repetition or duplicate

23rd March 2015

Problem :

How to generate a map with random elements without repetition or duplicate items in the map?

Solution :

.... read more



golang.pngGolang : File system scanning

23rd March 2015

Problem :

How to scan all the files located inside a root directory in Golang?

Solution :

Use the filepath.Walk.... read more



golang.pngGolang : Find duplicate files with filepath.Walk

23rd March 2015

Sometimes we downloaded a lot of files in a directory and although the files have different names, they could be….... read more



golang.pngGolang : Find file size(disk usage) with filepath.Walk

23rd March 2015

Need to determine which file is taking up all the disk space? Maybe this small Golang program can be useful….... read more



golang.pngGolang : Validate email address

20th March 2015

Problem :

You need a quick way to validate if a user has entered a valid email address without knowing….... read more



jquery.pngJQuery : Calling a function inside Jquery(document) block

20th March 2015

Problem :

Saw this error message in the browser's console while attempting to call a function inside JQuery(document) section resulted….... read more



swift.jpgSwift : Convert (cast) String to Double

20th March 2015

Helping out a colleague to solve this simple task of converting string value to double today. Putting down this solution….... read more



golang.pngGolang : Regular Expression find string example

20th March 2015

This is a simple tutorial on how to use Golang's regexp package to find certain string value in a string.….... read more



swift.jpgSwift : Convert (cast) Float to String

20th March 2015

Problem :

You have a float value and you need to convert the float into string type in Swift.

Solution….... read more



golang.pngGolang : Count number of runes in string

14th March 2015

This just a note for myself and perhaps it can be useful to you as well.

To count a….... read more



s3.pngAWS S3 : Prevent Hotlinking policy

12th March 2015

Problem :

Hosting a lot of photos or video files on AWS S3? Don't want other websites to link to….... read more



golang.pngGolang : Read from buffered reader until specific number of bytes

12th March 2015

Problem :

You have a buffered reader streaming in with data. You want to limit each read to a specific….... read more



elasticsearch.pngElastic Search : Mapping date format and sort by date

12th March 2015

While working on the job board for Socketloop.com recently, I need to sort the Elastic Search result based….... read more



golang.pngGolang : Extract sub-strings

12th March 2015

To extract sub-strings from a string in Golang, it can be done by determining a common delimiter and tokenize each….... read more



golang.pngGolang : Securing password with salt

12th March 2015

Every now and then we will hear some companies or banks database got compromised and the hackers will publish the….... read more



Advertisement