Archive for December, 2006
HTML Option Disabled Attribute
A particular project I’m working on requires graying out options in a drop down box. I discovered the disabled attribute, which can be used as follows:
<select name="range">
<option value="7">last 7</option>
<option value="30">last 30</option>
<option value="60" disabled="disabled">last 60</option>
</select>
Normally you can just write ‘disabled’, but to be valid XHTML, you need the disabled=’disabled’ variant. The point is, this […]
Beauty in Ruby Syntax
Inheritance using
Additionally, the use of => in Ruby hashes is really nice. When I see something like:
redirect_to :action => "list"
I see an arrow pointing to list, which is where I want that to go. Even in a plain old hash definition the => works well by basically pointing from keys to values.
site […]
Quick Vim Tip: Indenting and Unindenting a Block of Text
I’ve gone years without knowing this. I can do pretty much what I need to do with Vim, but while hacking some Python recently I realized I’d really like to have the ability to select a block of text and repeatedly indent or unindent it. Visual Studio and PSPad make quick work of […]
Search
You are currently browsing the Code in Focus weblog archives for December, 2006.
Longer entries are truncated. Click the headline of an entry to read it in its entirety.

