robinadr

Tagged web 2.0

A while back I posted about automatically scrolling between internal links with some jQuery magic (which in turn was based on a tutorial by Learning jQuery) but one problem with it was that there was no way for the user to link to the anchor.

The problem was that because the function has to return false in order to keep the browser from jumping straight through to the anchor and skipping the animation. So I added another line to the code, taking after AJAX pseudo-permalinks, that adds the hash link (e.g. #anchor) back onto the URL in the address bar after a timeout matching the animation.

Here’s the line in question:

[sourcecode language="javascript"]setTimeout('window.location = window.location + "' + this.hash + '";', 1000);[/sourcecode]

Here’s the full code:

[sourcecode language="javascript"]$(function() {
    $('a[href^=#]').click(function() {
        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
            var target = $(this.hash);
            target = target.length && target || $('[name=' + this.hash.slice(1) + ']');

            if (target.length) {
                var targetOffset = target.offset().top;
                $('html,body').animate({ scrollTop: targetOffset }, 1000);
                setTimeout('window.location = window.location + "' + this.hash + '";', 1000);
                return false;
            }
        }
    });
});[/sourcecode]

Here’s a (probably ever-growing) list of reasons why I hate MySpace:

  1. User-defined CSS — it might be cool to have a bit of customization, but this takes it too far. Most of the profile pages are either hideous and unusable, or both.
  2. Advertising — I don’t mind ads. But MySpace just plasters them everywhere. And they’re the annoying type — dating services and such.
  3. UI — the user interface is horrendous. Sure, they’ve upgraded the user’s main control panel page a bit, but it’s still overtly crowded and confusing.
  4. Tom — nothing personal against this guy, but he’s everywhere. Oh, and apparently he’s not the age he lists in his profile — kinda creepy.
  5. Spam — spam friend requests, spam comments, spam private messages, where does it stop?!? Facebook is starting to have a little bit of this, but no where near as bad as MySpace.
  6. Music — the music that suddenly starts blaring if you visit someone’s profile page. If I want to listen to it, I’ll click the play button, okay? added 11/12/07

That’s all I can think of. I’ll add more as time goes by. Oh, and if you hate MySpace and need a place to spend your now-free time, you might want to go to I Fucking Hate MySpace.

Yess. Yess. Yess. Automattic (a la Matt Mullenweg) has acquired Gravatar, a “global avatar service,” which has been what can only be described as a crapshoot — sometimes Gravatars went down, or at best, were really slow, and for a while there the whole Gravatar site even disappeared.

Good things are already happening. From the post:

  • We’re going to make all of the Premium features free, and refund anyone who bought them in the last 60 days.
  • Move the gravatar serving to a Content Delivery Network so not only will they be fast, it’ll be low latency and not slow down a page load.

#

One thing Automattic is really good at is throwing tons of servers and bandwidth at something, and that’s exactly what Gravatar needs. Just a few things though — how is Gravatar going to turn a profit, and why the hell do we now have to deal with more Snap popups?

Either way, congratulations to Matt and Automattic — hopefully this gives Gravatar the kick in the ass it needs, which will definitely benefit the blogosphere1.

Edit: As I was proofreading this post, Matt announced it on his blog.


  1. I hate that word, but still. 

Upon the insistence of a friend, I’ve installed the StumbleUpon Firefox extension and I must say I can’t believe I’ve missed out so long. When StumbleUpon first hit the news, I passed it on as a ridiculous fad, but now I’ve killed countless minutes clicking the “Stumble!” button.

I’ve already found a few gems, such as the winners of the “I Like My Dog” contest, hilarious images like this one and a list of “almost every file format in the world”. Or how about the hypothetical question of… what if operating systems were beers?

Feel free to go to my profile and friend me. I don’t know what friends on StumbleUpon mean, but I suppose more means better?