Enterprise Framework

Software Solutions in the Enterprise

Windows Server 2012 RabbitMQ Remote Access 3.0.0 and up

By default, trying to access RabbitMQ Management UI (http://localhost:15672/) from a remote machine is not allowed.  You must turn this on by setting the setting an environment variable and then creating a rabbitmq.config file before installing rabbitmq on Windows.

Here are the steps before you install. 

Clean Install on Windows Server 2012:

  1. Set System Environment Variables
    1. Go to System > Advanced System Settings > Advanced Tab > Environment Variables
    2. Under System variables > New...
    3. variable name  : RABBITMQ_BASE
      variable value : c:\rabbitmq
    4. Click OK
    5. Click OK at Environment Variables screen.
    6. Create a new file called rabbitmq.config in c:\rabbitmq
      1. Edit rabbitmq.config and paste the following into it: 
        [{rabbit, [{loopback_users, []}]}].
  2. Install Erlang
    1. Go to http://www.erlang.org/download.html
    2. Download:  OTP 17.5 Windows 64-bit Binary File (91.1 MB)
  3. Install RabbitMQ
    1. Go to https://www.rabbitmq.com/download.html
    2. Download:  RabbitMQ 3.5.3 Windows 

If you already installed rabbitmq, you will need to uninstall rabbitmq service and then do the above 1 through 3 steps.

Javascript Unit Test Links


https://github.com/Microsoft/nodejstools/wiki/Test-Framework-Extensibility

http://madskristensen.net/post/visual-studio-extensions-for-web-developers


https://github.com/Microsoft/nodejstools/wiki/Test-Explorer


http://www.codit.eu/blog/2015/03/18/continuous-integration-with-javascript-nunit-on-tfsbuild-%28part-13%29/

https://www.visualstudio.com/en-us/features/node-js-vs.aspx

https://nodejstools.codeplex.com/

https://github.com/Microsoft/nodejstools

https://github.com/Microsoft/nodejstools/wiki


https://github.com/Microsoft/nodejstools/wiki/Pre-and-Post-Build-Actions

https://social.msdn.microsoft.com/Search/en-US/vscom?query=javascript%20unit%20test&Refinement=198&emptyWatermark=true&ac=5


https://nodejstools.codeplex.com/

http://webtooling.visualstudio.com/languages/javascript/

https://visualstudiomagazine.com/articles/2013/12/01/javascript-unit-testing-with-visual-studio.aspx

http://blogs.msdn.com/b/matt-harrington/archive/2014/10/27/javascript-unit-testing-using-the-chutzpah-test-runner-in-visual-studio.aspx

NodeJS Code for Chat Application with Redis

Sign up for a FREE Redis DB account at RedisLab.

After logging into RedisLabs, click on Manage My Resources
Click "New Redis Subscription"
Choose the Standard Tab > 30MB Free Version

Enter a Resource Name (Example: MyRedisDb)
Enter a Password (Example: P@ssw0rd)
Click "Activate".

This will take you the activation screen.

Click on My Resources

Click on the newly created Db (Example: MyRedisDb)
You will use the EndPoint defined for using within your chat application

  1. Unzip the NodeChat.zip file to a directory
  2. Edit Chat_App.js and Set:
  3. var redisPort = (Example:  12345)
  4. var redisUrl = (Example: pub-redis-12345.us-east-1-2.3.ecc.data.com)
  5. var redisPassword = (Example: P@ssw0rd)
  6. Save.
Run the chat app:  node chat_app.js

Download the Chat App: chat_app.zip (3.5MB)

Related links:  Node JS Chat on Azure App Service

Visual Studio 2013 Ultimate - (Miscellaneous Files) appears in Project Dropdown

In Visual Studio 2013 Ultimate with a CS file open within a Class project, the project name appears as "(Miscellaneous Files)". 
This Class project was a mixture of .CS files and Xaml workflow files.

Solution:

  1. I selected all the Xaml files and right clicked them and choose "Exclude From Project"
  2. I selected "Show All Files" in Solution Explorer for the project
  3. I selected all the Xaml files I had originally excluded and right clicked them and choose "Include In Project"

Re-open a .CS file and see if the project drop down lists "(Miscellaneous Files)"

OSI Model : Wikipedia Reference

How To : Google Calendar v3 API with C#


Google Calendar API

Google Calendar APIs Explorer
 
Google.Apis.Calendar.v3 Client Library Nuget Package

Google API : Calendar API Client Library for .NET

Google Calendar API : Calendar API .NET Quickstart

Google Calendar API : Google Apps Calendar API : Download client libraries

Google Calendar API : API Reference

Google Calendar API : Supported Google APIs

Google Calendar API : Get Started with the Google Calendar API

Google Calendar API : Client Library for .NET

Google+ Platform : Quick-Start sample app for C# / .NET

Google Identity

Google API DotNet Client

.NET Client Library Developer's Guide

Google GData

How To : MSDN .NET Framework 4.5 ADO.NET Asynchronous Programming Examples : Legacy, New, Mixing Patterns, more...

How to .NET Framework 4.5 ADO.NET examples on Asynchronous Programming Examples

I found this great MSDN reference for examples on Asynchronous Programming

https://msdn.microsoft.com/en-us/library/hh211418%28v=vs.110%29.aspx

  • Asynchronous Programming
  • Legacy Asynchronous Programming
    • SqlCommand.BeginExecuteNonQuery
    • SqlCommand.BeginExecuteReader
    • SqlCommand.BeginExecuteXmlReader
  • Asynchronous Programming Features Added in .NET Framework 4.5
    • For more information about the asynchronous programming feature that was introduced in .NET Framework 4.5, see:
      • Visual Studio Asynchronous Programming
      • Using SqlDataReader’s new async methods in .Net 4.5 (Part 1)
      • Using SqlDataReader’s new async methods in .Net 4.5 (Part 2)
    • The following methods were added in .NET Framework 4.5 to support asynchronous programming:
      • DbConnection.OpenAsync
      • DbCommand.ExecuteDbDataReaderAsync
      • DbCommand.ExecuteNonQueryAsync
      • DbCommand.ExecuteReaderAsync
      • DbCommand.ExecuteScalarAsync
      • GetFieldValueAsync
      • IsDBNullAsync
      • DbDataReader.NextResultAsync
      • DbDataReader.ReadAsync
      • SqlConnection.OpenAsync
      • SqlCommand.ExecuteNonQueryAsync
      • SqlCommand.ExecuteReaderAsync
      • SqlCommand.ExecuteScalarAsync
      • SqlCommand.ExecuteXmlReaderAsync
      • SqlDataReader.NextResultAsync
      • SqlDataReader.ReadAsync
      • SqlBulkCopy.WriteToServerAsync
    • Synchronous to Asynchronous Connection Open Example
    • Adding the New Asynchronous Feature in an Existing Application (Mixing Old and New Patterns) Example
    • Using the Base Provider Model and the New Asynchronous Feature Example
    • Using SQL Transactions and the New Asynchronous Feature Example
    • Using SQL Transactions and the New Asynchronous Feature Example
    • Cancelling an Asynchronous Operation Example
    • Asynchronous Operations with SqlBulkCopy Example
    • Asynchronously Using Multiple Commands with MARS Example
    • Asynchronously Reading and Updating Data with MARS Example