Khalid Abuhakmeh

An Explanation Of Azure Content Delivery Networks (CDN)

Based on my current understanding

I've spent part of my July 4th Holiday researching Azure Content Delivery Networks (CDN). Let's start with a simple definition of what a CDN is.

A content delivery network (CDN) is a system of distributed servers (network) that deliver webpages and other Web content to a user based on the geographic locations of the . . .

Read More

July 06, 2015

Implementing Bootstrap 3 Remote Modal

Bootstrap 3 comes with a lot of value. The modal is an amazing JavaScript component, but comes with a warning of deprecation.

This [remote] option is deprecated since v3.3.0 and will be removed in v4. We recommend instead using client-side templating or a data binding framework, or calling jQuery.load yourself.

The . . .

Read More

July 05, 2015

Registering ASP.NET MVC Route Constraints for Attribute Routing

Route constraints are a powerful tool when building ASP.NET MVC applications. While I rarely use route constraints, there are opportunities to use them that make perfect sense. I normally use route constraints when building simple content management systems (CMS). Let's take a look at what our routes may look like.

/ . . .

Read More

June 29, 2015

A Bug with ASP.NET MVC ValueProviders and Formatting

Magic turns to Voodoo

I was working with Chad, a colleague of mine, on a simple ASP.NET MVC application, the typical CRUD kind. We were attempting to use an editor template in our project to display a DateTimeOffset object as a short date string. Every time we would submit our form, the date would go from a short string format to the full format. What the heck was . . .

Read More

June 24, 2015

Capturing ASP.NET Application Startup Exceptions

It has become common practice to perform tasks during an ASP.NET applications start up process. These tasks may include registering routes, configuring filters, wiring up third party dependencies, and so much more. Here is the default ASP.NET MVC application startup code pulled from the sample.

protected void Application_Start()
{ . . .

Read More

June 22, 2015

Handling Exceptions In C# Console Applications

Console applications still have a very valuable place in the life of most .NET developers. I also believe that we are about to see a console application renaissance with the recent introduction of Azure WebJobs and the excitement around Microservices. When writing any application it is important to handle exceptions, or at the very least log . . .

Read More

June 19, 2015

Charming Your Entity Framework Use

Making Sure You Don't Get Bitten

As a user, If I've learned anything about Entity Framework (EF), is that this venom spitting BEAST that needs to be respected. Utilizing it incorrectly can lead to a gaggle of wrong results, expensive executions, and crashes. On the other hand, utilizing EF correctly can yield wonderful results. This post will show the "best" . . .

Read More

June 18, 2015


All Categories: c#(2) elasticsearch(2) oss(1) home