Monday, August 25, 2008

The Groupe d'usagers Visual Studio Montréal has changed name for Communauté .NET Montréal to better reflect it's activities.

What's new?  A 4th meeting each month, this time at lunch hour.  It's called @Lunch and it will be less formal and more of a discussion type of meeting inspired by Open Space and Alt.NET meetings.

Check out the new site here:
http://www.dotnetmontreal.com

 

Monday, August 25, 2008 6:00:26 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

RedGate has aquired Reflector, a must have tool for every .NET developer.  They promise that a free version will be available but didn't they made the same promise for SQL Prompt?

http://www.red-gate.com/products/reflector/

Monday, August 25, 2008 5:52:21 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Thursday, August 21, 2008

[From Richard Hundhausen]

Are you a trainer? Are you bored delivering the same content over and over?  Well, just play Trainer Bingo while you teach your classes!

Thursday, August 21, 2008 6:13:09 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Tuesday, August 19, 2008

Accueil
http://www.visualstudiotalkshow.com

Grégory Renard: Le futur du Web

Nous discutons avec Grégory Renard de l'évolution du Web à court et moyen terme. Entre autres, nous abordons en quoi les technologies comme Silverlight, le GPS et les agents conversationnels influenceront positivement le futur du Web.

Grégory Renard, mieux connu sous le pseudo de Rédo au sein des communautés .NET Francophones, est reconnu comme Microsoft Regional Director et Microsoft MVP depuis de nombreuses années. Grégory a débuté sa carrière en 96 dans le domaine recherche pédagogique appliquée aux nouvelles technologies. Créant sa première société en 1997 dans ce domaine, il est chargé en parallèle de cours en enseignement supérieur dans les domaines du .NET, de l'e-Gestion et du e-Commerce. Aujourd'hui, Grégory est CTO et responsable de la Recherche et Innovation au sein du bureau d'étude et d'expertise .NET Wygwam dont il est co-fondateur. Sa participation en qualité de speaker et/ou participants dans de nombreux évènements Microsoft ou du monde du Libre à l'échelle mondiale lui permet de garder une vision stratégique de long terme sur les technologies et leurs usages. Cette vision et expérience est ainsi mises à profit dans chacun des projets gérés par l'équipe Wygwam. Blog : http://blogs.developpeur.org/redo

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.

Tuesday, August 19, 2008 3:44:27 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Tuesday, August 19, 2008 3:39:50 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

Tim Huckaby and his team at Interknowlogy has created an amazing app for the Microsoft Surface.

The man himself:

The app that let doctors see a 3D rendering of a heart:

Check out a video here:
http://silverlight.interknowlogy.com/Videos/VitruView/default.html

 

Tuesday, August 19, 2008 2:29:45 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

Microsoft has released a WPF Datagrid.  What's interesting is that both binaries and source code are available on Codeplex.

Jaime Rodriguez has 3 blog posts on the topic:
http://blogs.gotdotnet.com/jaimer/archive/2008/08/13/dabbling-around-the-new-wpf-datagrid-part-1.aspx

Tuesday, August 19, 2008 2:18:03 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Monday, August 11, 2008
Monday, August 11, 2008 11:35:05 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

I buy my domain names at GoDaddy.com mostly because I have total control on the DNS and MX records, not for their somewhat questionable ads.  However, I had to buy my .CA domains from someone else because they didn't offered them but yesterday, I found that they are now offering .CA domains.  Nice!

Monday, August 11, 2008 5:55:51 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Friday, August 08, 2008

Here's a KB article explaining clearly the SQL 2008 won't install unless VS 2008 SP1 situation:

http://support.microsoft.com/kb/956139

Friday, August 08, 2008 6:12:59 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Thursday, August 07, 2008

If your installing SQL Server 2008 on a box that already has Visual Studio 20008 pre SP1, you need to apply VS 2008 SP1 before installing.  If not, you'll get this message:

VS 2008 SP1 should be available in a few days.

Thanks to Andrew Brust for pointing this out.

Thursday, August 07, 2008 6:14:29 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Wednesday, August 06, 2008

Microsoft has released SQL Server 2008 today!  MSDN subscribers can download it right now.

http://www.microsoft.com/presspass/press/2008/aug08/08-06SQLServer2008PR.mspx

I wonder if the .NET Framework 3.5 SP1 is included  ;-)

 

 

Wednesday, August 06, 2008 2:42:53 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Monday, August 04, 2008

Here's a nice Office 2007 add-in that let you insert in your Word, Excel and PowerPoint document a Creative Commons license like the ones found here: http://creativecommons.org/about/license/

While not a DRM, it simply states how you'd like other people use your work like slides from a presentation you made at a user group meeting.

The add-in creates a new tab where you can create a set of licenses and add them easily to your documents.

 

Download the add-in here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=D1DDBDC8-627F-415A-9B0A-97362BC9B480&displaylang=en

 

Monday, August 04, 2008 8:00:42 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

Rob Boucher just informed me that the Patterns & Practices group has just released "Improving Web Services Security: Scenarios and Implementation Guidance for WCF", a free eBook available here:
http://www.codeplex.com/WCFSecurityGuide

WCFSecurityGuideReleased.jpg

If you read it, make sure to send some comments to the team.  Here's how:
http://www.codeplex.com/WCFSecurityGuide/Wiki/View.aspx?title=WCFSecurityCustomerQuestionaire&referringTitle=Home

 

Monday, August 04, 2008 7:45:15 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

I use offline folders in Vista to sync a set of folders located on my server so I can use the files when I'm not connected to my network.  What's great is that these folders are part of a nightly backup plan so I don't have to worry about backing them from my laptop.

However, if the computer you sync with is no longer available, you can't delete or change the sync partnership because Vista requires that both sides are up and running.  Dead end?  No, because you can delete ALL sync partnerships using a registry change.

WARNING: This will delete ALL sync partnerships so be careful because you may delete files forever, bring deadly plagues to the earth, render your dog blind, get your hair on fire, etc.  Don't do this unless you backup your sync folders, send flowers to your mother, give to United Way and learn to dance the salsa.  You've been warned!

From KB article 934160

quote.png
To work around this issue, add the FormatDatabase registry entry to the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc\Parameters

Then, set the FormatDatabase registry entry to 1.

To do this, follow these steps:

1. Click StartStart button, type regedit in the Start Search box, and then click regedit in the Programs list.

 User Account Control permission
				If you are prompted for an administrator password or confirmation, type your password or click Continue.
2. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc\Parameters
Note If the Parameters subkey does not exist, create it. To do this, follow these steps:
a. Click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc
b. On the Edit menu, point to New, and then click Key.
c. Type Parameters, and then press ENTER.
3. On the Edit menu, point to New, and then click DWORD Value.
4. Type FormatDatabase, and then press ENTER.
5. On the Edit menu, click Modify.
6. Type 1 in the Value data box, and then click OK.
7. Exit Registry Editor, and then restart the computer.

unquote.png

Credit: for the answer here

After doing this I found another way to delete or rename cached folders while working offline via a Windows hotfix.

Monday, August 04, 2008 6:16:48 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Friday, August 01, 2008

Are you traveling to (or back) the US with laptops, hard drives, flash drives, cellphones, iPods?  Well, read this:

http://www.washingtonpost.com/wp-dyn/content/article/2008/08/01/AR2008080103030.html

Friday, August 01, 2008 11:41:01 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Thursday, July 31, 2008

I recently wanted to upgrade the BIOS on one of my PCs and I used the ASUS BIOS update Windows utility. 

I downloaded the latest BIOS and update tool from the ASUS Website then launched the update process.  After a few seconds, the tool reported an error so I tried to flash the previous BIOS version (that I saved earlier) but with the same result.  I ended up bricking the motherboard.  I then went to my local MicroBytes store and the first question the technician asked me was if I did the update from Windows.  Looks like it's very common problem using the ASUS Windows tool.  Yeah, great!

ASUS_BIOS_Bart.jpg

 

Thursday, July 31, 2008 11:25:44 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

If you were thinking about sending sessions abstracts fro DevTeach 2008 Montreal, hurry!  The cut off is today!

More info here:
http://www.devteach.com/TechChair.aspx

Thursday, July 31, 2008 5:59:31 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Tuesday, July 29, 2008

I just upgraded from dasBlog 1.9.7 to the latest version (2.1) and everything seams to work fine.  Here's how I did it:

  1. Downloaded the latest version from www.codeplex.com/dasblog
  2. Extracted the Zip file to a temp directory
  3. Copied everything over the existing folder except these sub folders: Content, SiteConfig, Logs & Themes

That's it!

 

Tuesday, July 29, 2008 6:08:51 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Wednesday, July 23, 2008

The problem
You have SQL Servers for each of your environments (development, test, pre-prod, production) and in each one, the table names are different.  In fact, it’s not the table names that are different but the schema names but since the schema name is part of the table name, it must be specified.
Ex : dev.ZeTable et prod.ZeTable

Easy to solve, right?  Just put the schema value in the config file and do a simple concatenation at runtime.  Well, it’s not as easy as it seams because the table name is stored in an attribute of the partial class generated by the LINQ to SQL designer and Microsoft didn’t provide a way or method to change it at runtime.

[Table(Name="dev.ZeTable")]
public partial class TheTable

Solution
The solution is to dynamically load at runtime a mapping specific for each environment.  Here’s how to do it:

Initial Mapping
Use the LINQ to SQL designer to create the initial mapping.  The .dbml file will act as the starting point for our specialized mappings.

SqlMetal
Next, use the SqlMetal.exe tool to generate a mapping file but instead of pointing the tool to the database and redo all our customization in XML, the trick is to point it to the .dbml file we created earlier using the LINQ to SQL designer.  This way, all our initial customizations are preserved.  Nice!

From the Visual Studio 2008 Command Prompt, invoque SqlMetal like this :
C:\>SqlMetal /map:"MyApp.PROD.map" "C:\Visual Studio 2008\Projects\MyDataClasses.dbml" /code:"test.cs"
Microsoft (R) Database Mapping Generator 2008 version 1.00.21022
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.

SqlMetal.exe will generate a C# or VB class.  We won’t use it so you can delete it. 

Next, open the mapping file and change the name of the tables to reflect the right schema:
<Table Name="prod.ZeTable" Member="TheTables">

A good practice might be to include the schema name in the mapping file name:
Ex : MyApp.PROD.map

DataContext
Next, we need to dynamically load the mappings at runtime by specifying a connection string and the mapping info in the DataContext constructor.  The Microsoft’s documentation is located here :
http://msdn.microsoft.com/en-us/library/bb534562.aspx

You can store that info in the config file and load it dynamically:
  <appSettings>
    <add key="MyAppConnectionString" value=" MyAppDev" />
    <add key="MyAppLinqMappings" value="c:\MyApp.DEV.map" />
  </appSettings>
  <connectionStrings>
    <add name="MyAppDev"
      connectionString="Data Source=MyDevServer;Initial Catalog=MyDatabase;Integrated Security=True" providerName="System.Data.SqlClient" />
  </connectionStrings>

//Read the ConnectionStrings from the config file
TheConnectionString = ConfigurationManager.ConnectionStrings[ConfigurationManager.AppSettings.Get("MyAppConnectionString")].ConnectionString;

//Read the LINQ mapping and store it in memory
System.Data.Linq.Mapping.XmlMappingSource TheLinqMappings = System.Data.Linq.Mapping.XmlMappingSource.FromReader(XmlReader.Create(ConfigurationManager.AppSettings.Get("MyAppnLinqMappings")));

Next, feed the DataContext’s constructor :

TheDataClassesDataContext ctx = new TheDataClassesDataContext(TheConnectionString, TheLinqMappings)
That's it!

Wednesday, July 23, 2008 3:04:03 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

Theme design by Jelle Druyts