Archive for May, 2008

List/Display YouTube Videos With MagpieRSS

Monday, May 5th, 2008

Late last year, Google made a switch from the old YouTube API and integrated it into it’s GData API. While an understandable move, it does somewhat annoy me that the old REST method is being depreciated in August 2008 because I don’t particularly feel like updating my code :)

Alas, it will happen soon, and so I decided to upgrade some pages that used it. As I don’t heavily rely on the video services, and just use it in it’s simplest form for displaying a list of Videos, I made something quick, rather than install the Zend GData Library Google recommends.

Since GData outputs RSS, I used MagpieRSS to painlessly port my old code and have an updated code up and running. Here’s two scripts that may help with your changeover: (more…)

Table of Contents generator for anchors with MooTools

Saturday, May 3rd, 2008

For those pages with loads of text a table of contents would be nice, with anchors located in relevant sections. Thing is that going through a page with thousands of words and headings is no fun at all.

I made a script using the lovely MooTools that gets all the elements with a given CSS selector (using the Elements.Selectors syntax) and then builds an unordered list of links, with the element text as the title, and an anchor placed in that element. (more…)

Do search engines index the same page more than once?

Thursday, May 1st, 2008

I ran into an interesting point recently which arose while trying to SEO a wordpress blog for the first time. I noticed that the site had links to certain parts of the blog outside of wordpress, but used a slightly different URL, which in the eyes of Google et al is a completely different URL. (more…)