golang.pngGolang : Delete files by extension

26th June 2014

Being able to select certain type of files to delete can be useful. In this follow up tutorial from .... read more

golang.pngGolang : Rename file

26th June 2014

No File I/O operations will be complete without the capability to rename file.

Renaming a file in Go is….... read more

golang.pngGolang : Find files by extension

26th June 2014

This is a filepath.Ext() function example and it will only display files with .png extension in the current directory. You….... read more

golang.pngGolang : Write file with io.WriteString

26th June 2014

Writing to a file in Golang is easy. There are couple of ways to do it. In this tutorial, we….... read more

golang.pngGolang : Delete file

26th June 2014

Deleting file in Go is simple. This short tutorial will demonstrate how to delete a file.

Let choose a file….... read more

golang.pngGolang : Append content to a file

26th June 2014

In this tutorial, we will learn how to open a file with specific mode such as for appending data when….... read more

golang.pngGolang : Simple File Server

25th June 2014

Got a request from a developer friend yesterday on how to open up part of his machine and turn into….... read more

golang.pngGolang : Copy file

25th June 2014

Here’s an example to copy a file named “input.txt” to another file named “output.txt”.

Copying files can be done….... read more

password.pngRestart Apache or Nginx web server without password prompt

24th June 2014

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

23rd June 2014

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

23rd June 2014

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

22nd June 2014

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

22nd June 2014

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

20th June 2014

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"

19th June 2014

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

19th June 2014

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)

19th June 2014

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

16th June 2014

Random number is useful in many applications. From salting password to enabling secure transactions.

In this tutorial, we will….... read more