Skip to content

Instantly share code, notes, and snippets.

View banshee's full-sized avatar

James Moore banshee

View GitHub Profile
open System
open System.IO
open System.Reflection
let rec extractDll opts =
match opts with
| "-d"::s::t -> Some s
| h::t -> extractDll t
| [] -> None
Script started on Tue Jun 8 09:52:40 2010
(in /private/tmp/test1)
no such file to load -- jdbc-mysql
/Users/james/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/james/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/james/.jrubygem/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
/Users/james/.jrubygem/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/james/.jrubygem/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
/Users/james/.jrubygem/gems/rails-2.3.8/lib/rails/gem_dependency.rb:215:in `load'
/Users/james/.jrubygem/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
@banshee
banshee / gist:662772
Created November 4, 2010 17:01
sun.reflect.GeneratedMethodAccessor16 invoke
Nov 3, 2010 5:12:47 PM sun.reflect.GeneratedMethodAccessor16 invoke
INFO: /!\ FAILSAFE /!\ Wed Nov 03 17:12:47 -0700 2010
Status: 500 Internal Server Error
Stream closed
/home/users/rgorman/petdev/ruby/jrubygems/gems/rack-1.1.0/lib/rack/request.rb:147:in `POST'
/home/users/rgorman/petdev/ruby/jrubygems/gems/rack-1.1.0/lib/rack/methodoverride.rb:15:in `call'
/home/users/rgorman/petdev/ruby/jrubygems/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call'
/home/users/rgorman/petdev/ruby/jrubygems/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call'
/home/users/rgorman/petdev/ruby/jrubygems/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call'
/home/users/rgorman/petdev/ruby/jrubygems/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
E/AndroidRuntime(28952): FATAL EXCEPTION: main
E/AndroidRuntime(28952): java.lang.ExceptionInInitializerError
E/AndroidRuntime(28952): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime(28952): at java.lang.Class.newInstance(Class.java:1429)
E/AndroidRuntime(28952): at android.app.Instrumentation.newActivity(Instrumentation.java:1036)
E/AndroidRuntime(28952): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2701)
E/AndroidRuntime(28952): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
E/AndroidRuntime(28952): at android.app.ActivityThread.access$2300(ActivityThread.java:135)
E/AndroidRuntime(28952): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
E/AndroidRuntime(28952): at android.os.Handler.dispatchMessage(Handler.java:99)
boolean fnord = 3 > 3;
E/AndroidRuntime(31495): java.lang.NoClassDefFoundError: com.banshee.TimeEventBus^M
E/AndroidRuntime(31495): at com.banshee.BansheeAndroidGuiceModule.configure(BansheeAndroidGuiceModule.java:76)^M
E/AndroidRuntime(31495): at com.google.inject.AbstractModule.configure(AbstractModule.java:59)^M
E/AndroidRuntime(31495): at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)^M
E/AndroidRuntime(31495): at com.google.inject.spi.Elements.getElements(Elements.java:101)^M
E/AndroidRuntime(31495): at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)^M
E/AndroidRuntime(31495): at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)^M
E/AndroidRuntime(31495): at com.google.inject.Guice.createInjector(Guice.java:95)^M
E/AndroidRuntime(31495): at com.google.inject.Guice.createInjector(Guice.java:72)^M
E/AndroidRuntime(31495): at com.google.inject.Guice.createInjector(Guice.
@banshee
banshee / gist:1102951
Created July 24, 2011 19:08
logcat output for failing Samsung Galaxy Tab 10.1 boot
D/ActivityThread( 821): Loading provider settings: com.android.providers.settings.SettingsProvider
I/SqliteDatabaseCpp( 821): sqlite returned: error code = 14, msg = cannot open file at line 26528 of [8609a15dfa], db=/data/system/accounts.db
I/SqliteDatabaseCpp( 821): sqlite returned: error code = 14, msg = os_unix.c: open() at line 26528 - "" errno=30 path=/data/data/com.android.providers.settings/databases/settings.db-shm, db=/data/system/accounts.db
I/SqliteDatabaseCpp( 821): sqlite returned: error code = 14, msg = unable to open database file, db=/data/system/accounts.db
E/SqliteDatabaseCpp( 821): CREATE TABLE android_metadata failed
E/SQLiteDatabase( 821): Failed to open the database. closing it.
E/SQLiteDatabase( 821): android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file
E/SQLiteDatabase( 821): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/SQLiteDatabase( 821): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.ja
@banshee
banshee / gist:1650359
Created January 21, 2012 00:05
full console output for scala ide problem
2012-01-20 15:44:51.477 java[12698:903] -[NSView clearDeferFlushing]: unrecognized selector sent to instance 0x100105a90
!SESSION 2012-01-20 15:44:42.874 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_29
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.platform.ide
Command-line arguments: -product org.eclipse.platform.ide -data /Users/james/workspace/../runtime-EclipseApplication(1) -dev file:/Users/james/workspace/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application (1)/dev.properties -os macosx -ws cocoa -arch x86_64 -consoleLog
!ENTRY org.eclipse.core.net 1 0 2012-01-20 15:44:53.320
@banshee
banshee / gist:3054273
Created July 5, 2012 15:14
Using maven as a fancy wget/curl
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>GuavaExtensions</groupId>
<artifactId>guavaExtensions</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
@banshee
banshee / gist:3054552
Created July 5, 2012 16:04
A parser for Java signatures using Scala parser combinators
package com.restphone.parser
import scala.util.parsing.combinator._
// This parser uses the grammar from section 4.1.1 of the
// ASM 4.0: A Java bytecode engineering library
// documentation.
//
// Here's the gist of it:
// TypeSignature: Z | C | B | S | I | F | J | D | FieldTypeSignature