GraphQL | A query language for your API

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.

Source: GraphQL | A query language for your API

Randall Degges – Why I Love Basic Auth

Let’s talk about Basic Auth:

  • It’s a well and clearly defined specification.
  • It’s been around since ~1996.
  • It’s super simple.

Here’s the short version of how it works.

  • You are a developer.
  • You have an API key pair: an API Key ID and an API Key Secret. Each of these is a randomly generated string (usually a uuid).
  • To authenticate against an API service, all you need to do is put your credentials into the HTTP Authorization header.

Source: Randall Degges – Why I Love Basic Auth

Seldon is an open source recommendation platform

Seldon is made up of many components that work together to deliver the best recommendations. Roughly, all user actions are captured via the REST API and streamed to logs. Those logs are processed in batch and new user models are delivered to the API Server. Then recommendations are delivered via the REST API.

The code for Seldom is on Github at

Location, Location, Location! Now I get it.

I’ll admit that for the longest time I didn’t get the mobile world’s fascination with location. It seemed like one of those things that mobile developers did to push ads on me while I was in a grocery store or alert people I vaguely knew to my presence in a museum. Most implementations left me feeling underwhelmed. OK, so my phone knows where I’m at. Then what?

I’m coming around on location-based tech now as I’ve been working with a bit of it for a side project I’ve got going. The light bulb came on while writing a little web app that can tell me where I am and give me some basic info about that place. Turns out that once you peel off the veneer of constant ad generation using location in web apps (and, by extension, mobile apps) is fascinating from the developers point of view. Knowing where someone is provides a hook for offering up a lot of useful data that isn’t about selling things or letting near strangers know where you are.

And it isn’t that hard to do.

A good place to start is with the Google Maps JavaScript API. The developer site provides everything you need to get going with adding interesting location-based features to your apps. I tend to use JQuery when I have to deal with JavaScript and there is an excellent demo page of JQuery Mobile integrations with the Google Maps API with many useful examples.

I’ve put together a little example page for you to try. You’ll need to give it access to your browser location data and then you’ll get some basic location information. I find it interesting that in testing the most accurate location comes from mobile devices. The location data returned by laptop and desktop browsers is a lot less accurate, seemingly giving more weight to your IP address than other factors.