Tutorials

php.jpgPHP : Convert(cast) int to double/float

11th March 2015

Problem :

You have an integer value and you need to convert it ot double or float value in PHP

.... read more



golang.pngGolang : Check if item is in slice/array

11th March 2015

Problem :

You need to see if an item is inside a slice or array.

Solution :

Golang does not….... read more



golang.pngGolang : Delete duplicate items from a slice/array

11th March 2015

Problem :

Fairly common question or task that a programmer will face from time to time. How to remove duplicate….... read more



nginx.jpgNginx : Password protect a directory/folder

9th March 2015

Problem :

You want to protect a directory that only certain individuals with the right password can access via a….... read more



golang.pngGolang : Upload and download file to/from AWS S3

2nd February 2015

One of my projects involved uploading tar gzipped files to AWS-S3 and use the CloudFront(CDN) for worldwide distribution.

The….... read more



golang.pngGolang : Upload big file (larger than 100MB) to AWS S3 with multipart upload

2nd February 2015

At my previous tutorial on uploading file to Amazon Web Services S3, a reader asked if the method….... read more



golang.pngGolang : Get YouTube playlist

27th January 2015

A programmer productivity can be increased with a good playlist of music to get into the "zone" and I need….... read more



golang.pngGolang : Upload/Receive file progress indicator

15th January 2015

It is always nice to have a progress bar telling us how long to wait for the upload or download….... read more



golang.pngGolang : List objects in AWS S3 bucket

14th January 2015

For this tutorial, we will learn how to list a content of a AWS-S3 bucket.

The code below uses….... read more



golang.pngGolang : Convert an image file to []byte

13th January 2015

This is a quick tutorial on how to convert an image file to byte array. This question was originally posted….... read more



golang.pngGolang : Capture stdout of a child process and act according to the result

13th January 2015

Let say you want to execute a shell command of a child process in your main program and want to….... read more



php.jpgPHP : Convert(cast) string to bigInt

13th January 2015

Problem :

In PHP, you want to convert(cast) a string to become big integer value.

Solution :

Use GNU Multiple….... read more



php.jpgPHP : Convert(cast) bigInt to string

13th January 2015

Problem :

In PHP, you want to convert(cast) a big integer value to string for display.

Solution :

Use GNU….... read more



golang.pngGolang : Convert(cast) int64 to string

13th January 2015

Problem :

You want to convert(cast) a big integer value to string for display.

Solution :

Use strconv.FormatInt() function to….... read more



golang.pngGolang : Convert(cast) bigint to string

13th January 2015

Problem :

You want to convert(cast) a big integer value to string for display.

Solution :

Use big.Int.String() function to….... read more



golang.pngGolang : Save(pipe) HTTP response into a file

8th January 2015

Problem :

You want to save or pipe a website content via http.Get() function to a file for processing.

Solution….... read more



facebook.pngGolang : Login(Authenticate) with Facebook example

2nd January 2015

By today's Internet standard, if you want to create a website or app that allows user to login, it won't….... read more



golang.pngGolang : Send email with attachment

1st January 2015

In my previous tutorial on Go's send email and configure SMTP example, I left out a part where….... read more



Advertisement