How to

Unobtrusive and accessible form input labeling with jQuery

It's common practice to skip the use of elements in simple forms. The most common example of this are site search forms. The following example uses a JavaScript event handler attribute to clear the input's value which also serves as the input's label.

Speed up PHP development in Eclipse PDT with Templates and Snippets

Busy schedules, long to do lists, and deadlines make it tough for developers to get familiar with some of the advanced features their tools provide. This is a shame, because some features, like Eclipse Templates, can really reduce coding time and errors.

You already know that Eclipse PDT provides autocompletion and hints for PHP's built in functions. In addition, commenting your code with PHPDoc adds autocompletion and hinting for your application's classes, methods, and variables. If you haven't already discovered, Eclipse PDT also provides autocompletion of PHP's control structures, class definitions, and methods through code templates.

Filed under

Subversion Administration: Separate an SVN Repository into Individual Projects

I've been using Subversion since the Gallery Project switched to it from CVS a few years back. I decided to install Subversion to manage my freelance projects last year and am getting up to speed on repository administration. I flip-flopped for a while on whether to keep projects in a single or separate repositories. I initially decided to keep everything in one repository, but later decided to separate them out. Fortunately, the svnadmin and svndumpfilter utilities make it relatively simple to separate repositories into individual projects.

Filed under

Install and configure MySQL 5 with MacPorts

7/18/09 - Having trouble starting MySQL on system startup? Rob Wilkerson shows how he gets around the issue.

4/2/08 - UPDATED - Replaced symlink to MySQL socket with proper MySQL configuration file settings. Thanks Doug!

10/20/07 - UPDATED - Added full path to aliases, thanks Joel!

10/7/07 - UPDATED - Clarified +server option and executable names, thanks Thom!

I decided to move my MySQL server installation from the server I installed from MySQL.com to macports. Why? I believe MacPorts will simplify future upgrades. I'd also like to keep my LAMP installs in the same location. If you haven't already, install and configure MacPorts. Here are the steps I'll go over:

  • Intall MySQL 5
  • Create the initial MySQL databases
  • Options for starting MySQL
  • Confirm that MySQL is running
  • Set Basic MySQL Security

Filed under

Speed up HTML markup in Netbeans with Zen Coding

My friend Derek shared a link about Zen Coding a month ago which I finally made time to look at this morning. Zen Coding is a plugin designed to supercharge your HTML markup and CSS coding and it's available for several IDEs and text editors. I watched the available screencasts and gave it a try this morning. It's remarkable what you can do with it.

Filed under