whateverthing.com

Portfolio and Technology Blog
by Kevin Boyd

My First Ruby Steps

Changes are afoot: I’ve been given the opportunity to learn Ruby on Rails on a project at work. It’s been a while since I started a new language, and my last attempt at Python kind of fizzled, so I’m hoping that Ruby will be easier to pick up.

So Far, So Good

I’ve had some exposure to Ruby in the past, such as with Puppet modules and Capistrano deployments, but until now I haven’t really concentrated on understanding the language itself. Compared to PHP, it’s lean and clean. I’m definitely liking what I’m seeing.

Read more of this post »

July 17, 2014

Tags: dev, development, opinion, environment, ruby, rails



Searching For Nearby Places In Silex

Let’s say you’re building a mobile app in Silex (a PHP microframework), and you want to add location-based search to your features. You’ve got a data set with a bunch of street addresses, like this CSV that lists all facilities in British Columbia that are licensed to sell or produce liquor.

A quick example:

NameAddressCity
Joe's Beer Shack125 Nowhere LaneVictoria
The Whinery420 Toker StreetEsquimalt
Spinnakers308 Catherine StreetVictoria

Not that I’m thinking of creating a “nearest booze” app. I’ve got better things on my mind. Anyway, that’s off topic. Uh oh! Now I’ve decided to make the app.

I’m going to call it DrinkyDrinkyThing.

Read more of this post »

March 18, 2014

Tags: dev, development, coding, silex, howto, composer, gps, geocoder, gis, latitude, longitude, geolocation