Many Pies

Many Pies

Friday, May 21, 2010

Display a tweet on a web page - getting around the authentication restrictions

I was working on the Engage page on our website and I wanted to display a single tweet from a particular user. It was a lot more complicated than I thought.
An old version of a similar page used the query (with a bit of JQuery around it)

Although that still works, I suspect it will be deprecated. The latest version
requires authentication. That's soon going to require OAuth. It wasn't easy to find much stuff about OAuth and twitter and javascript. Eventually I did find some wisdom about how it was a bad idea on javascript, because it means putting secrets in your code.

So my work around was to create a list with the same name as the user I wanted to display on our corporate twitter account, add that twitter user to it, and use
instead. It doesn't require authentication, so works fine!

Wednesday, May 19, 2010

Morriss's law

Whilst using our corporate wiki, Confluence, I thought of a new law:
"Every program attempts to expand until it becomes Twitter."
One of the recent new versions of Confluence incorporate status updates, and "following". It's based on:

Zawinski's Law of Software Envelopment (also known as Zawinski's Law) relates the pressure of popularity to the phenomenon of software bloat:

Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.
—Jamie Zawinski,