Skip to content

Instantly share code, notes, and snippets.

View bourroush's full-sized avatar

Guillaume Bourrousse bourroush

View GitHub Profile
ArgumentError - comparison of Class with Class failed:
twitter (4.8.1) lib/twitter/error.rb:15:in `block in descendants'
twitter (4.8.1) lib/twitter/error.rb:15:in `descendants'
twitter (4.8.1) lib/twitter/error.rb:10:in `errors'
twitter (4.8.1) lib/twitter/response/raise_error.rb:20:in `on_complete'
faraday (0.8.8) lib/faraday/response.rb:9:in `block in call'
faraday (0.8.8) lib/faraday/response.rb:63:in `on_complete'
faraday (0.8.8) lib/faraday/response.rb:8:in `call'
faraday (0.8.8) lib/faraday/response.rb:8:in `call'
faraday (0.8.8) lib/faraday/response.rb:8:in `call'
/Users/boris/src/quarterly/.bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:722:in `build_app!'
/Users/boris/src/quarterly/.bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:595:in `init_worker_process'
/Users/boris/src/quarterly/.bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:615:in `worker_loop'
/Users/boris/src/quarterly/.bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:500:in `spawn_missing_workers'
/Users/boris/src/quarterly/.bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:511:in `maintain_worker_count'
/Users/boris/src/quarterly/.bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:277:in `join'
/Users/boris/src/quarterly/.bundle/ruby/1.9.1/gems/unicorn-4.6.3/bin/unicorn:126:in `<top (required)>'
/Users/boris/src/quarterly/bin/unicorn:16:in `load'
/Users/boris/src/quarterly/bin/unicorn:16:in `<main>'
E, [2013-10-28T16:22:19.476763 #85802] ERROR -- : reaped #<Process::Status: pid 86144 exit 1> worker=0
/opt/boxen/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/testing/mochaing.rb:5: warning: already initialized constant Mocha
=> Booting WEBrick
=> Rails 3.2.14 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/opt/boxen/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in `initialize': could not connect to server: Connection refused (PG::Error)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 15432?
could not connect to server: Connection refused
84 ?? Ss 0:00.03 /bin/sh /opt/boxen/homebrew/bin/mysqld_safe --defaults-file=/opt/boxen/config/mysql/my.cnf
240 ?? S 0:22.92 /opt/boxen/homebrew/Cellar/mysql/5.5.20-boxen2/bin/mysqld --defaults-file=/opt/boxen/config/mysql/my.cnf --basedir=/opt/boxen/homebrew/Cellar/mysql/5.5.20-boxen2 --datadir=/opt/boxen/data/mysql --plugin-dir=/opt/boxen/homebrew/Cellar/mysql/5.5.20-boxen2/lib/plugin --log-error=/opt/boxen/log/mysql/error.log --pid-file=/opt/boxen/data/mysql/localhost.pid --socket=/opt/boxen/data/mysql/socket --port=13306
30522 ?? S 0:00.02 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/Guillaumes-MacBook-Pro.local.pid
30595 ?? S 0:00.19 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/Guillaumes-MacBook-Pro.local.err --pid-file=/usr/local/mysql/data/Guillaumes-MacBook-Pro.local.pid
31007
bay_area:
farmers:
slug: farmers-markets
title: Farmers Markets
address: Various locations
kiosk:
slug: kiosk
title: Kiosk
address: "315 Linden St.<br/>San Francisco, CA 94102"
@bourroush
bourroush / gist:5658091
Created May 27, 2013 16:59
Wrong value displayed
<select class="select optional" id="search_request_division_eq" name="search_request[division_eq]"><option value="">Toutes les divisions</option>
<option value="Directeurs des ventes">Sales Managers</option>
<option value="Distributeurs">Distributors</option>
<option value="Agents de vente" selected="selected">Sales Agents</option>
</select>
@bourroush
bourroush / gist:5656717
Created May 27, 2013 12:03
Here is a gist of my logs from clicking Edit category image, to when I click Insert the image. The popup close right after, so I cannot click the Save category button.
cache: [GET /refinery/images/insert?callback=image_picker_577343245967516404_changed&dialog=true&height=510&width=866] miss
cache: [GET /refinery/images/insert?callback=image_picker_577343245967516404_changed&dialog=true&height=510&width=866] miss
Started GET "/refinery/images/insert?callback=image_picker_577343245967516404_changed&dialog=true&height=510&width=866" for 127.0.0.1 at 2013-05-27 13:59:23 +0200
Processing by Refinery::Admin::ImagesController#insert as HTML
Parameters: {"callback"=>"image_picker_577343245967516404_changed", "dialog"=>"true", "height"=>"510", "width"=>"866", "locale"=>:en}
Refinery::Role Load (0.4ms) SELECT "refinery_roles".* FROM "refinery_roles" WHERE "refinery_roles"."title" = 'Refinery' LIMIT 1
Refinery::User Load (0.4ms) SELECT "refinery_users".* FROM "refinery_users" INNER JOIN "refinery_roles_users" ON "refinery_users"."id" = "refinery_roles_users"."user_id" WHERE "refinery_roles_users"."role_id" = 1
Refinery::User Load (0.2ms) SELECT "refinery_users".* FROM "re