Tutorials
Golang : 2 dimensional array example
An example of how to create 2 dimensional array in Golang. Since arrays are fixed size construct, we must specify….... read more
Golang : Pass database connection to function called from another package and HTTP Handler
For this tutorial, we will explore how to pass database connection to external function called from another package. To pass….... read more
Generate salted password with OpenSSL example
Problem :
You need to generate a salted MD5 password string for new users registration. For example, you are IT….... read more
Cash Flow : 50 days to pay your credit card debt
In running a business, the most important keyword is "cash flow". A business without healthy cash flow, is just like….... read more
Use systeminfo to find out installed Windows Hotfix(s) or updates
Helping out a friend to troubleshoot his virtual Windows servers. One machine is for production use, running a Java application….... read more
Fix ERROR 2003 (HY000): Can't connect to MySQL server on 'IP address' (111)
Problem :
Continuing from previous tutorial on how to fix access denied to root connecting remotely error 1045.….... read more
Prevent Write failed: Broken pipe problem during ssh session with screen command
There are times when you are away from you computer/terminal and come back later to find the ssh session or….... read more
Linux/Unix : fatal: the Postfix mail system is already running
Problem :
Postfix throws out this error message :
fatal: the Postfix mail system is already running
when attempting….... read more
Fix ERROR 1045 (28000): Access denied for user 'root'@'ip-address' (using password: YES)
Problem :
It is a standard procedure for database administrator to ssh into database server and work on localhost level.….... read more
Golang : Random integer with rand.Seed() within a given range
Need to generate a random single integer within a given number range. For example, get one random integer from 1….... read more
Golang : All update packages with go get command
Problem :
Some of the third party packages that your Golang application use have now been superseded by better version.….... read more
Golang : simulate tail -f or read last line from log file example
In this tutorial, we will attempt to simulate the Linux/Unix tail
command with -f
option in Golang. What this code….... read more
Golang : bufio.NewReader.ReadLine to read file line by line
In the previous tutorial on how to read file line by line with bufio.NewScanner()
example. The previous example….... read more
Golang : syscall.Socket example
Just a comparison on how Golang code that utilize net
package looks like if implemented with syscall.Socket
example :
.... read moreGolang : Read large file with bufio.Scanner cause token too long error
There are couple of ways to read files with Golang and one of the common way to read in file….... read more
Python : Find out the variable type and determine the type with simple test
Couple of ways to determine or find out the type of a variable or object in Python. Listing down the….... read more
Python : Create Whois client or function example
Adding this Python tutorial as a supplement for my previous tutorial on how to implement Golang whois client.….... read more
Golang : Iterate linked list example
Alright, you have created a linked list with
container/list
and now you wonder how are you going to iterate over….... read more