Skip to content

Instantly share code, notes, and snippets.

View hecbuma's full-sized avatar

Hector Bustillos hecbuma

View GitHub Profile
require 'my_cheap_pretty_print'
# If the 'puts' syntax confuses you please look at my cheap pretty print for some help
require 'metaclass_mp'
class Greeter
def initialize(name)
@name = name
end
def greet
puts [__LINE__, self, self.class, "Inside an greet instance method"]
// this the error that Im getting. I have pg mongo and all the gems that I need installed correctly
//using ruby 1.8.7 and rails 3
C:\Users\hecbuma-lap\projects\xxxx>rails s
WARNING: using the built-in Timeout class which is known to have issues when use
d for opening connections. Install the SystemTimer gem if you want to make sure
the Redis client will not hang.
=> Booting WEBrick
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
Started GET "/pages/users/hecbuma/wizard_end" for 127.0.0.1 at Tue Apr 19 12:23:40 -0500 2011
MONGODB music_coda_development['groups_categories'].find({})
MONGODB music_coda_development['settings'].find({:_id=>"average_ages"})
MONGODB music_coda_development['users'].find({"$or"=>[{:username=>/^davidcodr$/i}, {:email=>"davidcodr"}, {:_id=>"davidcodr"}], :deleted_at=>{"$exists"=>false}})
MONGODB music_coda_development['settings'].find({:_id=>"gender_list"})
Processing by UsersController#wizard_end as HTML
Parameters: {"id"=>"hecbuma"}
MONGODB music_coda_development['users'].find({:"logins.token"=>"SKYRFio6Kw81qF2gf4GCBFAj8uTy", :deleted_at=>{"$exists"=>false}})
MONGODB music_coda_development['users'].find({:deleted_at=>{"$exists"=>false}})
hecbuma@hecbuma-lap:~/proyectos/fanvsfan$ rake db:migrate --trace
(in /home/hecbuma/proyectos/fanvsfan)
DEPRECATION WARNING: Rake tasks in vendor/plugins/annotate_models/tasks, vendor/plugins/bootstrapper/tasks, vendor/plugins/can_flag/tasks, vendor/plugins/delayed_job/tasks, vendor/plugins/factory_girl_attachment/tasks, vendor/plugins/fitter_happier/tasks, vendor/plugins/flashplayrhelpr/tasks, vendor/plugins/high_voltage/tasks, vendor/plugins/jrails/tasks, vendor/plugins/nulldb/tasks, vendor/plugins/query_reviewer/tasks, vendor/plugins/recaptcha/tasks, vendor/plugins/redbox/tasks, vendor/plugins/simpleconfig/tasks, and vendor/plugins/sitemap_generator-plugin/tasks are deprecated. Use lib/tasks instead. (called from /home/hecbuma/.rvm/gems/ruby-1.8.7-p334@fan/gems/rails-2.3.11/lib/tasks/rails.rb:10)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Invoke gems:build (first_time)
** Execute gems:build
** Execute environment
rake aborted!
Mysql::Error: Table 'fanvsfan_development.adify_pub
hecbuma@hecbuma-lap:~/proyectos/fanvsfan$ rake db:drop:all
(in /home/hecbuma/proyectos/fanvsfan)
DEPRECATION WARNING: Rake tasks in vendor/plugins/annotate_models/tasks, vendor/plugins/bootstrapper/tasks, vendor/plugins/can_flag/tasks, vendor/plugins/delayed_job/tasks, vendor/plugins/factory_girl_attachment/tasks, vendor/plugins/fitter_happier/tasks, vendor/plugins/flashplayrhelpr/tasks, vendor/plugins/high_voltage/tasks, vendor/plugins/jrails/tasks, vendor/plugins/nulldb/tasks, vendor/plugins/query_reviewer/tasks, vendor/plugins/recaptcha/tasks, vendor/plugins/redbox/tasks, vendor/plugins/simpleconfig/tasks, and vendor/plugins/sitemap_generator-plugin/tasks are deprecated. Use lib/tasks instead. (called from /home/hecbuma/.rvm/gems/ruby-1.8.7-p334@fan/gems/rails-2.3.11/lib/tasks/rails.rb:10)
Couldn't drop fanvsfan_test : #<Mysql::Error: Unknown database 'fanvsfan_test'>
Couldn't drop fanvsfan_test : #<Mysql::Error: Unknown database 'fanvsfan_test'>
hecbuma@hecbuma-lap:~/proyectos/fanvsfan$ rake db:create:all
hecbuma@hecbuma-lap:~/proyectos/fanvsfan$ rake db:drop
(in /home/hecbuma/proyectos/fanvsfan)
DEPRECATION WARNING: Rake tasks in vendor/plugins/annotate_models/tasks, vendor/plugins/bootstrapper/tasks, vendor/plugins/can_flag/tasks, vendor/plugins/delayed_job/tasks, vendor/plugins/factory_girl_attachment/tasks, vendor/plugins/fitter_happier/tasks, vendor/plugins/flashplayrhelpr/tasks, vendor/plugins/high_voltage/tasks, vendor/plugins/jrails/tasks, vendor/plugins/nulldb/tasks, vendor/plugins/query_reviewer/tasks, vendor/plugins/recaptcha/tasks, vendor/plugins/redbox/tasks, vendor/plugins/simpleconfig/tasks, and vendor/plugins/sitemap_generator-plugin/tasks are deprecated. Use lib/tasks instead. (called from /home/hecbuma/.rvm/gems/ruby-1.8.7-p334@fan/gems/rails-2.3.11/lib/tasks/rails.rb:10)
hecbuma@hecbuma-lap:~/proyectos/fanvsfan$ rake db:create
(in /home/hecbuma/proyectos/fanvsfan)
DEPRECATION WARNING: Rake tasks in vendor/plugins/annotate_models/tasks, vendor/plugins/bootstrapper/tasks, vendor/plugins/can_fl
hecbuma@hecbuma-lap:~/proyectos/fanvsfan$ rake db:schema:load --trace
(in /home/hecbuma/proyectos/fanvsfan)
DEPRECATION WARNING: Rake tasks in vendor/plugins/annotate_models/tasks, vendor/plugins/bootstrapper/tasks, vendor/plugins/can_flag/tasks, vendor/plugins/delayed_job/tasks, vendor/plugins/factory_girl_attachment/tasks, vendor/plugins/fitter_happier/tasks, vendor/plugins/flashplayrhelpr/tasks, vendor/plugins/high_voltage/tasks, vendor/plugins/jrails/tasks, vendor/plugins/nulldb/tasks, vendor/plugins/query_reviewer/tasks, vendor/plugins/recaptcha/tasks, vendor/plugins/redbox/tasks, vendor/plugins/simpleconfig/tasks, and vendor/plugins/sitemap_generator-plugin/tasks are deprecated. Use lib/tasks instead. (called from /home/hecbuma/.rvm/gems/ruby-1.8.7-p334@fan/gems/rails-2.3.11/lib/tasks/rails.rb:10)
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Invoke gems:build (first_time)
** Execute gems:build
** Execute environment
rake aborted!
Mysql::Error: Table 'fanvsfan_development.a
hecbuma@hecbuma-lap:~/proyectos/fanvsfan$ script/server
=> Booting WEBrick
=> Rails 2.3.11 application starting on http://0.0.0.0:3000
** daemon_controller starting memcached...
Starting sphinx
/home/hecbuma/proyectos/fanvsfan/vendor/gems/FooBarWidget-daemon_controller-0.2.1/lib/daemon_controller.rb:525:in `run_command': [Fri Jun 17 16:26:33.110 2011] [ 8581] using config file '/home/hecbuma/proyectos/fanvsfan/config/development.sphinx.conf'... (DaemonController::StartError)
[Fri Jun 17 16:26:33.111 2011] [ 8581] FATAL: failed to parse config file '/home/hecbuma/proyectos/fanvsfan/config/development.sphinx.conf'
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff
from /home/hecbuma/proyectos/fanvsfan/vendor/gems/FooBarWidget-daemon_controller-0.2.1/lib/daemon_controller.rb:336:in `spawn_daemon'
hecbuma@hecbuma-lap:~/proyectos/fanvsfan$ rake db:bootstrap --trace
(in /home/hecbuma/proyectos/fanvsfan)
DEPRECATION WARNING: Rake tasks in vendor/plugins/annotate_models/tasks, vendor/plugins/bootstrapper/tasks, vendor/plugins/can_flag/tasks, vendor/plugins/delayed_job/tasks, vendor/plugins/factory_girl_attachment/tasks, vendor/plugins/fitter_happier/tasks, vendor/plugins/flashplayrhelpr/tasks, vendor/plugins/high_voltage/tasks, vendor/plugins/jrails/tasks, vendor/plugins/nulldb/tasks, vendor/plugins/query_reviewer/tasks, vendor/plugins/recaptcha/tasks, vendor/plugins/redbox/tasks, vendor/plugins/simpleconfig/tasks, and vendor/plugins/sitemap_generator-plugin/tasks are deprecated. Use lib/tasks instead. (called from /home/hecbuma/.rvm/gems/ruby-1.8.7-p334@fan/gems/rails-2.3.11/lib/tasks/rails.rb:10)
** Invoke db:bootstrap (first_time)
** Invoke environment (first_time)
** Invoke gems:build (first_time)
** Execute gems:build
** Execute environment
** Execute db:bootstrap
>> Started executing bootstrap for de
hecbuma@hecbuma-lap:~/proyectos/fanvsfan$ script/server
=> Booting WEBrick
=> Rails 2.3.11 application starting on http://0.0.0.0:3000
/home/hecbuma/proyectos/fanvsfan/app/models/debatable.rb:3: warning: already initialized constant CREATED_DEBATES_TITLE
/home/hecbuma/proyectos/fanvsfan/app/models/debatable.rb:4: warning: already initialized constant IN_PROGRESS_DEBATES_TITLE
/home/hecbuma/proyectos/fanvsfan/app/models/debatable.rb:5: warning: already initialized constant COMPLETED_DEBATES_TITLE
/home/hecbuma/proyectos/fanvsfan/app/models/debatable.rb:6: warning: already initialized constant CREATED_STATES
/home/hecbuma/proyectos/fanvsfan/app/models/debatable.rb:7: warning: already initialized constant CHALLENGED_STATES
/home/hecbuma/proyectos/fanvsfan/app/models/debatable.rb:8: warning: already initialized constant IN_PROGRESS_STATES
/home/hecbuma/proyectos/fanvsfan/app/models/debatable.rb:9: warning: already initialized constant COMPLETED_STATES