Tutorials
Unix/Linux : How to get own IP address ?
I know I know... this should be a fairly simple task.. but my memory is that good anymore.
Just….... read more
Golang : Detect (OS) Operating System
Ability to detect which type of operating system during run time can be helpful in programming a software behavior or….... read more
Golang : http.Get example
Grabbing content in raw HTML format is useful for crawling or parsing purpose. This short tutorial demonstrates how easy it….... read more
Golang : HTTP response JSON encoded data
Alright, time to get dirty again.
I need to do a quick and easy http.Get()
from another server(let say server….... read more
Golang : Process json data with Jason package
While writing out the tutorial on how to read json data and save to csv, I was thinking….... read more
Golang : Download file example
Continuing from previous tutorial on how to use http.Get()
function, in this tutorial, we will learn how to….... read more
Golang : cannot assign type int to value (type uint8) in range error
Sometimes, we tend to overlook a small part of for--loop just because we use it frequently and expect the compiler….... read more
Golang : Grayscale Image
Another feature that I like about this Disintegration Imaging package is the ability to generate grayscaled image. The….... read more
PHP : Get coordinates latitude/longitude from string
Problem :
Let say we are dealing with another program that produces coordinates (lat/long) in a string format that look….... read more
PHP : Extract part of a string starting from the middle
Extracting part of the string is a fairly common task in programming and sometimes it can be a bit challenging….... read more
Golang : Gorilla mux routing example
This is a short tutorial on how to use Gorilla's mux. The code example below is taken from .... read more
Golang : Web routing/multiplex example
Routing based on the URL's path can be useful in some cases like build RESTful API server.
Problem :
You….... read more
PHP : Send HTML email
Sending email with PHP is easy and in this tutorial, we will learn how to send HTML based email with….... read more
Golang : Parsing or breaking down URL
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 : Get URI segments by number and assign as variable example
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 : On enumeration
In Golang, it is fairly simple to declare enumeration. Just group the similar items into a const
group and use….... read more
Golang : Error handling methods
Couple of days ago I attended a Golang meetup for the first time nearby where I live. There are developers….... read more
Javascript : How to get JSON data from another website with JQuery or Ajax ?
A very common task for developing front-end. I used to write this a lot but some how forgotten about it….... read more