Skip to content

Instantly share code, notes, and snippets.

View tobowers's full-sized avatar

Topper Bowers tobowers

View GitHub Profile
config:
something_for_all: true
storage_backend: 'mongo'
queue_backend: 'amqp'
redis:
host: localhost
mongo:
host: localhost
amqp:
host: localhost
@tobowers
tobowers / gist:2919241
Created June 12, 2012 18:30
Log after doing 6 touch tmp/restart.txt of trinidad
11:23 ~/Sites/amicus/trini_tester (master)$ JAVA_OPTS="-server -Xmx500m" trinidad
Jun 12, 2012 11:23:28 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-3000"]
Jun 12, 2012 11:23:28 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Jun 12, 2012 11:23:28 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
2012-06-12 18:23:28 INFO: No global web.xml found
2012-06-12 18:23:29 INFO: Info: received max runtimes = 1
2012-06-12 18:23:29 INFO: jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.7.0-u6-b01) [darwin-amd64-java]
13:48 ~/Sites/amicus/brief (dev/test_memleak)$ bundle exec trinidad
Jun 18, 2012 1:49:24 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-3000"]
Jun 18, 2012 1:49:24 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Jun 18, 2012 1:49:24 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
2012-06-18 13:49:25 -0700 INFO: No global web.xml found
2012-06-18 13:49:25 -0700 INFO: Info: received max runtimes = 1
2012-06-18 13:49:25 -0700 INFO: jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.7.0-u6-b01) [darwin-amd64-java]
2012-06-18 14:07:10 -0700 FINE: The start() method was called on component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/]] after start() had already been called. The second call will be ignored.
org.apache.catalina.LifecycleException
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:508)
at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:368)
at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:50)
1) the admin's dashboard allows enabling of pending users
Failure/Error: page.should_not have_selector(:xpath, pending_name_selector)
expected xpath "//li[contains(@class,'pending_volunteer')]/a[contains(@class,'name') and contains(text(),'Pending McGee')]" not to return anything
# ./integration/admin/admin_dashboard_spec.rb:49:in `(root)'
2) the admin's outreach campaigns page can create campaign with new list/snapshot
Failure/Error: new_snapshot_people.should_not == orig_snapshot_people
expected not: == "3"
got: "3"
# ./integration/admin/admin_outreach_campaigns_spec.rb:67:in `(root)'
require 'syslog'
require 'java'
s = Syslog.open('test')
s.err("this is tagged [test]")
c = org.jruby.embed.ScriptingContainer.new(org.jruby.embed.LocalContextScope::SINGLETHREAD)
c.run_scriptlet("require 'syslog'")
> db.interactions.find({kind: {$in: [1]}}).sort({$natural: -1}).explain()
{
"cursor" : "ReverseCursor",
"isMultiKey" : false,
"n" : 0,
"nscannedObjects" : 1,
"nscanned" : 1,
"nscannedObjectsAllPlans" : 1,
"nscannedAllPlans" : 1,
"scanAndOrder" : false,
time bersp spec
Rack::File headers parameter replaces cache_control after Rack 1.5.
.........................................................................................................................................................................
Finished in 2.85 seconds
169 examples, 0 failures
Randomized with seed 53811
Profiling enabled; ^C shutdown will now dump profile info
main profile results:
Total time: 1.07
total self children calls method
----------------------------------------------------------------
0.53 0.00 0.53 283 Kernel.require
0.43 0.05 0.39 341 Kernel.require
0.35 0.00 0.35 1 Gem.try_activate
<subsystem xmlns='urn:jboss:domain:jgroups:1.1' default-stack='tcp'>
<stack name='tcp'>
<transport type='TCP' socket-binding='jgroups-tcp'/>
<protocol type='S3_PING' access_key='XXX' secret_access_key='XXX' location='XXXX' />
<protocol type='MERGE2'/>
<protocol type='FD_SOCK' socket-binding='jgroups-tcp-fd'/>
<protocol type='FD'/>
<protocol type='VERIFY_SUSPECT'/>
<protocol type='BARRIER'/>
<protocol type='pbcast.NAKACK'/>