Archives

Archives / 2007 / October
  • Silverlight installation per machine/browser?

    A question I had on top of my head:
    When you install Silverlight, is it installed automatically on every browser available on your machine or is it per browser like Flash installation ?

    The answer is:
    "When you install Silverlight, it installs itself for both Firefox and IE on Windows, and both Safari and Firefox on Mac, regardless of what browsers you currently having running or installed."
    Thanks to Daniel Harvey from the silverlight.net forums.

     

  • Get System.Drawing.Color from RGB HTML color

    Back to some real content here!

    Maybe you already know about this, but as I still often see static method like GetColorFromHTML() in companies static class, it could be a good reminder.

    The idea is when you want to set a color in code, like GridView1.ForeColor = "#FFCC66", but this do not work because the property is of type System.Drawing.Color.

    You don't need to create a convert method as there is already such a method in the Framework, but the location is not obvious.
    First I would have checked for System.Drawing.Color.FromHTML() as there is already a System.Drawing.Color.FromArgb(), but no, it is not there. Instead you have to look in System.Drawing.ColorTranslator.

    Convert a RGB color to System.Drawing.Color:

    C#:
    System.Drawing.Color col = System.Drawing.ColorTranslator.FromHtml("#FFCC66");

    VB:
    Dim col As System.Drawing.Color = System.Drawing.ColorTranslator.FromHtml("#FFCC66")

     

    Convert a System.Drawing.Color to RGB string:

    C#:
    String sHtmlColor = System.Drawing.ColorTranslator.ToHtml(col);

    VB:
    Dim sHtmlColor As String = System.Drawing.ColorTranslator.ToHtml(col)

  • A new business in town!

    RunAtServer Consulting Montreal

    As you may know I am a partner of RunAtServer Consulting, a company based in Montreal and highly specialized in Microsoft web technologies such as ASP.NET and AJAX, as well as Silverlight and Expression. We are deeply involved in local .NET communities and love to share knowledge in conferences and trainings.

    Are you a passionate ASP.NET developer ? please come check our careers page and the opportunity to join our vibrant team!

  • My Code Camp Montreal 2007 presentations

    Here are the slides and demos of both of my french sessions: "Expression softwares" and "Silverlight".
    Expression session was live only demos, but you'll find the samples I used for Silverlight :
    - Expression Encoder output
    - ASP.NET Future <asp:Media> Control
    - Web Service
    - OpenFileDialog
    - Isolated Storage
    Note that you need VS2008 beta 2 and Microsoft Silverlight Alpha Tools for Visual Studio 2008 Beta

    Download the file:

    Thanks to all attendees!

  • Code Camp Montreal 2007

    Code Camp Montreal

    The second Code Camp Montreal is very soon!!!

    --> www.codecampmontreal.com

    What you need to know :

    • it is Saturday October 27th in Montreal
    • it is free!
    • it will be great!!

    A whole day with 17 sessions in 4 rooms.
    You can have a look at the sessions list and the speakers list.
    Note that registration is free but mandatory, be quick!

    I will present 2 sessions (in french):

    • Introduction à la suite de produits Expression
    • Introduction à Silverlight

    See you there !

  • realDEVELOPMENT_07 Canadian Tour for Web Developers

    The Real Development Reloaded Tour will be in Montreal on October 18.

    I had the chance to review the content of this event, lots of good tips and tricks will be shown, and I am sure you will learn something new, even if like me you do ASP.NET since you are born (almost!).
    This tour focus on today's technologies, the ones you use on your day to day job as a web developer. So don't miss this chance to consolidate your knowledge, feel more confident on ASP.NET, AJAX, and learn about the best tools for your browser!

     

    realDEVELOPMENT_07 tour is coming to a Canadian city near you. This half-day event is your chance to get a closer look at the technologies you use to create real web applications.

    In the sessions, you’ll learn how to use:

    • Visual Studio® development system to debug and trace your web application
    • Third party tools and utilities such as the Internet Explorer® internet browser Readiness Toolkit, Developer Toolbar, and Fiddler
    • the Enterprise Library to implement best practices
    • ASP.NET AJAX to create more immersive and interactive experiences

    Link for Montreal registration:
    MONTREAL - OCT 18, 2007 (8:30 AM - 12 NOON)

    For other dates and cities, read this post.

  • Windows Live Translator

    A new Live Service is available since September: Live Translator.
    http://translator.live.com

    The first thing I noticed is the translation is far from perfect (Okay it is beta...).

    I like the web page translator : you can change the layout (side by side, top/bottom, hover), when you select some text, it highlights the translated part, and as you browse the pages are automatically translated.

    Did a test on my blog, that is so funny!

    • Recent posts -> Poteaux récents
    • I'm NOT a poor lonesome ASP.NET Developer -> Je ne suis pas des pauvres seuls Réalisateur d'ASP.NET !!!??

     

    Note the "Computer-related content" checkbox, again I did a quick test, from English to French, with Computer-related content checked :

    Original:
    Mashups are created by dragging in and connecting ‘blocks’ which produce an output. Blocks are modules that connect to various web services API’s, and even today there are dozens of different blocks that work with a whole variety of different web services.

    Tranlated:
    Mashups sont créées en faisant glisser et de la connexion « blocs » qui produisent une sortie. Les blocs sont les modules qui se connectent à plusieurs services Web API de, et encore aujourd'hui il existe des dizaines de différents blocs qui fonctionnent avec une gamme ensemble de services Web différents.

    =|> Oh shit!

    Conclusion: It does the job, but not very impressive yet, mostly from English to X and it is not even AJAX!!!

  • Try Popfly!

    I recently came back to Popfly and noticed some nice changes :

    • Much cleaner user interface
    • Blocks organized by category
    • Tweaking feature
    • Dapper and Facebook integration

    If you do not know what Popfly is about, Nik Cubrilovic from TechCrunch wrote a new review :

    "With Popfly, you can create applications, mashups, web pages and widgets (gadgets) and it is all tied together in a social network (as part of the Live Spaces platform) where you can connect with other users and publishers of applications. Mashups are created by dragging in and connecting ‘blocks’ which produce an output. Blocks are modules that connect to various web services API’s, and even today there are dozens of different blocks that work with a whole variety of different web services."

    Also read: Top 10 reasons "Why I Think Popfly is Cool ?" by John Montgomery (Popfly Program Manager):
    http://blogs.msdn.com/johnmont/archive/2007/05/18/why-i-think-popfly-is-cool.aspx 

    Meet the Popfly team in this Channel 9 webcast :
    http://channel9.msdn.com/showpost.aspx?postid=308460

    Currently the project status is still private Alpha-test, I have 5 invitations so leave a comment if you want one of them!

  • Zune not working on Desktop USB

    I was not able to setup my Zune device since I bought my new desktop PC.

    I downloaded and installed the latest version of the Zune Software, removed and reinstall Zune driver, nothing worked!

    Symptoms:

    - Connect Zune to the PC with the USB cable
    - Zune software launch
    - Get the message : "Searching for device..." and then...... nothing happens!

    No way to find out why!!

    Tonight I found the solution : I plugged my Zune through an external powered USB hub (and not directly on the computer) and now... it works like a charm!
    My USB ports are working correctly, but I suspect them to not supply enough power for a Zune...

  • New Zune soon

     New Zunes are coming in November!

    zune 2

    3 new versions were added to the family : Zune 80GB hard-drive, Zune 4GB and Zune 8GB flash models, respectively named Zune 80, Zune 4 and Zune 8. First generation Zune is now called Zune 30. New design seems cool and comes with new colors, but no white version available (they can't beat an iPod!)

    Both hardware and software changes, I can't wait for these especially:

    • Touch Pad
    • WiFi sync with your computer !!
    • Podcast support (audio and videos) !

    They rebuilt the software from the ground up (Great!!) but it is still separate from Windows Media Player (Oooh shit!). Why not an upgrade or a pluggin ???

    Note that first generation Zunes will get the upgraded interface and software enhancements! That is so nice!!

    Earlier this year I wrote Zune: My feedback, so what's new? Now we get wireless sync and podcast support (cool!), still no clock (not a big deal), but I hope it does resume songs now. I am a real music lover (which is 99% of my Zune usage), so for me the most important additions would be :

    • "Add to now playing list" feature like WMP (current "quick list" feature is totally useless for me, I don't want to edit this list, I want to launch an album immediately, then adding new music's while listening, and I don't want this list to be saved, I want to repeat the whole process with new music every day).
    • "Recently added" entry added to the songs/genres/artists/albums menu. I have a lot of music, I mean... A LOT. When I sync Zune with my latest albums I would like to easily find them, like in WMP.
  • Silverlight overview

    Laurence Moroney has started a nice series of posts on Silverlight : "Zero to Hero" (how to get started with this technology with no prior knowledge assumed).

    The series will cover :

  • Your First Silverlight Application
  • Understanding XAML
  • Understanding the Blend series of Products
  • Building Silverlight applications using Aptana on the Mac
  • Building Silverlight applications using Visual Studio Express on the PC
  • Programming Silverlight 1.0 with JavaScript
  • http://blogs.msdn.com/webnext/archive/tags/ZERO+HERO/default.aspx

  • Vista Sidebar Gadget Template

    Tim Heuer has done a really nice Sidebar Gadget Template for Visual Studio.

    The structure you get when creating a new Web Site/VistaSidebarGadget from VS :

    vista-sidebar-gadget-template

    Note that it creates one local folder (en-US) so you can easily add some more later, and it comes with lots of comments on the code (html and js). You also get a nice utils.js file full of JavaScript functions!

    The link to the vsi template is on his post:
    http://www.timheuer.com/blog/archive/2007/03/11/14010.aspx

  • Silverlight briefing event in Canada

    microsoft-silverlight

    Wow, this one is not announced elsewhere than here... it is not even in the MSDN Canada events page ???

    An half-day morning event on Silverlight will take place in 3 cities in Canada during October. For Montreal registration go there, for Vancouver and Toronto links read the original post.

    "Silverlight™ is a new, cross-browser, cross-platform plug-in for delivering rich interactive user experiences on the web, using the JavaScript and .NET as the development platform. 

    Join us for a very informative and productive half-day event which will provide you with an overview of Microsoft’s new Silverlight browser plug-in.  There is a great amount of buzz around Silverlight and this briefing is meant to provide you with an understanding of its capabilities and value proposition for both you and your customers.

    This Innovation Briefing will cover:

    • An overview of Silverlight
    • Business value to you and your customers of Silverlight
    • Architecture and services of Silverlight
    • Implementing Silverlight-based applications
    • A roadmap for Silverlight

    This event is focused on Web Developers, Web Designers and IT Generalists."

    Add this to the realDEVELOPMENT_07, Developer Night in Canada III and the Code Camp, October is going to be fully loaded in Montréal!!! (This is great.... but why so many events in the same month ??).