Pac-Man ate my RAID

[>………………..]  recovery =  2.5% (3836544/152247936) finish=35.1min speed=70370K/sec [>………………..]  recovery =  3.0% (4642752/152247936) finish=37.5min speed=65481K/sec [===>……………..]  recovery = 15.2% (23276800/152247936) finish=32.2min speed=66725K/sec [===>……………..] recovery = 18.4% (28154624/152247936) finish=28.9min speed=71392K/sec [====>…………….] recovery = 21.5% (32802560/152247936) finish=28.6min speed=69451K/sec [=====>……………] recovery = 28.3% (43166336/152247936) finish=33.4min speed=54268K/sec [======>…………..] recovery = 33.6% (51163008/152247936) finish=25.9min speed=64964K/sec [================>….] recovery = 84.7% (129098432/152247936) finish=7.9min …

Excel is not a database

The New Organizing Institute Education Fund, in conjunction with the Funders’ Committee for Civic Participation released the 2nd Annual Survey of Civic Engagement Technology. The report is full of interesting information on how nonprofits (mis)(ab)use technology to manage their organizations. APIs Page 9 of the report discusses data integration: Data Integration Many of the data …

Inspired by Cory Booker

The closing plenary of the Personal Democracy Forum — an hour long — was a great discussion between Cory Booker, Arianna Huffington, RNC tech chair Saul Anuzis, PDF founder Andrew Rasiej, NYT Times tech writer Nick Bilton and Tim O’Reilly. Cory Booker was by far the highlight. This man is inspiring. “The biggest thing we’re …

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 # …

TIFF file dimensions in Ruby

Using Ruby, I wanted to get the dimensions of image files without using a full-on image library. I found handy code for PNG, BMP, GIF and JPEG and adapted the JPEG code for TIFF. Saved as gist 431893. # TIFF.rb # by Paul Schreiber <paulschreiber at gmail.com> # 09 June 2010 # # Based on …

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, …

Xcode and the run-on sentence

Last night, I ran Software Update and updated Xcode. Here’s the description Apple provided: Xcode 3.2.2 is an update release of the developer tools for Mac OS X. This release provides bug fixes in gdb, Interface Builder, Instruments, llvm-gcc and Clang optimizer, Shark, and Xcode and must be installed on Mac OS X 10.6.2 Snow …

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 …