Tutorials

golang.pngGolang : 2 dimensional array example

6th November 2015

An example of how to create 2 dimensional array in Golang. Since arrays are fixed size construct, we must specify….... read more



golang.pngGolang : Pass database connection to function called from another package and HTTP Handler

5th November 2015

For this tutorial, we will explore how to pass database connection to external function called from another package. To pass….... read more



ssl.pngGenerate salted password with OpenSSL example

4th November 2015

Problem :

You need to generate a salted MD5 password string for new users registration. For example, you are IT….... read more



credit-cards.pngCash Flow : 50 days to pay your credit card debt

4th November 2015

In running a business, the most important keyword is "cash flow". A business without healthy cash flow, is just like….... read more



windows.jpgUse systeminfo to find out installed Windows Hotfix(s) or updates

3rd November 2015

Helping out a friend to troubleshoot his virtual Windows servers. One machine is for production use, running a Java application….... read more



mariadb.pngFix ERROR 2003 (HY000): Can't connect to MySQL server on 'IP address' (111)

3rd November 2015

Problem :

Continuing from previous tutorial on how to fix access denied to root connecting remotely error 1045.….... read more



ubuntu.pngPrevent Write failed: Broken pipe problem during ssh session with screen command

3rd November 2015

There are times when you are away from you computer/terminal and come back later to find the ssh session or….... read more



ubuntu.pngLinux/Unix : fatal: the Postfix mail system is already running

3rd November 2015

Problem :

Postfix throws out this error message :

fatal: the Postfix mail system is already running

when attempting….... read more



mariadb.pngFix ERROR 1045 (28000): Access denied for user 'root'@'ip-address' (using password: YES)

3rd November 2015

Problem :

It is a standard procedure for database administrator to ssh into database server and work on localhost level.….... read more



golang.pngGolang : Random integer with rand.Seed() within a given range

2nd November 2015

Need to generate a random single integer within a given number range. For example, get one random integer from 1….... read more



golang.pngGolang : All update packages with go get command

2nd November 2015

Problem :

Some of the third party packages that your Golang application use have now been superseded by better version.….... read more



golang.pngGolang : simulate tail -f or read last line from log file example

2nd November 2015

In this tutorial, we will attempt to simulate the Linux/Unix tail command with -f option in Golang. What this code….... read more



golang.pngGolang : bufio.NewReader.ReadLine to read file line by line

2nd November 2015

In the previous tutorial on how to read file line by line with bufio.NewScanner() example. The previous example….... read more



golang.pngGolang : syscall.Socket example

31st October 2015

Just a comparison on how Golang code that utilize net package looks like if implemented with syscall.Socket example :

.... read more



golang.pngGolang : Read large file with bufio.Scanner cause token too long error

30th October 2015

There are couple of ways to read files with Golang and one of the common way to read in file….... read more



python.pngPython : Find out the variable type and determine the type with simple test

29th October 2015

Couple of ways to determine or find out the type of a variable or object in Python. Listing down the….... read more



python.pngPython : Create Whois client or function example

29th October 2015

Adding this Python tutorial as a supplement for my previous tutorial on how to implement Golang whois client.….... read more



golang.pngGolang : Iterate linked list example

29th October 2015

Alright, you have created a linked list with container/list and now you wonder how are you going to iterate over….... read more



Advertisement