Tuesday, December 29, 2015

SharePoint Server 2016 Beta 2 now available for download

SharePoint Server 2016 Beta 2 is now available for download here: https://www.microsoft.com/en-us/download/details.aspx?id=49961

You can read more about SharePoint Server 2016 Beta 2 here: https://blogs.office.com/2015/11/18/announcing-sharepoint-server-2016-beta-2-and-project-server-2016-beta-2/


Monday, December 21, 2015

Mozilla Firefox 64-bit vs. Google Chrome 64-bit

Ever since Mozilla Firefox FINALLY released a 64-bit version of their browser, I began comparing my usage of numerous tabs open in Mozilla Firefox and Google Chrome.

After closing and re-opening Firefox numerous times, I had no trouble re-loading Firefox even with 100+ tabs open.

However, as soon as I attempted to accomplish the same thing with Google Chrome with even only 50+ tabs open, I got the following error message:






I could neither kill the offending tab nor wait a sufficient time for the browser to finally load the page!

This problem effectively deadlocked my Google Chrome browser and prevented it from loading any other pages making my Google Chrome browser COMPLETELY USELESS!!

I tried closing and re-opening Google Chrome numerous times in order to rectify this problem, but it seemed to make no difference.

Needless to say, Google Chrome does not handle a large number of tabs open simultaneously very well.

I looked at how Google Chrome was storing my browsing data and I found this:



The amount of data that Google Chrome was storing and caching significantly slows down the browser after a period of time and prevents pages from loading quickly.  Until you clear out your cache and browsing history, Google Chrome will continue to run very slowly!

I will continue to use Google Chrome as part of my development processes and testing, but I will now more heavily rely on Mozilla Firefox 64-bit to handle my MAJOR web researching and browsing needs!!

Friday, December 18, 2015

Validating Input Parameters in PowerShell

If you need to validate Input Parameters in PowerShell for your PowerShell scripts, you will definitely want to take a look at these articles which provide useful insight on how to specify a set of validation attributes you can provide for your PowerShell Input Parameters:

http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/15/simplify-your-powershell-script-with-parameter-validation.aspx

http://learn-powershell.net/2014/02/04/using-powershell-parameter-validation-to-make-your-day-easier/

https://technet.microsoft.com/en-us/library/dd878347%28v=vs.85%29.aspx

In my case, I needed to validate my PowerShell Input Parameters using ValidateSet, but you can use any number of these validation attributes to validate input in your own PowerShell scripts!

Thursday, December 17, 2015

Incredibuild now included with Visual Studio 2015

Visual Studio 2015 now includes a brand new project template under Other Languages called Build Accelerator.

 Selecting this template allows you to install Incredibuild free of charge for use within Visual Studio 2015 RTM or Visual Studio 2015 Update 1.

You can read more about Incredibuild that is included with Visual Studio 2015 here: http://blogs.msdn.com/b/visualstudio/archive/2015/11/30/improving-your-build-times-with-incredibuild-and-visual-studio-2015.aspx

If you want to learn more about Incredibuild, you can watch these Channel 9 videos:

https://channel9.msdn.com/Events/Visual-Studio/Connect-event-2015/802

https://channel9.msdn.com/Events/Visual-Studio/Connect-event-2015/803

You can also check out a more full-featured version of Incredibuild for yourself here: https://www.incredibuild.com/


Installing Windows PowerShell v. 4.0 on Windows Server 2008 R2

I recently had to install PowerShell v. 4.0 (https://www.microsoft.com/en-us/download/details.aspx?id=40855) on a Windows Server 2008 R2 server and I noticed that after installing PowerShell v. 4.0, running $PSVersionTable still only showed v. 2.0!

Well, I did a bit of digging through PowerShell articles and came across this insightful article: http://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx

It provided this very useful information:

Scenario: Installing WMF 4.0 on a computer that is not running .NET Framework 4.5 will report that the installation is successful, but the components of WMF 4.0 (such as Windows PowerShell, WMI, etc.) will not be updated.
Solution: Install .NET Framework 4.5, and then run the WMF 4.0 installer again.

It also pointed to this article: http://blogs.msdn.com/b/powershell/archive/2013/10/29/wmf-4-0-known-issue-partial-installation-without-net-framework-4-5.aspx 

As it turned out, .NET Framework v. 4.5 was not installed on this server, and therefore I needed to install .NET Framework v. 4.5 BEFORE installing PowerShell v. 4.0!!

After I did this, my PowerShell version correctly displayed v 4.0!



No snap-ins have been registered for Windows PowerShell version 4 for SQL Server Snap-in

I was recently using the following line in one of my PowerShell scripts to run SQL Server database commands:

Add-PSSnapin SqlServerCmdletSnapin100

However, I was suddenly faced with this error message:

Add-PSSnapin: No snap-ins have been registered for Windows PowerShell version 4.

Huh??  I had installed SQL Server Management Studio, so I assumed that the PowerShell tools would be installed and available.

Well, as it turns out, I needed to install the PowerShell Tools and Shared Management Objects from the SQL Server 2014 Feature Pack here: https://www.microsoft.com/en-us/download/details.aspx?id=42295

Once I did that, I could simply use Invoke-SQLCmd directly in my PowerShell scripts, or I could simply use this line instead:

Import-Module SQLPS -DisableNameChecking

That was enough to get my PowerShell scripts which invoked SQL commands to work!

Wednesday, December 16, 2015

Firefox 64-bit for Windows finally available!!

The Mozilla Foundation has FINALLY released a 64-bit version of their Mozilla Firefox browser!!

You can read more about the Firefox 64-bit release here: https://blog.mozilla.org/futurereleases/2015/12/15/firefox-64-bit-for-windows-available/

Lastly, you can download the 64-bit version from here: https://www.mozilla.org/en-US/firefox/all/

Woo hoo!