« April 2006 | Main | June 2006 »

Unobtrusive tabs, Drag & Drop, and more

May 18 by Andre in Ajax » , Javascript » , Web » , jQuery »

You may know from my previous posts that I've been moving away from Prototype/Scriptaculous and toward jQuery for JS/AJAX programming, primarily for jQuery's powerful selectors, code-shrinking chaining model, and light weight.

jQuery also has an active development community, working off of a plugin architecture which allows incremental inclusion of only the modules you need. The community is coming out with some awesome plugins, which will further shrink the functional gap between jQuery and Prototype/Scriptaculous. Below are three exceptional ones from the jQuery mailing list:

Draggable, sortable lists
All the major functions are here: dragging, sorting, target outlines, drop zone highlighting, drag-time ghosting.
Selectables
Define a rectangle by clicking and dragging, and select the elements which fall within the rectangle -- just like selecting icons on your desktop or a group of photos in Picassa.
Accessible, unobtrusive tabs
Render a nice tabbed structure with one line of Javascript. The markup on which the plugin operates is very natural -- the tabs are rendered from a list of anchor tags, exactly how you would (for example) markup a table of contents.

Transferring a MySQL database structure and data to another machine

May 13 by Andre in How-to » , MySQL »
This tutorial shows how to transfer a MySQL database from one box to another. There are lots of reasons you might want to do this --my motivation is that I develop on both a desktop at home, and on a laptop which I sometimes want to work on in a disconnected state (i.e., a cafe somewhere). These steps transfer both table structure and data, including keeping all your primary keys intact.

Continue reading "Transferring a MySQL database structure and data to another machine" »

RadRails

May 03 by Andre in Ruby on Rails » , Web »

Things I love about RadRails

  • Integrated SVN support
  • Easy tailing of development logs
  • Development Rails servers right there in the IDE
  • Control-shift-R (it's the little things!)

Things I wish RadRails had

  • Integrated FTP ala Dreamweaver (come on, you don't use Capistrano for EVERY little update). Note: may be coming in v0.7
  • . . . integrated Capistrano support (may be coming in v0.63)
  • a debugger! Why do they tease us with a debugging view :-(