My Recent Pastes (150 and counting)

Pastes by enebo (150 and counting)

Pages:

Below are the 15 most recent pasties by enebo.

April 10, 2007
5:48PM EDT
by enebo

 NoMethodError in Goldberg/content pagesController#view_default

undefined method `children' for {"parent"=>nil, "children"=>[1, 2]}:Hash

RAILS_ROOT: script/../config/..

April 10, 2007
4:20PM EDT
by enebo

 ../bin/jruby --command rake goldberg:install
(in /Users/enebo/Documents/workspace/jruby_trunk/mysite)
rake aborted!
uninitialized constant ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

April 04, 2007
4:57PM EDT
by enebo

    [junit] test/testEval.rb failed, complete failure list follows:
    [junit] EXCEPTION raised  26 -- 
    [junit]         Exception: unexpected return
    [junit]         ./test/testEval.rb:158:in `foo'
    [junit]         ./test/testEval.rb:158:in `eval'

March 05, 2007
5:24PM EDT
by enebo

./bin/jruby ~/scripts/ggg.rb
#<Gem::Specification:0x5122f2 @homepage="http://rubyforge.org/projects/codeforpeople", @name="rubyforge", @rubyforge_project="codeforpeople", @executables=["rubyforge"], @cert_chain=[], @requirements=[], @rubygems_version="0.9.0", @has_rdoc=true, @signing_key=nil, @rdoc_options=[], @test_files=[], @files=[], @platform="ruby", @specification_version=1, @dependencies=[], @version=#<Gem::Version:0x8fad4b @version="0.4">, @require_paths=["lib"], @post_install_message=nil, @bindir="bin", @email="ryand-ruby@zenspider.com", @required_ruby_version=#<Gem::Version::Requirement:0xbc70cc @version=nil, @requirements=[[">", #<Gem::Version:0x5a6eb9 @version="0.0.0">]]>, @autorequire=nil, @date=Wed Jan 10 05:00:00 UTC 2007, @extra_rdoc_files=[], @description="A simplistic script which automates a limited set of rubyforge operations   * Run 'rubyforge help' for complete usage. * Setup: For first time users AND upgrades to 0.4.0: * rubyforge setup * edit ~/.rubyforge/user-config.yml * rubyforge config * Don't forget to login!  logging in will store a cookie in your .rubyforge directory which expires after a time.  always run the login command before any operation that requires authentication, such as uploading a package.", @authors=["Ara T Howard", "Ryan Davis", "Eric Hodel"], @summary="A simplistic script which automates a limited set of rubyforge operations", @default_executable=nil, @extensions=[]>


ggg.rb

March 05, 2007
2:19PM EDT
by enebo

 ActiveRecord::StatementInvalid in PeopleController#update

NativeException: org.apache.derby.impl.jdbc.EmbedSQLException: Columns of type 'VARCHAR' cannot hold values of type 'INTEGER'. : UPDATE people SET phone = 123, lastname = 'Enebo', firstname = 'Thomas' WHERE id = 1

RAILS_ROOT: script/../config/..

March 05, 2007
1:44PM EDT
by enebo

  1) Error:
test_normal(TC_ClientSoap):
IOError: Connection reset by peer
    /Users/enebo/Documents/workspace/jruby/lib/ruby/gems/1.8/gems/rubyforge-0.4.0/lib/http-access2.rb:1422:in `parse_header'
    /Users/enebo/Documents/workspace/jruby/lib/ruby/gems/1.8/gems/rubyforge-0.4.0/lib/http-access2.rb:1422:in `timeout'

March 04, 2007
2:25PM EDT
by enebo

Index: test/simple.rb
===================================================================
--- test/simple.rb        (revision 318)
+++ test/simple.rb        (working copy)
@@ -91,6 +91,7 @@

March 03, 2007
3:02PM EDT
by enebo

class Foo < String
end

[Foo.new("AHAAHAHAHAHAHAH")].join(',')

March 03, 2007
9:39AM EDT
by enebo

 51) Error:
test_optionally_validates_length_of_using_within_utf8(ValidationsTest):
NativeException: java.lang.ArrayIndexOutOfBoundsException: -28
    ScannerImpl.java:528:in `org.jvyamlb.ScannerImpl.fetchMoreTokens'
    ScannerImpl.java:419:in `org.jvyamlb.ScannerImpl.peekToken'

February 25, 2007
4:13PM EDT
by enebo

print "Using JDBC MySQL\n"
require_dependency 'fixtures/course'
require 'logger'
require 'active_record/connection_adapters/jdbc_adapter'

February 24, 2007
10:45AM EDT
by enebo

public
def n_lines(file, n = 3)
  i = 0
  arr = []
  file.each do |line|

February 23, 2007
10:41AM EDT
by enebo

Index: src/org/jruby/internal/runtime/methods/DefaultMethod.java
===================================================================
--- src/org/jruby/internal/runtime/methods/DefaultMethod.java        (revision 3070)
+++ src/org/jruby/internal/runtime/methods/DefaultMethod.java        (working copy)
@@ -111,61 +111,68 @@

February 22, 2007
2:09PM EDT
by enebo

printf "%8s %20s:%-2d %10s %8s\n", 'event', 'file', 0, 'id', 'classname'
$stdout.puts "-" * 80
set_trace_func proc { |event, file, line, id, binding, classname| printf "%8s %20s:%-2d %10s %-8s\n", event, file, line, id ? id : 'nil', classname }

class << self

February 19, 2007
12:02PM EDT
by enebo

thomas-enebos-computer:~/Documents/workspace/jruby enebo$ ruby -r profile ~/scripts/count.rb 
  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
  0.00     0.00      0.00       24     0.00     0.00  String#<<
  0.00     0.00      0.00        1     0.00    10.00  #toplevel

February 15, 2007
10:53PM EDT
by enebo

 jruby script/generate migration person
jruby script/generate migration person
/Users/enebo/Documents/workspace/jruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:14:in `method_missing': undefined method `cattr_accessor' for ActiveRecord::Base:Class (NoMethodError)
        from /Users/enebo/Documents/workspace/jruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:14
        from /Users/enebo/Documents/workspace/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27

Previous page