This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I ran "rvm update 1.8.7-p334 1.8.7-p352" and started encountering | |
# some errors with certain executables. Below I demonstrate how | |
# some gem executables work and some don't | |
$ rake | |
bash: /home/eric/.rvm/gems/ruby-1.8.7-p352@ykiw/bin/rake: /home/eric/.rvm/rubies/ruby-1.8.7-p334/bin/ruby: bad interpreter: No such file or directory | |
# showing my rvm path for gems, replace with yours in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ykiw-1.8.7 Eric-Ubuntu:~/Desktop/Dropbox/ykiw3 eric (master) $ rails s | |
/home/eric/.rvm/gems/ruby-1.8.7-p352@ykiw/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require': /home/eric/.rvm/gems/ruby-1.8.7-p352@ykiw/gems/texticle-2.0/lib/texticle.rb:44: syntax error, unexpected tIDENTIFIER, expecting tAMPER (SyntaxError) | |
__send__(method, *search_terms, exclusive) | |
^ | |
/home/eric/.rvm/gems/ruby-1.8.7-p352@ykiw/gems/texticle-2.0/lib/texticle.rb:72: undefined (?...) sequence: /^search_by_(?<columns>[_a-zA-Z]\w*)$/ | |
/home/eric/.rvm/gems/ruby-1.8.7-p352@ykiw/gems/texticle-2.0/lib/texticle.rb:80: undefined (?...) sequence: /^search_by_(?<columns>[_a-zA-Z]\w*)$/ | |
from /home/eric/.rvm/gems/ruby-1.8.7-p352@ykiw/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require' | |
from /home/eric/.rvm/gems/ruby-1.8.7-p352@ykiw/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each' | |
from /home/eric/.rvm/gems/ruby-1.8.7-p352@ykiw/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined local variable or method `request' for #<ActionView::Helpers::FormBuilder:0x7fd39d2120f0> (ActionView::Template::Error) | |
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-recaptcha-0.6.0/lib/rack/recaptcha/helpers.rb:37:in `recaptcha_tag' | |
./app/views/registrations/new.html.erb:19:in `_app_views_registrations_new_html_erb___1988303414_70273426200640_0' | |
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/helpers/capture_helper.rb:40:in `capture_without_haml' | |
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer_without_haml_xss' | |
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/haml-3.1.2/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer' | |
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/helpers/capture_helper.rb:40:in `capture_without_haml' | |
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/haml-3.1.2/lib/haml/he |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the following line will cause this error in my controller | |
# @post = Post.includes(:user, :subtopic => :category).paginate(:page =>1, :order => 'categories.category_name ASC', :conditions => ["posts.flags_count < ?", Flag.flag_threshold]) | |
Hirb Error: PGError: ERROR: column posts.users.display_name does not exist | |
LINE 1: ...s_count" AS t0_r7, "posts"."popularity" AS t0_r8, "posts"."u... | |
^ | |
: SELECT "posts"."id" AS t0_r0, "posts"."post_content" AS t0_r1, "posts"."user_id" AS t0_r2, "posts"."subtopic_id" AS t0_r3, "posts"."created_at" AS t0_r4, "posts"."updated_at" AS t0_r5, "posts"."votes_count" AS t0_r6, "posts"."flags_count" AS t0_r7, "posts"."popularity" AS t0_r8, "posts"."users.display_name" AS t0_r9, "posts"."subtopics.name" AS t0_r10, "posts"."categories.category_name" AS t0_r11, "users"."id" AS t1_r0, "users"."email" AS t1_r1, "users"."encrypted_password" AS t1_r2, "users"."password_salt" AS t1_r3, "users"."reset_password_token" AS t1_r4, " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extend_console 'rails3', defined?(ActiveSupport::Notifications), false do | |
$odd_or_even_queries = false | |
ActiveSupport::Notifications.subscribe('sql.active_record') do |*args| | |
$odd_or_even_queries = !$odd_or_even_queries | |
color = $odd_or_even_queries ? ANSI[:CYAN] : ANSI[:MAGENTA] | |
event = ActiveSupport::Notifications::Event.new(*args) | |
time = "%.1fms" % event.duration | |
name = event.payload[:name] | |
sql = event.payload[:sql].gsub("\n", " ").squeeze(" ") | |
puts " #{ANSI[:UNDERLINE]}#{color}#{name} (#{time})#{ANSI[:RESET]} #{sql}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2-p180@async-rails Eric-Ubuntu:~/Desktop/Dropbox/github-forks/rack-recaptcha eric (master) $ bundle show | |
Gems included by the bundle: | |
* bundler (1.0.15) | |
* fakeweb (1.3.0) | |
* json (1.5.3) | |
* rack (1.3.2) | |
* rack-recaptcha (0.6.2 9d1922d) | |
* rack-test (0.5.7) | |
* riot (0.12.4) | |
* rr (1.0.3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/eric/.rvm/gems/ruby-1.8.7-p299@rails3/gems/oa-facebook-0.2.3/lib/omniauth/strategies/facebook/view_helper.rb:4: /home/eric/.rvm/gems/ruby-1.8.7-p299@rails3/bundler/gems/omniauth-351cee1c2e9e/oa-oauth/lib/omniauth/strategies/oauth2/facebook.rb:48: odd number list for Hash (SyntaxError) | |
...ssion['access_token'], { mode: :query, param_name: 'access_t... | |
^ | |
/home/eric/.rvm/gems/ruby-1.8.7-p299@rails3/bundler/gems/omniauth-351cee1c2e9e/oa-oauth/lib/omniauth/strategies/oauth2/facebook.rb:48: syntax error, unexpected ':', expecting '}' | |
...ssion['access_token'], { mode: :query, param_name: 'access_t... | |
^ | |
/home/eric/.rvm/gems/ruby-1.8.7-p299@rails3/bundler/gems/omniauth-351cee1c2e9e/oa-oauth/lib/omniauth/strategies/oauth2/facebook.rb:48: syntax error, unexpected '}', expecting kEND | |
...y, param_name: 'access_token'} ) | |
^ | |
/home/eric/.rvm/gems/ruby-1.8.7-p299@rails3/bundler/gems/omniauth-351cee1c2e9e/oa-oauth/lib/omniauth/strate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started GET "/auth/facebook?perms=email,offline_access" for 127.0.0.1 at Fri Sep 23 19:10:06 -0700 2011 | |
Started GET "/auth/facebook/callback?code=AQCCccoRQU404n7X4IGJHX_PARNJcOzAZNKxgRi4XRUlmZocwRkfF_Eie3H1Ze415sEDfZWTOYLxeaBXPLLkIhiLHBtDs7CHi6RUfN0CMC9VY4pD-Mj9M0-9dAytaQyc6vUkeUmhgRtDlFE7yNwQmEJN__fIvetAIc9neeyGHTcjBg" for 127.0.0.1 at Fri Sep 23 19:10:07 -0700 2011 | |
Started GET "/auth/failure?message=invalid_credentials" for 127.0.0.1 at Fri Sep 23 19:10:07 -0700 2011 | |
Processing by AuthenticationsController#failure as HTML | |
Parameters: {"message"=>"invalid_credentials"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[email protected] /home/eric/Desktop/Dropbox/nodejs/nodepad2/nodepad | |
├─┬ [email protected] | |
│ ├─┬ [email protected] | |
│ │ ├── [email protected] | |
│ │ └── [email protected] | |
│ └── [email protected] | |
├── [email protected] | |
├─┬ [email protected] | |
│ ├── [email protected] | |
│ ├── [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bin/bash | |
# Converts jst.ejs files into jst.ejs.haml files | |
# Adapted from: http://shifteleven.com/articles/2008/06/08/converting-erb-to-haml-snippet | |
# | |
# Run this script from the root of your Rails project directory (or other language of your choice) | |
# | |
# It will output one line for each file it'll convert. Look the list over and verify that everything | |
# looks right. Once you're certain (I suggest doing a backup/git commit at this point), run: | |
# | |
# jst2haml | bash |
OlderNewer