﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='blogformat.xsl' version='1.0'?>
<!-- (c) 2012 by Charles Petzold (www.charlespetzold.com) -->
<blog>
  <item>
    <title>Two Outstanding Documentaries</title>
    <permalink>2013/05/Two-Outstanding-Documentaries.html</permalink>
    <comments>Comments (0)</comments>
    <dateline>May 17, 2013<br />New York, N.Y.</dateline>
    <content><p>  In December 2008 &#x2014; between the election of Barack Obama and his inauguration &#x2014; the Bush administration decided to give a farewell present to the oil industry by selling off drilling rights on parcels of public land in Utah's pristine redrock area. A 27-year-old environmental activist and University of Utah student named Tim DeChristopher showed up at the auction, was asked if he had come to bid, said that he was, and was given a bidding paddle with the number 70.  </p></content>
    <datetime>Fri, 17 May 2013 19:00:00 GMT</datetime>
  </item>
  <item>
    <title>Don’t Just Read “The Great Gatsby”</title>
    <permalink>2013/05/Dont-Just-Read-The-Great-Gatsby.html</permalink>
    <comments>Comments (4)</comments>
    <dateline>May 10, 2013<br />New York, N.Y.</dateline>
    <content><p>  Something like the fifth movie version of <i>The Great Gatsby</i> is opening today, but it's silly to actually go see such a thing.  The novel itself is quite short.  You can probably read it in less time than it would take to go and see the movie, and you'll emerge from the experience much more fulfilled and satisfied because you'll have read F. Scott Fitzgerald's original novel rather what appears to be &#x2014; at least judging from the trailers &#x2014; a crazed 3D monstrosity by Baz Luhrmann.  </p></content>
    <datetime>Fri, 10 May 2013 12:00:00 GMT</datetime>
  </item>
  <item>
    <title>A Data Binding to the Text Property of Run?</title>
    <permalink>2013/04/A-Data-Binding-to-the-Text-Property-of-Run.html</permalink>
    <comments>Comments (3)</comments>
    <dateline>April 15, 2013<br />New York, NY</dateline>
    <content><p>  Sometimes a programmer will encounter a situation where it's convenient to embed a changeable data value in a paragraph of text, and for this paragraph to re-wrap itself when the text representation of this data value acquires a different character width.  </p></content>
    <datetime>Mon, 15 Apr 2013 12:03:23 GMT</datetime>
  </item>
  <item>
    <title>Spinning a Record Like a DJ in Windows 8</title>
    <permalink>2013/04/Spinning-a-Record-Like-a-DJ-in-Windows-8.html</permalink>
    <comments>Comments (4)</comments>
    <dateline>April 2, 2013<br />New York, N.Y.</dateline>
    <content><p>  Windows 8 has some exceptionally powerful facilities for working with sound, and in   <a href="http://msdn.microsoft.com/en-us/magazine/dn166936.aspx">the latest installment of the DirectX Factor column in <i>MSDN Magazine</i></a> I show how to display a file picker that allows you to select an MP3 or WMA file from your Windows 8 Music Library, display cover art as well as album and artist information, load and decode the file using the Media Foundation APIs, and shovel the resultant audio buffers into XAudio2 voices to play back the file.  </p></content>
    <datetime>Tue, 02 Apr 2013 10:44:18 GMT</datetime>
  </item>
  <item>
    <title>Fast Map Zooming Using DirectX</title>
    <permalink>2013/03/Fast-Map-Zooming-Using-DirectX.html</permalink>
    <comments>Comments (8)</comments>
    <dateline>March 9, 2013<br />New York, N.Y.</dateline>
    <content><p>  Do you know that movie that starts out with a far-off view of Earth from outer space, and then the camera seems to move in closer and closer as if you're     heading towards Earth in a rocket, and in what seems to be one continuous take you plunge through the clouds and go straight down to the Earth's surface,     with more and more detail quickly coming into view, and then you zoom right into someone's backyard, and two people are sitting by the side of a swimming     pool, and one of them is dead?  </p></content>
    <datetime>Sat, 09 Mar 2013 12:00:00 GMT</datetime>
  </item>
  <item>
    <title>C++ Structures and Data Bindings</title>
    <permalink>2013/02/Cpp-Structures-and-Data-Bindings.html</permalink>
    <comments>Comments (1)</comments>
    <dateline>February 27, 2013<br />New York, N.Y.</dateline>
    <content><p>  As I was methodically converting all the Windows 8 C# code in <a href="http://shop.oreilly.com/product/0790145369079.do"><i>Programming Windows</i>, 6th edition</a> to C++, it was always nice to come across one of the many programs in the book that do their thing entirely in XAML.  Those projects didn't require any new C++ code and worked the same as the C# versions.  </p></content>
    <datetime>Wed, 27 Feb 2013 18:24:52 GMT</datetime>
  </item>
  <item>
    <title>My Ranking of the “Best Picture” Nominees</title>
    <permalink>2013/02/My-Ranking-of-the-Best-Picture-Nominees.html</permalink>
    <comments>Comments (5)</comments>
    <dateline>February 24, 2013<br />New York, N.Y.</dateline>
    <content><p>  This evening is the presentation of Academy Awards for movies released in 2012. Here's my ranking of the nine "Best Picture" nominees from best to worst (despite the impossibility of comparing movies that are very different in ambition, scope, and subject matter).  </p></content>
    <datetime>Sun, 24 Feb 2013 14:00:00 GMT</datetime>
  </item>
  <item>
    <title>Does This Non-Affine Transform Make My Butt Look Big?</title>
    <permalink>2013/02/Does-This-Non-Affine-Transform-Make-My-Butt-Look-Big.html</permalink>
    <comments>Comments (6)</comments>
    <dateline>February 4, 2013<br />New York, N.Y.</dateline>
    <content><p>  Chapter 10 of <i>Programming Windows</i> 6th edition shows how to use the <i>Matrix3DProjection</i> class to transform a rectanglur element into any arbitrary convex quadrilateral:  </p></content>
    <datetime>Mon, 04 Feb 2013 16:06:59 GMT</datetime>
  </item>
  <item>
    <title>Speaking at vNext Orange County</title>
    <permalink>2013/01/Speaking-at-vNext-Orange-County.html</permalink>
    <comments>Comments (1)</comments>
    <dateline>January 25, 2013<br />New York, N.Y.</dateline>
    <content><p>  I am very pleased to announced that on February 12, 2013, I will be speaking at a meeting of vNext Orange County (California) beginning at 6:00 PM.  Here are the details as announced by vNext:  </p></content>
    <datetime>Fri, 25 Jan 2013 12:00:00 GMT</datetime>
  </item>
  <item>
    <title>“Programming Windows” 6th Edition Final Ebook Now Available</title>
    <permalink>2013/01/Programming-Windows-6th-Edition-Final-Ebook-Now-Available.html</permalink>
    <comments>Comments (25)</comments>
    <dateline>January 20, 2013<br />New York, NY</dateline>
    <content><p>  How long does it take to write a thousand-page programming tutorial?  I began the 6th edition of <i>Programming Windows</i> on February 27, 2012, and subsequently worked on it pretty much full time except for the monthly installments of my <i>MSDN Magazine</i> column.  I finished reviewing pages on the last day of 2012 and emailed the ZIP file containing all the C# and C++ sample code to my editor on the morning of January 17, 2013, officially concluding my work.  </p></content>
    <datetime>Sun, 20 Jan 2013 12:00:00 GMT</datetime>
  </item>
  <item>
    <title>Introducing DirectX Factor</title>
    <permalink>2013/01/Introducing-DirectX-Factor.html</permalink>
    <comments>Comments (22)</comments>
    <dateline>January 3, 2013<br />New York, NY</dateline>
    <content><p>  I am thrilled to announce that beginning in the January 2013 issue of <i>MSDN Magazine</i>, I will be writing a new column called <b>DirectX Factor</b> focusing on using DirectX in Windows 8 (and Windows Phone 8) applications. You can read the   <a href="http://msdn.microsoft.com/en-us/magazine/jj883962.aspx">first installment</a> on line, as well as   <a href="http://msdn.microsoft.com/en-us/magazine/jj883948.aspx">Michael Desmond's Editor's Note</a> about the new column.  </p></content>
    <datetime>Thu, 03 Jan 2013 13:03:01 GMT</datetime>
  </item>
  <item>
    <title>Rush Tickets for the Metropolitan Opera</title>
    <permalink>2013/01/Rush-Tickets-for-the-Metropolitan-Opera.html</permalink>
    <comments>Comments (5)</comments>
    <dateline>January 2, 2013<br />New York, N.Y.</dateline>
    <content><p>  The Metropolitan Opera has revived their production of Hector Berlioz's exuberantly audacious <i>Les Troyens</i> ("The Trojans") and I'd really like to see it.  But I've spent most of 2012 writing a book for peanuts, and I'm flat broke.  I'll either be buying tickets in a section of the opera house requiring oxygen tanks, or taking advantage of something I've never tried before:   <a href="http://www.metoperafamily.org/metopera/season/Rush.aspx">Rush tickets</a>.  </p></content>
    <datetime>Wed, 02 Jan 2013 14:00:00 GMT</datetime>
  </item>
  <item>
    <title>Windows 8 XAML Files and C++ Header Files</title>
    <permalink>2012/12/Windows-8-XAML-Files-and-Cpp-Header-Files.html</permalink>
    <comments>Comments (11)</comments>
    <dateline>December 19, 2012<br />New York, N.Y.</dateline>
    <content><p>  Programmers returning to C++ after spending some years with C# are likely to have forgotten a few basics, or might not quite grasp how XAML fits in with the big picture.  That's certainly the case for me as I'm becoming multilingual in Windows 8 programming!  Here's an example of something that has gotten me several times.  </p></content>
    <datetime>Wed, 19 Dec 2012 13:59:11 GMT</datetime>
  </item>
  <item>
    <title>First-Person Shooter</title>
    <permalink>2012/12/First-Person-Shooter.html</permalink>
    <comments />
    <dateline>December 17, 2012<br />New York, N.Y.</dateline>
    <content><p>  It must have been about 20 years ago. I was at a friend’s house and he showed me a new videogame called <i>Wolfenstein 3D</i>. My friend enjoyed the dynamics of the game, which involved — as best I can recall — a first-person perspective of an armed soldier chasing people on the screen, and shooting and killing them.  </p></content>
    <datetime>Mon, 17 Dec 2012 16:00:00 GMT</datetime>
  </item>
  <item>
    <title>Bézier Circles and Bézier Ellipses</title>
    <permalink>2012/12/Bezier-Circles-and-Bezier-Ellipses.html</permalink>
    <comments>Comments (3)</comments>
    <dateline>December 6, 2012<br />New York, N.Y.</dateline>
    <content><p>  About 11 years ago, while writing my first book about Windows Forms programming, I became interested in the technique of rendering circular arcs using Bézier curves, and I read a couple articles on the subject from one of the many periodicals available at the New York Public Library:  </p></content>
    <datetime>Thu, 06 Dec 2012 17:09:21 GMT</datetime>
  </item>
  <item>
    <title>The Lesson of GetIntermediatePoints</title>
    <permalink>2012/11/The-Lesson-of-GetIntermediatePoints.html</permalink>
    <comments>Comments (2)</comments>
    <dateline>November 28, 2012<br />New York, NY</dateline>
    <content><p>  The following code shows some simple finger-tracking (or mouse tracking or pen tracking) code for Windows 8. The MainPage.xaml file instantiates a <i>Grid</i> named <i>contentGrid</i>, and the code displays pointer input with a <i>Polyline</i> element. The <i>Polyline</i> element is created during the <i>OnPointerPressed</i> override, a <i>Point</i> is added to this <i>Polyline</i> during the <i>OnPointerMoved</i> override, and it's completed in <i>OnPointerReleased</i>. (For more details, consult the Touch chapter of my book <i>Programming Windows</i>, 6th edition.)  </p></content>
    <datetime>Wed, 28 Nov 2012 14:53:12 GMT</datetime>
  </item>
  <item>
    <title>Visiting Sixteen Neighborhood Bookstores on Small Business Saturday</title>
    <permalink>2012/11/Visiting-Sixteen-Neighborhood-Bookstores-on-Small-Business-Saturday.html</permalink>
    <comments>Comments (6)</comments>
    <dateline>November 25, 2012<br />New York, NY</dateline>
    <content><p>  Yesterday was Small Business Saturday, a shopping holiday invented a couple years ago by a company that definitely doesn't qualify as a small business. Yet, the concept is quite appealing: Surely for one day a year we can draw specific attention to those small neighborhood stores that we patronize all year round, and we can do so without a mass stampede to find "bargains."   </p></content>
    <datetime>Sun, 25 Nov 2012 21:00:00 GMT</datetime>
  </item>
</blog>