Skip to content

Instantly share code, notes, and snippets.

View keithpitty's full-sized avatar

Keith Pitty keithpitty

View GitHub Profile
'WeatherController When dealing with weather with controller isolated from views should be successful' FAILED
expected success? to return true, got false
./spec/controllers/weather_controller_spec.rb:11:
== AddCategoryToAssets: migrating ============================================
-- add_column(:assets, :category_id, :integer)
-> 0.1421s
-- add_index(:assets, :category_id)
-> 0.0130s
== AddCategoryToAssets: migrated (0.1555s) ===================================
== AddPermalinkToCategories: migrating =======================================
-- add_column(:categories, :permalink, :string, {:limit=>255})
-> 0.0419s
getInitialTab : function() {
var active = $$(".active-tab");
if(active.length) {
return active.first().down();
} else {
if(document.location.href.match(/#(\w.+)/)) {
var loc = RegExp.$1;
var elm = this.menu.find(function(value) { return value.href.match(/#(\w.+)/)[1] == loc; });
return elm || this.menu.first();
} else {
$ sprinkle -c -v -t -s config/install.rb
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require': super: no superclass method `require' (NoMethodError)
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/module/attribute_accessors.rb:38:in `to_proc'
from config/install.rb:4:in `each'
from config/install.rb:4:in `sprinkle'
from /usr/local/lib/ruby/gems/1.8/gems/sprinkle-0.2.6/bin/sprinkle:86
from /usr/local/bin/sprinkle:19:in `load'
from /usr/local/bin/sprinkle:19
LAST SNIPPET OF OUTPUT FROM RUNNING sprinkle -c -v -s config/install.rb
--> Installing passenger for roles: app
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.9/lib/capistrano/command.rb:173:in `process!': failed: "sh -c 'sudo -p '\\''sudo password: '\\'' /etc/init.d/apache2 restart'" on example.com (Capistrano::CommandError)
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.9/lib/capistrano/command.rb:133:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.9/lib/capistrano/configuration/actions/invocation.rb:173:in `run_tree'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.9/lib/capistrano/configuration/connections.rb:172:in `execute_on_servers'
from /usr/local/lib/ruby/gems/1.8/gems/sprinkle-0.2.6/bin/../lib/sprinkle/verify.rb:98:in `each_slice'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.9/lib/capistrano/configuration/connections.rb:160:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.9/lib/capistrano/configuration/connections.rb:160:in `each_slice
I'm having some difficulties installing rubies with rvm. Even though I had no problems installing 1.9.1,
all my attempts to install 1.8.6 or 1.8.7 have failed with compile errors associated with readline.
After my attempts with rvm install 1.8.x failed, I tried the suggestions in
http://rvm.beginrescueend.com/troubleshooting/ to no avail. So I've tried:
> rvm install 1.8.x
> rvm install 1.8.x -C --enable-shared=yes,--with-readline-dir=/usr/local
# order.rb
# == Schema Information
#
# Table name: orders
#
# id :integer(11) not null, primary key
# date_ordered :date
class Order < ActiveRecord::Base
keithpitt = RubyHacker.with_attributes({
performs_magic_tricks: true,
beard_profile: 'recently nearly removed it by accident',
perth_resident_status: 'recently moved there',
open_source_contributor_status: 'awesome'
})
keithpitty = RubyHacker.with_attributes({
performs_magic_tricks: false,
beard_profile: 'first grew a beard before keithpitt was born',
@keithpitty
keithpitty / Install brew and git.md
Created June 23, 2011 00:37
Instructions for installing brew and git

Dear kind yet obviously ignorant sir,

This is Keith's 17 year old daughter. It is clear to me that in order to make such an outrageous and misinformed statement, you must be unaware of both the physical and mental requirements of equestrian sports, including dressage.

a) First and foremost, the Olympic Games by definition is an international athletic competition. If the gruelling equestrian discipline of dressage was NOT a sport, it would not have held a place in the Olympics since 1912.

b) Olympic-level dressage is considered to be the highest level of training and education that a horse can achieve - like any other sport, decades of effort and determination are put into attaining such a high level of performance - of BOTH horse AND rider!

c) Both horse and rider are athletes, not one without the other. Equestrian sports come down to teamwork - both horse and rider need to be equally as good in order to place and progress. Is soccer not a sport because you have teammates helping you? Were the recipients