November 2008 - Posts
http://www.visualstudiotalkshow.com
Matthieu Mezil: Entity Framework
Nous discutons avec Matthieu Mezil de Entity Framework. Entre autres, nous discutons des capacités ORM (Object Relational Mapper) de Entity Framework.
Télécharger l'émission
Si vous désirez un accès direct au fichier audio en format MP3 ou Windows Media (WMA), nous vous invitons à télécharger le fichier en utilisant un des boutons ci-dessous.
Si vous désirez utiliser le feed RSS pour télécharger l'émission, nous vous invitons à vous abonnez en utilisant le bouton ci-dessous.
Si vous désirez utiliser le répertoire iTunes Podcast pour télécharger l'émission, nous vous encourageons à vous abonnez en utilisant le bouton ci-dessous.
I'm using Audacity has my audio recording tool when I'm recording podcasts. Recently, Audacity crashed on me while saving at the end of the recording session, failing to save the .aup file, however all the raw data was still intact. I first tried to edit the .aup file (it's XML) but that didn't worked. I then tried to copy an existing .aup file and change a few values to no good. A quick search lead me to this page:
http://www.audacityteam.org/wiki/index.php?title=CrashRecovery
Looks like this is a common problem because someone has created a recovery tool. Basically, the tool reads all the 1MB .au files and merge them into a big .wav file.
I can’t believe that DevTeach Montreal is almost upon us. What I like about this event is the fact that I’ll meet old friends that are amongst the best and the brightest minds in the .NET world. People like...

Barry Gervin

Bill Vaughn

Joel Semeniuk

Julie Lerman

Mario Cardinal

Carl Franklin

Richard Campbell

Stephen Forte

Ted Neward

Tim Huckaby
Can't wait to learn from these experts!
Pictures (C) (R) (!) from Carl Franklin's blog:
http://www.intellectualhedonism.com/2006/06/26/DearMom.aspx

http://www.dotnetmontreal.com
Prochain @Lunch
Principes de LINQ
Date: Mercredi le 26 novembre 2008
Heure: 12h00-13h00
Endroit: Pavillon UQAM SH-3760 200, rue Sherbrooke Ouest, Montréal, QC, H2X 3P2
Conférencier: Eric De Carufel
LINQ : la base du concept
Je vous propose une discussion ouverte sur les fondements à la base de LINQ dont les origines proviennent des concepts de la programmation fonctionnelle. Nous explorerons les avancées technologiques qui ont été ajouté à .NET pour supporter ce nouveau style de programmation et les nouvelles possibilities quelle nous apportent.
Eric De Carufel est Architecte de Solution .NET chez Orckestra à Montreal. Il se spécialise dans le développement d'applications à l'aide de la plate-forme Microsoft .NET. Il possède plus quinze années d'expérience en conception d'application d'entreprise dans les domaines du transport, de l'alimentation, de l'assurance et de l'ingénierie. Eric est membre de la Communauté .NET Montréal et il est un collaborateur de Universal Thread Magazine. Eric est certifié développeur d'applications Microsoft (Microsoft Certified Application Developper – MCAD).
Here are a few Montreal MVPs showcasing the latest fashion trend in front of the Apple store.

Éric, Daniel, ?, JR, E.T. and Lolo
MS has launched a new contest for Mix09.

What could you create for the Web if you only had 10 kilobytes of code? It's time to exercise your minimalist creativity and get back to basics - back to optimizing every little byte like your life depended on it.
The grand prize winner will live large at MIX09 - they'll receive a pass to the MIX09 event, 3 nights at The Venetian Hotel and a $1500 Visa gift card. The community choice winner will receive a $1500 visa gift card. And, three runners-up will each receive a $500 Visa gift card. Winners will be notified after the close of community rating on February 13, 2009.

http://2009.visitmix.com/MIXtify/TenKGallery.aspx

I was trying to sort an Infragistics WinGrid automatically after each row insert or update by the user so in the AfterRowUpdate event, I added the following code:
grd.DisplayLayout.Bands[0].Columns["MyColumn"].SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Ascending;
grd.DisplayLayout.Bands[0].Columns["MyColumn"].Band.SortedColumns.RefreshSort(true);
grd.Refresh();
This works fine except that the grid does an alphabetical sort even thought the column type is numeric. Ex:
1
10
2
22
3
A quick search lead me to this Infragistics knowledge base article:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7695
Although not exactly what I wanted, I slightly changed to code to sort my numeric column.
public class srtComparer : IComparer
{
public srtComparer()
{}
public int Compare(object x, object y)
{
UltraGridCell xCell = (UltraGridCell)x;
UltraGridCell yCell = (UltraGridCell)y;
return Decimal.Compare((Decimal)xCell.Row.Cells["MyColumn"].Value, (Decimal)yCell.Row.Cells["MyColumn"].Value);
}
}
grd.DisplayLayout.Bands[0].Columns["MyColumn"].SortComparer = new srtComparer();
grd.DisplayLayout.Bands[0].Columns["MyColumn"].SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Ascending;
grd.DisplayLayout.Bands[0].Columns["MyColumn"].Band.SortedColumns.RefreshSort(true);
grd.Refresh();
Of course, the above class could be made more generic by having a column name or number as an argument.
I would have expected that the grid would sort correctly depending on the column type but I guess this behaviour gives more flexibility.
Today I came across and interesting WCF problem. A dev in our team added a new method to a WCF service and tried to update the service reference from the client app but got this error:

The error message is very helpful because you can figure out from it that something is now larger then a default value, that something being the SOAP message sent by the metadata exchange binding. Oh that’s easy to fix, just put bigger values in the config file right? Wrong because the mexBinding doesn’t provide any properties to change these values.
A quick search lead me to this great post :
http://geekswithblogs.net/claraoscura/archive/2007/08/20/114806.aspx
Since you can’t change the default values, you need to use a different binding type and you also need to up these values in the Svcutil config file that Visual Studio uses to generate/update the service reference.
Why is the max value so low (16384)? No idea.
More Posts
Next page »