twit...
ter
forrst...
buzz...
words
you...
tube
del.ic...
ious
last...
fm
flick...
R
linked...
in

sinatra api framework

by chris.blazek on 2012/05/18

sinatra doesn't know this ditty
I’ve been throwing around ideas for my smart home system for a while now. Mostly dreaming, but in doing so I’ve come up with little programming challenges that have given me the opportunity to design/develop real world solutions outside my daily programming scope. My current idea is to create a RESTful API in ruby with an apikey and user authentication. I would like to create it so that it wouldn’t take much for someone to drop a new “module” into the project and run with it.

I have chosen sinatra to build off of. I ran across rack_throttle which will give me the ability to identify clients by ip address, api key, cookies, headers, etc. I believe autowatcher will give me the moduler portion of the design.

I’ve got 2 really simple API calls for testing that pull stats from my thermostat to start with in the sinatra environment. This was really easy and only took a couple minutes to get up and running.

I have an iOS app that I’m building in conjunction with this project to test the api as it develops. I’m going to move the thermostat code it’s own module after I find the best way to handle that flow.

Please feel free to fork and send your pull requests. I’m open to the best practices and ways to accomplish this.

git fork git://github.com/kingbin/kgbhomeAPI.git

My install of the ruby gem memcached was throwing up all over the place. I fixed this by installing libsasl2-dev.

sudo apt-get install libmemcached-dev libsasl2-dev libmemcached-dbg
No Comments

oh sweet apache-cordova

by chris.blazek on 2012/05/7

apache cordovaMan I love finding cool new stuff. I just installed the cordova project template into XCode at the house and tomorrow @ work VS 2010 will be blessed as well.

You can find the XCode install: Here!

No Comments

SQL Profiler Setup

by chris.blazek on 2012/03/2

I use the SQL Profiler from time to time to debug SQL that’s not so obvious in code. It’s very helpful to reverse engineer 3rd party apps as well.
I just recently re-installed my development box and this tool was not installed by default. The following command will install the sql tools along with the SQL Profiler.

setup.exe /FEATURES=Tools /Q /INDICATEPROGRESS /ACTION=Install /INSTANCENAME=MSSQLSERVER /BROWSERSVCSTARTUPTYPE=Automatic /AGTSVCACCOUNT=”NT AUTHORITY\NETWORK SERVICE” /IACCEPTSQLSERVERLICENSETERMS

No Comments

time travel

by chris.blazek on 2012/02/20




I started reading Stephen King’s 11/22/63 this weekend. What a great book so far.

No Comments
warm it up chris the roof, the roof, the roof is on FIRE
Fork me on GitHub! Get free lemonade!