This is Perth’s playground
-
How to import data from MySQL database into Pandas Data Frame
It is easy to load CSV data into Python’s Pandas Data Frame. I always think this is also the case for loading MySQL into Data Frame. However, it turns out to be quite troublesome.
-
Adding 100% Fluid Width Facebook Comment
It’s painful to realize that one of the biggest Social Network in the world doesn’t allow fluid width comment box.
-
Basic Python OOP
This note is taken from InteractivePython.org website.
-
Basic Python for Data Structure
This note is about basic Python. Data type and syntaxes. From interactivepython.org
-
[WordPress] Solution when define(‘WP_DEBUG’, false); is not working
Generally, when we added define(‘WP_DEBUG’, false); to wp-config.php, it should disable every warning & notice on the website.
-
[WPML & WooCommerce] Some fields like SKU are not copied to translation
I encountered the problem of some fields are not copied when translating WooCommerce Product e.g. SKU. Here is how I fixed it
-
[DigitalOcean] Setting up email forward with Postfix
It is quite a pain to setup email forwarding in DigitalOcean with not much experience in command line. Moreover, many tutorials online are outdated or didn’t provide right configuration. This is the guide to setup Postfix for email forwarding which I tested and tried many times.
-
[WordPress] Fix: Cannot update WordPress to new version (Cannot create directory)
Just run this command in terminal: chown -R www-data:www-data /var/www find /var/www/ -type d -exec chmod 755 {} \; find /var/www/ -type f -exec chmod 644 {} \; Note that if your WordPress is in the other place than /var/www, make sure to change the path in command above before running.
-
[Foundation 6 & WordPress] SyntaxError: class is a reserved identifier class
I got this error when trying to use foundation 6’s JavaScript from Essential pack (downloaded from here: http://foundation.zurb.com/sites/download.html/)