Tutorials
Golang : Get input from keyboard
Writing text-based program to run from command line will not be completed without the ability to read input from the….... read more
Golang : Read input from console line
Ok, this is another tutorial on how to read input from console in Golang. It uses the bufio.NewReader() function and….... read more
Golang : How do I get the local IP (non-loopback) address ?
There are times we need to know the local machine IP address to send data packets to other services/server/clients and….... read more
Golang : concatenate(combine) strings
Once in a blue moon, a programmer will bound to process input strings and manipulate the strings into something meaningful….... read more
Golang : convert(cast) float to string
This is an add-on to this previous tutorial on converting/casting int to string. To convert or cast a….... read more
Nginx : Restart php-fpm
While doing some upgrading and maintenance work on one of my Digital Ocean droplets. I noticed that there is some….... read more
Golang : Split string
Problem :
Need to split this string ADAM, EVE, CALEB, SCOTT, GRANTT, JAMES by comma
Solution :
Use the….... read more
Unix/Linux/MacOSx : Get local IP address
Problem :
How to find out my MacOSX/ Linux / UNIX system ip address, subnet and related networking information from….... read more
Golang : invalid character ',' looking for beginning of value
In has been a while since I've encounter a strange error message that I couldn't comprehend. However, today is special….... read more
Golang : How to write CSV data to file
This tutorial is a continuation from previous tutorial on reading CSV file. The code below will demonstrate how….... read more
Yum Error: no such table: packages
During yum update, my VPS decided to freeze for unknown reason. Managed to do a remote reboot and get thing….... read more
Fix fatal error: evacuation not done in time problem
Encounter one of the strangest error messages in Go today regarding evacuation. Now, what the heck "evacuation" has to do….... read more
RPM : error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
Ok, was trying to update one of my servers today and encounter these funky error messages "error: db3 error(-30974) from….... read more
Google Maps URL parameters configuration
Google Maps have somehow becoming an integral part of many modern website that adhere to the SoLoMo (short for social-local-mobile)….... read more
Upload multiple files with Go
Uploading multiple files to Go server can be done easily as well. All you need to do is to parse….... read more
Swift : Convert (cast) Int to String ?
Problem :
How to convert (cast) Int to String in Swift programming language ?
Solution :
Just cast the Int….... read more
Fix yum-complete-transaction error
Ok. I tried to execute
….... read moresudo yum update
command today and I was greeted with this line :Golang : Print out struct values in string format
This tutorial will show you how to create a method for a
struct
to print out thestruct
values out….... read more