Blog - Title

Visual Studio 2013 Current Status

  • The Ultimate Visual Studio Tips and Tricks Blog

    Need a Human?

    • 1 Comments

     

    Thanks to Joe S. for shooting me this cool site for actually getting a human on the phone.  Sweet.

     

    http://gethuman.com/

  • The Ultimate Visual Studio Tips and Tricks Blog

    The Moth: .NET Framework 3.5

    • 1 Comments

    I get a lot of questions lately about what is and is not going to be in the new .NET 3.5 Framework .  Here is a link to Daniel Moth's post on that subject.

     

  • The Ultimate Visual Studio Tips and Tricks Blog

    GREP and SED with PowerShell

    • 10 Comments

     

    So...I like GREP and SED from my old UNIX days and am VERY happy to see that PowerShell can do the same type of functionality with a lot more power in most cases.  I though some of you might like some really simple examples of how to take a text file and do GREP-ish and SED-ish actions.

     

    GREP-ish

    cat somefile.txt | where { $_ -match "expression"}

     

    The command above will search each line of "somefile.txt" to see if it contains the regular expression "expression" and return the entire line if there is a match.

     

     

     

    SED-ish

     

    cat somefile.txt | %{$_ -replace "expression","replace"}

     

    The command above will search each line of "somefile.txt" for the regular expression "expression" and replace it with the string "replace".

     

     

     

    EXAMPLE:

    ==============DATA.TXT==============

    Mary had a little lamb,

    It's fleece was white as snow,

    But the lamb made Mary mad,

    So she ate it.

    =================================

     

    GREP-ish

    cat DATA.TXT | where { $_ -match "Mary"}

     

    returns the following:

    Mary had a little lamb,

    But the lamb made Mary mad,

     

     

    SED-ish

    cat DATA.TXT | % { $_ -replace "Mary","Susan" }

     

    returns the following:

    Susan had a little lamb,

    It's fleece was white as snow,

    But the lamb made Susan mad,

    So she ate it.

     

    ================ Edit 7/14 ==================== 

    A question came up the the other day about putting these results into another text file.  Using redirection this is quite easy.  Here is how it is done:

     

    cat DATA.TXT | % { $_ -replace "Mary","Susan" } > newfile.txt

     

    ============================================

    enjoy :)

     

  • The Ultimate Visual Studio Tips and Tricks Blog

    Finding Your Favorite Webcasts

    • 1 Comments

     

    Up until now finding webcasts for MSDN and TechNet has been...less than optimal.  I am happy to announce that we have updated the search capabilities!!!  Yea!

     

    Here are the links (repeated on my webcasts page) for everyone :)

     

    MSDN Webcast Page: http://msdnevents.com/live-webcasts.aspx

    TechNet Webcast Page: http://technetevents.com/live-webcasts.aspx

     

    Z

     

     

    Technorati Tags: , , , ,
  • The Ultimate Visual Studio Tips and Tricks Blog

    Props to Jim Hollenhorst, Creator of Expresso

    • 2 Comments

     

    For those who have been watching my Regular Expression Series, you know I use Expresso in the classes.  I was very excited and proud to have Jim shoot me an email the other day.  He seemed to enjoy the series and even gave me some pointers on how to use the product better.  I thought I would share some of his insights with you.  You will probably get better use from these comments if you have seen the first two parts of this ten part series:

    ============================BEGIN==================================

    Expresso is and always has been free. The release version of Expresso 3.0 is now on the web site.

     

    Expresso can generate a text version of the tree structured analysis and can automatically put this into XML comments in the generated code. You can easily get back the original sample text by loading the sample project from the "File" menu, and you can start with a blank slate by clicking the "New Project" button.

    My "Builder" and editing tools make it unnecessary to consult a reference sheet if you can't remember the exact syntax of a negative lookahead or anything else. I think my "Analyzer" is second to none. I also have tools for code generation in VB, C#, Managed C++, and C++ CLI, for timing tests, for building and maintaining regex libraries, etc.

     

    A question came up about differences between the "Validate" and "Run Match" tools. "Run Match" is easy to describe. It simply runs the regex against the full text in the sample window and displays all the matches. It is easy to understand what is happening and it is exactly what would happen if you put that text into the Regex.Matches() method. Unfortunately, this is not the best way to test validator controls, which are usually validating a single line of text. For these, it is helpful to have a list of matching and non-matching strings against which to test the regex. The "Validate" tool breaks the sample text into a collection of lines, stripping out the line termination characters, and running each line separately. It then shows whether the entire line matched, whether just a part of the line match, or whether none of it did. This gets rid of any annoying problems with properly matching the line termination characters, which typically will not be part of what is being validated.

     

    I have found that one of the most confusing things using Expresso is the fact that the sample text, like any Windows text file, has lines terminated by a carriage return and then a line feed. If you have a "$" at the end of your regex, you better be sure that you match the line termination prior to the "$". As you know, this is a real issue that you have to deal with in multiline text, but is a real point of confusion if you are targeting your regex for strings with no embedded line termination. I also address this by showing the non-printing text characters in the match results. For example, double-click the attached project file and press F5. Notice that it matches all three lines, as desired, but if I delete the "\r?" the match won't work because the carriage return will not get matched. If I use "Validate" it works either way.

    (Note that the easiest way to delete the "\r?" is to expand the Analyzer, select the appropriate line and push "Delete", a simple example of the extensive editing that can be done in the Analyzer window.  Watch what happens if you double-click or right-click a line in the Analyzer.)

     

    No need to cut and paste in Notepad. Just save to a project file and later restore it from the list of recently used files in the "File" menu.

     

    Sorry about the confusion of turning the "IgnoreCase" option on. This was not actually intended to be a default option. In fact Expresso sets the options however they were set in the last saved project file. Since the program first opens with a sample project, the options are set according to the first regex in the library stored in that file.

     

    You may have been annoyed by the tooltips that kept showing in your demo.  You can easily turn these off by unchecking the "Use Tool Tips Under Mouse Cursor" command in the "Help" menu.

     

    You made an excellent point about the trouble that using * can get you into. This can be very confusing in debugging a regex. Try this in Expresso 3.0. All the NULL matches are shown and, with this release, below the results tree I show where the NULL match occurred by displaying the neighboring text with a pipe symbol show where the NULL match was.

    ============================END==================================

    Thanks Jim for all the insights and thanks to all the folks who are watching the series :)

     

  • The Ultimate Visual Studio Tips and Tricks Blog

    Many Thanks to the Northwest Arkansas Folks

    • 1 Comments

     

    Last week I have the distinct privilege of being one of the speakers at the NWA CodeCamp.  It was great fun and I was very impressed with the folks who came out even in the pouring rain.  Many thanks to Jay and Jeremy for hosting the event for the .NET folks.  You guys rock! 

     

    If you live in the NWA area, make sure to visit the user group's web site and tell them I said "hi" :)

     

  • The Ultimate Visual Studio Tips and Tricks Blog

    My Webcasts Are Finally Up Again!!!

    • 1 Comments

     

    For those that were waiting for the epic saga of a man and his regular expressions, the wait is over!  Make sure to visit my webcast page

    to see the latest and greatest :)

     

    Z

     

  • The Ultimate Visual Studio Tips and Tricks Blog

    Enterprise Architecture Site Launched on MSDN

    • 1 Comments

     

    YES!  They finally launched the Enterprise Arc site on MSDN!  Happy Happy Joy Joy!  :)

     

    If you love the architecture side of things you want to check this place out...

     

  • The Ultimate Visual Studio Tips and Tricks Blog

    Webcasts on Regular Expressions

    • 1 Comments

     

    Many of you have asked me when my next webcasts are and I had scheduled them for every Wed in June starting on the 13th.  Unfortunately, due to a mix up at the main office it appears that my webcasts will actually run every week in July beginning on the 11th.  Many apologies to those who wanted them sooner.  I also wanted to thank the tons of emails I have gotten about the series, I really appreciate having such dedicated students at my webcasts and it gives me an energy boost just knowing you are all listening out there.  thanks :)

     

    Z

     

     

  • The Ultimate Visual Studio Tips and Tricks Blog

    VSTS to Project Server 2007 Connector

    • 0 Comments

    Well, if you haven't heard yet we have a connector available that is, in my opinion, absolutely a necessity in the enterprise world for development.  Check out the overview blurb below:

     

    =================

    We are pleased to announce the release of Visual Studio Team Foundation Server - Project Server 2007 Connector which is available at http://www.codeplex.com/pstfsconnector.

    OVERVIEW

    The Visual Studio Team Foundation Server - Project Server 2007 Connector is designed to integrate the project management capabilities of TFS with Project Server 2007. It's been developed by the Visual Studio Team System Rangers in response to significant customer demand for a connector solution. Future versions of Team System will have native integration with Project Server, in the meantime this Connector solution is the best way to integrate the two Microsoft products. This solution builds on the previous PS2003 VSTS Connector, published on GotDotNet. This solution is intended to provide guidance, provided as source code that can be used "as is," extended, or modified.

     

    =================

     

    enjoy!

Page 131 of 135 (1,345 items) «129130131132133»