Entries tagged “Web Design/Programming”

Parsing Your Character’s Loot

1 July 2009

Here’s a quick teaser for a new project I’m working on, almost ready for public beta. def loot(character_sheet_file) @xml ||= Hpricot::XML(character_sheet_file.read) @loot ||= @xml.search("//LootTally/loot[@count!='0']").map do |item| res = item.search("//RulesElement") case res.size when 0: nil when 1: coder.decode(res.first.attributes["name"]) [...]

Scope in ActionScript 3 is so fubared I can barely express it in words

19 October 2008

This looks wrong:

Speeding up Prototype’s document.viewport.getDimensions

4 October 2008

JavaScript has a lot of haters. They gripe about its loose typing and semicolon insertion. They whine about it’s lack of inheritance and hardened classes. My guess os that many of these complaints come from programmers trying to write JavaScript as if it were Java, C or [Objective-C][Objective-J]. JavaScript, however, is a unique dynamic and [...]

If it quacks like a duck

20 July 2008

I felt a bit elitist after posting about my desire that [job candidates should have a low-level understanding of JavaScript][previous]. Today a bug I caught reinforced that belief. [previous]: “The other side of the interview table”

Intriguing Interfaces: How to share private videos on YouTube

13 July 2008

Although [they label it as "beta"][beta], YouTube has done some re-working of their video management interfaces in quite an intriguing manner. With their interface changes, the [Help Center Page][] is a little out of date. The comment mechanism on their blog doesn’t work (note all the double comments—mine didn’t even show up). I thought I’d [...]