Skip to content

Instantly share code, notes, and snippets.

@dobbs
dobbs / zzz_pow.conf
Created November 27, 2012 14:14 — forked from soupmatt/zzz_pow.conf
Apache reverse proxy config for pow
<VirtualHost *:80>
ServerName pow
ServerAlias *.dev
ServerAlias *.xip.io
ProxyPassMatch ^/~ !
ProxyPass / http://localhost:20559/
ProxyPassReverse / http://localhost:20559/
ProxyPreserveHost On
</VirtualHost>
@dobbs
dobbs / gist:2926615
Created June 13, 2012 21:36
capybara acceptance spec helper for finding a cell in table
def find_by_row_identifier_and_column_name(row_identifier, column_name)
#XPath resources
# http://msdn.microsoft.com/en-us/library/ms256086.aspx
#
# Figure out the column number for the given column_name
# //th[contains(., 'Magic')] find the first TH whose enclosing EM is 'Magic'
# /preceding::th finds the collection of TH elements which appear before this one
# XML indexes start with 1 not 0, so we add 1
column_number = 1 + all(:xpath, "//th[contains(., '#{column_name}')]/preceding::th").length
@dobbs
dobbs / JBoss server.log
Created January 30, 2012 00:00
to_yaml missing on first hit: rails3.2.1 jboss7.1CR1b jruby1.6.6 warbler1.3.2
14:43:13,526 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/debug]] (http--127.0.0.1-8080-2) Warning: no min runtimes specified.
14:43:13,532 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/debug]] (http--127.0.0.1-8080-2) Warning: no max runtimes specified.
14:43:13,536 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/debug]] (http--127.0.0.1-8080-2) An exception happened during JRuby-Rack startup
method 'to_yaml' not defined in Object
--- System
jruby 1.6.6 (ruby-1.9.2-p312) (2012-01-30 5673572) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
Time: 2012-01-30 14:43:13 -0700
Server: JBoss Web/7.0.7.Final
jruby.home: classpath:/META-INF/jruby.home
@dobbs
dobbs / java-version.out
Created November 10, 2011 06:07
what am I missing here?
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)