I'm at the Microsoft TechEd 2011 conference. It's midnight and I'm in the business centre of the hotel in my bed socks cutting code.

#AuTechEd 2011 Room Schedule

It's my first teched conference and naturally I'm pretty excited. I was trying to figure out which sessions I want to go to over the next few days and every time I export my selections as an iCal file there are invariably times when I have two sessions selected. Obviously it is impossible to go to both and I suspect that I will want to change my mind eighteen times before I actually get to the timeslot in question.

What I really want to do is to pick the sessions as I go along, selecting the next session I will attend before leaving the current one. To do that I need a way of finding out which sessions are on and when. Luckily for me, I can. Microsoft has kindly set up an OData feed which you can read all about at OData Services.

For my purposes I want all of the session data (and I want track data just because). Here is the code:

    var entites = new ODataTEAU11Entities(new Uri("http://odata.msteched.com/teau11/sessions.svc/"));
    var sessions = entites.Sessions.Expand("Track").ToList();

Then I run the data through some LINQ-Fu to get the next two timeslots that have not already finished for each room. Once you have that it is an easy matter to show it on a web page that is handily formatted for my tablet (the device I will hopefully be wandering around with).

Screenshot of room by room timeslot schedule for #auteched

Once it was all working I put a copy on AppHarbor and pointed http://teched.codermike.com at it.

All in all, it took about 2 hours and that includes the time it took to select 22 different highlight colours (one per "track").

P.S. This comes with the full "Works on My Machine" seal of approval. It has had zero testing. Enjoy!

Posted by: Mike Minutillo
Last revised: 29 Aug, 2011 02:35 PM History

Comments

No comments yet. Be the first!

No new comments are allowed on this post.