Sign in
Delay's Blog
Silverlight, WPF, Windows Phone, Web Platform, .NET, and more...
Tags
AJAX Control Toolkit
Development Tips
FeedWorm
MEF
Miscellaneous
Silverlight
Silverlight Toolkit
Technical
TextAnalysisTool
Utilities
Web Platform
Windows Phone
Windows Phone Toolkit
WPF
WPF Toolkit
Browse by Tags
MSDN Blogs
>
Delay's Blog
>
All Tags
>
technical
Tagged Content List
Blog Post:
"If I have seen further, it is by standing on the shoulders of giants" [An alternate implementation of HTTP gzip decompression for Windows Phone]
David Anson
The HTTP protocol supports data compression of network traffic via the Content-Encoding header . Compressing network traffic is beneficial because it reduces the amount of data that needs to be transmitted over the network - and sending fewer bytes obviously takes less time! The tradeoff is that it takes...
on
19 Apr 2012
Blog Post:
"I never did mind about the little things..." [Free HideShowDesktopButtonOnTaskbar utility hides the "Show desktop" button on the Windows taskbar]
David Anson
Over the holidays, a relative emailed me the following rant: Most of my conversation with technical support was to find out how to turn off the "Show desktop" icon in the lower right corner of the screen. This icon can be engaged by clicking on it or hovering over it (if you select Peek). On a desktop...
on
24 Jan 2012
Blog Post:
“Make things as simple as possible, but not simpler.” [ManagedMsiExec sample app shows how to use the Windows Installer API from managed code]
David Anson
Windows Installer is the installation and configuration service used by Windows to add and remove applications. (For more information, Wikipedia has a great overview of Windows Installer , covering products, components, setup phases, permissions, etc..) In addition to exposing a rich, native API , Windows...
on
9 Jan 2012
Blog Post:
"You are now up to date." [IfModifiedSinceWebClient makes it easy to keep a local file in sync with online content - and do so asynchronously]
David Anson
Recently, I was working with a program that needs to cache the content of a network file on the local disk for faster, easier access. The network file is expected to change periodically according to an unpredictable schedule; the objective is to keep the local file in "close" sync with the online copy...
on
18 Oct 2011
Blog Post:
Don't make the audience sit through all your typo-ing [Overview of implementing an extension for WebMatrix - and the complete source code for the Snippets sample]
David Anson
When I wrote about WebMatrix's new extensibility features a couple of posts back , I said I'd share the complete source code to Snippets, one of the sample extensions in the gallery. In this post, I'll be doing that along with explaining the overall extension model in a bit more detail. To begin with...
on
5 Oct 2011
Blog Post:
TextAnalysisTool.NET to Windows 8: "Y U no run me under .NET 4?" [How to avoid the "please install .NET 3.5" dialog when running older .NET applications on the Windows 8 Developer Preview]
David Anson
I wrote TextAnalysisTool.NET a number of years ago to streamline the task of analyzing large log files by creating an interactive experience that combines searching, filtering, and tagging and allow the user to quickly identify interesting portions of a large log file. Although .NET 2.0 was out at the...
on
22 Sep 2011
Blog Post:
Preprocessor? .NET don't need no stinkin' preprocessor! [DebugEx.Assert provides meaningful assertion failure messages automagically!]
David Anson
If you use .NET's Debug.Assert method, you probably write code to validate assumptions like so: Debug .Assert(args == null ); If the expression above evaluates to false at run-time, .NET immediately halts the program and informs you of the problem: The stack trace can be really helpful (and...
on
28 Jul 2011
Blog Post:
Use it or lose it, part deux [New Delay.FxCop code analysis rule helps identify uncalled public or private methods and properties in a .NET assembly]
David Anson
Previous posts introduced the Delay.FxCop custom code analysis assembly and demonstrated the benefits of automated code analysis for easily identifying problem areas in an assembly. The Delay.FxCop project included two rules, DF1000: Check spelling of all string literals and DF1001: Resources should...
on
14 Jul 2011
Blog Post:
Use it or lose it! [New Delay.FxCop code analysis rule helps identify unused resources in a .NET assembly]
David Anson
My previous post outlined the benefits of automated code analysis and introduced the Delay.FxCop custom code analysis assembly . The initial release of Delay.FxCop included only one rule, DF1000: Check spelling of all string literals , which didn't seem like enough to me, so today's update doubles the...
on
29 Jun 2011
Blog Post:
Speling misteaks make an aplikation look sily [New Delay.FxCop code analysis rule finds spelling errors in a .NET assembly's string literals]
David Anson
No matter how polished the appearance of an application, web site, or advertisement is, the presence of even a single spelling error can make it look sloppy and unprofessional. The bad news is that spelling errors are incredibly easy to make - either due to mistyping or because one forgot which of the...
on
16 Jun 2011
Blog Post:
Safe X (ml parsing with XLINQ) [XLinqExtensions helps make XML parsing with .NET's XLINQ a bit safer and easier]
David Anson
XLINQ (aka LINQ-to-XML) is a set of classes that make it simple to work with XML by exposing the element tree in a way that's easy to manipulate using standard LINQ queries. So, for example, it's trivial to write code to select specific nodes for reading, create well-formed XML fragments, or transform...
on
26 May 2011
Blog Post:
Images in a web page: meh... Images *in* a web page: cool! [Delay.Web.Helpers assembly now includes an ASP.NET web helper for data URIs (in addition to Amazon S3 blob/bucket support)]
David Anson
The topic of "data URIs" came up on a discussion list I follow last week in the context of "I'm in the process of creating a page and have the bytes of an image from my database. Can I deliver them directly or must I go through a separate URL with WebImage ?" And the response was that using a data URI...
on
6 Apr 2011
Blog Post:
What next, a DOS version?? [Free tool and source code to temporarily prevent a computer from entering sleep mode - 32-bit and 64-bit versions now support Windows XP!]
David Anson
I used .NET 3.5 to write the first version of Insomnia about a year and a half ago. Its purpose in life is to make it easy for anyone to temporarily prevent their computer from going to sleep without having to futz with system-wide power options every time. Insomnia did its job well and people used it...
on
23 Mar 2011
Blog Post:
MEF lab [How to: Keep implementation details out of a MEF contract assembly by implementing an interface-based event handler]
David Anson
In the previous post, I showed how to combine .NET 4's "type embedding" capability with the Managed Extensibility Framework (MEF) to create an application that can be upgraded without breaking existing extensions . In that post, I described the notion of a MEF "contract assembly" thusly: The contract...
on
16 Mar 2011
Blog Post:
MEF addict [Combining .NET 4's type embedding and MEF to enable a smooth upgrade story for applications and their extensions]
David Anson
One of the neat new features in version 4 of the .NET Framework is something called "type equivalence" or "type embedding". The basic idea is to embed at compile time all the type information about a particular reference assembly into a dependent assembly. Once this is done, the resulting assembly no...
on
9 Mar 2011
Blog Post:
Candy-eating lemming [Delay.Web.Helpers (and its easy-to-use Amazon S3 blob/bucket API) is now available via NuGet!]
David Anson
NuGet is all the rage right now, and it seemed like a good time to familiarize myself with it. Conveniently, it just so happened that I had something perfectly suited: my Delay.Web.Helpers assembly which offers ASP.NET web helper-style access to Amazon Simple Storage Service (S3) blobs and buckets. ...
on
24 Feb 2011
Blog Post:
sudo localize --crossplatform [Free PseudoLocalizer class makes it easy to identify localization issues in WPF, Silverlight, and Windows Phone 7 applications!]
David Anson
Two posts ago, I explained the benefits of pseudo-localization and showed an easy way to implement it for WPF - then said I'd outline how to do the same for Silverlight and Windows Phone 7. In my previous post, I went off on the seeming diversion of implementing a PNG encoder for Silverlight . With this...
on
16 Feb 2011
Blog Post:
What it lacks in efficiency, it makes up for in efficiency! [Silverlight-ready PNG encoder implementation shows one way to use .NET IEnumerables effectively]
David Anson
At the end of my previous post about easily pseudo-localizing WPF applications , I said this post would show how to apply those concepts to a Silverlight application. Unfortunately, I seem to have made an off-by-one error : while this post is related to that topic, it is not the post I advertised. But...
on
7 Feb 2011
Blog Post:
sudo localize & make me-a-sandwich [Free PseudoLocalizer class makes it easy for anyone to identify potential localization issues in .NET applications]
David Anson
I've previously written about the benefits of localization and shown how to localize Windows Phone 7 applications . The techniques I describe in that post constitute a good workflow that's just as suitable for WPF and Silverlight desktop applications! But even with good processes in place, the way localization...
on
27 Jan 2011
Blog Post:
"Might as well face it, you're addicted to blob..." [BlobStoreApi update adds container management, fragmented response handling, other improvements, and enhanced Amazon S3 support by Delay.Web.Helpers!]
David Anson
As part of my previous post announcing the Delay.Web.Helpers assembly for ASP.NET and introducing the AmazonS3Storage class to enable easy Amazon Simple Storage Service (S3) blob access from MVC/Razor/WebMatrix web pages , I made some changes to the BlobStoreApi.cs file it built on top of. BlobStoreApi...
on
20 Jan 2011
Blog Post:
There's a blob on your web page - but don't wipe it off [New Delay.Web.Helpers assembly brings easy Amazon S3 blob access to ASP.NET web sites!]
David Anson
Microsoft released a bunch of new functionality for its web platform earlier today - and all of them are free ! The goodies include new tools like WebMatrix , ASP.NET MVC3 and the Razor syntax , and IIS Express - as well updates to existing tools like the Web Platform Installer and Web Deploy . These...
on
13 Jan 2011
Blog Post:
SayIt, don't spray it! [Free program (and source code) makes it easy to use text-to-speech from your own programs and scripts]
David Anson
Over the holiday break, I was asked to create a program to "speak" (via text-to-speech ) simple sentences that were provided on the command-line. None of the available offerings were "just right" for the customer's scenario, so I was asked if I knew of any other options... Although I hadn't used it before...
on
6 Jan 2011
Blog Post:
No rest for the weary [Free tool and source code to temporarily prevent a computer from entering sleep mode - now available for .NET, 32-bit, and 64-bit!]
David Anson
It was over a year ago that I wrote and shared the first version of my Insomnia utility . A few months later, I published a new version of Insomnia to satisfy the two most popular feature requests . Here's how I explained Insomnia's motivation at the time: The default power settings for Windows...
on
14 Dec 2010
Blog Post:
Hash for the holidays [Managed implementation of CRC32 and MD5 algorithms updated; new release of ComputeFileHashes for Silverlight, WPF, and the command-line!]
David Anson
It feels like a long time since I last wrote about hash functions (though certain curmudgeonly coworkers would say not long enough!), and there were a few loose ends I've been meaning to deal with... Aside : If my hashing efforts are new to you, more information can be found in my introduction to...
on
6 Dec 2010
Blog Post:
"Silence is the virtue of fools." [Why the Windows Phone 7 Emulator can sometimes take forever to access the network - and how to fix it!]
David Anson
If you've used the Windows Phone 7 emulator to access the network, you might have noticed that in some environments it takes an absurdly long time for network activity to complete. For example, a single HTTP request with Internet Explorer or an HttpWebRequest from a custom Silverlight application can...
on
14 Oct 2010
Page 1 of 3 (71 items)
1
2
3