A notch above a monkey

Problem with public javascript hosting

Yahoo recently announced free public hosting of YUI library, just like AOL did a while ago for Dojo toolkit. A great move. You don’t have to pay bandwidth for hosting YUI and there’s a better likelihood that scripts will already be in visitors browser cache, since some other previously visited page might have used them too.

However there’s a real downside to it. What happens if Yahoo servers are unaccessible or connection to them is just slow?

If you’re lucky, then its former and the page will be rendered quickly but with some (javascript) functionality missing. If later, then it might take forever to render a page since modern browsers can’t and won’t do it until all javascript has been loaded.

This might seem an unlikely scenario, unless you’ve been around the last time when access problems to Google Analytics stopped displaying a large part of slovenian web, least important of which being this very blog. Yahoo is not stupid, but neither is Google and problem can literally appear anywhere between their servers and your visitors computer.

So what can be done if this possibility is not acceptable to you, but you’d still want to use free hosting?

Nothing pretty it seems. The only thing that I can think of is to add local links to yui, put them together with Yahoo links at the bottom of the page and trigger Javascript when content has been loaded. Then you only have to wait for YUI objects to appear before you start processing your scripts.

This way you can probably avoid crippled or blank pages, but you’re still paying for the bandwidth. Unless of course you go one step further and include local links only when Yahoo objects don’t appear in a reasonable amount of time.

Does anyone have any idea how to solve this problem gracefully?

Meeting expectations

It’s been more than a month since I got my Nokia 770. In that time, I went through numerous spontaneous reboots, which culminated in one never ending reboot loop after an unsuccessful software install in which I lost my Mahjong best times and a collection of ideas for a project at work. I can’t make it connect to company wireless (although at home it works just fine) and built in email client is a piece of crap that barely satisfies the need to check email. There’s no good way to synchronize data (address book etc.) with other devices and I see no reason why included editor can’t handle any text file.

Yet, I absolutely love this gadget to the point, where my wife jokes about being jealous.

I’ve been thinking about this ever since I flashed the device yesterday. Why is it so alluring to me?

Gadgets are not living beings and there’s no charm in their faults. There certainly are many of them, but there’s also a lot to like. Display is fantastic and reading web pages or pdf files finally doesn’t hurt. Those two tasks were the reason I bought it in the first place, so it’s performing its main function quite well. I like the way I can transform it in a little computer with a portable bluetooth keyboard
that lets me do practically anything. I don’t play games much, but I like those available. I was fine with declared battery time and I’m
absolutely delighted my 770 like a Duracell bunny easily exceeds it. I’ve got a feeling I can make it do whatever I want, limited mostly by my practically non-existent free time.

I guess I like it so much simply because getting more than expected is good enough.

Forgetfulness of online maps

I stumbled upon a map of Europe in the middle of 17th century while reading about Jan Hus and John Wycliffe and was surprised to learn how foreign it was to me.

I’m a big fan of Google Earth (and Maps), but the thing that I don’t like is that I can only look at most recent information Google has. Normally this is what I want, but not always. I like the fact that photos of Cerknica lake were taken during one of seasonal droughts, since it makes it easy to find streams and sinks that are gone when lake is full of water. But what will happen if new photos will be taken when lake is full?

Information I can access now will be gone and I’ll only be able to wait for a better luck in the future. Google (and other map providers) have provided good tools for moving around three dimensions, but I’d like to be able to move in fourth as well.

Wouldn’t it be nice, if you could see how a place is changing through time or how did states change through centuries?

The problem is not so much technical as it is of information gathering. Obviously it’s getting harder (even impossible) to get reliable data as you go further back in history, but that’s hardly a reason not to try at all. If you’d be interested in working on map of Europe of last couple of millennia, please let me know.

Update : Wikipedia’s atlas .