Tutorials

php.jpgPHP : Send HTML email

22nd December 2014

Sending email with PHP is easy and in this tutorial, we will learn how to send HTML based email with….... read more



golang.pngGolang : Parsing or breaking down URL

22nd December 2014

Golang provides an easy way to consume and parse URL. It has a very neat package ( http://golang.org/pkg/net/url.... read more



golang.pngGolang : Get URI segments by number and assign as variable example

22nd December 2014

Coming from PHP and CodeIgniter(framework for PHP) background. One thing that I missed is the URI helper's $this->uri->segment(n) where it….... read more



golang.pngGolang : On enumeration

22nd December 2014

In Golang, it is fairly simple to declare enumeration. Just group the similar items into a const group and use….... read more



golang.pngGolang : Error handling methods

22nd December 2014

Couple of days ago I attended a Golang meetup for the first time nearby where I live. There are developers….... read more



jquery.pngJavascript : How to get JSON data from another website with JQuery or Ajax ?

22nd December 2014

A very common task for developing front-end. I used to write this a lot but some how forgotten about it….... read more



golang.pngGolang : What is the default port number for connecting to MySQL/MariaDB database ?

21st December 2014

Problem :

How to determine which port number when trying to connect to a database with https://github.com/go-sql-driver/mysql and….... read more



golang.pngGolang : Connect to database (MySQL/MariaDB) server

21st December 2014

Database is the main workhorse powering most dynamic content websites today and yet most of the time a database is….... read more



golang.pngGolang : How to check if a connection to database is still alive ?

21st December 2014

Problem :

How to check if a connection to database is still alive ?

Solution :

Use DB.Ping.... read more



swift.jpgSwift : Convert (cast) String to Float

21st December 2014

Problem :

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

Solution :

Use….... read more



macosx.jpgUnix/Linux : How to archive and compress entire directory ?

21st December 2014

While writing tutorial on how to untar a gzipped tar ball archive with Golang today, I was lost….... read more



golang.pngGolang : Upload file from web browser to server

20th December 2014

Recently, I came across a question on Go programming language Facebook group on how to upload file with .... read more



golang.pngGolang : Concurrency and goroutine example

19th December 2014

Golang has concurrency build into the core design and this is one of the main features that attracted many veteran….... read more



golang.pngGolang : Check if os.Stdin input data is piped or from terminal

18th December 2014

There are times we need to write a program that need to behave in one way according to input from….... read more



golang.pngGolang : Read file and convert content to string

18th December 2014

Problem :

You want to read a file content and convert the content into string.

Solution :

Read the file….... read more



golang.pngGolang : Sort and reverse sort a slice of integers

18th December 2014

Problem :

How to sort and reverse sort a slice of integers ?

Solution :

Use sort.Ints and sort.Sort functions.….... read more



golang.pngGolang : Sort and reverse sort a slice of runes

18th December 2014

Problem :

How to sort and reverse sort a slice of runes ?

Solution :

Sorting runes depends on the….... read more



golang.pngGolang : Sort and reverse sort a slice of bytes

18th December 2014

Problem :

How to sort and reverse sort a slice of bytes ?

Solution :

Import "github.com/cznic/sortutil"

Use the ByteSlice….... read more



Advertisement