Category: Web

link

Alex Russell unveils dojo.query, the latest gauntlet tossed down in the fetching‐elements‐by-CSS-selector wars. I’m working on a similar overhaul for Prototype which I’ll talk more about when the time is right.

thought
4

Prototype Core. Qualified to write a JavaScript library, to be sure, but clearly unqualified to speak about hair care. (I include myself in this assessment.)

link
2

At long last: Prototype has an actual web site. With documentation. There’s plenty more to say, and I’ll save it for a longer post, but Justin Palmer is owed some major kudos for working so hard on the site. And so do Chris, Tobie, and Mislav — the three newest members of Prototype Core — who poured their hearts and souls into documentation.

code

Code: Prototype Auto-build TextMate Command

Bind to ⌘S. Will execute rake dist automatically if you just saved a file in the src directory.

#!/usr/bin/env ruby

# Save: Current File
# Input: None
# Output: Discard
# Scope: source.js.prototype

FILE = ENV['TM_FILEPATH']
DIR  = File.dirname(FILE)
if (DIR =~ /\/src$/)
  basedir = DIR.gsub(/\/src$/, '')
  Dir.chdir(basedir)
  `/usr/local/bin/rake dist -f #{basedir}/Rakefile`
end
code
7

Code: hasAttribute for IE

Believe it or not, this actually works. Kind of.

Element.Methods.Simulated.hasAttribute = function(element, attr) {
  return element.outerHTML.match(/^<[^>]*>/)[0].indexOf(" " + attr + "=") > -1;
};
link
1

Digg scares me. Yeah, me too. Digg added moderation to comments a while back, but as far as I can tell it hasn’t raised the level of discussion. The community seems to reward the same qualities in comments as it does in stories.

quotation

Relying on software to pick colors for you is like letting your mother pick your clothes.

Amy Hoy
link

danah boyd on ephemeral profiles. In this same vein, for several of my friends it was common to have several different IM screennames reflecting several different levels of availability. So if you’re writing a paper and don’t want to have eight different conversations with random acquaintances, you can switch to a login that only your “inner circle” knows, rather than sign off entirely.