Tutorials
HTTP common errors and their meaning explained
The most common error message a normal person surfing the web will encounter is error 404. However, for those in….... read more
CodeIgniter : form input set_value cause " to become & quot
Problem :
A string retrieved from database contains "
and when you try to display the string with Form Helper's….... read more
PHP : How to handle URI or URL with non-ASCII characters such as Chinese/Japanese/Korean(CJK) ?
This tutorial is for CodeIgniter, but it should work with any PHP framework or raw PHP.
While working with CodeIgniter,….... read more
Useful methods to access blocked websites
In this tutorial, we will explore couple of methods that you can use to access blocked websites. There are many….... read more
Linux/Unix/PHP : Restart PHP-FPM
Problem :
One of my server ran out of memory because of defunct php-fpm process. Need to restart php-fpm (FastCGI….... read more
PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)
Problem :
Need to convert a date string in PHP before storing the date into database(MariaDB/MySQL). The field in table….... read more
PHP : Convert CSV to JSON with YQL example
Just a note for myself for future reference. Putting this down here...maybe you may find it useful too.
This tutorial….... read more
Golang : Configure crontab to poll every two minutes 8am to 6pm Monday to Friday
Was very busy lately working on a new project for a client. One of the key requirements in the project….... read more
Golang : How to deal with configuration data?
A friend ask what are the ways to deal with configuration data in Golang. Couple of ways that I can….... read more
Ubuntu : connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream
Encountered a permission denied problem while setting up a server with Ubuntu + PageSpeed + Nginx + PHP5-FPM. From the….... read more
Golang : Compare floating-point numbers
It has been a while since I need to compare two float numbers. Golang's math/big
package has function to compare….... read more
Golang : Defer function inside init()
Putting this short note down for those intending to use defer function inside init(). IF you put a defer function….... read more
Mac OSX : Find large files by size
Mac OS X prompted me about my startup disk running out of disk space. I need a quick way to….... read more
Unix/Linux : How to find out the hard disk size?
It is easy to find out the available or used up hard disk space in a Graphical User Interface environment….... read more
Golang : Round float to precision example
Just an add on for my previous tutorial on how to round up or down a float number.….... read more
Unix/Linux : How to fix CentOS yum duplicate glibc or device-mapper-libs dependency error?
Encountered a weird problem or yum update error yesterday while performing this command :
>sudo yum update
on one of….... read more
Javascript : How to show different content with noscript?
Problem :
You got complains from your website visitors that certain functions or part of your website is not functioning….... read more
Javascript : How to get width and height of a div?
Problem :
You have a <div>
and you want to get the dimension of the <div>
such as height and….... read more