﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Charles Petzold</title>
    <link>http://www.charlespetzold.com</link>
    <description>Books and other writings by Charles Petzold</description>
    <language>en-us</language>
    <lastBuildDate>Mon, 20 May 2013 14:12:52 GMT</lastBuildDate>
    <generator>Yet another .NET / C# hack</generator>
    <managingEditor>cp@charlespetzold.com</managingEditor>
    <webMaster>cp@charlespetzold.com</webMaster>
    <copyright>(c) 2011 by Charles Petzold</copyright>
    <image>
      <url>http://www.charlespetzold.com/blog/Petzold.jpg</url>
      <title>Charles Petzold</title>
      <link>http://www.charlespetzold.com</link>
      <width>100</width>
      <height>100</height>
    </image>
    <item>
      <title>Two Outstanding Documentaries</title>
      <link>http://www.charlespetzold.com/blog/2013/05/Two-Outstanding-Documentaries.html</link>
      <pubDate>Fri, 17 May 2013 19:00:00 GMT</pubDate>
      <description>&lt;p&gt;  In December 2008 &amp;#x2014; between the election of Barack Obama and his inauguration &amp;#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.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Movies</category>
      <comments>http://www.charlespetzold.com/blog/2013/05/Two-Outstanding-Documentaries.html#comments</comments>
    </item>
    <item>
      <title>Don’t Just Read “The Great Gatsby”</title>
      <link>http://www.charlespetzold.com/blog/2013/05/Dont-Just-Read-The-Great-Gatsby.html</link>
      <pubDate>Fri, 10 May 2013 12:00:00 GMT</pubDate>
      <description>&lt;p&gt;  Something like the fifth movie version of &lt;i&gt;The Great Gatsby&lt;/i&gt; 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 &amp;#x2014; at least judging from the trailers &amp;#x2014; a crazed 3D monstrosity by Baz Luhrmann.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Books</category>
      <comments>http://www.charlespetzold.com/blog/2013/05/Dont-Just-Read-The-Great-Gatsby.html#comments</comments>
    </item>
    <item>
      <title>A Data Binding to the Text Property of Run?</title>
      <link>http://www.charlespetzold.com/blog/2013/04/A-Data-Binding-to-the-Text-Property-of-Run.html</link>
      <pubDate>Mon, 15 Apr 2013 12:03:23 GMT</pubDate>
      <description>&lt;p&gt;  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.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Windows 8</category>
      <comments>http://www.charlespetzold.com/blog/2013/04/A-Data-Binding-to-the-Text-Property-of-Run.html#comments</comments>
    </item>
    <item>
      <title>Spinning a Record Like a DJ in Windows 8</title>
      <link>http://www.charlespetzold.com/blog/2013/04/Spinning-a-Record-Like-a-DJ-in-Windows-8.html</link>
      <pubDate>Tue, 02 Apr 2013 10:44:18 GMT</pubDate>
      <description>&lt;p&gt;  Windows 8 has some exceptionally powerful facilities for working with sound, and in   &lt;a href="http://msdn.microsoft.com/en-us/magazine/dn166936.aspx"&gt;the latest installment of the DirectX Factor column in &lt;i&gt;MSDN Magazine&lt;/i&gt;&lt;/a&gt; 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.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Windows 8</category>
      <comments>http://www.charlespetzold.com/blog/2013/04/Spinning-a-Record-Like-a-DJ-in-Windows-8.html#comments</comments>
    </item>
    <item>
      <title>Fast Map Zooming Using DirectX</title>
      <link>http://www.charlespetzold.com/blog/2013/03/Fast-Map-Zooming-Using-DirectX.html</link>
      <pubDate>Sat, 09 Mar 2013 12:00:00 GMT</pubDate>
      <description>&lt;p&gt;  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?  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Windows 8</category>
      <comments>http://www.charlespetzold.com/blog/2013/03/Fast-Map-Zooming-Using-DirectX.html#comments</comments>
    </item>
    <item>
      <title>C++ Structures and Data Bindings</title>
      <link>http://www.charlespetzold.com/blog/2013/02/Cpp-Structures-and-Data-Bindings.html</link>
      <pubDate>Wed, 27 Feb 2013 18:24:52 GMT</pubDate>
      <description>&lt;p&gt;  As I was methodically converting all the Windows 8 C# code in &lt;a href="http://shop.oreilly.com/product/0790145369079.do"&gt;&lt;i&gt;Programming Windows&lt;/i&gt;, 6th edition&lt;/a&gt; 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.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Windows 8</category>
      <comments>http://www.charlespetzold.com/blog/2013/02/Cpp-Structures-and-Data-Bindings.html#comments</comments>
    </item>
    <item>
      <title>My Ranking of the “Best Picture” Nominees</title>
      <link>http://www.charlespetzold.com/blog/2013/02/My-Ranking-of-the-Best-Picture-Nominees.html</link>
      <pubDate>Sun, 24 Feb 2013 14:00:00 GMT</pubDate>
      <description>&lt;p&gt;  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).  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Movies</category>
      <comments>http://www.charlespetzold.com/blog/2013/02/My-Ranking-of-the-Best-Picture-Nominees.html#comments</comments>
    </item>
    <item>
      <title>Does This Non-Affine Transform Make My Butt Look Big?</title>
      <link>http://www.charlespetzold.com/blog/2013/02/Does-This-Non-Affine-Transform-Make-My-Butt-Look-Big.html</link>
      <pubDate>Mon, 04 Feb 2013 16:06:59 GMT</pubDate>
      <description>&lt;p&gt;  Chapter 10 of &lt;i&gt;Programming Windows&lt;/i&gt; 6th edition shows how to use the &lt;i&gt;Matrix3DProjection&lt;/i&gt; class to transform a rectanglur element into any arbitrary convex quadrilateral:  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Windows 8</category>
      <comments>http://www.charlespetzold.com/blog/2013/02/Does-This-Non-Affine-Transform-Make-My-Butt-Look-Big.html#comments</comments>
    </item>
    <item>
      <title>Speaking at vNext Orange County</title>
      <link>http://www.charlespetzold.com/blog/2013/01/Speaking-at-vNext-Orange-County.html</link>
      <pubDate>Fri, 25 Jan 2013 12:00:00 GMT</pubDate>
      <description>&lt;p&gt;  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:  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Speaking</category>
      <comments>http://www.charlespetzold.com/blog/2013/01/Speaking-at-vNext-Orange-County.html#comments</comments>
    </item>
    <item>
      <title>“Programming Windows” 6th Edition Final Ebook Now Available</title>
      <link>http://www.charlespetzold.com/blog/2013/01/Programming-Windows-6th-Edition-Final-Ebook-Now-Available.html</link>
      <pubDate>Sun, 20 Jan 2013 12:00:00 GMT</pubDate>
      <description>&lt;p&gt;  How long does it take to write a thousand-page programming tutorial?  I began the 6th edition of &lt;i&gt;Programming Windows&lt;/i&gt; on February 27, 2012, and subsequently worked on it pretty much full time except for the monthly installments of my &lt;i&gt;MSDN Magazine&lt;/i&gt; 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.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Windows 8</category>
      <comments>http://www.charlespetzold.com/blog/2013/01/Programming-Windows-6th-Edition-Final-Ebook-Now-Available.html#comments</comments>
    </item>
    <item>
      <title>Introducing DirectX Factor</title>
      <link>http://www.charlespetzold.com/blog/2013/01/Introducing-DirectX-Factor.html</link>
      <pubDate>Thu, 03 Jan 2013 13:03:01 GMT</pubDate>
      <description>&lt;p&gt;  I am thrilled to announce that beginning in the January 2013 issue of &lt;i&gt;MSDN Magazine&lt;/i&gt;, I will be writing a new column called &lt;b&gt;DirectX Factor&lt;/b&gt; focusing on using DirectX in Windows 8 (and Windows Phone 8) applications. You can read the   &lt;a href="http://msdn.microsoft.com/en-us/magazine/jj883962.aspx"&gt;first installment&lt;/a&gt; on line, as well as   &lt;a href="http://msdn.microsoft.com/en-us/magazine/jj883948.aspx"&gt;Michael Desmond's Editor's Note&lt;/a&gt; about the new column.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Windows 8</category>
      <comments>http://www.charlespetzold.com/blog/2013/01/Introducing-DirectX-Factor.html#comments</comments>
    </item>
    <item>
      <title>Rush Tickets for the Metropolitan Opera</title>
      <link>http://www.charlespetzold.com/blog/2013/01/Rush-Tickets-for-the-Metropolitan-Opera.html</link>
      <pubDate>Wed, 02 Jan 2013 14:00:00 GMT</pubDate>
      <description>&lt;p&gt;  The Metropolitan Opera has revived their production of Hector Berlioz's exuberantly audacious &lt;i&gt;Les Troyens&lt;/i&gt; ("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:   &lt;a href="http://www.metoperafamily.org/metopera/season/Rush.aspx"&gt;Rush tickets&lt;/a&gt;.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>New York City Life</category>
      <comments>http://www.charlespetzold.com/blog/2013/01/Rush-Tickets-for-the-Metropolitan-Opera.html#comments</comments>
    </item>
    <item>
      <title>Windows 8 XAML Files and C++ Header Files</title>
      <link>http://www.charlespetzold.com/blog/2012/12/Windows-8-XAML-Files-and-Cpp-Header-Files.html</link>
      <pubDate>Wed, 19 Dec 2012 13:59:11 GMT</pubDate>
      <description>&lt;p&gt;  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.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Petzold Book Blog</category>
      <comments>http://www.charlespetzold.com/blog/2012/12/Windows-8-XAML-Files-and-Cpp-Header-Files.html#comments</comments>
    </item>
    <item>
      <title>First-Person Shooter</title>
      <link>http://www.charlespetzold.com/blog/2012/12/First-Person-Shooter.html</link>
      <pubDate>Mon, 17 Dec 2012 16:00:00 GMT</pubDate>
      <description>&lt;p&gt;  It must have been about 20 years ago. I was at a friend’s house and he showed me a new videogame called &lt;i&gt;Wolfenstein 3D&lt;/i&gt;. 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.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Reflections</category>
    </item>
    <item>
      <title>Bézier Circles and Bézier Ellipses</title>
      <link>http://www.charlespetzold.com/blog/2012/12/Bezier-Circles-and-Bezier-Ellipses.html</link>
      <pubDate>Thu, 06 Dec 2012 17:09:21 GMT</pubDate>
      <description>&lt;p&gt;  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:  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Windows 8</category>
      <comments>http://www.charlespetzold.com/blog/2012/12/Bezier-Circles-and-Bezier-Ellipses.html#comments</comments>
    </item>
    <item>
      <title>The Lesson of GetIntermediatePoints</title>
      <link>http://www.charlespetzold.com/blog/2012/11/The-Lesson-of-GetIntermediatePoints.html</link>
      <pubDate>Wed, 28 Nov 2012 14:53:12 GMT</pubDate>
      <description>&lt;p&gt;  The following code shows some simple finger-tracking (or mouse tracking or pen tracking) code for Windows 8. The MainPage.xaml file instantiates a &lt;i&gt;Grid&lt;/i&gt; named &lt;i&gt;contentGrid&lt;/i&gt;, and the code displays pointer input with a &lt;i&gt;Polyline&lt;/i&gt; element. The &lt;i&gt;Polyline&lt;/i&gt; element is created during the &lt;i&gt;OnPointerPressed&lt;/i&gt; override, a &lt;i&gt;Point&lt;/i&gt; is added to this &lt;i&gt;Polyline&lt;/i&gt; during the &lt;i&gt;OnPointerMoved&lt;/i&gt; override, and it's completed in &lt;i&gt;OnPointerReleased&lt;/i&gt;. (For more details, consult the Touch chapter of my book &lt;i&gt;Programming Windows&lt;/i&gt;, 6th edition.)  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Windows 8</category>
      <comments>http://www.charlespetzold.com/blog/2012/11/The-Lesson-of-GetIntermediatePoints.html#comments</comments>
    </item>
    <item>
      <title>Visiting Sixteen Neighborhood Bookstores on Small Business Saturday</title>
      <link>http://www.charlespetzold.com/blog/2012/11/Visiting-Sixteen-Neighborhood-Bookstores-on-Small-Business-Saturday.html</link>
      <pubDate>Sun, 25 Nov 2012 21:00:00 GMT</pubDate>
      <description>&lt;p&gt;  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."   &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>New York City</category>
      <comments>http://www.charlespetzold.com/blog/2012/11/Visiting-Sixteen-Neighborhood-Bookstores-on-Small-Business-Saturday.html#comments</comments>
    </item>
    <item>
      <title>Coding for Multi-Touch for Silverlight 3</title>
      <link>http://www.charlespetzold.com/blog/2009/12/Coding-for-Multi-Touch-for-Silverlight-3.html</link>
      <pubDate>Tue, 01 Dec 2009 18:41:22 GMT</pubDate>
      <description>&lt;p&gt;  Two weeks ago, at the second-day keynote at the Microsoft Professional Developers Conference (PDC), Windows and Windows Live Division President Steven Sinofsky told us that Microsoft would be giving everyone there a new Acer notebook computer.  He got a big round of applause.  Nothing quite excites a roomful of programmers more than free hardware.  &lt;/p&gt;&lt;p&gt;... more ...&lt;/p&gt;</description>
      <author>cp@charlespetzold.com</author>
      <category>Silverlight</category>
      <comments>http://www.charlespetzold.com/blog/2009/12/Coding-for-Multi-Touch-for-Silverlight-3.html#comments</comments>
    </item>
  </channel>
</rss>