Skip to content

Instantly share code, notes, and snippets.

View bourroush's full-sized avatar

Guillaume Bourrousse bourroush

View GitHub Profile
@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
@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>
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"
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
/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
/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
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'
SyntaxError in Spree/products#show
Showing /Users/boris/Sites/tommyjohn/app/views/spree/products/show.html.haml where line #114 raised:
/Users/boris/Sites/tommyjohn/app/views/spree/products/show.html.haml:114: unknown regexp options - dv
/Users/boris/Sites/tommyjohn/app/views/spree/products/show.html.haml:115: syntax error, unexpected '<'
<div class="product-section description-preview">
^
/Users/boris/Sites/tommyjohn/app/views/spree/products/show.html.haml:116: syntax error, unexpected '<'
<h2>Product Description:</h2>
➜ mediaexperts-refinery git:(staging) bundle exec rake staging deploy:force
git update-ref refs/heroku_san/deploy HEAD
git push git@heroku.com:mediaexperts-staging.git --force refs/heroku_san/deploy:refs/heads/master
Everything up-to-date
git update-ref -d refs/heroku_san/deploy
heroku rake --app mediaexperts-staging db:migrate
! The requested API endpoint was not found. Are you using the right HTTP verb (i.e. `GET` vs. `POST`), and did you specify your intended version with the `Accept` header?
rake aborted!
Command failed with status (1): [heroku rake --app mediaexperts-staging db:...]
2013-11-18T15:26:23.855617+00:00 app[web.1]: ActionView::Template::Error (compile error
2013-11-18T15:26:23.855617+00:00 app[web.1]:
2013-11-18T15:26:23.855617+00:00 app[web.1]: ... "boo-yah-arrow.png", class => "boo-yah"
2013-11-18T15:26:23.855617+00:00 app[web.1]: 7: %li= link_to(menu.title, root_menu_url(menu))
2013-11-18T15:26:23.855617+00:00 app[web.1]: 8:
2013-11-18T15:26:23.861016+00:00 heroku[router]: at=info method=GET path=/ host=mediaexperts-staging.heroku.com fwd="88.172.224.105" dyno=web.1 connect=1ms service=3688ms status=500 bytes=728
2013-11-18T15:26:23.855617+00:00 app[web.1]: 9: =image_tag "boo-yah-arrow.png", class => "boo-yah"
2013-11-18T15:26:23.855617+00:00 app[web.1]: 10: = render 'shared/opts'
2013-11-18T15:26:23.849287+00:00 app[web.1]: ** [Hoptoad] Response from Hoptoad:
2013-11-18T15:26:23.855617+00:00 app[web.1]: app/views/pages/home.html.haml:15:in `compile'