A Simple Node App to Generate Random Addresses and Geocode Them – Geocoding Results with the Google Maps API

Our address-generator CLI app is now capable of grabbing a random US address. We just need to geocode that address. In this post, we’ll leverage the Google Map Geocoding API to do exactly that!

Read MoreComment

A Simple Node App to Generate Random Addresses and Geocode Them – Parsing Results with Cheerio

When we last left off, we had our AddressCreator partially working. It makes a request to fakena.me and receives a response. Now we need to actually use that response.

Read MoreComment

Easily Add Bootstrap Alerts to Your ViewResults with ASP.NET Core

Once upon a time, I did a course on building your own application framework with ASP.NET MVC 5. One of the most popular techniques I showed in that course was how to attach a alert message to any ActionResult, so that you could consistently display success, warnings, etc. in your app. The bad news is…

Read MoreView 4 Comments

A Simple Node App to Generate Random Addresses and Geocode Them – Making Web Requests

In part 2 of our series, we’ll look at a website that returns random, real-world addresses, and we’ll see how we can use npm packages to issue requests to this site.

Read MoreComment

A Simple Node App to Generate Random Addresses – Node CLI App Basics

Every app needs random data at some point, but what if that random data also needs to be real? That’s the challenge I ran into when generating test addresses for one of my clients. Since we wanted to plot these addresses on the map, they had to be real, physical places. Oh, and I needed…

Read MoreComment

Why I Chose Angular

Choosing a front-end framework is no small task these days. There are a lot of options out there, each with pros and cons. When I decided I wanted to move to a “next gen” framework, I surprised myself by going with a framework that I initially had a lot of negative feelings about: Angular. In…

Read MoreView 1 Comment

Adding Entity Framework Code-First Type Configs from a Namespace

A recent project I worked on needed to connect to two different SQL databases using Entity Framework (version 6, not that new EF Core hotness). Out of the box, EF can only bulk-load code-based mappings from an entire assembly, not from a single namespace within an assembly. That didn’t work on this project since all…

Read More

Simulate Slow Web API Requests Using an Action Filter in ASP.NET Web API

How much time do you spend on your SPA application’s “loading” screens? What about their “failed to load” screens? These things are important in a normal SPA, but they’re even more important in a mobile app built with PhoneGap or Cordova. Yet these important UX issues are easily overlooked as we build our applications. With…

Read More

Dealing with Horrid, No-Good, Very-Bad APIs Using JSON.NET

I already mentioned how I’m working on a big data integration project. Sadly, one of the systems involved exposes what I would describe as a “less-than-ideal” API. It’s buggy, poorly-documented… I could go on, but probably shouldn’t. 😃 But the big thing that got me was the lack of consistency. Not just across endpoints, but…

Read More

Working with Large JSON Blobs Sanely Using SQL Server

Have you ever wished that you could query a large JSON document? I wished that very thing recently while working with a 3rd party API. One particular API call was returning mountains of data, and I needed to get a list of distinct values of a particular property buried within the objects of this JSON…

Read More