Stephen Toub

.NET, MSDN Magazine, and other Adventures in Life

  • Stephen Toub

    Recursive iterator performance, part 3

    • 5 Comments
    Last week and weekend I discussed performance of iterators in C# 2.0, specifically recursive iterators. Recursive iterator performance Recursive iterator performance, part 2 To briefly recap, the ability to write recursive iterators is, quite frankly...
  • Stephen Toub

    Exception filters and C#

    • 6 Comments
    We shipped our April 2004 issue of MSDN Magazine this week, and I've received a few reader's emails about something I wrote in the “.NET Matters” column. I was answering a question concerning exception filters and C#. While there are two...
  • Stephen Toub

    Google before asking questions

    • 21 Comments
    Found this on the web this morning... it's almost scary how true this really is. I almost never ask a question these days before first doing a well-crafted google search or two.
  • Stephen Toub

    Media Center and Outlook

    • 7 Comments
    As I mentioned in my last post , I recently wrote an article for MSDN detailing an approach for synchronizing calendars in Outlook with custom event data sources. I also mentioned that I included a few demo (but usable) CalendarProvider implementations...
  • Stephen Toub

    DllPreviewHandler for Windows Vista

    • 9 Comments
    At DevConnections this week, I wanted to demonstrate how easy it can be to write preview handlers for Windows Vista. Using the framework I created for my article in the January 2007 issue of MSDN Magazine , I whipped up this little guy: [PreviewHandler...
  • Stephen Toub

    UnauthorizedAccessException in PDF Preview Handler

    • 12 Comments
    For my article on preview handlers in the January 2007 issue of MSDN Magazine , I wrote a sample preview handler for previewing PDF files. This allows you to view PDF files in Outlook and in the Vista shell just as you would other document types for which...
  • Stephen Toub

    Recursive iterator performance, part 2

    • 6 Comments
    On Friday I post some observations on the performance of recursive iterators in C#. Since then I've received a few emails from folks stating that, while converting the recursive iterator to an iterative iterator with an explicit stack made sense for that...
  • Stephen Toub

    30

    • 9 Comments
    With the June 2006 issue of MSDN Magazine online as of today, I now have 30 articles published on MSDN. I figure that's a good time for a recap. Here are the articles and the user-submitted ratings information for each (as of this morning). ...
  • Stephen Toub

    When (a+b)+c != a+(b+c)...

    • 7 Comments
    In a discussion of C# this weekend, someone said (a+(b+c)) is the same as ((a+b)+c) when a,b,c are all primitive data types, like int, float, double, etc. In pure math, sure. In code, not necessarily. First consider System.Int32 and the following example...
  • Stephen Toub

    An ASP.NET Framework for Human Interactive Proofs

    • 25 Comments
    An article I recently wrote for MSDN online just went live: An ASP.NET Framework for Human Interactive Proofs It's always fun when that happens :)
  • Stephen Toub

    Sudoku for the Tablet PC

    • 11 Comments
    In July of 2005, I was visiting my brother and my college roommate John in London. While there, John got me hooked on Sudoku, a puzzle game that was then sweeping Europe and is now sweeping the US. On the way back to the states, instead of sleeping as...
  • Stephen Toub

    Bounded blocking queues

    • 3 Comments
    In my last post , I took a look at implementing blocking queues in .NET using semaphores (both System.Threading.Semaphore and a managed semaphore implementation). I defined a blocking queue as one that blocked on a dequeue operation until an item could...
  • Stephen Toub

    Sudoku on a non-Tablet PC

    • 11 Comments
    I've received a bunch of emails over the past week from people asking if I have a version of Sudoku.exe that runs on non-Tablet PCs. I tell them yes, and I tell them that they do, too :) Sudoku.exe references and uses types from Microsoft.Ink.dll,...
  • Stephen Toub

    Updated Media Center "Time Travel" article for Windows Vista

    • 12 Comments
    Several months ago I updated my "Time Travel with Windows Media Center" article to be based on Windows Vista rather than on Windows XP. It's now online! If you're interested in writing background add-ins for Media Center, check it out at http://msdn2...
  • Stephen Toub

    Handling window messages in console apps

    • 3 Comments
    If you've ever wondered how to handle window messages in .NET console applications, check out my latest .NET Matters column in the June 2007 issue of MSDN Magazine , which just went online an hour or so ago.
  • Stephen Toub

    Red vs Blue

    • 6 Comments
    Go Sox !!!
  • Stephen Toub

    .NET Matters: Stream Pipeline

    • 9 Comments
    My latest .NET Matters column in MSDN Magazine is now available online . In it, I discuss one approach to implementing a BlockingStream and using it to implement a StreamPipeline class.
  • Stephen Toub

    MSJ Scam

    • 14 Comments
    First, a bit of history on MSJ, as taken from the MSJ archive at http://www.microsoft.com/msj/: Microsoft Systems Journal was the first programming publication from Microsoft. Predating the Windows operating system, MSJ covered MS-DOS internals beginning...
  • Stephen Toub

    Sudoku in the Origami Experience Pack

    • 2 Comments
    It looks like Sudoku made it into the Origami Experience Pack . You should be able to install this, or at least the Sudoku component, on any Vista machine.
  • Stephen Toub

    Using MediaState.dll with GAC'd Add-Ins

    • 19 Comments
    Update (10/14/2005): MediaState.dll in the new SDK released today is signed. You can download it at http://www.microsoft.com/downloads/details.aspx?FamilyId=1D836C29-ABD5-4FDD-90C5-5C5ABAE97DB4&displaylang=en . The Media State Aggregation Service...
  • Stephen Toub

    WinDev Coding Questions

    • 7 Comments
    I'm up at WinDev in Boston this week (I know, I know, it's really Quincy), and last night MSDN had an Ask The Experts reception where, in addition to the great food and drink, we also gave away some cool prizes for correct answers to .NET trivia and coding...
  • Stephen Toub

    February 2005 MSDN Magazine now online!

    • 8 Comments
    The February 2005 issue of MSDN Magazine is now available online at http://msdn.microsoft.com/msdnmag/issues/05/02 . The February installment of my favorite column, .NET Matters , is available at http://msdn.microsoft.com/msdnmag/issues/05/02/NETMatters...
  • Stephen Toub

    .NET Matters: Deadlock Monitor

    • 3 Comments
    My latest .NET Matters in MSDN Magazine is now online here . In it, I discuss what deadlocks are and ways to detect them when using monitors.
  • Stephen Toub

    Awesome new version of WebGuide for Vista Media Center

    • 6 Comments
    I've been using WebGuide with Media Center since the initial version, and Doug Berrett has always done a terrific job with it. But with the newest version, WebGuide 4, he's completely outdone himself. It's brilliant. Works great with Vista, has a terrific...
  • Stephen Toub

    Code samples from DevConnections talk

    • 4 Comments
    Thanks to everyone who attended my talks yesterday at DevConnections. For those of you who were at the talk on using managed code to access some of the native-only APIs in Vista, you can get the code samples I used for the demos here . The slides from...
Page 2 of 6 (150 items) 12345»