Tutorials

macosx.jpgGrep : How to grep for strings inside binary data

24th October 2014

Grep or Global Regular Expression Print is a very useful Unix/Linux command that I've practically used everyday. So, recently a….... read more



golang.pngGolang : Read until certain character to break for loop

23rd October 2014

Encounter a situation where I need to tell the editor that is time to save the input and exit while….... read more



golang.pngGolang : Text file editor (accept input from screen and save to file)

23rd October 2014

The images of me learning WordStar as kid somehow appeared in my dream yesterday. So, today I'm going to write….... read more



golang.pngGolang : Delete certain files in a directory

23rd October 2014

Encounter a situation today where I need to delete some files in a directory. Not all files, but some files….... read more



golang.pngGolang : Rename part of filename

23rd October 2014

This simple tutorial is a code fragment extract from previous tutorial for scanning and renaming partial filenames showing….... read more



golang.pngGolang : Saving(serializing) and reading file with GOB

23rd October 2014

Golang has a package ( GOB ) that allows developers to store memory values( such as int[], float64[] or any….... read more



golang.pngGolang : Scan files for certain pattern and rename part of the files

23rd October 2014

It is useful to have the ability to scan filenames that match certain pattern and rename part of the filenames….... read more



golang.pngGolang : Find IP address from string

23rd October 2014

In this short tutorial, we will learn how to get the first occurrence of an IP address in a given….... read more



jquery.pngJavascript : How to refresh page with JQuery ?

23rd October 2014

Sometimes, easy thing such as refreshing a page with javascript or jquery is the hardest thing to remember. To refresh….... read more



golang.pngGolang : How to check if IP address is in range

23rd October 2014

For security purpose, sometimes a server can only accept connection from clients that are trusted and of certain IP addresses.….... read more



golang.pngGolang : Rename directory

23rd October 2014

Just a slight variation from the tutorial on moving file to another with Golang. This tutorial will show….... read more



macosx.jpgMac OSX : Homebrew and Golang

21st October 2014

This is a different version of the tutorial for removing Go from Mac. In this tutorial, we will….... read more



golang.pngGolang : Call function from another package

21st October 2014

Very often new comers learning Go will encounter problem in calling functions from another library or package. Go needs to….... read more



golang.pngGolang : Read integer from file into array

21st October 2014

This tutorial will demonstrate how to read a file with integer values into array. Let say nums.txt is a file….... read more



golang.pngGolang : Get IP addresses of a domain name

21st October 2014

This small program demonstrate how to Golang's net.LookupIP() function to get the IP addresses from a given domain….... read more



golang.pngGolang : Convert(cast) int to int64

20th October 2014

It is not so cool to use type int now. It was so yesterday. Everyone wants to move to 64-bit….... read more



golang.pngGolang : Convert(cast) float to int

20th October 2014

One of trait of a good programmer is laziness. There are times that I wish to have a complete source….... read more



golang.pngGolang : How to get own program name during runtime ?

19th October 2014

One of the common question asked by newbie to Golang is how does one get their own program name during….... read more



Advertisement