My Other Website

My other developer blog is at

My goal with has been to improve quality. The easiest way to improve quality is to delete low-quality posts, revise existing posts, and not post off-the-cuff articles. So, I’ve been posting less.

It’s worked, but I still like to write things out, to flesh out the ideas. Sometimes, they’re bad ideas, or foolish ideas, or half-baked ideas.

That’s what DeveloperBrainFarts is: a blog full of half-baked, foolish ideas, and a few good ideas. Check it out if you want, or ignore if you want.

Facebook-style Previews

I was thinking about how facebook updates parse out the url, then construct a nice looking preview. I think what it takes is scanning the textarea for a url, and then using ajax to tell the server to fetch a summary of the page at the url. get the data back, and insert it into a template, and reveal it.

This is a republication of a post from January 2012. I would not write it this way today.

Continue reading Facebook-style Previews

How to Add a REST API to an Existing Django Project

This is a note I wrote to myself about how to add Django REST Framework to an existing project. It’s in PDF format, for reading. I didn’t have the time to create a real tutorial that builds up the API, or produce a really useful API. The intention is just to outline what parts get defined and how they work together.