17
Jul

Today’s Sites/Blogs

17
Jul

How to find whether a GUI application is not responding?

How to find whether a GUI application is freezed or is not responding? - does exactly that… Everything is around the SendMessageTimeout function and SMTO_ABORTIFHUNG flag.

15
Jul

Debuggers and Disassemblers

SmidgeonSoft provides free Windows programming utilities, e.g. PEBrowse Professional Interactive (native and managed code debugger), PEBrowse Professional (PE file viewer/disassembler), PEBrowse Crash-Dump Analyzer, TopToBottomNT (component manager/system explorer), NTDevices (driver/device object explorer), NTObjects (kernel/executive object explorer).

OllyDbg - free (shareware, but can be used for free) 32-bit assembler level analysing debugger for Windows. List of features is really impressive.

12
Jul

Today’s Sites/Blogs

  • The Wayward WebLog - a lot of LINQ info (e.g. “LINQ: Building an IQueryable Provider” series)
  • …Removing All Doubt by Chuck Jazdzewski (already had it in my blog) - advanced C# topics, functional programming, generics, etc.
11
Jul

Today’s Sites/Blogs

10
Jul

Today’s Sites/Blogs

10
Jul

WPF Blogs

WPF blogs from Microsoft and ex-Microsoft guys/gals primarily (as well as guys that know their way around the Microsoft):

And here are blogs by ex-Microsoft people (sad, that they are not at MS anymore):

  • notstatic.com by Robby Ingebretsen - nice things. Has not been updated recently, but now it is picking up again. Check his Kaxaml replacement of XamlPad.
  • fortes.com by Filipe Fortes - few demos and screencasts, mostly mix06-related
  • jfo’s coding by Jessica Fosler - many samples, snippets, tips, etc.

Channel 9

Other blogs:

  • 2008.07.10 WPFopoly by Matt Duffin: guy is creating a game similar but unrelated to Monopoly - from scratch. A lot of panels-related things.
  • 2008.07.10 Pixel in Gene by Pavan Podila (?) - mostly related to 3D
  • 2008.07.10 sachabarber.net by Sacha Barber - I guess no need to introduce this guy :)
  • 2008.07.10 Andrew Smith
  • 2008.07.10 Alan Le’s Vertigo Blog - a lot of info about resources and WPF/Silverlight
  • 2008.07.10 Karl on WPF by Karl Shifflett
  • 2007.08.26 Nick Thuesen has few interesting articles about panels and other WPF and non-WPF things
  • 2007.08.26 the WPF way… - Pavan Podila’s blog has interesting stuff, but very little code (its title says “‘the Approach, rather than the Solution”)
  • Josh Smith on WPF (and the old blog) - great blog about all kinds of things like “smart” ResourceDictionaries, controls’ customization, etc.
  • theWPFblog by Lee Brimelow - a lot of samples and nice ideas
  • Sheva’s TechSpace’s Blog by Yong Zhou (aka Sheva, footballism on MSDN forums). His blog is great and guy knows a lot.
  • On .Net Client Stuff by [?] - not a bad blog with lots of goodies about Vista gandets, WPF/ActiveX interoperability, tips, etc.
  • Jan-Cornelius Molnar - quite cool blog with some nice tips about Dispatcher.Invoke (obvious, but still), customizing WPF window border (like in Max), etc.
  • dotnet mania by Eric Burke - PanelLayoutAnimator, some XAML snippets
  • Chaz by [?] - a bit outdated, but a lot of nice ideas and samples (skinning, SkewTransform, Elliptic Control, etc.)
  • Ruurd Boeke: Enterprise development and techno babble by Ruurd Boeke - some interesting posts about databinding
  • XamlXaml.com by Michael Emmons - nice snippets and bits…
  • Douglas Stockwell’s WebLog - interesting things about WPF, generics, DWM Thumbnails in WPF, dynamic method generation, Impossible WPF, …
  • DeveloperZen.com by Eran Kampf - tons of interesting resources about WPF and not only
  • Laurent Bugnion (GalaSoft) - nice blog about WPF, .NET, Web Services, etc.
10
Jul

Dime Casts .NET

Dime Casts .NET video podcast helps .NET developers learn about various aspects of .NET development in short, focused segments - no longer than 10 minutes each.

08
Jul

Beginners Guide To Threading In .NET

CodeProject features Sacha Barber’s multipart article Beginners Guide To Threading In .NET (links to other parts are inside) - it has to be good :)

05
Jul

Disk Defragmenting Tool with DLL

JkDefrag is a disk defragmenter and optimizer for Windows released under GPL/LGPL. Has both UI, command line, and DLL, so that it can be integrated in own software.

05
Jul

Composite Application Guidance for WPF

Recently Microsoft released Composite Application Guidance for WPF (for VS2008 and .NET 3.5).

Quote: “The Composite Application Guidance for WPF is designed to help you more easily build enterprise-level Windows Presentation Foundation (WPF) client applications. This guidance will help you design and build flexible composite WPF client applications—composite applications use loosely coupled, independently evolvable pieces that work together in the overall application.

The Composite Application Guidance for WPF can help you split the development of your WPF client application across multiple development teams. In this type of application, each team is responsible for the development of different pieces of the application, which are seamlessly composed together. The guidance includes a reference implementation, reusable library code (named the Composite Application Library), documentation, QuickStart tutorials, and hands-on labs.”

19
Jun

Arrays in C++/CLI

Nishant Sivakumar has pretty deep introduction of C++/CLI arrays (see also his blog for more interesting stuff about mainly C++/CLI).

17
May

.NET 3.5 SP1 Beta and Real Life

While there are many nice improvements in the .NET 3.5 SP1 Beta (see here, here or here), there are problems too, unfortunately… Yesterday we spent half a day trying to understand why absolutely simple and legitimate piece of XAML is not opening in Blend 2. The code looks like this (relevant part of it):

<Window.Resources>
  <Style TargetType=”{x:Type ListBoxItem}” x:Key=”LBIS”>
    <Setter Property=”FocusVisualStyle” Value=”{x:Null}”/>
  </Style>
  <ControlTemplate TargetType=”{x:Type ContentControl}”
    x:Key=”CT”>
    <ListBox ItemContainerStyle=”{StaticResource LBIS}”/>
  </ControlTemplate>
</Window.Resources>
<ContentControl Template=”{StaticResource CT}”/>

Simple, isn’t it? Well, it is not! Blend is choking on the Setter of FocusedVisualStyle in the ListBoxItem’s LBIS style with ” XML namespace prefix does not map to a namespace URI, so cannot resolve property ‘FocusedVisualStyle’. FocusedVisualStyle can be substituted by almost any other property of the ListBoxItem, although some of them, e.g. Width or Opacity will work.

On the other hand, following XAML will open nicely (ListBox is not inside of the template anymore):

<Window.Resources>
  <Style TargetType=”{x:Type ListBoxItem}” x:Key=”LBIS”>
    <Setter Property=”FocusVisualStyle” Value=”{x:Null}”/>
  </Style>
</Window.Resources>
<ListBox ItemContainerStyle=”{StaticResource LBIS}”/>

Both snippets open nicely in Blend 2 on a machine without the SP1 beta. As we need Blend 2 and do not rely on anything SP1-specific, I decided to uninstall SP1 beta. And here comes the problem - it is “mission impossible”. I have spent half of the last night trying to get rid of it, all in vain. I have tried everything, including Automated cleanup tool to remove the .NET Framework by Aaron Stebner (which by the way managed to completely remove .NET 3.5 - nice job, Aaron!!!). But the result is the same - Blend 2 is irreparably broken. I cannot even reinstall it as installer complains about “Unknown product…” and I cannot do anything about that - cleaning registry, monitoring installer’s activities, etc. did not help. Visual Studio 2008 is broken too now, but that is another story.

Microsoft guys know that Blend 2 is not really compatible with SP1 Beta of .NET 3.5, and recommend waiting for the release version of SP1. On the other hand, Blend 2.5 March CTP Refresh seems to work fine in this scenario.

I have to reinstall Windows now, which is not a problem per se, as I was planning it for some time now anyway, but one would expect that this kind of basic/primitive errors would not exist in beta product - we are not talking about an “advanced” scenario in this case.

13
May

.NET 3.5 and VS2008 SP1 Betas

Microsoft released SP1 Betas of .NET 3.5 and VS2008. More info is available from Tim Sneath, Scott Guthrie, and, related info about shaders from Greg Schechter.

12
May

PostSharp

PostSharp is a free and open source aspect-oriented programming (AOP)/policy injection framework that can reduce the number of lines of code and improve its logical decoupling by allowing encapsulation of e.g. transaction management, logging, caching, or security aspects as custom attributes. Own custom attributes can be developed that will add new behaviors to code.

11
May

Today’s Sites/Blogs

11
May

WPF: A Beginner’s Guide

Sacha Barber (see his blog) wrote (will continue to write?) excellent “WPF: A Beginner’s Guide” series on CodeProject:

11
May

Today’s CodeProject Articles

11
May

Algorithms for the Masses

By accident found Algorithms for the Masses web-site and blog by Julian M. Bucknall (who is CTO at DevExpress). Plenty of interesting articles and posts, especially on algorithms and data structures (including their lock-free implementations).

11
May

Measure Early and Often for Performance

The CLR Inside Out column of the MSDN Magazine has absolutely great article about .NET performance - “Measure Early and Often for Performance” (Part I, and Part II).

11
May

JIT Optimizations

Sasha Goldshtein’s JIT Optimizations article on the CodeProject shows some of the optimizations the JIT compiler is able to do and explains what is affecting them. Interesting.

11
May

Using MVC to Unit Test WPF Applications

11
May

Memory Leaks in WPF

19
Apr

"The Whole Sort of General Mish-Mash"

Here I am putting together all kinds of things that do not fit anywhere else…

Software development:

Conceptual:

Tricks:

Business:

09
Apr

Blogs

  • B# .NET Blog (by Bart De Smet) - really nice blog about all kinds of things, including topics on functionall programming (and how to do it in C#!), PowerShell, and other cool stuff.