Category Archives: Uncategorized
How to specify the firefox binary for Selenium Webdriver under node.js
My test suite was failing because selenium-webdriver 2.41.0 doesn’t support sendKeys for <input type=’number’> with Firefox 29. But downgrading my system Firefox to an older version just to run a test suite seems crazy. Why not just download an older … Continue reading
How to get an email every time your node.js app logs an error
This was surprisingly hard to Google for, and docs left a bit to be desired. So here’s how I got my production Node.js app to send me an email whenever it logs an error. 1. Use log4js. I picked this … Continue reading
Mocking Persona (browserid) in node using zombie.js
I wanted to be able to run headless integration tests in a nodejs app that require users to log in. I’m using Mozilla Persona for authentication, which means that a full login and authorization workflow is a little complex: Given … Continue reading
Getting access to a phone’s camera from a web page
For a web application I’m developing, I wanted to be able to allow mobile users to seamlessly push a button on the web page, take a photo, and post that photo to the page. Since the W3C draft specification for … Continue reading
The real danger of data consolidation
To all the apathetic defeatists who won’t delete their search data: your threat model is wrong. Yes, it sucks that your personal details are already owned and exploited by major corporations. And I agree, aggressively protecting yourself against this may … Continue reading
Review of 4 Django Social Auth apps
TL;DR: I tried out four different Django social authentication and registration packages. The only one that worked out of the box was django-allauth, though django-social-auth looks like it could be promising. django-allauth is the only one that supports username/password registration … Continue reading