Welcome to MSDN Blogs Sign in | Join | Help

Mike Ormond's Blog

In my world, things would be simpler than this...

News

  • Add to Technorati Favorites

    These postings are provided "AS IS" with no warranties, and confer no rights. The use of any script / code samples is subject to the terms specified here.

A Fun Little Silverlight Twitter Application

My new boss Marc set us a little challenge to build a simple Silverlight kiosk type application that would display the latest Tweets for a set of given keywords. "20mins of work" according to Marc. Well, the end result may have looked like 20mins of effort but getting there took a few diversions (particularly into some threading territory I didn't really need to visit) as well as the usual bugs and Silverlight saying "Oh no, I don't think so. Maybe you want to reconsider what you think it's reasonable for me to do. I might be good but I'm not psychic" etc etc

Anyway, MikeT and I both knocked something together. I think Mike'll probably build a WPF version refactored to look semi-reasonable rather than looking like it was knocked together in 20mins.

I then modified my effort to pull the top 10 Twitter queries using the Trends service. Some of terms that come back generate no results when I query against them (I think because they're tags but I didn't look into it). So you may see some search terms appear briefly (at the top of the page) and then skip on to a different term. That's all that's happening. The app switches search terms every 20s or so. It doesn't re-query the Trends service so you'll need to refresh periodically if you want the search terms themselves to update. Otherwise it continues to refresh the latest Tweets for the original search terms.

The URL for the app is http://mikeo.co.uk/demo/twitfeed/

It's not been exhaustively tested (that's an understatement - I found a bug after I "shipped" whereby it wouldn't refresh beyond about 7 or 8 iterations, turned out my Timer was being garbage collected; that should work okay now) so if you run into any problems with it (not that there's many ways in which you can exercise it) then do let me know.

It's actually quite relaxing to watch. Obviously I'm not in control of the content that gets posted on Twitter to be prepared to see the occasional  "interesting" Tweet.

http://mikeo.co.uk/demo/twitfeed/

Technorati Tags: ,
Posted: Thursday, November 13, 2008 8:15 PM by MikeOrmond

Comments

AdamKinney said:

Very cool, Mike.  Interesting that you can select letters from the trend keywords.  What's that supposed to do?

# November 13, 2008 4:59 PM

Marc: My Words said:

Note to self that some people will take your estimates quite literally sometimes. Anyway, a bit of Silverlight

# November 14, 2008 2:50 AM

Community Blogs said:

In this issue: Ivan Dragoev, Beatriz Stollnitz, Laurent Duveau, Matthew Casperson, Mike Ormond, Adam

# November 14, 2008 12:08 PM

Marc: My Words said:

WPF Twitter Search Kiosk Thing

# November 19, 2008 7:45 AM

Marc: My Words said:

Talking of great examples, MikeT had a crack at the Twistori thing that MikeO looked at but took a slightly

# November 19, 2008 7:45 AM

Mike Ormond's Blog said:

I've made a few improvements to the little Twitter app I built before I went on holiday. You can access

# December 4, 2008 6:46 AM
New Comments to this post are disabled
Page view tracker