Haml 3.1.2 displays single quotes in FormBuilder#text_ field html escaped. You may see something like that:

If your application has forms to edit string fields, you probably want to strip the entered values (remove whitespace from...

makandra dev
speakerdeck.com

The linked slidedeck holds many tips, of which I list the most interesting to me below DATA and END

shifteleven.com

The __END__ keyword tells Ruby where a file ends – but you don't have to stop there. Any text you...

There is no reason to leave trailing whitespace characters in your project's files, so don't add any.

Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:

Assuming the following sunspot setup of the post class: class Post < ActiveRecord::Base searchable do text :title string :state

When committing, you should always check the diff of your changes so you don't include any leftovers or irrelevant/bad...

Jedes nicht rein private Profil auf Social Media Portalen muss ein Impressum haben, das heißt insbesondere Unternehmen und Freiberufler (§ 5...

The step definition below lets you write: When I click on "Foo" This is useful in Selenium features where the...

Makandra cards will auto-detect the language used for syntax highlighting. This auto-detection sometimes fails for short code snippets...

Consider this Sass: .comment width: 320px; height: 240px; Any textarea with the comment class will be sized 320 by 240...

In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...

LibreOffice Impress, Writer, etc. doesn't embed most fonts into the PDFs it generates. This means if you share a...

ask.libreoffice.org

Upgade to LibreOffice 3.5.3+ or disable hardware accelleration in Tools → Options → LibreOffice → View → Graphic output.

makandra dev

To have your text input field pre-filled in with some text that disappears as soon as the user selects...

jsfiddle.net

Consider this HTML: Click me! Hello Universe! Hello Universe! Hello Universe! Hello Universe! Hello Universe! Hello Universe!

If you're suffering from a huge de.yml or similiar file, cry no more. Rails lets you freely organize your...

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

Say you want to vertically align a div box inside a div container. This is how you do it:

makandra dev
github.com

DTAUS & DTAZV are formats for German bank transfers and is short for "Datenträgeraustausch". The format itself totally sucks because it...

Spreewald gives you steps like these: When I enter "text" into the browser dialog Also see Accept or deny JavaScript...

You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }

In your ~/.gitconfig: [core] editor=nano