Embedding Google Docs and Spreadsheets into your Blog Posts

I just wrote a post about buying a new camera, and because I want to compare specs on several different cameras and lenses, I’m going to need a spreadsheet.  Luckily there are some great online spreadsheet programs to chose from.  I’m going to use this as an opportunity to explore how to use Google Docs and Spreadsheets in blog posts.

Before you get started I’m assuming you already have a Google Docs spreadsheet ready to go.

1.  You can always just link to the document. By default your docs will be private so you’ll need to make them available to your readers.  To do so you’ll need to either go to the Share tab and check “Anyone can view this document WITHOUT LOGGING IN at:” or go to the Publish tab and publish the doc. Either way you’ll get regular URL to post, like this one:  http://spreadsheets.google.com/ccc?key=ppevxmL24UqmeiZSbqIU1DQ&hl=en

Links aren’t very exciting though, so how can you embed into a post instead?

2.  You can embed the content into the post.  If you’re wondering how to do it in WordPress, one solution I’ve come across is the Inline Google Docs plugin at Broken Watch.  This plugin gets the actual text/html of the spreadsheet and places it inline in your post.  So if you have a wide blog template, or a spreadsheet with relatively few columns, it should blend right in.  On the other hand, there’s no editing or other fun.

Here’s an example of what the output looks like:

NOTE: I had to disable this, it was throwing errors once I upgraded to WordPress 2.7. You mileage may vary.

3.  You can put the doc directly in the page with an iframe. This works really, really well with Google Presentations but is a bit trickier with a doc and even less optimal with a spreadsheet. You’ll get the best-looking results if you publish the document and use the published URL in the iframe. On the other hand if you use the shared URL collaborators should be able to make changes right in your blog post.

You’ll want to create some code like this:

<iframe src=”http://spreadsheets.google.com/pub?key=ppevxmL24UqmeiZSbqIU1DQ” width=”500″ height=”400″></iframe>

Make sure you put the code in the “HTML” editing mode of WordPress rather than “Visual” mode.  As a result you can see some of the info I’ve gathered about possible camera / lens combinations in the spreadsheet below.

The main issue here is the relatively small iframe window size. If you use a wider blog template this technique might work really well.

Why bother? Spreadsheets aren’t the most exciting thing in the world for most people, but play around with all the features of Google Docs and Spreadsheets and you’ll see why this can be pretty cool.  You can embed questionnaires and surveys, cool charts and graphs with Gadgets, and anything else you can think of.

What Digital Camera Should I Buy?

A lizard in the leaf litter In addition to creating web apps, doing research, and pontificating on usability and social software, I like to wander around and take photos.  Until now I’ve gotten along pretty well with a Nikon CoolPix 5700.  It has a number of features that have turned out to be really, really useful – an 8x optical zoom that makes it easier to take photos from far away, a nice macro mode for very very close shots, and a swiveling LCD display that makes it easier to do overhead shots and candid photos.

But, it has a few limitations that I find myself bumping into again and again.  No vibration reduction, poor performance in low light, slow autofocus, and it definitely does not give you the kind of manual control that traditional SLR film cameras have.  So I’m looking into getting a DSLR.

I definitely want to get a new camera before our kid is born in November.  The only thing stopping me from running out and buying a DSLR is that I don’t want to turn my minor photography hobby into a major production – I like the relatively small size and light weight of my current “prosumer” camera, and the fact that I don’t need to carry 2 or more lenses around with me at all times.

So here’s my project:  to find a combination of camera and lens that gives me a nice balance between control, portability, and versatility.  I’m not as worried about super-high resolution (by the time you hit 5-6 megapixels, you can do pretty much anything you want with the prints), or having really professional gear.  Price is also a big consideration.

My guess is that I’ll have to try to find a small, entry-level DSLR and attach a “walking around” or “vacation” lens – something with a wide range, like 18mm – 200mm.  Another thing I’ll be looking into is automating geotagging – I’m a big fan of photo sharing systems like Flickr and Picasa and it would be great to have faster, more accurate place data on photos.

This definitely calls for a spreadsheet.  I have a tendency to approach major decisions with the application of spreadsheets and/or databases.  But before I start laying out facts and figures, any recommendations?  Suggestions on brand names, specific models, etc. are all welcome.  Please post in the comments below.

Great video on how to get your site back in Google

Earlier I wrote a bit about what to do when your site has been hacked or spammed to the point where Google and Firefox start warning visitors away from your site.  If you find you site deleted from Google search results completely, you’ll want to file a reconsideration request.

Luckily, the Google Webmaster Central blog has a great post on how to make a request to get back into Google.  The post includes a step-by-step video.  You can also check out the Google Webmaster Help group if you have questions.