Feng Yuan (袁峰)

CLR, Performance, Debugging, Parallel Computing, WPF, XPS, GDI, GDI+, Printing (www.fengyuan.com)

Posts
  • Feng Yuan (袁峰)

    A 53-digit Palindromic Square Number

    • 1 Comments
    Six years ago I wrote a program to search for palindromic square numbers and other palindromic numbers and found some new palindromic numbers. But with increasing length, the search became longer and longer so I finally gave it up. Recently I got a...
  • Feng Yuan (袁峰)

    STS: A palindromic word I will remember

    • 1 Comments
    Continuing searching palindromic sqaure numbers finds a new record number, a 55 digit parlindromic square: 1373512530649258635292477609 ^ 2 = 1886536671850530641991373196913731991460350581766356881 Quite a few records for other palindromic sequences...
  • Feng Yuan (袁峰)

    Optimize XPS markup

    • 1 Comments
    XPS is hot, so naturally more and more applications will be generating XPS. If your application has access to the XPS Document Writer, then the easiest way to generate XPS is just print to it. But there are cases you may want to generate XPS on your own...
  • Feng Yuan (袁峰)

    (VS2010 Beta1) Native Parallel Programming: ConcRT example -- TwentyFour

    • 0 Comments
    WIth Microsoft Visual Studio 2010, Microsoft is releasing a new set of API for native parallel programming named ConRT (concurrent runtime). The purpose of this blog article is to illustrate the basics of ConcRT programming in VS 2010. We will be using...
  • Feng Yuan (袁峰)

    GDI Font Installation and Printing

    • 2 Comments
    I learned something new about GDI font installation and printing recently. So if you're use functions like AddFontResourceEx or AddFontMemResourceEx to install fonts in your application and your application supports printing, you may want to continue...
  • Feng Yuan (袁峰)

    XPS (XML Pape Specification) 0.75 Spec Released

    • 0 Comments
    Microsoft just released the XPS Specification and Reference Guide today (Sep 13th 2005): http://www.microsoft.com/whdc/xps/default.mspx There are three new specifications for download: Open Packaging Conventions which describe the methods for...
  • Feng Yuan (袁峰)

    Seven Year Itch

    • 6 Comments
    Seven years ago, I was working for Hewlett-Packard on its inkjet printer drivers. Having worked on printer drivers for a few years, I felt that I knew something about GDI that other developers would like to know too, and more importantly I wanted to everything...
  • Feng Yuan (袁峰)

    Zoran announces XPS rendering support for printers

    • 1 Comments
    Sunnyvale, Calif. - January 17, 2005 - Zoran Corporation (Nasdaq: ZRAN) announced that its IPS/XPS interpreter for Microsoft’s new XPS Document format will be available to printer and multifunction peripheral (MFP) manufacturers through an Early Adopter...
  • Feng Yuan (袁峰)

    Microsoft Digital Document Team at PDC 2005

    • 2 Comments
    Here are the sessions and other activities connected with the Microsoft Digital Document team at PDC 2005: Breakout Sessions DAT304 Unleashing the Power of XPS-Based File Formats for your Application Day/Time: Tuesday, September 13 2:45 PM- 4...
  • Feng Yuan (袁峰)

    Personal Computers 30 Years Ago

    • 2 Comments
    Last week, close to 20,000 Microsoft employees gathered together at Safeco field to celebrate Microsoft's 30 year anniversary. It was a very cheerful event. This prompted me to search trough my collection of books and magazines to find out what was the...
  • Feng Yuan (袁峰)

    Let's talk about printing at PDC05

    • 2 Comments
    PDC 2005 is just a few days away! Now we can finally talk about digital document/printing under Windows Presentation Foundation(originally known as Avalon) using real code. I will be at the following sessions: Track Lounges: Presentation Hands...
  • Feng Yuan (袁峰)

    Something useful from 'junk' mails

    • 2 Comments
    With a high school junior in the house, we're receiving tons of 'junk' mails from colleges these days. They usually pile up on the desk until we have time to read and discard them. Today, my wife found something useful, or rather something we have...
  • Feng Yuan (袁峰)

    Sell your copy of Windows Graphics Programming: Win32 GDI and DirectDraw

    • 1 Comments
    Just before the new year, I noticed a copy of my book was listed on amazon.com for $160 (the listing price of the book is $60). A few days ago when I checked again, it was gone. Some poor guy or poor company paid more than double the original price of...
  • Feng Yuan (袁峰)

    Where are my shirts?

    • 2 Comments
    I ordered my offical Microsoft blue shirts for PDC two weeks ago. But three working days away from PDC, they are nowhere to be seen. Our admin has been on medical leave for two weeks, so I thought they may be delivered to her office and locked up there...
  • Feng Yuan (袁峰)

    Native Office Support for XPS Annouced

    • 0 Comments
    Office just annouced native/direct support for XPS document in Office 12. Read more about it: Jeff Bell's blog: http://blogs.msdn.com/jeff_bell/archive/2005/10/27/485937.aspx Andy Simonds's blog: http://blogs.msdn.com/andy_simonds/archive/2005/10...
  • Feng Yuan (袁峰)

    Proposal of purchase for a tiny piece of real estate

    • 3 Comments
    Just finished writing first draft of a proposal of purchase, for a tiny piece of real estate, 8 square inch, 9.5-inch high ceiling, on your book shelf.
  • Feng Yuan (袁峰)

    (VS2010 Beta1) Native Parallel Programming: ConcRT example -- Debugging TwentyFour

    • 2 Comments
    In a previous posting, we presented a simple C++ parallel program TwentyFour, which is based on the new native parallel programming API (ConcRT) introduced in Visual Studio 2010. In this posting, we're going to discuss on how understand the running of...
  • Feng Yuan (袁峰)

    Improving CLRProfiler 4: Reducing SampleObject memory consumption by 58%

    • 2 Comments
    In the previous three posts, we managed to double the speed of file loading time of CLRProfiler through profile-guided optimization in three simple steps. Now let's take a look at reducing CLRProfiler's memory consumption, making it more useful to real...
  • Feng Yuan (袁峰)

    Performance Tips: System.Text.StringBuilder and String.Concat

    • 2 Comments
    Much has been written about the benefits of using StringBuilder over string concatenation. So much so that there seems to be overuse of StringBuilder class, causing performance issues again. If you're using StringBuilder and string concatenation a...
  • Feng Yuan (袁峰)

    Trobleshooting Printing Fidelity Problems

    • 2 Comments
    It's not uncommon to have a print-out from your printer not matching what do you see on screen. Printing is a quite complicated process with multiple players involved. So it's not an easy job to figure out who is at fault, either to find a workaround...
  • Feng Yuan (袁峰)

    Performance Tips: Faster than StringBuilder?

    • 7 Comments
    The web has tons of articles about how StringBuilder is much faster than string concatenation using '+' operator or String.Concat functions when there are enough strings to ber merged. Here is an MSDN article on this topic: http://support.microsoft.com...
  • Feng Yuan (袁峰)

    The benefit of having your own office

    • 2 Comments
    The benefit of having your own office, or at least one of them, is that you can have your own $29 IKEA armchar:
  • Feng Yuan (袁峰)

    American in Chinese History: Anson Burlingame

    • 3 Comments
    On the eve of Chinese president's visit to United States, I thought it's fitting to discuss some American figures in Chinese History. The first important person is Anson Burlingame. Mr. Anson Burlingame was appointed by Lincoln as minister to Austria...
  • Feng Yuan (袁峰)

    Drawing bearing and distance property line using C#/SVG/IE9.

    • 0 Comments
    If you read an official property legal desciption, property line are often described using bearing and distance. Here is an example: BEGINGING AT THE NORTHWEST CORNER OF SAID SOUTHWEST QUARTER OF THE SOUTHWEST QUARTER OF SECTION 9; THENCE SOUTH 89°35...
  • Feng Yuan (袁峰)

    XPS at WinHec

    • 3 Comments
    There is a large presence of XPS at Winhec this year, which makes Global Graphics' booth banner very fitting: The XPS workflow demo in Will Poole's keynote speech was a complete success. It demonstrates generation, viewing, sharing, scanning and...
Page 2 of 3 (61 items) 123