There are some really good descriptions and explanations concerning data types on the internet. However I will add my understanding and comments about them on this website. Just in case you stumble across this page in your search for ultimate C# knowledge. There are 2 data types. Value Types and Reference Types. I published a […]
Read More →Tags: .NET
Arrays in C#
I always liked the concept of arrays. Being able to conceptually visualize in multiple dimensions took me some time to get my mind around, but in the end I was successful. The example here will discuss 2 dimensional arrays of type single, multiple and jagged. A single dimensional array is the simplest. You simply code […]
Read More →Hacked
This happened to me way back in 2011. I am migrating all my blogs and articles to this site and am adding it here. This shouldn’t happen anymore if you use an ORM like Entity Frame Work or NHibernate. A few weeks ago I had to fend off a hacker. Some of the database statements […]
Read More →Language Independence
The most common .Net languages are Visual Basic, C++ and C#. However, there are numerous other programming languages that will function with the .Net Framework. Like, F#, J#, PowerBuilder, IronPython, IronRuby, etc… It is possible to use .Net from many programming languages because they have all agreed on some standards. For example the Common Type […]
Read More →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 →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 →Lab 28: The impact of debug=true
Prerequisites Read this about .NET Compilation Read this about why debug=true is not good for performance Understand that ASP.NET (ASPX, ASCX, ASAX, MVC) files are compiled into a DLL and stored into c:\Windows\Microsoft.NET\Framework?\v?.?.?\Temporary ASP.NET Files Setup Install CSharpGuitarBugs.zip onto an IIS web server as per Lab 1 Install the ASP.NET Role Open the IIS Manager […]
Read More →Upload an image to an Azure Blob container using the Gadgeteer (Part 2, source download)
If you have not already read the first part of this blog, please check it out Part 1 here. Uploaded the image to the Azure Blob container This…..was…..hard…. The code wasn’t hard, but getting the header formatted into the correct format was a hurdle, using the Micro Framework. It’s actually not possible to use the […]
Read More →Upload an image to an Azure Blob container using the Gadgeteer (Part 1)
I wrote an article here that explained how I got an HTTPS request to work from my Gadgeteer. This was one of the steps I took during the process of achieving my ultimate goal of storing an image, taken from a camera and placing it into an Azure Blob container. Sure, taking a picture and […]
Read More →Using TLS 1.2 with WCF
NOTE: Security is a very serious topic and you should always engage an IT security expert before deploying an application that needs to be secure. This article is intended to share my experience versus being an article to use as a guideline. With all the news about the different vulnerabilities like heartbleed and poodle, developers […]
Read More →