FoxBoom!

I am the fox, goo-goo-ga-choob

Articles tagged with "Software Development"

Flickr Blog to Draft

So when you blog a photo from Flickr to WordPress, it publishes the post immediately. Which sucks if you want to set a category or fix mangled HTML.

This article has the solution. Much love!

del.icio.us JSON

Since I’m not getting my new TV today, I decided to have the next-best amount of fun. Javascript!

I just discovered that del.icio.us provides JSON feeds, so I modified their “latest posts” example and stuck it in the sidebar.

<div id="recent-delicious-bookmarks" />
<script type="text/javascript" src="http://del.icio.us/feeds/json/foxboom?count=10"></script>
<script type="text/javascript">
  var ul = document.createElement('ul');
  for (var i=0, post; post = Delicious.posts[i]; i++)
  {
    var li = document.createElement(’li’);
    var a = document.createElement(’a');
    a.setAttribute(’href’, post.u);
    a.appendChild(document.createTextNode(post.d));
    li.appendChild(a);
    ul.appendChild(li);
  }
  document.getElementById(’recent-delicious-bookmarks’).appendChild(ul);
</script>

For Example…

…let’s say you’ve got a video and a SAMI file, and you want to get ‘em both synched up.

You think you remember how to do it, but it doesn’t work. You try out some examples online, and they all work… but yours still doesn’t.

Don’t forget that fucking Windows Media fucking Player requires you to fucking explicitly fucking enable fucking local closed fucking caption file permission in the fucking Security tab of the fucking Options dialog.

Bloody Hell, Windows Internet Explorer

I apologise to everyone whose RSS feeds are now spammed up with a hundred edits of that last post.

When I was writing the code to embed the video, I remembered when I uploaded “I’m Gonna Eat Your Soul” and I’d forgotten to turn off auto-play. I didn’t mind so much, but a couple of people chuckled at the unexpected expletives. So I decided this time, to write the embedding code properly.

First, I tried Apple’s “Doing It The Easy Way” approach, which worked fine in a test page but not in WordPress.

Then I tried the good ol’ EMBED tag by itself, which failed totally in Internet Explorer 7.

So in the end, I followed Apple’s more hands-on guide and used:

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="376" width="480">
  <param name=”src” value=”/movies/jurassic_alan.mov”>
  <param name=”autoplay” value=”false”>
  <embed src=”/movies/jurassic_alan.mov” height=”376″ width=”480″ type=”video/quicktime” autoplay=”false” pluginspage=”http://www.apple.com/quicktime/download/” />
</object>