Khalid Abuhakmeh

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

The ASP.NET Apocalypse Is Coming

Oh, what a day... what a lovely day!

I am excited about ASP.NET 5, and so are many of my team members. As excited as I am, I am just as concerned about the new landscape on the horizon. The biggest question isn't wether Microsoft and the ASP.NET team will deliver, but whether the Open Source (OSS) ecosystem will.

The majority of packages on are written for . . .

Read More

October 18, 2015

Finding The Second Lowest Item In A List Using C# and F#

I cam across an interesting problem where I needed to find the second lowest item in a list. You may think this is a simple problem with a simple solution:

Sort the list in ascending order, and take the second item from the list. Done! (Mic Drop)

The knee-jerk solution described above would work for a list of . . .

Read More

October 02, 2015

Using F# To Calculate Health Insurance Tax Subsidy Rates

When the Affordable Care Act was signed into law by President Obama, the U.S. government set aside financial incentives for families that qualified for help. In the Ritter Insurance Marketing quote engine, we help consumers determine if they qualify for help, and how much they could potentially save. None of this information is secret, as it . . .

Read More

September 28, 2015

LINQPad Is A Must Have For .NET Developers

This week has been a busy one for the team and I. Our API is in the public and has been executing some complex LINQ queries. After a data update we started seeing this issue, which may be familiar to any Entity Framework user.

The cast to value type 'System.Int32' failed because the materialized value is null. Either the . . .

Read More

September 24, 2015

Submitting A Dictionary To An ASP.NET MVC Action

Model Binding A Dictionary Is Easy :)

When building line of business applications, requests for saving dynamic key/value pairs are inevitable. The "best" way to store dynamic data is in a Dictionary, the mother of all flexible data structures. This post will show you the minimum required to post a dictionary to your ASP.NET MVC action so you can meet your business . . .

Read More

September 10, 2015

Centroids Are Not Enough For Geo-Location

In a previous post, I described how to use the MapQuest API and retrieve a user's current address via a reverse lookup. Almost immediately afterwards, MapQuest changed the terms of their API and now they are looking to implement a token based authorization system to prevent abuse. I thought:

Why not implement my own reverse . . .

Read More

September 02, 2015

Selfie Quote - Using Microsoft's Oxford API To Provide Health Quotes

For the past several months, we have been working on a health quote engine. This quote engine is designed to give individuals and their families a quote for specific health insurance products. At Ritter Insurance Marketing, we imagine a future where you do not have to go through the arduous task of entering your entire family's . . .

Read More

September 01, 2015

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