Rally driver and nutjob Ken Block has released a third Gymkhana video. If you haven’t seen the first or second ones, then watch those first.
Tag Archives: YouTube
AT-AT Day Afternoon
A great little short film.
How it was made:
The Monster Attacks Pikes Peak
Check out this great video of Pikes Peak International Hill Climb world record holder Nobuhiro “Monster” Tajima racing up the mountain earlier this year.
(best watched fullscreen and in HD)
Just listen to those turbos whine…
“Guy Walks Across America”
This is rather amazing:
http://www.youtube.com/watch?v=lzRKEv6cHuk
Behind the scenes:
Better “RED” Trailer
This one is better than the one I posted before:
“Tron: Legacy”
I know I post a lot of movie trailers, but sush — it’s my blog and I can do as I please. 😛
Here’s the trailer for “Tron: Legacy”. It’s probably going to be crap, but it still looks fun. Plus it has the gorgeous Olivia Wilde in it, so it can’t be that bad. 😉
http://www.youtube.com/watch?v=nxdtVWvfFSU&hd=1
“RED”
Helen Mirren with a machine gun. Need I say more?
“The Expendables”: A Call To Arms
Gentlemen, it’s time we get out a bit more.
By its 2nd week “Rambo” was beaten by 27 Dresses and Hanna Montana. Stallone ripped a man’s throat out with his bare hands! We can’t let this happen again.
August 13th… Get to dah theatah!!!
Make sure to watch it fullscreen and in HD. 😉
http://www.youtube.com/watch?v=dMDC76D9l94&hd=1
Previously: http://www.viper007bond.com/2010/04/02/the-most-awesome-movie-of-2010/
Creating Simple oEmbed-Based WordPress Shortcodes
Say you wanted to create a shortcode like this: [youtube id="991WcoEPwb8"]
And instead of manually creating the HTML yourself, you wanted to use YouTube’s oEmbed provider to get the HTML. While that’s easy to do using WordPress’ existing functions (wp_oembed_get() for example), you must implement your own caching of the result as WordPress’ oEmbed class does not include any caching of it’s own.
However, WordPress comes with an [embed] shortcode that’s also secretly used for the shortcode-less embeds. A cool trick is to make that shortcode’s existing code (complete with caching) work for you! This post explains how to do it.
First, the code:
[php]add_shortcode( ‘youtube’, ‘my_youtube_shortcode’ );
function my_youtube_shortcode( $atts ) {
// We need to use the WP_Embed class instance
global $wp_embed;
// The "id" parameter is required
if ( empty($atts[‘id’]) )
return ”;
// Construct the YouTube URL
$url = ‘http://www.youtube.com/watch?v=’ . $atts[‘id’];
// Run the URL through the handler.
// This handler handles calling the oEmbed class
// and more importantly will also do the caching!
return $wp_embed->shortcode( $atts, $url );
}[/php]
We start by gaining access to the WP_Embed instance that we’ll be making use of and then making sure we have the required video ID (you can do whatever you want here). We then create the full URL to the video that oEmbed will need. Lastly the real time saver — we pass the attributes (“id” will be ignored) and the constructed URL to the [embed] shortcode handler which will fetch the result and cache it.
Simple, huh?
One thing to note though: if you’re using this along with a non-default oEmbed provider, you’ll also need to whitelist it using wp_oembed_add_provider().
Opera Is Faster Than A Potato Too!
Like Chrome, Opera wants you to know they’re faster than a potato too:
I’m sticking to Firefox though. I can’t live without all my addons and Firefox 4 will be pretty awesome.