Skip to content

Instantly share code, notes, and snippets.

rvm rubies
ree-1.8.7-2010.02 [ x86_64 ]
ruby-1.8.7-p299 [ x86_64 ]
ruby-1.8.7-p302 [ x86_64 ]
ruby-1.9.2-head [ x86_64 ]
=> ruby-1.9.2-p0 [ x86_64 ]
ruby-1.9.2-rc2 [ x86_64 ]
Well here is what my rvm info looks like. Maybe you could just rvm use 1.9.2-p0
system:
uname: "Darwin Eric-Allams-MacBook-Pro.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386"
zsh: "zsh 4.3.9 (i386-apple-darwin10.0)"
bash: "GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
rvm:
version: "rvm 0.1.47 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]"
function(count){
console.log("called " + count + "times");
arguments.callee(count+1);
}(1);
class ZombiesController < ApplicationController
before_filter :find_zombie
before_filter :check_for_tweets
def show
render :action => :show
end
def find_zombie
@zombie = Zombie.find params[:id]

Our position has been and remains that the logs include sensitive personal information with no bearing on Wikileaks, and it would serve no purpose to publish them at this time.

That doesn’t mean we’ll never publish them, but before taking an irrevocable action that could harm an individual’s privacy, we have to weigh that person’s privacy interest against news value and relevance.

This is a standard journalistic balancing test — not one that we invented for Manning. Every experienced reporter of serious purpose recognizes this, and the principal is also embodied in the Society of Professional Journalists’ code of ethics:

Recognize that gathering and reporting information may cause harm or discomfort. Pursuit of the news is not a license for arrogance…. Only an overriding public need can justify intrusion into anyone’s privacy. Show good taste. Avoid pandering to lurid curiosity.

Even Greenwald believes this … sometimes. When The New York Times ran an entirely appropriate and well reported profile of W

@ericallam
ericallam / gist:896364
Created March 31, 2011 13:45
Download Merlin Mann's Webstock 2011 talk as an mp4
curl -O http://2009.r2.co.nz/20110217/merlin-m.mp4
def lower_bound_confidence_interval
correct_attempts = self.attempts.correct.count
total_attempts = self.attempts.count
return 0 if total_attempts.zero?
z = 1.644853646608357
phat = 1.0 * correct_attempts / total_attempts
set :rails_env, "staging"
set :application, "preschool.jqueryair.com"
set :server_name, "preschool.jqueryair.com"
set :deploy_to, "/var/rails/#{application}"
role :app, server_name
role :web, server_name
role :db, server_name, :primary => true
@ericallam
ericallam / gist:1019446
Created June 10, 2011 18:35
How to log all queries for a PostgreSQL homebrew install on OS X

Open the postgresql.conf config file:

$> mate /usr/local/var/postgres/postgresql.conf

Uncomment the line with 'log_destination' and set it to 'syslog'

log_destination = 'syslog'

Open the syslog config:

@ericallam
ericallam / gist:1043244
Created June 23, 2011 18:41
coffeescript in your rubies
Put this in the ruby language rule in the textmate bundle editor
{ name = 'string.unquoted.embedded.coffeescript.ruby';
contentName = 'text.coffeescript.embedded.ruby';
comment = 'heredoc with embedded COFFEESCRIPT and indented terminator';
begin = '(?><<-("?)((?:[_\w]+_|)COFFEESCRIPT)\b\1)';
end = '\s*\2$';
beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.ruby'; }; };
endCaptures = { 0 = { name = 'punctuation.definition.string.end.ruby'; }; };
patterns = (