FilChi Weblog

Author Archive


Why do I hate the “noob” word? Some people might misinterpret someone called “noob” as being stupid. Let me clarify its meaning: noob means newbie, people! And that means, you are basically somewhat new to something. Being noob is not the same as being not knowledgeable about all things. I won’t let anyone call me a “noob” anymore. try me. dare me. make my day…

I just don’t get it. I didn’t say “you’re a noob” to anyone. But I am called a noob?! Grrr….


If you want to call a controller/action in crontab, you simply must:

1. create a copy of index.php in your app’s webroot directory,
and rename it to cron_dispatcher.php or to any filename.

2. after this, somewhere in line 78 of index.php of your app’s webroot directory,

require CORE_PATH . ‘cake’ . DS . ‘bootstrap.php’;

put code:

if($argc == 2) {
$Dispatcher= new Dispatcher();
$Dispatcher->dispatch($argv[1]);
}

this code will get argument from php commandline having index = 1.

so, in your crontab,

* * * * php -q /var/www/html/cake/webroot/cron_dispatcher.php Controller/action


I was doing this web report, and I thought of improving its user interface design, so I decided to use jquery ajax tabs UI.

But because the ajax-ed content is very large, the tab, when clicked, looks like this in Firefox:

ajax content caching

AFAIK, Firefox does not cache ajax content, which is contrary to what Internet Explorer does.

I just want to share additional info regarding the ajax tabs:

everytime you select the tab with ajax content, the tab starts to process ajax. Meaning,

even when not necessary, the ajax still runs. That sucks, huh!? 😦

I overlooked that in the JQuery Tabs options params, you can set the ajax cache to true and the ajax won’t run everytime you click on the tab.
(Source: JQuery Ajax Tabs )
Code:   $(‘.selector’).tabs({ cache: true });
$(‘.selector’).tabs({ ajaxOptions: { async: false } });


First of all, before I say out loud my own comments regarding the event by PHPUGPH held last Saturday, December 1, 2007, I want to clarify that I am not siding with anyone on this matter. I think that both sides have equal strong points so I say they both win in their own arguments. Read the rest of this entry »


I barely remember facts about Andres Bonifacio now. I only knew that he started the Katipunan to fight against the spaniards. I already forgot in what city in the Philippines he was born, or his love life. Did he have kids?

Sometimes, I get to think that only if I had a time machine, I would like to talk to him and, probably support him in his cause for the independence of our country against the spaniards. I would like to fight alongside him against the spaniards during that time. I believe in Andres Bonifacio’s potential as the first president of our country than Emilio Aguinaldo.


Flickr Photos