July 2008 - Blake Niemyjski

  • Speaking at the Madison .NET User Group

    Date:     Wednesday, July 30, doors open at 5pm

    Topic:     Code Generation

    Speaker:     Blake Niemyjski

    Location:     Herzing College, East Madison Campus, 5218 East Terrace Drive, 53718

    Description:    

    Blake Niemyjski is a full time student studying Computer Science and Mathematics. His previous studies included RSA Encryption and Number Theory. This coming year he will be attending UW-Madison to continue his education. Since the late 90's Blake has had a curiosity in developing software with the goal of making software that helps the masses accomplish tasks. As a hobbyist developer turned student and professional developer, Blake has had a passion to continue his knowledge into the unknown and creating technologies of the future.

    Some of Blake's past and current work includes the development on various Windows featured communities: bink.nu, windowscoding.com, hypervoria.com, open source communities: (e.g. nettiers.com, communityserverlive.com), charities (e.g. wearemicrosoft.com) and other commercial entities including, globalgrind.com, CodeSmith Tools LLC and more.

    Blake will be covering Code Generation using CodeSmith's upcoming release CodeSmith 5.0. The presentation will cover the following:

    • How-to create templates that use Data Sources, XML, SQL, etc...
    • Tips and Tricks used by senior fellow CodeSmith users
    • Demos on Data Access Generation using nHiberate and .netTiers
    • How templates can make your life easier and save you money
    • CodeSmith 5.0 specific features
    • An overview of what happens under the hood, CodeDOM, etc.


    Meeting Agenda:

    • 5:00pm, Networking with sponsors and members
    • 5:30pm, Free pizza and soda
    • 6:00pm, Introduction and start main presentation
    • 7:45pm, Break off into Special Interest Groups
    • 9:00pm, Give away prizes and Wrap up meeting

     

  • Microsoft StyleCop: Source Code Analyzer for C#

    Here is a cool internal tool used by Microsoft that is now seeing daylight Smile.

     

    "We are very excited to announce the release of a new developer tool from Microsoft, Source Analysis for C#. This tool is known internally within Microsoft as StyleCop, and has been used for many years now to help teams enforce a common set of best practices for layout, readability, maintainability, and documentation of C# source code.

    StyleCop is similar in many ways to Microsoft Code Analysis (specifically FxCop), but there are some important distinctions. FxCop performs its analysis on compiled binaries, while StyleCop analyzes the source code directly. For this reason, FxCop focuses more on the design of the code, while StyleCop focuses on layout, readability and documentation. Most of that information is stripped away during the compilation process, and thus cannot be analyzed by FxCop.

    The ultimate goal of StyleCop is to allow you to produce elegant, consistent code that your team members and others who view your code will find highly readable. In order to accomplish this, StyleCop does not allow its rules to be very configurable. StyleCop takes a one-size-fits-all approach to code style, layout, and readability rules. It is highly likely that you will not agree with all of the rules and may even find some of the rules annoying at first! However, the majority of teams using this tool within Microsoft have found that after a short adjustment period, they came to appreciate the rules enforced by StyleCop, and even began to find it difficult to read code not written in this style. 

    StyleCop comes with a set of default rules analyzers covering approximately 200 best practice rules. These rules are fully compatible with the default layout settings in Visual Studio 2005 and Visual Studio 2008.

    Specifically, these rules cover the following, in no particular order:

    • Layout of elements, statements, expressions, and query clauses
    • Placement of curly brackets, parenthesis, square brackets, etc
    • Spacing around keywords and operator symbols
    • Line spacing
    • Placement of method parameters within method declarations or method calls
    • Standard ordering of elements within a class
    • Formatting of documentation within element headers and file headers
    • Naming of elements, fields and variables
    • Use of the built-in types
    • Use of access modifiers
    • Allowed contents of files
    • Debugging text

    After installation, StyleCop can be run from within the Visual Studio IDE, and can also be integrated into MSBuild-based command line builds" (Microsoft StyleCop).

    Download ( Microsoft StyleCop )

  • How-to: Run Windows Live software on 64bit Windows

    I'm guessing that many of you have attempted to download the latest version of Windows Live Messenger or other Windows Live Software but have been prompted with the following error:

    "Sorry, Windows Live programs cannot be installed on Windows Server, Windows XP Professional x64 Edition, or Windows operating systems earlier than Windows XP Service Pack 2."

    You're not alone, as I have received the same error when trying to install the latest version on Windows Server 2008 64bit.

    The folks at Microsoft included support in the installer for all operating systems during the Windows Live beta(s). However when Messenger 8.5 went RTM, they removed support for all of the operating systems mentioned above. Many are outraged that Microsoft took this stance because they supported it while it was in beta, and then launch and say we don't support it and won't ever support it.

    "A special note for those of you running Messenger 8.5 Beta on Windows XP 64-bit or Windows 2003 Server: the final version of Messenger 8.5 will not install or run on your OS. We don’t want you to get stuck out in the cold so you will not receive the mandatory upgrade to the final version. However, these operating systems won’t be supported by future Messenger versions. You may stay on your current beta version, or to get to a more stable final version we recommend that you uninstall Messenger 8.5 and go back to Messenger 8.1." ( Windows Live Messenger Blog ).

    Many are wishing Microsoft would remove this limitation from the Windows Live installer. For more information visit the messengergeek blog.

    Luckily there is an easy work around to installing Windows Live on Windows 64bit operating systems and Windows Server operating systems if you have a 32bit windows operating system available. Just follow the steps below and you will be up and running in a few minutes with the latest version of Windows Live Messenger, Windows Live Writer and various other Windows Live programs.

    1. Download the installer on your 32bit Windows machine from http://get.live.com. Note: I used Windows XP Service pack 3.
    2. Run the Installer (WLinstaller.exe). Note: It will download and install the latest version of Windows Live onto your machine.
    3. Go to the following folder(C:\Program Files\Common Files\WindowsLiveInstaller\MsiSources or C:\Windows\System32\config\systemprofile\AppData\Local\WindowsLiveInstaller\MsiSources\).
    4. Copy or email the executables of the various Windows Live programs installers to your Windows 64bit or Windows Server operating system. Below is a list of applications names that correspond to the filename (diTii.com ).

    Windows Live Writer
    Install_{9176251A-4CC1-4DDB-B343-B487195EB397}.msi
    Windows Live Messenger
    Install_{508CE775-4BA4-4748-82DF-FE28DA9F03B0}.msi
    Windows Live Sign-In Assistant
    Install_{AFA4E5FD-ED70-4D92-99D0-162FD56DC986}.msi
    Windows Live Mail
    Install_{EDB619FD-4E71-403C-8E99-DFC9CF9DD345}.msi
    Windows Live Toolbar
    Install_{C6876FE6-A314-4628-B0D7-F3EE5E35C4B4}.msi
    Windows Live Photo Gallery
    Install_{AA436FBD-2595-479B-8DDE-E9C36F50D99D}.msi

    1. Finally install the above msi's onto your machine. You should now be on the latest and greatest version of your favorite software.

     

windowscoding.com;
Copyright © 2008 Windows Coding
Microsoft and Microsoft logo's are trademarks of Microsoft Corporation.