This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Caused by: | |
org.jruby.exceptions.RaiseException: stack level too deep | |
at (unknown).new(/tmp/jetty-0.0.0.0-18080-ROOT.war-_-any-/webapp/WEB-INF/gems/gems/bundler-1.0.10/lib/bundler/resolver.rb:179) | |
at Bundler::Resolver.resolve(/tmp/jetty-0.0.0.0-18080-ROOT.war-_-any-/webapp/WEB-INF/gems/gems/bundler-1.0.10/lib/bundler/resolver.rb:175) | |
at Array.each(/tmp/jetty-0.0.0.0-18080-ROOT.war-_-any-/webapp/WEB-INF/gems/gems/bundler-1.0.10/lib/bundler/resolver.rb:175) | |
at Enumerable.sort_by(/tmp/jetty-0.0.0.0-18080-ROOT.war-_-any-/webapp/WEB-INF/gems/gems/bundler-1.0.10/lib/bundler/resolver.rb:175) | |
at Bundler::Resolver.resolve(/tmp/jetty-0.0.0.0-18080-ROOT.war-_-any-/webapp/WEB-INF/gems/gems/bundler-1.0.10/lib/bundler/resolver.rb:215) | |
at Bundler::Resolver.resolve(/tmp/jetty-0.0.0.0-18080-ROOT.war-_-any-/webapp/WEB-INF/gems/gems/bundler-1.0.10/lib/bundler/resolver.rb:344) | |
at Bundler::Resolver.resolve_requirement(/tmp/jetty-0.0.0.0-18080-ROOT.war-_-any-/webapp/WEB-INF/gems/gems/bundler-1.0.10/lib/bundler/resolver.rb:3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feb 16, 2011 8:34:22 AM com.sun.enterprise.v3.server.AppServerStartup run | |
INFO: GlassFish v3 (74b) startup time : Embedded(782ms) startup services(351ms) total(1133ms) | |
Feb 16, 2011 8:34:22 AM AppServerStartup run | |
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started | |
Feb 16, 2011 8:34:22 AM org.hibernate.validator.util.Version <clinit> | |
INFO: Hibernate Validator null | |
Feb 16, 2011 8:34:24 AM com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady | |
INFO: Grizzly Framework 1.9.18-k started in: 228ms listening on port 18080 | |
Feb 16, 2011 8:34:24 AM org.glassfish.kernel.config.DefaultConfigParser$2 run | |
INFO: interface org.glassfish.scripting.jruby.config.JrubyContainer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mojolly.backchat | |
package redis | |
package resque | |
import com.mojolly.backchat.redis.resque.Resque.{ResqueWorkerActor} | |
import net.liftweb.json._ | |
import JsonAST._ | |
import JsonDSL._ | |
import java.net.InetAddress | |
import com.redis.ds.{ RedisDeque, RedisDequeClient } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sbt 'project scalatra-scalatest' publish | |
sbt 'project scalatra-specs' publish | |
sbt 'project scalatra' publish | |
sbt 'project scalatra-fileupload' publish | |
sbt 'project scalatra-socketio' publish | |
sbt 'project scalatra-auth' publish | |
sbt 'project scalatra-scalate' publish | |
rm -rf ~/.ivy2/cache/org.scalatr* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package experiments | |
object Variance extends Enumeration { | |
val Co, Contra, No = Value | |
} | |
class Def[ToMatch : Manifest](variance: Variance.Value*) { | |
import Variance._ | |
def unapply[Candidate](candidate: Candidate)(implicit mf: Manifest[Candidate]): Option[Candidate] = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# | |
# Copyright (C) 2002 Yoshinori K. Okuji <[email protected]> | |
# | |
# You may redistribute it and/or modify it under the same term as Ruby. | |
# Cache manager based on the LRU algorithm. | |
class Cache | |
CACHE_OBJECT = Struct.new('CacheObject', :content, :size, :atime) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BackchatIO("firstbox", :api_key => "the_key").each do |message| | |
# do stuff with message here | |
end | |
def BackchatIO(name, params) | |
Backchat::Stream.new(name, params) | |
end | |
module Backchat | |
class Stream(name, params) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mojolly.backchat | |
package web | |
class MySocketIOClient extends Client { | |
def receive = { | |
case Connected => { | |
} | |
case Message(msg) => { | |
//handlePlainTextMessage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mojolly.backchat | |
package web | |
import org.scalatra.ScalatraServlet | |
import akka.actor.{Scheduler, Actor} | |
import javax.servlet.http.{HttpServletResponse, HttpServletRequest} | |
import org.atmosphere.cpr.BroadcastFilter.BroadcastAction | |
import org.atmosphere.cpr._ | |
import org.atmosphere.util.XSSHtmlFilter | |
import collection.JavaConversions._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collection.JavaConversions._ | |
trait Base { | |
def invoke(curr: String) { | |
println("invoking: " + curr) | |
Thread.currentThread.getStackTrace.foreach(st => println("className: " + st.getClassName + " methodName: " + st.getMethodName )) | |
} | |
} | |
class Top extends Base { |