Skip to content

Instantly share code, notes, and snippets.

View petergarbers's full-sized avatar

Peter Garbers petergarbers

  • Silverthorne
View GitHub Profile
diff --git a/BIO.md b/BIO.md
index 6792820..36c23e8 100644
--- a/BIO.md
+++ b/BIO.md
@@ -1 +1 @@
-Canadian human in California. Puppies, photography, programming. Camera & Photos team @ Apple .
+Canadian human in California. Puppies, photography, programming, kind of a big deal. Camera & Photos team @ Apple .
def magicMultiLabelClassification(): Unit = {
val conf = new SparkConf().setAppName("Simple Application").setMaster("local[2]")
val sc = new SparkContext(conf)
val data = MLUtils.loadLibSVMFile(sc, "test3.txt")
val splits = data.randomSplit(Array(0.7, 0.3))
val (trainingData, testData) = (splits(0), splits(1))
//Inputs for random forest
val numClasses = 2
val categoricalFeaturesInfo = Map[Int, Int]()
Starting Immutant: /Users/peter/.lein/immutant/current/jboss/bin/standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Users/peter/.lein/immutant/current/jboss
JAVA: java
JAVA_OPTS: -d32 -client -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
<cache-container name="hibernate" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4">
<cache-container name='polyglot' default-cache='sessions' aliases='torquebox'>
<local-cache name='sessions' start='EAGER'>
<eviction strategy='LRU' max-entries='10000'/>
<expiration max-idle='100000'/>
<transaction mode='FULL_XA'/>
</local-cache>
</cache-container>
<local-cache name="entity">
<transaction mode="NON_XA"/>
Warning: The current app may not be deployed - deploy with 'lein immutant deploy'
Starting Immutant: /Users/peter/.lein/immutant/current/jboss/bin/standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Users/peter/.lein/immutant/current/jboss
JAVA: java
Starting Immutant: /Users/peter/.lein/immutant/current/jboss/bin/standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Users/peter/.lein/immutant/current/jboss
JAVA: java
JAVA_OPTS: -d32 -client -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
21:03:36,499 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 50) JBAS016200: Activating ConfigAdmin Subsystem21:03:36,512 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 55) JBAS010280: Activating Infinispan subsystem.21:03:36,522 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 56) JBAS016300: Activating JacORB Subsystem21:03:36,552 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 66) JBAS011800: Activating Naming Subsystem21:03:36,567 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 67) JBAS011906: Activating OSGi Subsystem21:03:36,588 INFO [org.jboss.as.security] (ServerService Thread Pool -- 72) JBAS013171: Activating Security Subsystem21:03:36,605 INFO [org.jboss.as.connector.logging] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.13.Final)21:03:36,612 INFO [org.jboss.as.security] (MSC service thread 1-2) JBAS013170: Current PicketBox version=4.0.14.Final21:03:36,636 INFO [org.jboss.as.naming] (MSC se
21:20:38,938 ERROR [stderr] (MSC service thread 1-5) /Users/peter/dev/playground/rainbow-tickets/config/application.rb:1:in `(root)'
21:20:38,938 ERROR [stderr] (MSC service thread 1-5) org/jruby/RubyKernel.java:1027:in `require'
21:20:38,938 ERROR [stderr] (MSC service thread 1-5) /Users/peter/.lein/immutant/current/jruby/lib/ruby/shared/rubygems/custom_require.rb:36:in `require'
21:20:38,938 ERROR [stderr] (MSC service thread 1-5) /Users/peter/dev/playground/rainbow-tickets/config/environment.rb:1:in `(root)'
21:20:38,939 ERROR [org.torquebox.core.runtime] (MSC service thread 1-5) Error during execution: ENV['RAILS_ROOT']=RACK_ROOT
ENV['RAILS_ENV']=RACK_ENV
require %q(org/torquebox/web/rails/boot)
: org.jruby.exceptions.RaiseException: (GemNotFound) Could not find rake-0.9.2.2 in any of the sources
at RUBY.materialize(/Users/peter/.lein/immutant/current/jruby/lib/ruby/gems/shared/gems/bundler-1.2.3/lib/bundler/spec_set.rb:90) at org.jruby.RubyArray.map!(org/jruby/RubyArray.java:2393) [jruby.jar:]
at RUBY
@petergarbers
petergarbers / gist:4174673
Created November 30, 2012 09:12
Remove whitespace from all files in a project
find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//"
Logo is not one of the allowed file types