Embeddable Widescreen YouTube Player

Screenshot of YouTube Widescreen PlayerYou may have noticed a link reading “Try the New YouTube Player Beta!” under videos on YouTube.  The new player is pretty sharp looking. Moreover, it has a sweet widescreen version. Unfortunately, YouTube provides no instructions on embedding the new player on your blog/website. I searched Google and didn’t find any instructions anywhere, so after I figured it out, I thought I should share with the world.

To embed a regular 4:3 video, use the following code.
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/swf/watch.swf?video_id=YOUR-VIDEO-ID-HERE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/swf/watch.swf?video_id=YOUR-VIDEO-ID-HERE" type="application/x-shockwave-flash" wmode="transparent" width="480" height="385"></embed></object>

There is one caveat when using the new player: the videos start automatically whether you want them to or not. I’m sure this is something YouTube will deal with once the player comes out of beta, but for now, we’re stuck with it how it is. At least, I think so. I couldn’t find any way to stop it, although I didn’t try using the API. If you know how to stop it from auto-playing, let me know in the comments.

To embed a widescreen video you must add &vq=2&fmt_map=6/720000/7/0/0 to the end of the URL (shown in the following code box). However, there is an additional caveat when using the widescreen player. Most videos, even widescreen videos, will not work with it. If you get a message saying, “This video is no longer available,” and you’re sure you copied the code correctly, it means that the video will not work with the widescreen player. If you’re having trouble, you can test your code with the video id X13o3efXTmk , which is the video I have embedded below. If it still doesn’t work, your code may be slightly off. Unfortunately, it’s very finicky and breaks at the drop of a hat.

I can’t promise this is repeatable, but I did upload one video that worked with the widescreen player. It had a 1.8:1 ratio (864×480) letterboxed into a 640×480 Quicktime video. I’m sure other ratios/sizes would work as well. The video below has an even wider radio, but 1.8:1 and 640×480 worked for me.

<object width="480" height="295"><param name="movie" value="http://www.youtube.com/swf/watch.swf?video_id=YOUR-VIDEO-ID-HERE&vq=2&fmt_map=6/720000/7/0/0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/swf/watch.swf?video_id=YOUR-VIDEO-ID-HERE&vq=2&fmt_map=6/720000/7/0/0" type="application/x-shockwave-flash" wmode="transparent" width="480" height="295"></embed></object>

All We Can Do Is Pray

My church has a saying (that I’m sure we did not originate), “Pray like it depends on God, and work like it depends on you.”  I think it’s a pretty good saying.  God is in control, and prayer is the most important thing we can do when faced with a difficult situation.  However, God uses His people to do His work, so we have a responsibility not just to pray but to act as well.  In other words, sometimes God uses us to answer our own prayers and the prayers of others.

But when it comes to the recent tragedy in Myanmar, I can’t do anything but pray.  There’s no shortage of disaster relief waiting to go into the country; the government of Myanmar simply won’t let much outside aid into the country.  Some have called for an invasion if necessary in order to bring in desperately needed food and supplies.  I honestly don’t know whether or not I think that’s a good idea.  I can see arguments on both sides and don’t know the country or region well enough to really judge.

So I’m asking you to join me in praying for both the people and the government of Myanmar.  Pray that relief would be let in, pray for a government that respects the lives of its citizens, and pray that somehow through this tragedy, the people of Myanmar would come to know Christ.

Time to Leave WordPress?

So, WordPress has had another major security problem. While I realize that no system is ever fully secure, it seems that WordPress has been having more than its fair share of issues. There was the “highly exploitable code” in May 2007. Then there was the December 2007 update to version 2.3.2, “an urgent security release that fixes a bug that can be used to expose your draft posts. 2.3.2 also suppresses some error messages that can give away information about your database table structure and limits and stops some information leaks in the XML-RPC and APP implementations. Get 2.3.2 now to protect your blog from these disclosures.” Then in February of 2008, there was the urgent update to version 2.3.3 to fix a bug that “would allow a user to edit posts of other users on that blog.” These, of course, were just the major issues. There were some other run-of-the-mill security updates along the way, the kind you expect with any online software.

I’m updating another WordPress blog that I run while writing this post. I had literally just written the following: “So far, I have been fortunate enough to avoid any real problems as a res,” when I found some spam files in my wp-content folder.

It’s disappointing that there are so many gaps in the pre-release security testing. On the one hand, it is free software, so perhaps I shouldn’t complain too much. On the other hand, it is free software owned by Automattic, which has parlayed the free labor it receives to help it build this software into a company worth $150-200 million, not to mention that there are a number of competitors with similar offerings.

To be honest, I probably won’t change any current blogs I’ve got on WordPress, but it makes me VERY hesitant to recommend it to any clients, and my next blog venture (whatever that may be), just might use MTOS.

Hat tip to David Russell for being the first one to mention the security issue to me. Unfortunately, his problems resulting from the latest WordPress bug are much more severe. On an only tangentially related note, it’s cool to go to a church where some of my pastors know more about web development and video editing than I do.  If you think that would be cool too, you should really check out NCC.

A Strange Occurrence

I was assaulted tonight on my way home from a friend’s house. It was kinda strange. I was walking down the street and it seemed like two people were following me. I heard them talking, and I could have sworn one of them said, “Why are we running away from him?” As they got closer I was alert and aware, but I didn’t realize exactly what they were doing until after they hit me.

One of them punched me in the back of the jaw and then they both ran the other way. I had gotten a pretty good look at one of them. He was around 15 or 16 years old and probably 145 pounds. I was a bit shaken but turned around to find them a decent ways away from me. I must say that my response probably wasn’t the greatest for a lot of reasons. I told them in some some not so nice terms to come back and get what was coming to them.

The one who was still around and who I had gotten a good look at yelled something at me. I don’t remember exactly what.

So many things about this situation amazed me. I was surprised that they attacked me at all. They didn’t try to take my wallet or anything else. There were people on their stoop across the street. It was a fairly well lit area, and judging by the size of the one guy (and I think the other guy as well), they ran a serious risk of getting greviously injured should I have fought back. That said, I’m somewhat surprised I wasn’t hurt worse. If they had some sort of weapon, they chose not to use it.

I’m not exactly sure how I feel about how I handled the situation. I probably shouldn’t have yelled back, both because it wasn’t the right thing to do and because you never know what will happen when you provoke someone. I called 911 and reported what had happened, and I chatted with the people on the stoop while the police came and took a statement. I gave them a description of the one guy I saw clearly.

Part of me wishes I had turned around and confronted them before I got hit. I’m pretty sure that would have ended in either no one getting hurt at all or two guys who would think twice before attacking someone again. A large part of me wants to beat the snot out of them. What just occurred to me was that I need to pray for them, so I’m going to stop writing for a minute and do that. Although, I’ll be honest; I don’t really want to.

I prayed for them, and I prayed for myself. I prayed honestly that I really didn’t feel very much love for them, but that I know God cares for them too. As I began to pray my heart began to soften, and I prayed that God would work in their lives, that He would help them to forgive themselves once they knew what they had done. I also prayed that God would help me to forgive them.

The whole thing was very strange. I ran the gamut of emotions from wanting to leave the city to wanting to rain down wrath upon their heads. Part of what’s odd is that I’ve always felt relatively safe in the city. I’ve always tried to watch myself, and I’ve only had one other incident, but that was even stranger, a long story, and not something where I was actually attacked, just a bit of an out of the ordinary confrontation with someone who I’m pretty sure was a drug addict.

One of the thoughts that ran through my mind as I finished walking home in the torrential downpour that started right after I finished with the police was how minor this was in comparison to what so many people deal with. Someone hit me, and it was someone who couldn’t have really done much more damage (barring having a gun or knife or something). People live in neighborhoods where they hear gunshots on a regular basis. There are communities that regularly mourn violent death, and that is just here in America. It doesn’t even begin to address the tragedies that occur in places such as Iraq, Darfur, and China.

In all I’m fairly lucky. If that’s the worst thing that’s happened to both my wife and I in the nearly three years that we’ve lived in DC, I’ve gotten off pretty easy.

I’m not sure what exactly comes of this. I don’t know how this will change the way I act and think. Right now I feel kinda like I did when I spun my father-in-law’s truck across four lanes of LA traffic. I didn’t really want to get back in the driver’s seat. Right now, I don’t really want to go walking around the city. On the other hand, that’s no way to live your life, especially considering that I don’t have a car, so I walk everywhere.

I know this wasn’t the most well written post.  It was mostly stream of consciousness to help me think things through.

I think I’m done writing now. I’m definitely not done processing. I know I need to keep praying, both for myself and for those boys, not to mention for this city. I’ve resisted calling them kids throughout this. I think because I’m somewhat angry (although less so now than when I started writing). I want them to be held responsible, but really, they’re just kids. They’re kids that need to be taught and loved. They’re kids who probably don’t have the greatest home lives. They’re the children about whom Jesus said, “Suffer the little children to come unto me, and forbid them not: for of such is the kingdom of God.

So, if you get the chance, say a prayer for me that I will finish processing this and will forgive, but more importantly, say a prayer for them that they will come to know Christ and His love for them.  And God, if there’s some way I can be a part of that, then use me in that way.

Yahoo/AOL Deal?

If you follow tech news at all you know that Microsoft has been attempting to purchase Yahoo over the objections of Yahoo’s management/board.  Yahoo has been resistant and recently implemented a short term deal with Google to display Google ads on Yahoo’s web properties, a move that many saw as an attempt to pressure Microsoft to up its bid (currently $31/share).  The Wall Street Journal recently broke the news that Yahoo and AOL are discussing a merger as well, and apparently Microsoft and Time-Warner are discussing a deal that would join MSN, Yahoo, and MySpace.  The final outcome of this extremely high stakes game of technological chess remains to be seen, but it seems likely that two or more of the Internet’s biggest properties will soon be combining forces.  The question remains, “Which two?”

A Running Fool

Will Johnston After Run
Me After My Run

So I’ve recently started running again. I’ve gone about 4 or 5 times in the past few weeks. This is after over a year break from the gym and a several year break from running regularly. Today I was out and decided to just keep going. I went 7.4 miles in 67 minutes, meaning 9 minute miles. I was pretty happy with my distance, but my speed could have been better. Ah well, what can you expect when you haven’t run in years?

I’m not going to lie, part of my motivation was a tweet from @joetrippi (Joe Trippi, the political consultant). He recently started running again as well, and frankly, I was a bit embarrassed that a guy who is twice my age and is, by his own admission, not in the greatest shape was running farther than I was (about 4 miles).

I can tell already that I’m going to be hurting tomorrow, but I think it will be worth it. No pain, no gain.

My Route:

2008-04-07 Run Map

Tweet Clouds & Ethics

I stumbled upon (as in came across, not actually Stumbled Upon) a blog post about Tweet Clouds, a service that provides a tag cloud of your tweets. This is pretty interesting for personal use, but what are the other ramifications? Eric Gonzalez asks these questions:

Will Twittercloud analysis become as common an HR proceedure as a background check for hiring? Will nerds like me run social media metrics prior to doing business with someone? Is this an effective (or ethical) way to get inside a prospect’s head for salespeople? What are the shortcomings and caveats here?

How would you use cloud statistics in business, or in your personal life?

I must say, I find these to be incredibly intriguing questions. I will say that on first blush, I don’t have any ethical problems with using a Tweet Cloud to better understand a prospective client. When people openly publish information on the Internet, I think they have to expect that information to be used to market to them, but I am curious what you all think about that. Is there something I’m missing?

Unfortunately, Tweet Clouds is down right now, so I can’t actually produce a cloud for you all to see. Perhaps I’ll update this later. It’s not my night for web services.

Update: It helps when you title your posts ;)

Twitter is Down - Now What?

Twitter DownA quick tutorial for the uninitiated. Twitter is a micro-blogging service that asks you the question, “What are you doing now?” (Or “What were you doing?” if you believe @davidrussell.) It’s widely used by people interested in technology and serves as a combination IM/forum for the discussion of the latest trends and tips in technology… and whatever your dog happens to be doing at the moment. Seriously, you don’t have to be all that into technology to get a lot out of Twitter.

If you’re like me, Twitter is how you keep up with what’s going on. I follow some of the big names in the tech and political worlds (not to mention the politech world), plus three of my pastors, some co-workers and friends, and a couple of Congressmen (don’t know of any Congresswomen on Twitter). It’s also where I make semi-poignant observations about things going on around the web. So, for instance, if a widely used web service goes down, I mention it on Twitter. That leads to the question, “What do I do when Twitter goes down?” as it often does. I suppose I could always write a blog post about it, but that seems like a pretty heavy tool to make such a minor observation. Funny how quickly a web service can become integrated in every aspect of my life. Yes, even this blog post will end up on Twitter via Twitterfeed.

If you’re not following me on Twitter, give me a shout at http://twitter.com/willfjohnston, and if you’re not on Twitter, by all means sign up. But you’ll have to wait a while to do either of those; Twitter is down right now.

Update: Must have been a short one, Twitter is back up now (9:38 P.M. EST)

A Tribute to Rev. Dr. Martin Luther King, Jr.

Dr. King was an amazing man, but I think that we often trivialize his message and flatten his character. We remember one line from one speech: “I have a dream.” Do we even remember what his dream was? We know it was something about equality, but do we remember what he actually said? I know I didn’t. I had to go look it up.

The first part of his dream was just that, equality. He said, “I have a dream that one day this nation will rise up and live out the true meaning of its creed: ‘We hold these truths to be self-evident, that all men are created equal.’” Pretty simple, we’re all equal; we all get an equal shot of making it, but what he called for next was something much more profound.

“I have a dream that one day on the red hills of Georgia the sons of former slaves and the sons of former slave owners will be able to sit down together at the table of brotherhood….

“I have a dream that my four little children will one day live in a nation where they will not be judged by the color of their skin but by the content of their character….

“I have a dream that one day down in Alabama, with its vicious racists, with its governor having his lips dripping with the words of interposition and nullification - one day right there in Alabama little black boys and black girls will be able to join hands with little white boys and white girls as sisters and brothers.

“This is our hope. This is the faith that I go back to the South with…. With this faith we will be able to transform the jangling discords of our nation into a beautiful symphony of brotherhood.”

You see, he called us to much more than a simple legal equality. He called for more than forced integration and legal protections for workers. He didn’t even stop at calling for an end to racism. He took it one step further. He c