StackOverflow in French

More than a year ago, I proposed, on the newly created Stack Exchange Area 51, to have a version of Stack Overflow for French-speaking developers. To my great surprise, French-speaking developers followed this proposal and it is now in the “Commitment” phase, or engagement, without even having advertised it!

Do you want to commit as well? Click on the image below to support this proposal!

Stack Exchange Q&A site proposal: Stack Overflow (in French)

[Read More]

SharePoint 2010 and VS2010: Post-Deployment Scripts

Context

You are developing a SharePoint 2010 application using Visual Studio 2010 on a Windows 2008 64-bit server. You want to run a post-deployment script (PowerShell for example) for debugging:

image

The Problem

When you add a script, for example: powershell $(ProjectDir)\PowerShellScript\MySuperPowerShellScript.ps1

You always get an error when running the script:

Error occurred in deployment step ‘Run Post-Deployment Command’: The command "powershell $(ProjectDir)\PowerShellScript\MySuperPowerShellScript.ps1" exited with error code: 1.

This error is due to the fact that VS2010 runs in 32-bit mode, as well as its post-deployment scripts, and the SharePoint 2010 APIs run in 64-bit mode. This creates errors when executing the script.

[Read More]

Multimedia File Metadata

While retrieving a list of multimedia files, I ended up with a list of files with 4-character names that meant nothing. Grrr…. So I decided to create a small utility to rename the files according to a pattern I already had on my machine based on the artist, album, and song title.

But a problem quickly arose: How to retrieve this metadata (mainly from MP3 files)?

So I did what I often do when I have a question, I did a little search. And I found on this StackOverflow result a link to TagLib# (also working on Mono)! This library from Novell does all the work for me! It allows me to access metadata for many different types of files. Here is the basic example among several provided on their site:

[Read More]

Observable Collection Monitoring Item Changes

I encountered a situation while developing a WPF application that used the ObservableCollection class. Here is the description:

Problem:

A collection of items that contains several items (which themselves implement the INotifyPropertyChanged interface). I need to perform certain calculations: total items to be completed, total completed items, remaining items, etc. But when one of these items changed status and became completed, it was impossible to push the information (push) to a higher level.

[Read More]