I am trying to edit my template files containing *.ctp and on vim, you usually won’t see any syntax highlighting if it is not a known file extension.
So, to activate it for my *.ctp templates. Just add this on your ~/.vimrc file
:syntax on
:filetype on
:au BufNewFile,BufRead *.ctp set filetype=xml
Save and re-edit your *.ctp file.
Posted in Linux, Operating Systems, PHP, Programming.
Tagged with extension, templates, VIM.
By Louie Miranda
– December 4, 2009
My additional notes.
sprintf(”%02d”,$data['arraydate']['F']))
sprintf or str_pad
Posted in Uncategorized.
Tagged with Code, PHP, Programming.
By Louie Miranda
– August 11, 2009
I am currently trying webgui on a powermac g5 (64 bit) that runs Linux. It’s quite a headache actually. I mean, I should have tested this on a i386 machine. I am experiencing mod_* problems.
And the mod_perl can’t see some cpan modules.
Posted in Operating Systems, Technology.
Tagged with 65 bit, CMS, CPAN, G5, Linux, Mac, Perl, Problems, WebGUI.
By Louie Miranda
– April 30, 2009
I am currently watching discovery channel and I really feel sad about the things happening on our planet. Especially with global warming, almost all the ice caps, glaciers are melting.
Record Ice Sea Minimum

http://earthobservatory.nasa.gov/IOTD/view.php?id=8126
Posted in Events, News, Personal.
Tagged with Discovery, Earth, Earth Day, Glacier, Global Warming, Sad.
By Louie Miranda
– April 22, 2009
I’ve been looking for a good PHP File Upload Progress Bar/Meter on the web and found this very neat app. I am going to link it here for future reference.
http://www.johnboy.com/about-us/news/a-useful-php-file-upload-progress-meter
Continued…
Posted in PHP, Programming, Projects, Technology.
Tagged with Bar, File, Link, Meter, Neat, PHP, Progress, Upload.
By Louie Miranda
– April 2, 2009