Guy Barrette, Microsoft, Regional Director, Montreal, Canada, Visual Studio, .NET Expertise November 2008 - Posts - Guy Barrette

Guy Barrette

Microsoft Regional Director, Montreal, Canada

November 2008 - Posts

Visual Studio Talk Show #87 is now online (French)
Accueil

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.

Matthieu MEZIL est consultant formateur à Winwise. Passionné par .Net, il est MVP C#. Il s'intéresse tout particulièrement aux développements d'application WinForms, BCL, ADO .Net et aux questions d'architecture. Il a animé des sessions lors des TechDays 2008 sur LINQ et l’Entity Framework. Il publie des articles dans la revue Programmez, sur le portail Developpez et plus récemment sur Tech Head Brothers et DataDeveloper.Net. Il blogue sur http://blogs.codes-sources.com/matthieu et « tente » depuis peu de bloguer en anglais sur http://msmvps.com/blogs/matthieu. Dans un domaine plus personnel, Matthieu est marié et a deux enfants.

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.

Posted: Nov 30 2008, 05:46 PM by guybarrette | with no comments
Filed under:
Free WCF Training

Someone emailed me looking for some free WCF training.  There are numerous free resources available.  Here are a few:

WCF Portal:
http://msdn.microsoft.com/en-us/netframework/aa663324.aspx

Free clinic:
Clinic 6264: Introducing Windows Communication Foundation using .Net Framework 3.5 & Visual Studio 2008
https://www.microsoftelearning.com/eLearning/courseDetail.aspx?courseId=89499

Michelle Leroux Bustamente's Webcats:
http://www.dasblonde.net/2007/06/24/WCFWebcastSeries.aspx

Mike Taulty's Videos:
http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2006/09/13/8875.aspx

Forums:
http://social.msdn.microsoft.com/forums/en-US/wcf/threads/

Posted: Nov 30 2008, 11:40 AM by guybarrette | with no comments
Filed under:
Audacity Crash Recovery

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.

Posted: Nov 30 2008, 08:57 AM by guybarrette | with no comments
Filed under:
The best and the brightest

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
Barry Gervin

Bill Vaughn
Bill Vaughn

Joel Semeniuk
Joel Semeniuk

Julia Lerman
Julie Lerman

Mario Cardinal
Mario Cardinal

Me
Carl Franklin

Richard Campbell
Richard Campbell

Stephen Forte
Stephen Forte

Ted Neward
Ted Neward

Tim Huckaby
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

Posted: Nov 26 2008, 04:20 PM by guybarrette | with no comments
Filed under:
Communauté .NET Montréal - @Lunch Meeting - Nov 26th 2008

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).

Posted: Nov 25 2008, 06:50 AM by guybarrette | with no comments
Filed under:
TechDays Montreal Pictures

Some TechDays Montreal pictures by Barnaby Jeans:

http://www.flickr.com/photos/barnaby_jeans/sets/72157608707541637/detail/

 

Posted: Nov 23 2008, 07:20 PM by guybarrette | with no comments
Filed under:
Montreal MVPs vs Apple store

Here are a few Montreal MVPs showcasing the latest fashion trend in front of the Apple store.

Éric, Daniel, ?, JR, E.T. and Lolo

Posted: Nov 23 2008, 04:51 PM by guybarrette | with 2 comment(s)
Filed under:
Mix09 Contest: Inspire the world with just 10K!

MS has launched a new contest for Mix09.

quote.png
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.
unquote.png

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

Posted: Nov 23 2008, 04:10 PM by guybarrette | with 1 comment(s)
Filed under:
Infragistics WinGrid Sort

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.

Posted: Nov 21 2008, 09:44 AM by guybarrette | with 2 comment(s)
Filed under:
WCF: The maximum nametable character count quota (16384) has been exceeded

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.

Posted: Nov 20 2008, 04:37 PM by guybarrette | with no comments
Filed under:
More Posts Next page »