Skip to content

Instantly share code, notes, and snippets.

View esparkman's full-sized avatar

Evan Sparkman esparkman

View GitHub Profile
ArgumentError in Admin/postsController#create
wrong number of arguments (1 for 0)
Rails.root: /Users/evansparkman/webapps/esdezines
Application Trace | Framework Trace | Full Trace
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/flash.rb:13:in `delete'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/flash.rb:13:in `redirect_to'
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/instrumentation.rb:59:in `redirect_to'
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/notifications/instrumenter.rb:18:in `instrument'
Redcar 0.3.5 ( java )
java -XstartOnFirstThread -Xmx500m -Xss1024k -Djruby.memory.max=500m -Djruby.stack.max=1024k -cp "/Users/evansparkman/rubyapps/redcar/lib/jruby-complete-1.4.0.jar" org.jruby.Main "/Users/evansparkman/rubyapps/redcar/lib/redcar/../../bin/redcar" --no-sub-jruby
Redcar 0.3.5 ( java )
loading osx64/swt
loading plugins took 5.068
EditViewSWT.start took 2.686s
initializing gui took 0.847s
project start took 0.055s
/Users/evansparkman/rubyapps/redcar/plugins/application_swt/lib/application_swt/notebook.rb:130:in `tab_widget_to_tab_model': undefined method `item' for nil:NilClass (NoMethodError)
from /Users/evansparkman/rubyapps/redcar/plugins/application_swt/lib/application_swt/notebook.rb:130:in `each'
NoMethodError undefined method `set_word_wrap' for #<Java::ComRedcareditorMate::MateText:0x3cee5a06>
/Users/evansparkman/rubyapps/redcar/plugins/edit_view_swt/lib/edit_view_swt.rb:122:in `create_document'
/Users/evansparkman/rubyapps/redcar/plugins/core/lib/core/observable.rb:103:in `call'
/Users/evansparkman/rubyapps/redcar/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
/Users/evansparkman/rubyapps/redcar/plugins/core/lib/core/observable.rb:103:in `each'
/Users/evansparkman/rubyapps/redcar/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
/Users/evansparkman/rubyapps/redcar/plugins/core/lib/core/observable.rb:96:in `notify_listeners'
/Users/evansparkman/rubyapps/redcar/plugins/edit_view/lib/edit_view.rb:321:in `word_wrap='
/Users/evansparkman/rubyapps/redcar/plugins/edit_view/lib/edit_view.rb:280:in `set_grammar'
esdezines ~/rubyapps/redcar: git submodule update && jruby -S rake build
Exception in thread "main" file:/Library/Ruby/Gems/1.8/gems/jruby-0.0.1/lib/jruby.jar!/jruby/commands.rb:69: undefined method `jirb' for class `#<Class:01x3a0b53e>' (NameError)
from file:/Library/Ruby/Gems/1.8/gems/jruby-0.0.1/lib/jruby.jar!/jruby/commands.rb:1
...internal jruby stack elided...
from (unknown).(unknown)(file:/Library/Ruby/Gems/1.8/gems/jruby-0.0.1/lib/jruby.jar!/jruby/commands.rb:1)
from (unknown).(unknown)(file:/Library/Ruby/Gems/1.8/gems/jruby-0.0.1/lib/jruby.jar!/jruby/commands.rb:1)
from (unknown).(unknown)(file:/Library/Ruby/Gems/1.8/gems/jruby-0.0.1/lib/jruby.jar!/jruby/commands.rb:1)
from (unknown).(unknown)(file:/Library/Ruby/Gems/1.8/gems/jruby-0.0.1/lib/jruby.jar!/jruby/commands.rb:1)
from (unknown).(unknown)(:1)
esdezines ~/rubyapps/redcar: git submodule update && jruby -S rake build --trace(in /Users/evansparkman/rubyapps/redcar)
rake aborted!
no such file to load -- cucumber/rake/task
/opt/local/share/java/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/local/share/java/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/evansparkman/rubyapps/redcar/Rakefile:4
/Users/evansparkman/rubyapps/redcar/Rakefile:2383:in `load'
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
Total HTTP requests: 57140
Total page requests: 6739
Unique pages: 0
Total slow pages:
Page total, avg: , 0
Static file total, avg: 10.162, 0.000201622983670959
Total JavaScript: 2362
Total gif: 36364
Total jpg: 7525
Total css: 4150
Exception: wrong number of arguments
Total HTTP Requests 4
Total GIF Requests
counter = 1
begin
file = File.new("performance.log", "r")
while (line = file.gets)
#puts "#{counter}: #{line}"
esdezines ~/rubyapps/redcar: jruby -S rake build --trace
(in /Users/evansparkman/rubyapps/redcar)
** Invoke build (first_time)
** Execute build
ant jar -f vendor/java-mateview/build.xml
Buildfile: vendor/java-mateview/build.xml
clean:
[delete] Deleting directory /Users/evansparkman/rubyapps/redcar/vendor/java-mateview/bin
#!/usr/bin/perl
open OUTPUT, ">>output.txt";
open(FILE, $ARGV[0]);
$count = 0;
while($line = <FILE>) {
if ( !($line =~ /^#/ ) ) {
$lines[$count] = $line;
$count++;
}
}
for ($i = 0; $i < 24; $i++ ) {
$hourCount[$i] = 0;
$hourDuration[$i] = 0;
}