The .Net framework is a group of components that provide the developer with tools to support the creation of robust computer software programs. It is comprised of: Development frameworks – are components that let us resuse previously written and tested software. Such as ASP.Net, WPF, Silverlight, LINQ, ADO.Net, WCF, WinForms etc… Therea are some very […]
Read More →Tags: C#
Using the as keyword versus boxing in C#

When I convert one object to another using the keyword “as” and the original value is not of that type, the converted value simply becomes NULL. For example, if theItem is of type MessageBox, then row will be NULL. DataRowView row = theItem as DataRowView; However, when using this code, I.e. boxing. DataRowView row = […]
Read More →Dynamic foreach, forget about it, use a recursive function

The other day I (2012) discovered the power of a recursive function / method (I.e. recursion) while I was struggling to write some code. I think one of the focal points of writing good code is writing it in a way that it expands and contracts dynamically. As well, writing code that you will rarely, […]
Read More →How to get started with using LUIS, Language Understanding Intelligent Service, Skype Bot

This article is about consuming the LUIS API from a C# console app as seen in Figure 1. Instructions on how to configure and setup LUIS can be found here. NOTE: You might want to look at Microsoft.Bot.Builder.Luis and Microsoft.Bot.Builder.Luis.Models which provide a nice interface to LUIS. The source code can be downloaded here as […]
Read More →CodeDom provider type could not be located

Server Error in ‘/’ Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The CodeDom provider type “Microsoft.CodeDom.Providers.DotNetCompilerPlatform .CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35” could not be located. Source Error: […]
Read More →Bot Framework 405 Method Not Allowed, 401 Unauthorized and 500, Internal Server Error getting started

I have been working with the Bot Framework available from here. While I was testing it out I encountered 3 road blocks that I will share just to make it move along faster if you happen to encounter the same. I followed these instructions which worked just fine. The issue I faced were during the […]
Read More →Brain Interface data analysis

I wrote this article here that describes what I am doing. I am in the process of creating the article that explains in complete detail how I did it. I expect to complete it by August or September. The best way to determine if a brain interface can really trigger an event, is by ensuring […]
Read More →Using Azure App Services to Convert a Web Page to PDF

Please have a read of an article I wrote about converting an HTML page to a PDF in real-time. It was published in this month’s MSDN Magazine. Figure 1, Using Azure App Services to Convert a Web Page to PDF
Read More →Uploading my brain waves to the cloud, Azure IoT Hub and Emotiv brain interface
I have been reading a lot about brain interfaces and that the Tesla S can be summoned with the brain and that people have started having competitions with drones controlled by brain waves. I have recently acquired an Emotiv Insight® as shown in Figure 1 and have been doing some testing with it. Figure 1, […]
Read More →Lesson 13 – NHibernate Mapping by Code, SchemaExport and SchemaValidate

In Lesson 13 you will learn how to: Install and reference NHibernate 3.2 Beta 1 Create a SQL Server 2008 database Create NHibernate entities using Mapping by Code Create a strongly-typed NHibernate configuration Use SchemaExport and SchemaValidate to create tables and relationships Insert and retrieve data
Read More →