Thursday, 8 March 2012

Displaying Selected YouTube Video Thumbnails On An ASP.NET Web Forms Page

I received a kind email recently from a reader, thanking me for my article titled “Retaining Values In A Form Following PHP Postback And Clearing Form Values After Successful PHP Form Processing“.

He also asked how he could use the YouTube Data API to search for videos by keyword; display thumbnails of those videos on an ASP.NET page; then either hyperlink to those videos on YouTube, or display them on his page via the YouTube Player API.

I’ll address that specific question in an upcoming post. First, I want to show how to do what the questioner asks if you already know the video IDs of specific YouTube videos you want to show on a page.

If you know the video ID(s) for the YouTube videos you want to display on a page, you can call them directly from YouTube’s image servers, thanks to a predictable URL and naming scheme, and hotlinking.
Continue reading: Displaying Selected YouTube Video Thumbnails On An ASP.NET Web Forms Page »

Tuesday, 4 May 2010

How To (Not) Add Numbers In JavaScript, And How To Troll

And now, for some levity, courtesy of Andrew Clover at doxdesk.com: An obvious trolling of Stack Overflow (and one which they have removed), but a funny one, nonetheless.

(Click for full-size pic)

So full of win, from start to finish. Even the “Related” links are hilarious. FYI, bobince — the straight man in this joke — is Clover.

All links in this post: http://delicious.com/dougvdotcom/how-to-not-add-numbers-in-javascript-and-how-to-troll