Archive for 08:57 AM

About political correctness …

08:57 AM

Martin Krafft reports in his blog posting about “Linux for visually-impaired (developers)”, a presentation made by a blind Debian Developer at the LCA:

So when I write about Jason’s presentation and how great it was, I want to highlight how it’s a greater achievement for him than it would be for me, because he is blind and I am not. I don’t mean to single him out or put him on the spot. I am simply impressed, very impressed. And being who I am, I’d like to say so.

Thanks, Jason.

(more…)

HTTP could not register URL http://+:666/ – Yeah!

07:16 PM

If you want to run a WCF Server with HTTP Bindings, you’ll have to register it at your OS first. Here is how:

http://blogs.msdn.com/amitlale/archive/2007/01/29/addressaccessdeniedexception-cause-and-solution.aspx

netsh http add urlacl url=http://+:666/ user=DOMAIN\UserName

Focus Follow Mouse … or not

02:59 PM

Coming from a very comfortable and powerful Linux desktop, I despise the lowest common Win3.1-denominator, single-workspace, cluttered-and-stacked-windows user experience of the Windows Desktop. Today I had a little look around what can be done for this, but no luck. The best what windows offers is calling out to SystemParametersInfo, where I could set “Focus Follows Mouse” and “Do not Raise On Focus”. I wrote a minimal app to set these two parameters (see attachement).

Of course that was too good to be true … (more…)

Windows Crashes?

03:22 PM

If Windows is crashing – do not always blame MS. It could be a Hardware problem (RAM) or a crappy Driver (for a WebCam e.g.)

This german link brings you to a good guidance how to find the Problem.

http://blog.this.at/Lists/Beitraege/Post.aspx?List=bc7c7053%2Dcd8c%2D452c%2Dbb9f%2Ddcc46831bb86&ID=31

P.S.: Personally I had both a bad RAM Chip and a WebCam :-(

WPF: Embedding Images in the Assembly

09:43 AM

Yesterday, I searched for a possiblity to include PNGs into my assemblies and access tem from WPF/XAML. The only stuff I found was Chad Campbell’s “Point an Image to an Embedded Resource“. Chad recommends using embedded resources and manually extracting them with Assembly.GetManifestResourceStream and PngBitmapDecoder in the code-behind. Yuck! That would mean giving every Image a Name and jump through hoops to share memory and what not.

Today I looked at it again and… (more…)

Very interesting

09:25 AM

Very interesting:

C# Express Outlook Addin
WPF for WinForms Developer

Multilanguage Search

10:47 PM

This website uses Content-Negotiation to present the articles in english or german, depending on the users preferences in her browser. Sadly, search engines like Google only index the english content and thereby reduce the quality of the search results, since searching for german words do not result in hits here.

Here a comparison of a search for the beginning of Arthur’s last article in german and english.

Exceedingly cynical is the “Translate this page [into german]” link on the german version of the (still english) search results.

Others have already found this problem. Charl van Niekerk describes it in September 2005(!) in this article. Apparently nothing has changed since then. I will have to include the langage in the URL, so Google understands the difference too. Very annoying.

Yahoo has the same troubles.

Update (2008-01-30): Meanwhile the german searches do not find anything anymore…
Update (2010-01-25): I’ve upgraded the wordpress to 2.9.1 and installed the qTranslate plugin, which provides the translated articles also via links. Google should now start picking up the german versions again.

Compiling C# 3.0 Code with a CodeProvider

11:10 AM

Having troubles compiling C# 3.0 Code with a CodeProvider? I found found this:

http://blogs.msdn.com/lukeh/archive/2007/07/11/c-3-0-and-codedom.aspx 

Here is the magic line:


Microsoft.CSharp.CSharpCodeProvider p =
  new Microsoft.CSharp.CSharpCodeProvider(
    new Dictionary<string, string>() {
      { "CompilerVersion", "v3.5" } });

WPF Trace Client & TCP Trace Listener

06:27 PM

On http://www.codeproject.com I’ve posted an Article about a WPF Trace Client and a TCP Trace Listener. This is a first Release so stay tuned for updates.

http://www.codeproject.com/KB/dotnet/WPF_TraceClient.aspx

Easy Data Validation in WPF

01:56 PM

The Windows Presentation Foundation SDK Team describes the new possibilities of data validation in 3.5. To flag most of the entry error, just set ValidatesOnExceptions on the Binding:

{Binding Path=..., ValidatesOnExceptions=true}