Caching the API response in Rails

on Thursday, April 23rd, 2015


I’ve been looking at different methods of implementing low-level caching for the responses to my API requests. Kevin at Tealeaf recommended Faraday HTTP Cache to me. It looks great and I want to try it out, but I was hoping to see if I could get my current setup with HTTParty and Dalli working. Here […]

Thoughts on OAuth

on Tuesday, April 14th, 2015


I’ve been trying out OAuth in a dev environment. It was easy getting started by following Railscast #241. But I felt like it was going to get messy very quickly with multiple integrations and sorting out edge cases with the regular user registration. I found a wonderful blog post by David Lesches, Clean OAuth for […]

json.loads in Python

on Saturday, April 11th, 2015


I was trying to iterate through two lists of dictionaries and find the common keys, and also identify the keys that were common to the items of a third list. I couldn’t understand why my code wasn’t working: for u in unemp_data: for m in main_data: for duplicate in duplicates: if u["city"] == duplicate: if […]

The Challenges of Getting Data

on Monday, April 6th, 2015


The internet is awash in a massive amount of data and there is a lot of benefit to collecting, analyzing and presenting that data through CRUD apps and using it to solve problems or otherwise make improvements in people’s lives. It’s pretty easy when that data is presented by an API. You often get the […]

Next Page » « Previous Page