If you have a self-hosted WordPress blog, the code below will not work for you. Instead, go here to get the plugin.

Techmeme is an essential news discovery tool for me. It replaced my RSS reader and the totally unmanageable list of blog feeds that came with it years ago, and now I’d estimate that at least 95% of the news I consume is discovered via Techmeme or Twitter. For me, more than Digg or Hacker News or anything else, Techmeme is my social news source.

As such, it was big news to me when Techmeme announced this past Wednesday that they’re now accepting “tips” via Twitter. So much so that I was hoping (and even not so subtly suggesting) some of my Twitter “friends” would submit one of the blog posts I wrote since the feature was announced. But, then I realized  most of my friends didn’t know they could do this — and even if they did, the syntax is irregular (why “tip @techmeme” instead of just “@techmeme”?) and the whole process is a bit complicated.

So, it occurred to me we should have a “Digg It” equivalent embeddable call-to-action for Techmeme submission. Since no one else seemed to have made one yet, I took a stab:

Suggest to?

As you can tell, I’m not a designer or a developer. I’m just a lowly product monkey, and this isn’t meant to be anything more than my version of a working feature spec.

That said, here’s the code:

<div class="techmeme-suggest-button">
<p style="font-family: sans-serif; font-size: small">
<a style="text-decoration: none" title="Suggest to Techmeme via Twitter" href="javascript:var d=document,f='http://twitter.com/home/',l=d.location,e=encodeURIComponent,p='?status=tip%20@Techmeme%20',q=e(l.href)+'%20'+e(d.title);1;try{if(!/^(.*\.)?twitter\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z){a=function(){if(!window.open(f+p+q,'twitter'))l.href=f+p+q};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)">Suggest to <sub><img src="http://thesnowballfactory.com/images/techmemechicklet_16.png" border="0" alt="" /></sub></a><a style="text-decoration: none" title="What's this?" href="http://news.techmeme.com/090128/twitter-tips" target="_blank"><sup>?</sup></a>
</p>
</div>

If you want to use it, just copy and paste it into the bottom of your blog posts (make sure you’re editing in HTML mode). You can change the size and font of the text  by editing <p style="font-family: sans-serif; font-size: small"> (for example, try font-family: serif or font-size: medium). You can also change the size of the Techmeme favicon by switching out techmemechicklet_16.png for techmemechicklet_24.png (24px) or techmemechicklet_32.png (32px).

Lord knows it’s *ugly* (both the code and the design). So, real developers and designers I invite you to please improve upon it. All I ask is for you to post a link to your better version in the comments below, so we can all use it (and I can stop using my crappy one ;-) ).

Update: This blog is hosted on WordPress.com. And I was pretty surprised when I was originally able to embed the javascript for the buttons and it didn’t get stripped out, because I thought you weren’t allowed to run any scripts on WP.com. Well, it turns out you aren’t but they just don’t check for it when you post. At some point in the last 11hrs, the javascript powering the buttons in this post got stripped out (thereby breaking them, to which Russ alerted me). To make them work again, I’ve now just hardcoded the URL’s for them. The example javascript should still work for you (as long as your blog isn’t on WP.com), and you can see the javascript version in action at the bottom of this post on my (self-hosted) personal blog.

Update 2: The post just made the front page of Techmeme thanks to a mention from Gabe and a tip from Rahmin. If that’s not meta, I don’t know what is ;-) . And, it’s super cool to get some love from Gabe — I’m a huge fan of what he and the team have done over at Techmeme.

Update 3: As my buddy Mark just figured out, even self-hosted WordPress chokes on javascript in the body of the post. The only reason I didn’t notice this on my self-hosted WP blog is because I have the (very handy) Exec-PHP plugin installed, which apparently not only executes php in your posts but also js. The elegant solution (other than you also installing Exec-PHP on your self-hosted WP blog) would be to do a php version or maybe even a WP plug-in or template tag. But, frankly I can’t be bothered ;-) . So, I might just make a bookmarklet that generates static HTML for a ‘Submit to Techmeme’ button based on whatever page you’re on, so you can copy and paste it into any post on any publishing platform that supports HTML.

Update 4: Last one, I swear! Just to say there’s now a ‘Submit to Techmeme’ button plugin for WordPress (self-hosted).

When Ian first suggested I start this blog over Ethiopian lunch a few months back, I started making a list of useful posts to write. Ironically, the first real post on this blog is about how the first one on that list – what video hosting service to use – is now moot.

See that little 'Watch in HD' link in the bottom right corner? It used to say 'Watch in High Quality.'

That little 'watch in HD' link in the bottom right corner used to say 'watch in high quality.'

In chatting with the guys over at Handsome Donkey about what to do with their new site (which isn’t done yet), one of the topics that came up was what service they should be using to host their videos. They put a lot of production value into their work, and it frankly gets lost at ‘YouTube quality.’ We talked about using a service like Vimeo for embedding the videos on their site. But, it was a no-brainer that they needed to at least have their videos on YouTube in parallel for two reasons: 1) the YouTube audience is too big to ignore; and 2) view count on YouTube is the closest thing web video has to Nielsen tv ratings (and a hell of a lot more accurate).

As of Friday, there’s no more dilemma since it appears YouTube is now offering real 1080 x 720 HD for some videos. You can check out the full specs in comparison to other services here, but the bottom line is that YouTube HD is pretty much tied with Facebook HD for the highest quality. (On a geeky side-note, Vimeo’s encoding, VP6, is less processor intensive for the end-user than everyone else’s, H264.) It’s not clear yet how the decisions are being made on which videos are offered in HD vs. ‘high quality,’ but the first requirement is definitely to use the beta uploader (which allows for files up to 1GB) and upload the highest quality version of your video.

With the ability to embed high quality videos, the custom player wizard, and the chromeless player API, the folks at YouTube are getting rid of the most common excuses not to use them to embed videos on your site. And, the value of getting as many views, ratings, and comments on YouTube as possible greatly outweighs pretty much all other considerations.

Update 1/29/2009: After in-depth testing, Webware has weighed in on its pick for the top HD video hosting service — YouTube. The full post is interesting and contains a head-to-head comparison table (though on features and price, not encoding specs). But in case you’re busy, here’s the Cliff’s Notes version ;-)

The victor: YouTube 
This time around, we feel really comfortable giving YouTube the quality crown. Its HD encoding is really nice, and you can’t beat the price (free). One thing that really separates it from the others is that you can do so many things with your clip once it’s up there. You can replace the music, as well as add subtitles and annotations. Community members can also respond to it, adding in-line video replies.

Runners up: Vimeo and SmugMug
Only one of these services will really cost you money (SmugMug), but both give you really great-looking HD Web video. A nod must be given to Vimeo for blazing the trail here. It’s been doing HD video for a while now, and it is one of the most colorful and beautiful sites around. Likewise, SmugMug’s player and interface are top notch, although it’s not as social, and the $150 price tag might be a turn-off to casual users who don’t intend to use its photo-hosting features.