For Capybara, use this step: Then /^"([^"]*)" should be a disabled option for "([^"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| with_scope(selector...
Exception notifications contain a lot of information: Backtraces, HTTP headers, etc. exception_notification tries its best to format this wall...
Did you know you can do in-place batch processing with plain ruby? The following script will in-place replace...
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
This trick might be useful to implement more complicated directives in AngularJS. I needed it to do drag'n'drop...
Say you want to allow users to emphasize some string, but the whole markdown thing would be far too much...
Spreewald's patiently repeats the given block again and again until it either passes or times out.
When a controller action redirects to an external URL (like http://somehost.com/some/path) you will find that this is hard...
Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...
If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...
UnicodeUtils implements Unicode algorithms for case conversion, normalization, text segmentation and more in pure Ruby code.
Ruby has two different ways to match the start and the end of a text: ^ (Start of line) and $ (End...
Behave.js is a lightweight library for adding IDE style behaviors to plain text areas, making it much more enjoyable to...
Awesome color schemes for RubyMine, Sublime Text 2 and other editors. To install the themes into your Rubymine, copy intellij...
The way MySQL's FULLTEXT tokenizer splits text into word tokens might not always be what you need. E.g. it...
Microsoft Office pre-fetches hyperlinks using an internal DLL (which doesn't know about your cookies), follows all redirects and...
Mark window as "demands attention" Install wmctrl through your package manager, i.e. sudo apt-get install wmctrl Download the attached...
When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...
If - for whatever reason - you have to render stylesheets dynamically, the following snippet might be of help. It emulates what...
For two years we've been using SearchableTrait which gives models the ability to process Googlesque queries like this: Contact.search...
Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...
When you want to copy/move from a shared folder (on Windows guests, for example) and it fails with absurd error...
Having your site run on SSL is worthless when you include content over an unsafe connection (HTTP).
If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...