A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Author Archives: Wenbert Del Rosario

Django and jQuery AJAX

This is probably my first post for Django. I have only been using it for a few weeks and I am already falling in love with it. Here is how to do an AJAX “save” using jQuery and Django. My … Continue reading

Posted in General | Tagged , , , | Leave a comment

WordPress: How to enable widgets in your custom theme

This is probably in the WordPress documentation but to enable widgets in your own customized theme, do this: … rest of PHP and HTML code in your here … <div id="sidebar"> <ul> <?php if ( ! dynamic_sidebar( ‘primary-widget-area’ ) ) … Continue reading

Posted in General | Leave a comment

My notes in Symfony

Right now, I am working on a pet-project using Symfony. Symfony is a full-stack framework, a library of cohesive classes written in PHP. It provides an architecture, components and tools for developers to build complex web applications faster. Choosing symfony … Continue reading

Posted in General | Tagged | 5 Comments

How to create a sub-domain in Linode

Open the DNS Manager in Linode Login to Linode Members Area Go to the DNS Manager tab. Click the domain name you want to put the sub-domain to. Scroll to the middle of the page and look for the A/AAAA … Continue reading

Posted in General | Tagged , , , | 4 Comments

OpenX Ad Server: Beginner’s Guide from Packt Publising

I have not yet considered seriously running ads on my site so I have never heard of OpenX Ad Server before Packt Publishing sent me a free PDF copy of OpenX Ad Server (link here). What is OpenX Ad Server? … Continue reading

Posted in General | 3 Comments

Beginner’s Guide to OpenX Ad Server

I got an email from Packt Publishing to review a book that they will be releasing very soon (March 2010?). The book is about OpenX. In all honesty, I have not even tried to use OpenX Ad Server yet. Still, … Continue reading

Posted in General | Tagged , , , | Leave a comment

WordPress: How to create a breadcrumb without using any plugins

A quick post for WordPress users. Go to your functions.php file. If it doesn’t exist, then create it. wp-content/themes/theme_name/functions.php Then add this inside the functions.php file. function the_breadcrumb($post_ancestors) { if (!is_home()) { echo ‘<a href="’; echo get_option(’home’); echo ‘">’; echo … Continue reading

Posted in General | Tagged , | Leave a comment

A CSV File and SQL Dump for all the zip codes in Philippines

I spent a few hours yesterday gathering all the zip codes for the Philippines. This is public data, so I am sharing it with everyone. If you use it, I’d appreciate it if you credit me (It is not required … Continue reading

Posted in General | Tagged , , | 4 Comments

CSS: Creating a horizontal menu/navigation bar

I always forget how to do this. Every time I forget, it takes me about 10minutes searching for the right one. So I am posting it here for my reference. My HTML would look something like this: <div id="navbar"> <ul> … Continue reading

Posted in General | Tagged , , | 3 Comments

Zend Framework: How to use nested transactions with Zend_Db and MySQL

Steve Hollis first blog post about practical nested database transactions using Zend_Db. He writes really well and his blog is very readable. I love reading long text in Serif Thanks Steve! His solution: The Solution Disclaimer: This solution is adapted … Continue reading

Posted in General | Tagged , , , , | 4 Comments