Skip to content

Instantly share code, notes, and snippets.

View banshee's full-sized avatar

James Moore banshee

View GitHub Profile
--------- beginning of /dev/log/main
W/Binder (18423): Caught a RuntimeException from the binder stub implementation.
W/Binder (18423): java.lang.NullPointerException
W/Binder (18423): at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
W/Binder (18423): at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
W/Binder (18423): at android.os.Binder.execTransact(Binder.java:404)
W/Binder (18423): at dalvik.system.NativeStart.run(Native Method)
--------- beginning of /dev/log/system
W/InputMethodManagerService( 446): Got RemoteException sending setActive(false) notification to pid 9109 uid 10165
I/ActivityManager( 446): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=com.amazon.kindle cmp=com.amazon.kindle/.UpgradePage bnds=[454,215][646,407]} from pid 31860
object TopicPlayground extends App {
val t: Topic[String] = scalaz.stream.async.topic()
val sub1 = t.subscribe
val out1 = sub1
.flatMap(x => Process.tell(s"raw value: $x") ++ Process.emitO(x.length))
@banshee
banshee / Topic 2
Created May 17, 2014 23:35
Topic 2
object TopicPlayground extends App {
val t: Topic[String] = scalaz.stream.async.topic()
val sub1 = t.subscribe
val out1 = sub1
.flatMap(x => Process.tell(s"raw value: $x") ++ Process.emitO(x.length))
.runLog
val otherThread = future {
package com.restphone.scalaztalk
import scalaz._
import Scalaz._
object Samples {
val wrapWithParens = (x: String) => s"( $x )" //> wrapWithParens : String => String = <function1>
val wrapWithSquareBrackets = (x: Int) => s"[ $x ]"
//> wrapWithSquareBrackets : Int => String = <function1>
val wrapWithBoth: Int => String = wrapWithParens compose wrapWithSquareBrackets
Script started on Sat Sep 20 11:40:10 2014
[info] Loading global plugins from /Users/james/.sbt/0.13/plugins
[info] Loading project definition from /Users/james/workspace/jstwodelete/project
[info] Updating {file:/Users/james/workspace/jstwodelete/project/}jstwodelete-build...
[info] Resolving default#global-plugins;0.0 ...
M[info] Resolving com.typesafe.sbteclipse#sbteclipse-plugin;2.4.0 ...
M[info] Resolving com.typesafe.sbteclipse#sbteclipse-core;2.4.0 ...
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'
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.