Skip to content

Instantly share code, notes, and snippets.

View mcornell's full-sized avatar

Mike Cornell mcornell

View GitHub Profile
@mcornell
mcornell / Personal News 1.md
Last active April 14, 2017 16:14
Personal News - 04/06/2017

I stopped blogging ages ago, so this is the best way I could think of to log form this.

Yesterday, I went to the eye doctor because of messed up vision in my left eye.

They told me I had a detatched retina and needed emergency surgery.

I ran over to the surgeon and they began to examine me.

They told me it's not a detached retina, but an ocular melanoma.

@mcornell
mcornell / Gradle Output.txt
Created February 8, 2012 20:03
Gradle Groovy Issues
------------- Analyzing Putting the D&D in TDD - Groovy
Selected quality profile : [name=Sonar Groovy Way,language=grvy]
Configure maven plugins...
Compare to previous analysis (2012-02-08)
Compare over 5 days (2012-02-03, analysis of 2012-02-08 07:46:59.394)
Compare over 30 days (2012-01-09, analysis of 2012-02-08 07:46:59.394)
Source dir for web files: C:\sandbox\put-the-dnd-in-tdd-groovy\dnd-tdd-groovy\DD-TDD\src\main\groovy
Initializer ProjectFileSystemLogger...
Source directories:
C:\sandbox\put-the-dnd-in-tdd-groovy\dnd-tdd-groovy\DD-TDD\src\main\groovy
@mcornell
mcornell / Stack Trace.txt
Created November 2, 2011 12:21
New stack trace for Race Condition in selenium-webdriver-2.10.0
Error is: Selenium::WebDriver::Error::NoSuchElementError
Backtrace is:
[remote server] file:///C:/DOCUME~1/ACPCIID/Local%20Settings/Temp/webdriver-profile20111101-5196-3uhp10/extensions/fxdriver@googlecode.com/components/driver-component.js -> file:///C:/DOCUME~1/ACPCIID/Local%20Settings/Temp/webdriver-profile20111101-5196-3uhp10/extensions/fxdriver@googlecode.com/components/firefoxDriver.js:401:in `unknown'
[remote server] file:///C:/DOCUME~1/ACPCIID/Local%20Settings/Temp/webdriver-profile20111101-5196-3uhp10/extensions/fxdriver@googlecode.com/components/driver-component.js -> file:///C:/DOCUME~1/ACPCIID/Local%20Settings/Temp/webdriver-profile20111101-5196-3uhp10/extensions/fxdriver@googlecode.com/components/firefoxDriver.js:424:in `unknown'
[remote server] file:///C:/DOCUME~1/ACPCIID/Local%20Settings/Temp/webdriver-profile20111101-5196-3uhp10/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:306:in `unknown'
[remote server] file:///C:/DOCUME~1/ACPCIID/Local%20Settings/Temp/webdriver
@mcornell
mcornell / Selenium Issue 2099 StackTrace.txt
Created October 21, 2011 13:46
Monkey Patching Selenium's Firefox Timeout Condition in Watir-Webdriver
The given selector ".//h1 is either invalid or does not resultin a Webelement. The following error occurred:
[InvalidSelectorError] Unable to locate elements with the xpath expression .//h1 because of the following error:
[Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.createNSResolver]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://fxdriver/modules/atoms.js :: <TOP_LEVEL> :: line 2360" data: no] (Selenium::WebDriver::Error::InvalidSelectorError)
@mcornell
mcornell / configure-jasmine-maven-plugin-pom-snippet.xml
Created September 22, 2011 17:40
Enabling maven-jasmine-plugin with your legacy application
<properties>
<legacy.js.src>${project.basedir}\..\my-legacy-app\src\includes\js</legacy.js.src>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.github.searls</groupId>
<artifactId>jasmine-maven-plugin</artifactId>
<version>1.0.2-beta-5</version>
@mcornell
mcornell / Jasmine specs output
Created September 20, 2011 16:12
Output of jasmine-maven-plugin with config problem.txt
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Some Javascript Tests
[INFO] task-segment: [clean, test]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\sandbox\jasmin-maven-plugin-bug\jasmine-tests\target
[INFO] [jasmine:generateManualRunner {execution: jasmine}]
Mojo is executing
jsSrcDir: C:\sandbox\jasmin-maven-plugin-bug\my-legacy-app\src\includes\js
@mcornell
mcornell / class_including_module.rb
Created August 9, 2011 18:20
Override Module private Method in Ruby/JRuby
class ClassIncludingModule
include OverrideMe
do_something
end
@mcornell
mcornell / Google Finance News Cluster.html
Created August 1, 2011 14:21
Implementing Page Parts in watir-page-helper
<div class="cluster">
<div>
<a class="title" href="http://www.smh.com.au/world/us-not-out-of-the-woods-yet-despite-deal-to-avert-default-20110801-1i8bt.html?from=smh_sb" rel="nofollow" id="n-hp-">US not out of the woods yet, despite deal to avert default</a>
</div>
<div class="byline">
<span class="src">Sydney Morning Herald</span>
<span class="date" tm="1312209001"> - 17 minutes ago</span></div>
<!-- google_ad_section_end -->
<div class="snippet">A deal may have been reached but the US still faces some tough economic hurdles. Photo: AFP THE US could still lose its coveted AAA credit rating in coming months despite a last-minute deal struck yesterday between the White House and Republicans that ...</div>
<!-- google_ad_section_start -->
@mcornell
mcornell / error_writer.rb
Created April 13, 2011 14:23
Making Your Cukes More Awesomer With Screenshots
module ErrorWriter
def scenario_name(scenario)
if scenario.instance_of?(Cucumber::Ast::OutlineTable::ExampleRow)
scenario_name = scenario.scenario_outline.name.gsub(/[^\w\-]/, ' ')
scenario_name += "-Example#{scenario.name.gsub(/\s*\|\s*/, '-')}".chop
else
scenario_name = scenario.name.gsub(/[^\w\-]/, ' ')
end
scenario_name
@mcornell
mcornell / Gemfile
Created March 24, 2011 18:53
Running Cucumber with celerity and watir-webdriver. No need for Selenium Server for headless
source "http://rubygems.org"
gem "cucumber", "0.10.0"
gem "gherkin", "2.3.3"
gem "watir-webdriver", "0.2.0"
gem "rake"
gem "rspec"
platforms :jruby do
gem "celerity", "0.8.7"
gem "syntax"