Tutorials

swift.jpgSwift : Convert (cast) String to Integer

11th December 2014

Problem :

How to convert (cast) String to Integer value in Swift programming language ?

Solution :

Just cast the….... read more



golang.pngGolang : How to verify uploaded file is image or allowed file types

9th December 2014

Problem :

How do I verify if an uploaded file to my server is ... let say I only allow….... read more



golang.pngGolang : Crop image

9th December 2014

This is a continuation from the previous tutorial on how to resize image in Golang. For this tutorial,….... read more



golang.pngGolang : Resize Image

9th December 2014

Somehow...just feel like writing a tutorial on how to resize image with Golang today while writing out references for Golang's….... read more



golang.pngGolang : Get number of CPU cores

9th December 2014

Problem :

You want to find the maximum number of CPU cores to maximize performance.

Solution :

Use the .... read more



golang.pngGolang : Save image to PNG, JPEG or GIF format.

7th December 2014

This tutorial will demonstrate how to save images into files. We will learn how to generate some random images and….... read more



golang.pngGolang : How to read JPG(JPEG), GIF and PNG files ?

7th December 2014

Was having a hard time trying to figure out why all my attempts to open and read JPG or JPEG….... read more



golang.pngGolang : Fix cannot download, $GOPATH not set error

4th December 2014

For anyone exploring Golang and trying to get new packages from ... let say Github. One of the most common….... read more



macosx.jpgLinux : sudo yum updates not working

4th December 2014

Try to do a sudo yum updates command this morning on one of my DigitalOcean droplets today and encounter weird….... read more



golang.pngGolang : convert(cast) bytes to string

4th December 2014

Encounter a problem when helping out a co-worker today to read in data generated by another program. To make it….... read more



golang.pngGolang : automatically figure out array length(size) with three dots

4th December 2014

In Go, you can specify a length(size) of an array either explicitly or implicitly(i.e let the compiler figure out) with….... read more



macosx.jpgUnix/Linux/MacOSx : How to remove an environment variable ?

4th December 2014

Somehow I screwed up my GOPATH and GOROOT environment variables today and removing (sudo yum remove ) Go did not….... read more



golang.pngGolang : How to get struct field and value by name

4th December 2014

In Go, there are times when we need to find out the value of a field in a given structure….... read more



golang.pngGolang : Convert CSV data to JSON format and save to file

3rd December 2014

Need to load a CSV data file and save it to JSON encoded file or stream it out ... like….... read more



csv.jpgConvert JSON to CSV in Golang

3rd December 2014

Need to load a data file with JSON encoded data and save it to CSV file ? This tutorial will….... read more



golang.pngGolang : Setting variable value with ldflags

3rd December 2014

This short tutorial will demonstrate how to initialize a variable value during runtime at the stage of compilation/linking. Go linker….... read more



golang.pngGolang : convert(cast) string to integer value

3rd December 2014

To convert or cast a string to integer value, just use the strconv.Atoi() function. Below is the code example to….... read more



golang.pngGolang : Check to see if *File is a file or directory

3rd December 2014

Sometimes, we need to write codes that is robust and flexible enough to handle different situation. For example, if a….... read more



Advertisement