Month: November 2008

quotation

CBS’s underlying problem… is the arbitrary and largely ineffectual nature of the fact‐checking process employed by the mainstream media. I have written for perhaps a dozen major publications over the span of my career, and the one with the most thorough fact‐checking process is by some margin Sports Illustrated. Although this is an indication of the respect with which SI accords its brand, it does not speak so well of the mainstream political media that you are more likely to see an unverified claim repeated on the evening news than you are to see in the pages of your favorite sports periodical.

Nate Silver
link

No Labs Love for Google Apps. This domain’s e‐mail account is hosted by Google Apps — and I use Mail.app to read my e‐mail — so the fact that GApps seems to be branched off from all the cool Gmail features is an annoyance for me, too. Good to hear that someone’s trying to fix it.

conversation

From a recent episode of Get Your War On.

Accounts Payable
Look, man, if McCain is elected, I can guarantee you will never be bored. Because America’s going to be a dynamic, exciting country again!
Accounts Receivable
Because everything’s gonna be on fire.
quotation

We didn’t see much of the Bradley effect last night, but now we might have to invent the “Stevens effect” — reluctance to admit to pollsters that you would vote for a convicted felon.

Brendan
code

Auto-format Tweets

Used on my “About” page.

(function() {  
  var USERNAMES = /@([A-Za-z0-9_]*)\b/;
  var URLS      = /https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w\/_\.]*(\?\S+)?)?)?/;
  
  function getInnerText(element) {
    element = $(element);
    return element.innerText && !window.opera ? element.innerText :
     element.innerHTML.stripScripts().unescapeHTML().replace(/[\n\r\s]+/g, ' ');
  }
  
  function linkifyTweet(li) {
    var html = li.innerHTML, text = getInnerText(li);

    text.scan(URLS, function(match) {
      html = html.sub(match[0], '<a href="#{0}">#{0}');
    });    
    html = html.gsub(USERNAMES, '<a href="http://twitter.com/#{1}/">#{0}');
    li.update(html);
  }
  
  function init() {
    $('twitter').select('li > span.tweet').each(linkifyTweet);
  }  

  document.observe('dom:loaded', init);  
})();