Skip to content

Instantly share code, notes, and snippets.

@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)
@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 / 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 / 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 / keybase.md
Created March 19, 2014 04:48
keybase.md

Keybase proof

I hereby claim:

  • I am dobbs on github.
  • I am dobbs (https://keybase.io/dobbs) on keybase.
  • I have a public key whose fingerprint is 1DC7 AB3B 74DE 8F9F 31D0 D1A9 5AC0 5EE0 DBBE B4CF

To claim this, I am signing this object:

@dobbs
dobbs / README.md
Last active August 29, 2015 14:05 — forked from mbostock/.block

Mouseover to repel nodes. Adapted from an adaptation of Mike Bostock's talk on force layouts.

Trying to get collision detection of rectangular objects.

@dobbs
dobbs / index.html
Last active August 29, 2015 14:06
Examples of d3 and SVG <foreignObject> that don't work right
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<title>grids</title>
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script>
<style type="text/css">
svg {border: 1px solid #d0d0d0;}
</style>
</head>
@dobbs
dobbs / details.log
Last active August 29, 2015 14:08
go-server-14.2.0-377.deb checksums don't match (nor go-agent.deb, go-server.zip, go-agent.zip)
###### go-server.deb ###########################################################
$ curl -O http://download.go.cd/gocd-deb/go-server-14.2.0-377.deb
###### SHA1
$ echo "5f66e4effde11695f606270ea0eb27eb36226033 go-server-14.2.0-377.deb" | sha1sum -c -
go-server-14.2.0-377.deb: FAILED
sha1sum: WARNING: 1 computed checksum did NOT match
$ sha1sum go-server-14.2.0-377.deb
77da6bab514c386f4a41304ab9dc66504bf385b0 go-server-14.2.0-377.deb
@dobbs
dobbs / scratch.rb
Created December 10, 2014 15:32
PRY, Capybara, and Selenium for DOM REPL
require 'capybara'
Capybara.default_driver = :selenium
Capybara.javascript_driver = :selenium
Capybara.run_server = false
Capybara.app_host = 'http://localhost:3000'
class Scratch
include Capybara::DSL