HTML5 I’m Using Today- Custom Data Attributes

I have two technology goals over the summer.

One is to finally do some meaningful Python work. I’ve been sniffing around Python for a couple of years now and still don’t have any real experience with it under my belt. Hopefully I can change that this summer.*

The other, more on-topic goal is to absolutely devour HTML5. I’ve had my eye on it from the dawn of the whatwg, but I’ve missed the recent opportunity we’ve been presented (in the form of browser support) to play with some of the new toys in a hands-on manner. That’ll change this summer.

And I’ll be sharing what I find, here.

See how well that works for all involved?

Continue reading “HTML5 I’m Using Today- Custom Data Attributes”

Google Releases Page Speed (and I add a few lines to my to-do list)

Check it out:

Google Page Speed

Beyond the plugin itself, the rules are definitely of interest:
Continue reading “Google Releases Page Speed (and I add a few lines to my to-do list)”

What This is All About

Hi, my name is Rob Larsen and this is a new blog for me. I’ve decided to move all of my web technology and business of the internet writing over to one place so that people focused on that stuff can be spared the sketchbook images, movie writing and sports rambling I do over at my personal site. It’ll also allow me to go a little bit more off the rails there from time to time as people who know me from my day job will have this place to focus on.

I know what you’re wondering? Who am I? What’s this site about?

Continue reading “What This is All About”

A JavaScript Curiosity Regarding addEventListener

I’m wondering why this code fails to stop a form submission

document.forms[0].addEventListener("submit",falsify, false);

function falsify() {
		return false;
}

and this code successfully kills it?

document.forms[1].onsubmit = falsify;

function falsify() {
		return false;
}

Try it out (Firefox/Safari/Chrome/Opera only- there’s no addEventListener support in Internet Explorer). The form action on both is an alert. The first executes every time. The second never does.

Anyone out there know enough about the inner workings on addEventListener to explain why those two similar code blocks behave so differently? I’ve poked around a lot of the usual suspects (mdc, ppk, w3c) and haven’t seen anything that speaks to the above behavior, so I’m opening it up to the Internet. Hopefully someone out there can satisfy my curiosity on this matter.

Code I Like: Batch Subversion Rename (Replace Underscore with Hyphen), Bash Script

That’s an unwieldy title, if I ever saw (wrote?) one. Still it describes the code in question exactly, so unwieldy will have to do for this post.

Anyway, for SEO purposes I’ve wanted to rename some of my files from underscore delineated (_) to hyphen delineated (-) for a couple of years now. I chose wrong when I originally launched this site, and since it’s huge (something like 400 static pages), I never wanted to actually go through with the renaming. And that was before I got the site into Subversion. With Subversion in place I couldn’t even use one of the many little file renaming apps out there. I’d have to do the work within SVN or else things would be bad. Very bad.

A disheartening problem.
Continue reading “Code I Like: Batch Subversion Rename (Replace Underscore with Hyphen), Bash Script”