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.

Category Archives: General

Meet my new text editor, Gedit (like Textmate for Linux)

I have new text editor for my Ubuntu box. Meet Gedit. For Ubuntu users, you can use your Synaptic Package Manager to install it. Gedit itself at start is very basic and bare. So, I have come up with the … Continue reading

Posted in General | Tagged , , , , , | 1 Comment

Zend Framework: Creating your own RESTful Services

Matthew Weier O’Phinney has a very useful post for the latest release (1.9) of Zend Framework. As a followup to my previous post, I now turn to RESTful web services. I originally encountered the term when attending php|tropics in 2005, … Continue reading

Posted in General | Tagged , , | 1 Comment

Zend Framework 1.8 Web Application Development from Packt Publishing

A few months back, I participated in reviewing Zend Framework 1.8 Web Application Development written by Keith Pope. The book is now published and released. You can get it here: http://www.packtpub.com/zend-framework-1-8-web-application-development This book is for PHP web developers who want … Continue reading

Posted in General | Tagged , | 3 Comments

Zend Framework: Handling file uploads with Zend_File_Transfer

Here is a tutorial on how to handle file uploads with Zend_File_Transfer. Like so many of the other powerful components made available through the Zend Framework, the Zend_File_Transfer component is intended to make your life much easier when it comes … Continue reading

Posted in General | Tagged , , | 1 Comment

Newline character “n” problems in a Javascript string + PHP

I have just spent an hour an a half trying to figure out why the newline character “n” caused an error in my Javascript. I am posting this because I have been unsuccessful in finding a solution to this problem. … Continue reading

Posted in General | Tagged , , | 1 Comment

jQuery Tips

Got this from Reddit. Load the framework from Google Code Use data method and avoid storing data inside the DOM. Some developers have a habit of storing data in the HTML attributes Use Cheat Sheets Compress Javascript files Use Firebug … Continue reading

Posted in General | Tagged , | 1 Comment

Using Vim like an IDE

I have been looking for a good and lightweight text editor for some time already. I have tried Notepad++, SciTE and others but was not satisfied with any. Although I have been using Vi and Vim to edit files on … Continue reading

Posted in General | Tagged , , | 2 Comments

jQuery: Setting defaults for Checkboxes, Radio Buttons, Options in Selectboxes

I thought I should post this here. I always tend to look back at my old code wondering how I did these things. Handling radio buttons or checkboxes <input type="radio" name="print_memo" value="Yes"/> Yes <input type="radio" name="print_memo" value="No" /> No <script … Continue reading

Posted in General | Tagged , , , , , , | 3 Comments

WordPress: Get sub-pages / children of Page

I have been busy lately making some extra money doing side-jobs with WordPress. In WordPress, you will be able to create a “sub-page” by selecting a “Parent”. This tip is useful when you want to retrieve all the sub-pages. You … Continue reading

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

MySQL: Doing calculations on dates excluding weekends

I recently had to calculate the amount of work done by an employee between a specific date range. My problem was that the calculation must exclude the weekends. I asked around (both Google and #mysql in IRC) and found out … Continue reading

Posted in General | Tagged , , , , | 3 Comments