As If URL Shorteners Alone Weren’t Bad Enough, Now They’ve Mated With URL Hijacking Frames

The Digg Bar is the most obvious (and noxious) example, but the new trend of URL shorteners coupled with a URL hijacking frame is spreading alarmingly. More and more I’m seeing this odious technique. These things break bookmarks, wreck navigation cues from the URL and are generally sleazy and rude.

And there’s how to beat them. Insert this code in the head of your document and frames will disappear:

Best Frame-buster JavaScript

Continue reading “As If URL Shorteners Alone Weren’t Bad Enough, Now They’ve Mated With URL Hijacking Frames”

HTML 5 Notes: The Video Element Rocks

Now if we could just get everyone to support it.
Continue reading “HTML 5 Notes: The Video Element Rocks”

HTML 5 Notes: In Case a Client Asks… No Full Screen Video

I’m going to be posting a series of notes on the production of my first HTML 5 demo page. I’m doing a presentation on it at work (to be shared here, of course) and I want to capture my thoughts as I have them in the process of producing some fully formed HTML5 content.

One of the things I’m looking at with interest is the new Video element. Anything that simplifies embedding video on a web page gets a thumbs up in my book.
Continue reading “HTML 5 Notes: In Case a Client Asks… No Full Screen Video”

JavaScript Perfromance Tip- Don’t Test Against obj.length. Test Against a Local Variable.

I saw it yesterday in some code I was debugging and I realized I’ve become hyper sensitive to this common pattern:

var anchors = document.getElementsByTagName('a');
if (anchors.length > 0){
    for (var i=0; i < anchors.length; i++) {
        addEvent( anchors[i], 'click',  trackLinks );
    };
};

Why am I sensitive to it? Well, what are some of the things we know about JavaScript performance?
Continue reading "JavaScript Perfromance Tip- Don’t Test Against obj.length. Test Against a Local Variable."

An Update on My URL Shortener

The difference in speed between my day job and the after hours hacking I do is sometimes mind-boggling. My day job is a typical “day job”. Anything of note takes time to happen. I’m cool with that.

I’m also cool with what happens at home. Where I can get an idea, hit Google for some quick research and get on with the business of making it happen.

Case in point, I registered dfst.us yesterdaybefore I even googled “php based URL shortener”– and about 30 hours later (only about 2 of which was actual coding- tweaking the easy-to-use phurl script) I’m sitting here with my own personal URL shortening service.
Continue reading “An Update on My URL Shortener”