golang.pngGolang : 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

golang.pngGolang : Check if a file exist or not

In this tutorial, we will see how to check if a file exist or not before performing further operation.


.... read more

password.pngRestart 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 more

facebook.pngGet 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

facebook.pngYour 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.jpgCodeIgniter : 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.jpgnginx : 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.pngSSL : 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.jpgnginx: [emerg] unknown directive "ssl"

Purchased SSL certs and wanted to install SSL for nginx/CentOS Droplets today but encountered this error message instead :

.... read more

golang.pngGet 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.jpgnginx: [emerg] bind() to 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

golang.pngRandom 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