Google Gears: ResourceStore and same-orgin policy

I spent some time playing with Google Gears LocalServer (ResourceStore) to cache some video files from YouTube/Google-Video on client. It seems, you can only cache (store) data from same-origin. I might be wrong, but this is what I found.
I would spend more time to find out if there is a way.

::: Technorati tags: google-gears, same-origin-policy, crossdomain, resourcestore :::

Update: Getting YouTube Video (FLV) URL

It seems, YouTube has started using Google cache-servers to serve Flash-Videos (FLV). There is now very easy way to get YouTube FLV files.

http://cache.googlevideo.com/get_video?video_id=

That’s it, video_id can be found at various places:-

If you click on following link, you would be prompted to download flv :)

http://cache.googlevideo.com/get_video?video_id=M0ODskdEPnQ&origin=youtube.com

Update (Jan 11, 2008): Updated the URL for getting FLV from Google Cache server. Thanks to Rohan for sharing updated URL format.

Update: It seems cache.googlevideo.com doesn’t work, atleast not for me?

Technorati tags: youtube, flv-url, video, download

Google Gears Rocks!

I just installed Google Gears (Beta) and checked out some examples. I love the all the features (SQLite-DB, Cache-Server and Workerpool to manage script execuation), Google Gears surly rocks!

Some links to get started:-

Technorati tags: google, gears, browser, extension, javascript

Yahoo! Avatar World - Yet another Flash application

Avatar World is Yahoo! messenger plug-in, that allows you to create customized visual chat-rooms and invite friends to join it. You can read more about it on Yahoo! Gallery.

This plug-in is not final release, it’s just preview release and that’s why it’s very slow when you use it. It’s a Adobe Flash Application at the core.

yahoo_avatar_world (Custom) (2)

BTW! I was about to work on Yahoo! Avatars project when I was working for Yahoo! Bangalore but I left Yahoo! before that.

Technorati tags: yahoo, avatar-world, flash, messenger, plugin

PHP Proxy Script for cross-domain requests

I wrote this php-proxy-script and have been using for different purpose (loading cross-domain data like text, xml, swf, image, etc. or for YouTube REST API in flash, flex applications).

People keep asking about proxy-scripts in forums to manage various things (cross-domain AJAX issues). Download the proxy.php.txt, and use to solve such problems. You can also fork it on Github, and improve it.

Usage:

http://yourserver.com/proxy.php?url=[&mimeType=]

Examples:

  • To load XML/Text:
    http://yourserver.com/proxy.php?url=http%3A//abdulqabiz.com/blog/index.xml
  • To load a SWF (binary-data):
    http://yourserver.com/proxy.php?url=http%3A//abdulqabiz.com/files/some.swf&mimeType=application/x-shockwave-flash

Technorati tags: proxy, php, crossdomain

YouTube RSS feeds don't validate

I noticed that YouTube has recently included a element in their RSS 2.0 feeds which contains “duration” attribute to hold duration (in seconds) of the video. As per RSS 2.0 spec, there is no duration attribute for , however, “length” is a required attribute, which is also missing.

No big deal, lots of feeds are broken on the planet and it is not a topic to be blogged like this. But my point is, we don’t expect such things from Google/YouTube, they must be using some tool to validate their feeds as their QA process?

I use Feed Validator for feed (ATOM, RSS etc) validation. Thanks to Mark Pilgrim, Sam Ruby et-al for making it.

You can also see what feedvalidator reports about YouTube’s feed.

BTW! I got happy for a moment when I saw duration in their feeds, I have to use YouTube API to get it.

Technorati tags: youtube, rss, feed, feedvalidator, feed-validator

Microformats: Interesting presentations

Alex Faaborg of Mozilla UI Design team gave an amazing presentation on Microformats at Web 2.0 Expo.

Please check it out, it’s really cool. You can download the slides (PDF-144 pages, 54.8 MB)

You can also check out the presentation by John Allsopp (author of Microformats: Empowering Your Markup for Web 2.0). I got a slideshare version of the same, embedded right here:-


Download above slides (PDF).

::: Technorati tags: microformats, presentations, alex faaborg, john allsopp :::

Mixercast: Alanis Morissette Videos

I created a Mixercast using Alanis Morissette videos from different sources, check it out.

Alanis Morissette Videos on Mixercast

Technorati tags: mixercast, alanis-morissette, videos

Revision3 is not good at feed offering - could be better with Media RSS

Revision3, a great site for videos on various topics (Diggnation is one of those), offers different RSS 2.0 feed links for different video-formats? Is that good?

revision3_feeds.jpg

AFAIK, Media RSS specification allows you to group all (seen in above picture even Bittorrent feeds) that in one feed and RSS feed readers can show/download the content they are capable of playing/rendering?

Update: I have sent couple of emails to Revision3, requesting them to implement Media RSS for feeds. I have not heard from them, so I posted here on my blog :)

Twitter adds support for Microformats

Twitter has added support hCard, hAtom and XFN Microformats. I noticed about it via Chris Messina’s post.

Microformats are cool, I am reading and quietly noticing thing about it on web/mailing-lists. I have slowly started adopting, wherever I can, f.ex. this blog would have some of them soon.

If you are interested about Microformats, check out these links:-

I would be posting more about Microformats, now onwards. I would love to adopt, contribute and evangelize. Thanks for community to creating such a simple technology (Microformats) which can be adopted in existing work without any change, yeah you need to have to semantic-html.

Technorati tags: microformats, twitter