You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.

We've made it easier to link other cards: You can now find a button Cite other card above the...

Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...

You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.

When using Rails to truncate strings, you may end up with strings that are still too long for their container...

The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...

makandra dev

This describes all the steps you'll need to get Solr up and running for your project using the Sunspot...

makandra dev

I have no idea how it's supposed to work (or why the don't have a print CSS), but...

There are several options, but most of them are impractical. The best way is to use the :ruby filter:

By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...

The buffer where text is put into when you double-click on text within X is called X selection.

You can use the step definition below to say this: Then the "Last name" field should have an error

You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...

You can use this shell command: uniq -u input.txt output.txt

You can use fold: fold -sw 60 You can now paste your texts. fold will echo them back, word-wrapped...

When you don't know which options are available, but need to have an option selected, use this step.

stackoverflow.com

These methods are available to you: page.driver.browser.switch_to.alert.accept page.driver.browser.switch_to.alert.dismiss page.driver.browser.switch_to.alert.text # the confirmation text Spreewald gives you steps like these:

Note that if you plan to downgrade Firefox because your Selenium tests broke after a Firefox upgrade, there is a...

Open up your "Base File.sublime-settings" (Preferences Menu → File Settings – User) in Sublime Text 2. Add entries for font_face...

We have a big flat screen TV (Samsung LE46c650l1kxxu) in our conference room. Configuring it properly, we were encountering some...

Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...

makandra dev

The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...

tools.ietf.org

In order to use different encodings than ASCII for HTTP headers use the following syntax: Header-Key: Header-Value; Parameter...

stackoverflow.com

When you double-tap a string of text on an iPhone or iPad a complicated context menu for copying and...