Friday, September 05, 2008

I was recently confronted with this problem:

  • Read and parse a file with numbers having a dot as a decimal separator.
  • Parse the info no matter what culture the user is.
  • Don’t affect the current culture.

So here in Quebec, many users are using the "fr-CA" culture that has a comma as the decimal separator.  What I would usually do is to change the current culture like this:

Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");

The downside is that it affects the strings stored in resources files that are displayed to the users.  I don’t want to display "en-US" strings to every users. The ideal way would be to specify that a dot is the decimal separator only for specific lines of code.  Here’s how to do it with NumberFormatInfo object:

You new a NumberFormatInfo object with the current culture number formatting information and you change the NumberDecimalSeparator to a dot.  You then use the object as a parameter for parsing methods.

NumberFormatInfo nfi = new CultureInfo(Thread.CurrentThread.CurrentCulture.LCID, false).NumberFormat;
nfi.NumberDecimalSeparator = ".";
decimal zeeNomebeurre;
string zeeStringue = "2.01";
zeeNomebeurre = decimal.Parse(zeeStringue, nfi);

That's one way to do it but one way I never used before.

Friday, September 05, 2008 11:01:52 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

Is this the first video of the new Microsoft campaign with Jerry Seinfeld?

Friday, September 05, 2008 6:03:24 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Wednesday, September 03, 2008
Wednesday, September 03, 2008 5:53:38 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

More random thoughts...

Fellow RDs Scott Howlett and Derek Hatchard pointed out this in the page where Google explains why they built a browser:

quote.png
We realized that the web had evolved from mainly simple text pages to rich, interactive applications and that we needed to completely rethink the browser. What we really needed was not just a browser, but also a modern platform for web pages and applications, and that's what we set out to build.
unquote.png

Can't be clearer then that!

Also, being open source, this means that at some point, all the browsers based on WebKit/Mozilla will also incorporate the V8 engine.

Wednesday, September 03, 2008 11:34:59 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

Thinking about it, it makes no sense for Google to release a Web browser just for the sake of releasing one.  Why hurt FireFox?  Why risking releasing a product that will be scrutinized for security flaws?  It just doesn't make any sense.

So why do it?  The only sensible reason I came with is this one:  they want a better "runtime" for their Gmail, Documents and other Web apps.  Why?  Creating complex Ajax apps cost too much right now and on top of that, the browser was not meant to host such complex apps.  Google surely wants to reduce their development cost and they surely want to offer more functionality but they are limited right now by the platform itself, the Web browser.  By releasing their own browser, they will control the platform.

So there it is, Google Chrome is not a browser, it's Google's application runtime.  They are not going after IE or FireFox, they are going after Silverlight and Flash as an application runtime.

At some point, you'll see advanced capabilities with Gmail or Documents if you run them from Chrome and people won't complain because it's Google.  Simply.

What do you think?  Any other crazy thoughts?

Wednesday, September 03, 2008 6:19:17 AM (Eastern Standard Time, UTC-05:00)  #    Comments [1]  | 
Tuesday, September 02, 2008

A new browser war has started with the announcement of Google Chrome.  Not sure how it will hurt FireFox.

Want more info?  Check this comic (yes comic!)

Tuesday, September 02, 2008 6:00:32 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Monday, September 01, 2008

Accueil
http://www.visualstudiotalkshow.com

Marc Taillefer: Infrastructures et environnements de production

Nous discutons avec Marc Taillefer des services TI et des gens en production. Quel est la réalité des individus responsables des infrastructures et des environnements de production?

Marc Taillefer est Certified Quality Manager (CQM), détient différentes reconnaissances de compétences telles celle du Carnegie Mellon University pour le CMMI, Auditeur-chef, systèmes de gestion qualité (NQI), TL 9000, ITIL et Training Generalist Certification (Langevin). Au fil des années Marc a travaillé comme cadre intermédiaire, consultant senior, formateur et coach en petites et grandes entreprises ainsi qu’au secteur public et parapublic, ce, au Canada et en Europe. Son expérience fut acquise en transigeant autant avec des hauts dirigeants, gestionnaires que représentants syndicaux dans plusieurs domaines tel manufacturiers, logiciels et hardware, opérations informatiques, ressources humaines, santé et communications télévisuelles.

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.

 

Monday, September 01, 2008 5:50:41 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

Looks like the PDC Brain has embarked in a world tour and visited New Zealand's RDs.

http://www.syringe.net.nz/2008/08/31/TheBrainOnTour.aspx

Blog Bling Brain

Monday, September 01, 2008 6:38:40 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Thursday, August 28, 2008

What?  A conference about Web 3.0?  C'mon, that's so passé.  Everybody knows that the future is Web 10.3.5, appearing next week in your browser.

 

Thursday, August 28, 2008 11:35:47 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 

Found this while browsing: AjaxLoad.info, a site that generates Ajax circling animated Gifs like these

  

http://www.ajaxload.info

Thursday, August 28, 2008 11:28:50 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Wednesday, August 27, 2008

Scott Stanfield and his amazing team at Vertigo has converted transformed the Mojave Experiment Website from Flash to Silverlight.  Simply stunning!

http://www.mojaveexperiment.com/

Wednesday, August 27, 2008 12:03:05 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
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]  | 

Theme design by Jelle Druyts