Tutorials
Golang : Delete file
Deleting file in Go is simple. This short tutorial will demonstrate how to delete a file.
Let choose a file….... read more
Golang : Append content to a file
In this tutorial, we will learn how to open a file with specific mode such as for appending data when….... read more
Golang : Simple File Server
Got a request from a developer friend yesterday on how to open up part of his machine and turn into….... read more
Golang : Copy file
Here’s an example to copy a file named “input.txt” to another file named “output.txt”.
Copying files can be done….... read more
Restart Apache or Nginx web server without password prompt
After installing SSL certificates on my Nginx server, I've started to experience some minor "annoyance" of being prompted for
….... read moreGet Facebook friends working in same company
Problem :
Need to find common friends working in the same companies with Facebook.
Solution :
Use FQL to extract….... read more
Your page has meta tags in the body instead of the head
Once in a while we will come across vague error message that lead us to no where and provide no….... read more
CodeIgniter : Load different view for mobile devices
Codeigniter(PHP framework) supports the detection of client devices(user agents). In this tutorial, we will see how to use Codeigniter User….... read more
nginx : force all pages to be SSL
With man-in-the-middle attacking becoming more frequent like government censorship. It would be a good idea to server all web pages….... read more
SSL : The certificate is not trusted because no issuer chain was provided
Problem :
While installing SSL for my nginx server today. Firefox decided to issue warning about the new SSL certificates….... read more
nginx: [emerg] unknown directive "ssl"
Purchased SSL certs and wanted to install SSL for nginx/CentOS Droplets today but encountered this error message instead :
….... read moreGet form post value in Go
Practically almost every web page out there will ask you to fill a form to progress further. Most of these….... read more
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Not really a tutorial, but more about solving problem.
Problem : Try to start nginx after a hard reboot….... read more
Random number generation with crypto/rand in Go
Random number is useful in many applications. From salting password to enabling secure transactions.
In this tutorial, we will….... read more
Golang : Get environment variable
Sometimes we need to get the environment variables for performing next task in our program. It is straight forward to….... read more
Check CentOS version
While troubleshooting Go setup on my CentOS box. I need to find out which version of the CentOS I'm running….... read more
Emacs mode for Golang
This tutorial is dedicated to a brother in Wisconsin.
Emacs depends on lisp mode for proper language syntax. The….... read more
Generate Random number with math/rand in Go
Random number is useful in many application. One such example is salting password to make in more secure. In this….... read more