Archives for category: Channel 9

In this deep dive, Sean McKenna from Windows Phone and Greg Hodgal discuss how to program for Windows Phone 7 using the accelerometer.
An accelerometer is a sensor that measures acceleration forces such as gravity or the forces caused by moving the sensor. All Windows Phones have at least one accelerometer sensor that, when accessed by the managed Accelerometer API, can be used to provide input to Windows Phone applications including both Silverlight for Windows Phone and XNA for Windows Phone applications.

Sometimes you have work that you want to schedule for off-peak times or have happen on a recurring schedule, such as every 3 hours. While there are many ways to do this, Workflow Services are an interesting option. In this episode, I’ll show you how you can create a service that accepts start, stop, and query messages, and supports scheduling.

    WF4 Batch Job Example (MSDN Code Gallery)

Ron Jacobs
blog        http://blogs.msdn.com/rjacobs
twitter    @ronljacobs

In part 3 of the Advanced Functional Programming lecture series, Dr. Lämmel focuses on the domain of language interpretation as a method of understanding some important functional programming techniques. As a side effect, some basics of programming language theory are also informally presented.

More specifically, this lecture develops an interpreter for a simple functional programming language that contains Booleans, natural numbers, lambdas, and recursive lets. The interpreter is actually developed in a stepwise manner, which is why the lecture is called “Evolution of an Interpreter.”

In each step, another construct is added and the impact of the extension onto the interpreter is analyzed. In this manner, several interesting programming techniques are exercised. For instance, the Maybe type constructor is pervasively used for dealing with partiality, and Haskell’s fixed point combinator is used to model the semantics (i.e., interpretation) of recursive bindings.

This lecture also prepares us for some more advanced subjects. For instance, the next lecture in this series will cover the intriguing subject of monads while using interpretation as the application scenario. Soon, generalized folds (or bananas, according to Erik Meijer) will also be discussed (the folds will traverse abstract syntax trees as opposed to lists).

Enjoy. Learn.

Thanks to Ralf for providing another excellent lecture!

Earlier lectures here.

Slides: https://developers.svn.sourceforge.net/svnroot/developers/repository/ralfs-channel9-lectures/decks/interpretation.pdf

Related Blog Post and Code:

http://professor-fish.blogspot.com/2010/08/bunch-of-interpreters-using-cpp-and.html

One of the thorns in the sides of all Internet users is the plethora of accounts they need to keep track of for the various websites they use throughout the day. Most of the folks running these sites don’t particularly want to create an account management system, but they need to just so they can provide their users with a personalized experience. On the other end of the spectrum, there are enterprise developers who need to constantly keep up with new protocols and credential types for securing their applications. Windows Identity Foundation might just be a solution to both of these problems, removing the need for applications to host their own authentication system, as well as reducing the number of logins a user needs to remember.

In this episode of The Knowledge Chamber, I meet with Vittorio Bertocci (who just finished a new book, Programming Windows Identity Foundation) to learn more about the basic features and capabilities of Windows Identity Foundation and see how easy it is for websites and applications to get out of the credential management game and “outsource” their authentication to another provider.

When used in conjunction with services such as the Windows Azure AppFabric Access Control Service, Windows Identity Foundation makes it possible to log in via LiveID, Yahoo, Google, and existing Active Directory instances equipped with ADFS2, as well as by using a variety of other providers, while maintaining the exact same codebase.

If you’d like to order a copy of Vittorio’s book, you can find it here:
http://www.amazon.com/gp/product/0735627185

To find out more about Windows Identity Foundation, you should start here:
http://www.Microsoft.com/WIF

You can find Vittorio’s blog here:
http://blogs.msdn.com/b/vbertocci/

And you can find more videos on Channel 9 about Windows Identity Foundation here:
http://channel9.msdn.com/tags/Windows+Identity+Foundation/

Paul and Laura spent their entire week finding all these hot stories for this episode of Ping!

We LOVE open source
Yahoo!—powered by Bing!
Miss Silverlight
Exchange ActiveSync on Hotmail
Free software for students!

First, congratulations to Jarem Archer for winning the free pass to PDC!  We loved the inventiveness and creativity of his SketchFlow comic listing the 7 reasons why he should attend PDC10.  Well done, @unt1tled!  Then we’re off and running on a very quick excursion through the Microsoft Conference Center where PDC will be held this year.  Sometimes it’s dark, sometimes the audio isn’t that great, sometimes it’s a little jiggly, but hopefully this jaunt through the facility gives you a good idea of the space and venue that will be our home this year.  http://www.microsoftpdc.com/

This week on Channel 9, Brian and Dan cover the week’s top developer news, including:

Picks of the week!

The latest release of Rx includes new tools for testing reactive programs as well as virtual scheduling. In this video, Jeffrey and Wes discuss virtual time and virtual schedulers and how they can be used to write tests and query historical data.

What is virtual time, exactly? What purpose does it serve and how is it related to reality? Wait a century-second. What time is it? When?

As usual, Wes and Jeff go deep. Dive in with us. This is heady stuff and also really useful for practical programming with Rx. It’s always great to spend some time with Wes and Jeff at the whiteboard and at the computer (they demo this for us towards the end of the session).

Enjoy!

Hot on the heels of the OData Helper for WebMatrix, today we are pushing a new helper out into the community. The Windows Azure Storage Helper makes it ridiculously easy to use Windows Azure Storage (both blob and table) when building your apps. If you’re not familiar with “cloud storage,” I recommend you take a look at this video where my pal Ryan explains what it’s all about. In a nutshell, it provides infinitely simple yet scalable storage, which is great if you are a website with lots of user generated content and you need your storage to grow auto-magically with the success of your apps. Tables aren’t your normal relational databases—but they are great for simple data structures and they are super fast.

Read more about the helper on my blog.

Damn, that PDC timer!  Tell @anyware to put a full 10 minutes on the hamburglar this week so we can tell you who won!  :)