rake task for extracting database contents

This is the inverse of db:fixtures:load. I modified the version I found to take the FIXTURES environment variable as a parameter. Saved as gist 440058. # extract_fixtures.rake # by Paul Schreiber <paulschreiber at gmail.com> # 15 June 2010 # # I got this from Peter Gulezian <http://metoca.net/> # Looks like another version is here # […]

Handling Rails errors: custom error pages, logging, notification

I wanted to improve error handling In my Rails applications. Specifically, I wanted three things: a custom error page that matched the site's design the errors to appear in the error log (production.log) email notification of server errors Note: these steps are for Rails 2.3.2–2.3.8. Other versions may require different instructions. Custom error page Normally, […]

DNS weirdness

smokinhotprogressives.com was changed from 204.15.194.116 to .118. The change hadn’t propagated yet. $ host smokinhotprogressives.com smokinhotprogressives.com has address 204.15.194.116 smokinhotprogressives.com mail is handled by 50 shrub.ca. $ host secure.smokinhotprogressives.com secure.smokinhotprogressives.com is an alias for smokinhotprogressives.com. smokinhotprogressives.com has address 204.15.194.118 smokinhotprogressives.com mail is handled by 50 shrub.ca. $ host smokinhotprogressives.com smokinhotprogressives.com has address 204.15.194.118 smokinhotprogressives.com mail […]

Privacy by Design

The latest CDT Policy Post discusses the importance Privacy by Design. They extensively reference Anne Cavoukian (Ontario’s kickass Privacy Commissioner and author of Who Knows). The seven principles of Privacy by Design are: Proactive, not Reactive; Preventative, not Remedial Privacy as the Default Privacy Embedded into Design Full Functionality – Positive-Sum, not Zero-Sum End-to-End Lifecycle […]

MAPLight’s awesome Money Near Votes tool

If you haven’t heard of MAPLight.org before, here’s what they do (which is fantastic): MAPLight.org, a groundbreaking public database, illuminates the connection between campaign donations and legislative votes in unprecedented ways. Elected officials collect large sums of money to run their campaigns, and they often pay back campaign contributors with special access and favorable laws. […]