Fabrice's weblog

Tools and Source

News

My .NET Toolbox
An error occured. See the script errors signaled by your web browser.
No tools selected yet
.NET tools by SharpToolbox.com

Read sample chapters or buy LINQ in Action now!
Our LINQ book is also available on AMAZON

.NET jobs

Emplois .NET

transatlantys hot news

Contact

Me

Others

Selected content

Who deserves a free MSDN subscription?

I have a free one-year MSDN subscription to offer. I believe that it has to be activated before June 30, so, I don't have time to organize a contest or something...

The offer is MSDN Premium, which gives you access to a whole set of Microsoft software licensed for design, development, testing, and demonstration of your programs. This includes Visual Studio Team Suite, Windows, Office, SQL Server, etc. Given the releases expected this year, this will give you access to such things as Visual Studio 2010 and Windows 7.

If you think that you deserve to get this subscription, just contact me and let me know why I should give YOU this gift. I'll make my choice quickly and I'll reply to you.
Hint: if you can help me update the content of SharpToolbox.com, that can be a plus for you ;-)

UPDATE: We have a winner! Thanks to everyone who participated. I'll reply shortly to each one of you.

LINQ in Action XML samples now in LINQPad too

After we published the code samples for LINQ in Action's first chapters in LINQPad a few weeks ago, the samples of three more chapters have just been added. These chapters cover LINQ to XML. Thanks Jim for doing the additional conversion.

The code samples for chapters 1 to 11 are now available. Read the original announcement to learn how to download and use these samples. A new download is enough to get the update.


Cross-posted from http://linqinaction.net
LINQ in Action samples in LINQPad
LINQPad logo

Do you know LINQPad? It's a really simple but great tool for testing LINQ queries. Not only that, but it can be used to test all kinds of C# and VB code snippets.

Another great thing about LINQPad is that it comes with code samples. Until now the integrated code samples came from the C# 3.0 in a Nutshell book. Joe Albahari, author of LINQPad and C# 3.0 in a Nutshell, has opened LINQPad so that code samples from other books can be integrated into LINQPad. Thanks Joe for this opportunity!

We worked with Joe to integrate LINQ in Action's code samples into LINQPad. The result is that in addition to being available as Visual Studio solutions and projects, you can now run our code samples directly from LINQPad. This makes it very easy to explore LINQ's features with instant "code and play".

To install LINQ in Action's code samples in LINQPad, all you have to do is click on the "Download more samples..." link:

 

You'll see LINQ in Action proposed as one of the LINQPad-enabled books (the only one at the moment, in fact):

 

Once you've clicked on "Download full code listings into LINQPad", you should see the C# and VB samples grouped by chapter:


Currently, chapters 1 to 8 are available. We'll integrate the remaining code samples soon.

Have fun with LINQ!


Cross-posted from http://linqinaction.net
Modern censorship you shouldn't ignore

Should I need a reason to hate Apple, it would be censorship.

This is not the first time Apple censors an application on the iPhone, but this time it's scarier.
They censor software, and they censor books. Are users of iPhones and Apple products fully aware of such things? As consumers, you have the power to react.

This is also ridiculous. As wondered in the original blog post, how is that different from using the built-in browser of the iPhone to access the same public content?

New York Times abandons WPF and Silverlight in favor of AIR

The first version of the New York Times Reader was showcased in 2006 as one of the first and major WPF applications. Then, the Times Reader was ported to Silverlight, so it can work on non-Windows platforms such as Mac OS and Linux. The fact that WPF runs only on Windows was indeed a major concern for such a product.

The move to Silverlight was not a big success. The Silverlight version of the Times Reader suffered from technical issues and political rejection from Apple users.
There were hundreds of comments on the homepage of the Silverlight version. Roughtly half of them where related to technical problems, half to rejection. Many Apple users don't want to use Microsoft products.
Technical issues can be solved (over time), but solving rejection is another story (and I don't think it can be solved).

Version 2.0 of the Times Reader has been released recently, and what is interesting is that WPF and Silverlight have been dropped in favor of Adobe AIR.
No more political issues, a single code base, and less technical issues it seems.

This is a very interesting move. In fact, when I had to choose a technology for a new product a couple of months ago, I chose AIR too. As a .NET expert, I have of course considered WPF and Silverlight, but I had the same concerns as the New York Times.
A requirement was that the product should run on major platforms (Windows AND Mac at least), and even if Silverlight works on Macs, it was not a good choice for the same technical and political issues that the Times Reader faced. One big showstopper was the inability to create standalone desktop applications with Silverlight. It should be noted that Silverlight 3's out-of-browser mode won't be an answer to this because of its intrinsic limitations. AIR is much more powerful, with deeper desktop integration (such as file system access).

It will be interesting to follow what will happen over time, but in my book, Flash/Flex and AIR have a lot of advantages right now compared to WPF and Silverlight.
I believe also that the battle is not only on the Web and the desktop, but also on mobile devices. Something tells me that we'll see Flash on Android, iPhone and Pre before Silverlight. And that will make a big difference.

More about the new version of the Times Reader here, here and here.

Update: Here is the post that announced the original version for the Mac, based on Silverlight. I read a few months ago the comments made on this post. Have a look, it's very instructive. Oh of course, silly people posted comments there too...

ForEach debate continued

Eric Lippert, whose blog you shouldn't miss, adds his own arguments to the debate about whether using a ForEach extension method instead of foreach is a good idea or a bad one.

I don't see a definitive answer to the question. All the arguments given here and elsewhere are good, but in the end, it's up to you to decide what you prefer to do.
Read the posts and the comments to make up your own mind.


Cross-posted from http://linqinaction.net
LINQ em Ação, LINQ in Action in Portuguese

LINQ em AçãoAfter English, German and Spanish, LINQ in Action is now available em Português.

The title is LINQ em Ação. The publisher is Editora Ciência Moderna.

Cross-posted from http://linqinaction.net

Posted: May 20 2009, 04:03 PM by Fabrice Marguerie | with no comments
Filed under: ,
Localization in WPF

Several techniques exist for localizing WPF applications. I have yet to study them before making a choice.

Here are some resources I've collected:

As you can see, several custom solutions are available. Is there an ultimate one in there? I guess it depends on the features you need (on-the-fly culture change, localized resources update without recompiling, designer support, etc.).
Fix for Visual Studio 2008 crash with XAML files

Does your Visual Studio 2008 SP1 crash when you open some XAML files? It started to happen to me, for some unknown reason.

What I saw was Visual Studio completely disappearing after opening a XAML file, with the devenv.exe process being unloaded. The only traces of this kind of crash were error events in the Windows Event Viewer: ".NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A035E00) (80131506)".

Luckily, a fix for this issue has been published by Microsoft. It looks like everything is back in order now.

Finally, back to productivity thanks to this hotfix and the tip I published some time ago!

LINQ in Action in Spanish (LINQ en español)

Today I had the pleasure to receive a copy of LINQ in Action translated in Spanish. This came a bit unexpected, but it's great!

LINQ in Action already existed in German (LINQ im Einsatz), and I know that other translations should be published soon. The Chinese version is the next one expected, I believe.

The Spanish version of the book is published by Anaya Multimedia. The title of the book is simply... "LINQ"!

¡Espero que disfruten la lectura de este libro!


Cross-posted from http://linqinaction.net
More Posts Next page »