Expecting a Baby Girl!

Posted: February 13th, 2010 | Author: | Filed under: Personal | 1 Comment »

My wife and I just got back from the clinic today. She took an ultrasound and we found out we are going to have a baby girl! My first born is a baby girl! Everything is right where it should be…I hope and pray she’ll come out healthy. I’m so happy today :-D


CakePHP sessions

Posted: February 9th, 2010 | Author: | Filed under: Javascript, PHP | No Comments »

If you are developing an CakePHP application where ajax is mostly used. It is advisable that you set the following session configurations inside your core.php.

Configure::write('Session.timeout', '86400'); // expires in 30 days

Configure::write('Security.level', 'medium');

If your application calls more than one ajax request at the same time, it is recommended that you set your ajax requests to synchronous to prevent session regeneration id errors.


How to check if a plugin has been loaded in jQuery?

Posted: February 9th, 2010 | Author: | Filed under: Javascript | Tags: | No Comments »

This tutorial illustrates how to check if a plugin exists or if plugin has been already loaded usingĀ  jQuery. This is particularly useful if you are writing your jQuery code that depends on that plugin.

if(jQuery().plugin_name) {
// plugin exists
} else {
// plugin not loaded
}