Skip to content

Instantly share code, notes, and snippets.


Neurogami Neurogami

View GitHub Profile
View gist:114686
W/dalvikvm( 158): VFY: unable to resolve new-instance 13 (Lorg/jruby/RubyInstanceConfig;) in Lcom/neurogami/jrubyhack/MainActivity;
W/dalvikvm( 158): VFY: rejecting opcode 0x22 at 0x0003
W/dalvikvm( 158): VFY: rejected Lcom/neurogami/jrubyhack/MainActivity;.onCreate (Landroid/os/Bundle;)V
W/dalvikvm( 158): Verifier rejected class Lcom/neurogami/jrubyhack/MainActivity;
W/dalvikvm( 158): Class init failed in newInstance call (Lcom/neurogami/jrubyhack/MainActivity;)
D/AndroidRuntime( 158): Shutting down VM
W/dalvikvm( 158): threadid=3: thread exiting with uncaught exception (group=0x4000fe68)
E/AndroidRuntime( 158): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 158): java.lang.VerifyError: com.neurogami.jrubyhack.MainActivity
E/AndroidRuntime( 158): at java.lang.Class.newInstance(Native Method)
Neurogami / gist:121617
Created Jun 1, 2009 — forked from jruby/gist:121082
James Britt version
View gist:121617
2008 conferences:
RubyConf, RailsConf, RailsConf EU, acts_as_conference, Euruko, Ruby Kaigi, Mountain West RubyConf, eRubyCon, Ruby Hoedown, Amsterdam Ruby en Rails, Scotland on Rails, RubyFools Copenhagen, RubyFools Oslo, Voices that Matter, South Carolina Ruby Conference, Lone Star RubyConf, RuPy, Gotham Ruby Conference, Silicon Valley Ruby Conference, RubyCamp, Conferencia Rails, Rails Summit Latin America, Ruby Manor, Atlanta Merb Day, ...
2008 books:
NetBeans™ Ruby and Rails IDE with JRuby, Learning Rails, Rails for .NET Developers, Wicked Cool Ruby Scripts, JRuby Cookbook, Enterprise Recipes with Ruby and Rails, Developing Facebook Platform Applications with Rails, Foundation Rails 2, Enterprise Rails, Ruby On Rails Bible, Rails: Up and Running, Rails Pocket Reference, Ruby Phrasebook, Scripted GUI Testing with Ruby, Aptana RadRails, Advanced Rails Recipes, Deploying Rails Applications, The Art of Rails, Simply Rails 2, Practical REST on Rails 2 Projects, Ruby on Rails Web Mashup Projects, FXRuby: Cr
View gist:146499
require 'time'
class Time
def seconds_since_midnight
s = hour * 60*60
s += min * 60
s += sec
View gist:146502
[james@host jruby]$ jruby --version
Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main
Caused by: java.lang.ClassNotFoundException: org.jruby.Main
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
View gist:146503
[apt] Since compiler setting isn't classic or modern,ignoring fork setting.
[apt] Compiling 723 source files to /home/james/vendor/jruby/build/classes/jruby
[apt] Since compiler setting isn't classic or modern,ignoring fork setting.
[apt] warning: Annotation types without processors: [java.lang.Override, java.lang.Deprecated, org.jruby.anno.JRubyConstant, java.lang.SuppressWarnings, org.jruby.anno.JRubyModule, java.lang.annotation.Retention, java.lang.annotation.Target, com.kenai.jaffl.annotations.Out, com.kenai.jaffl.annotations.In, com.kenai.jaffl.annotations.Transient]
[apt] 1 warning
[apt] Note: Some input files use unchecked or unsafe operations.
[apt] Note: Recompile with -Xlint:unchecked for details.
We couldn’t find that file to show.
View Alex Gaynor: commenting on "Twenty questions about the GPL"
Alex Gaynor:
"Unfortunately all the FSF can provide on a number of these questions is their opinion on the matter. Having spoken with the Software Freedom Law Center about the import issue recently the reality is there is no answer to some of these questions because no one has ever taken them to court."
View glassfish gem dev log
Jul 19, 2009 9:45:33 AM null
INFO: Listening on port 3000
Jul 19, 2009 9:45:33 AM
INFO: Admin Console Adapter: context root: /_____admingui
Jul 19, 2009 9:45:33 AM null
INFO: The Admin Console Application is not yet installed.
Jul 19, 2009 9:45:33 AM null
INFO: Admin Console Adapter: context root: /_____admingui
Jul 19, 2009 9:45:33 AM
INFO: Admin Console Adapter: context root: /_____admingui
View gist:150104
# On CentOS 4.something, with JRuby installed as a pre-built binary.
# (ruby 1.8.6p287) (2009-06-03 5dc2e22) (Java HotSpot(TM) Client VM 1.6.0_10) [i386-java]
# Did jruby -S gem i glassfish, then ran
# jruby -S glassfish to run the app
# JRuby Gems installed:
*** LOCAL GEMS ***
builder (2.1.2)
View gist:174387
class Foo
attr_accessor :baz, :biff
def initialize baz, biff
@baz, @biff = baz, biff
# Create an instance