Author Archives: David Rust-Smith

Using Docker with cv2.imshow and Mac

Download and install Quartz. On newer Macs they no longer shipped with X11. Thanks to a user in the comments in this blog post I found this recipe open -a XQuartz ip=$(ifconfig en0 | grep inet | awk ‘$1==”inet” {print $2}’) xhost + $ip # container being used: dymat/opencv docker run -it –rm -e DISPLAY=$ip:0 -v […]

Continue reading →
Post Tagged with , , , , ,

Connecting to host port from Docker container

In my case I wanted to connect to a MySQL database that my laptop was SSH’d to. # I had port forwarding in my ssh connection to fwd port 3306, the mysql port. cat ~/.ssh/config Host memsql HostName User ubuntu LocalForward 3306 127.0.0.1:3306 # on my laptop I start the ssh connection (use -N if […]

Continue reading →
Post Tagged with , ,

CSV to VR pipeline

I recently built an open source CSV to VR / 360 video pipeline with my good friend Nick Breen. The documentation on GitHub repo is pretty detailed so it should be easy to start rendering 3d videos of your own data sets! https://github.com/davidrs/vr-dataviz Let me know if you have any issues getting it up and […]

Continue reading →

Ottawa Wave Makers Podcast

There is an awesome new challenge called Ottawa’s Wave Makers. The challenge is put together by some of my favourite people: Hub Ottawa, Just Change, Bullfrog Power, Natural Step and the WWF. The idea is to encourage grass root efforts to educate and spur action around the preservation and improvement of Canada’s oceans. This challenge […]

Continue reading →
Post Tagged with , ,

Arduino and Xbox Kinect Robot

My good friend Patrick the robot is back! This time I have hooked him up to my computer via his Arduino and Johnny-Five (The nodeJS lib for Arduino serial communication). Then I’m using my old xbox kinect to track my movement so Patrick follows along. How it works 1. I hook up the Arduino to my […]

Continue reading →
Post Tagged with , , , ,

SinonJS FakeServer with Browserify or Node

If you’ve tried using NPM’s SinonJS Fake Server with Browserify or Node you will experience this bug ( https://github.com/cjohansen/Sinon.JS/issues/319 ): FakeServer is not wrapped for proper ‘require’ usage. If this ticket’s status has changed to resolved, that is probably the best solution and you can stop reading. Otherwise I found that the minified version from a […]

Continue reading →
Post Tagged with , ,

How to build an app fast

This week I launched a new web app called CraigIt (http://davidrs.github.io/craigit/client/) CraigIt is a simple idea: hyper-local notifications for items you want on CraigsList. This blog post will explain how I built the entire app, front-end, back-end, design, and mild marketing in just a week. Tech Stack Used JavaScript with jQuery and Twitter Bootstrap 3 […]

Continue reading →

Open Data Sources

This blog post serves to be a living document containing links to various open data sources. Similair Articles by Others: 30 Places to Find Open Data on the Web Some Excellent Open Data Sources Misc Datastores Socrata: https://opendata.socrata.com/dataset/Socrata-Customer-Spotlights/6wk3-4ija Factual: Locations: http://www.factual.com/data/t/places Programmable Web: http://www.programmableweb.com/apis InfoChimps: http://www.infochimps.com/marketplace Google Open Data Sets: http://www.google.com/publicdata/directory Music and Lyrics: http://labrosa.ee.columbia.edu/millionsong/ AggData: http://www.aggdata.com/all-aggdata BestBuy: https://bbyopen.com/ Lending Club: loan data: https://www.lendingclub.com/info/download-data.action […]

Continue reading →
Post Tagged with , , , ,

How to setup a PhoneGap 3.4 App in 5 min

As of about a year ago I switched over from native development to almost exclusively PhoneGap. It makes development faster, easier, and more fun. This article outlines how to create a fast and beautiful PhoneGap 3.4 app in 5 min. The steps should be the same for other 3.X versions of PhoneGap. You can also use […]

Continue reading →

Should You build Phonegap or Native?

Most start-ups and independent developers run into the same question: Should I use PhoneGap or native to develop my app? Short answer I chose PhoneGap and I’m happy with the results. PhoneGap used to be slow, but v3.0 , released mid 2013, is fast. On modern devices the performance is comparable to native. Final result, […]

Continue reading →