Wednesday 13 August 2014

EasyMaths Camp @ SMK Bandar Rinching

6 & 7 August.

A seminar by Easymaths Centre organized by Shinobi's Solution was held at SMK Bandar Rinching, to help SPM candidates with their well-known weakness, Additional Mathematics.

Actually I've already been to the same seminar last year at USIM, but since I was attending Kem Pembangunan Remaja Kreatif 2014, I can't attend the same one this year. But luckily with Puan Noraini as Head of Additional Mathematics initiative to held the same seminar at the school, it can probably help a lot of students too.

The teacher who is assigned to this camp is Encik Azahari, which I remember well for his "kambing" joke. I like his explaination and Easymaths formula, especially, which is very easy to be remembered regardless my short-term memory.

Since there is no pictures of me they uploaded to Facebook, I don't want to attach any pictures here.

:v

Thursday 6 March 2014

[PHP] [CentOS] Session not saved when using PHP from remi repository


I encountered this issue when using Nginx + PHP + Memcache installed from remi repository (compile? nope). Any session ($_SESSION) is not saved, and removed in the next page load.

Note: The default session save path folder is used in this tutorial. You need to check out yours inside by using phpinfo()and look for session.save_path value.

To solve this, the process is surprisingly easy. You only need to chmod /var/lib/php/session to 777, and everything will work great.
chmod 777 /var/lib/php/session
 If problem persists, try chown-ing the session folder to the specific web server user. (Exactly not root) This is a example for Nginx, linked to user nginx.
chown nginx /var/lib/php/session
Same issue? Remove all files inside /var/lib/php/session folder.
rm /var/lib/php/session/* -f