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.

Monthly Archives: October 2008

Zend Framework Tutorial: A Fully Customized Form Using Zend_Form and Decorators (UPDATED now using Tables)

This tutorial is derived from this post. So I suggest that you read weirophinney’s post first before this. This method of rendering a form can be more verbose, but it also allows you to tweak the form at almost infinitely … Continue reading

Posted in General | Tagged , , | 15 Comments

The best color picker for Mac OS

Lightweight. Fast. Simple. It’s Pipette.

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

Type casting in MySQL: Comparing string numbers and getting the right result

I recently ran into a problem where I had to compare “1000″ and “999″ — take note of the quotes, these values are strings. I did a SUBSTRING() in order to get those 2 strings, er “numbers”. In this SQL … Continue reading

Posted in General | Tagged , | 3 Comments

ZF Quickstart Downloadable – Copy to your htdocs and then run it

Download the file. Untar, put in your htdocs folder (/var/www/zf_working) and the your should be able to run Zend Framework using: http://localhost/zf_working I have tested this in two machines only I changed some paths in the bootstrap files from the … Continue reading

Posted in General | Tagged , , | Leave a comment

A Paper on SQL Injection

It is a long read but this post links to PDF file about SQL Injection — here is the abstract:   ABSTRACT Googling for “SQL injection” gets about 4 million hits. The topic excites interest and superstitious fear. This whitepaper dymystifies … Continue reading

Posted in General | Tagged , | Leave a comment

Useful Mac OS shortcuts

Okay, I am just going to copy-paste a post from another website and then just credit the author here. ⌘ = Command, the most common modifier. ⌥ = Option or Alt. ⇧ = Shift ^ = Control. Not used as … Continue reading

Posted in General | Tagged , , | Leave a comment

Visual jQuery updated!

For those who do not know, Visual jQuery has been updated!

Posted in General | Tagged , | Leave a comment

Using Yahoo’s API to convert currencies with PHP

I have been looking around Yahoo Developer Network for this but found nothing relating to using the Currency Converter API. You can make something similar to convert any currency to another currency using the Yahoo! database! Here is what I … Continue reading

Posted in General | Tagged , , , , | 28 Comments