Most of the JavaScript snippets have code that manipulates the DOM. For that reason dom manipulating javascript code should have...

If you want to move a complete commit from one repository to another (and you don't want to add...

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...

html5please.us

Look up HTML5 features, know if they are ready for use, and if so find out you should use them...

Views are normally (for good reason) not rendered in controller specs. If you need it to happen, use:

It might sound trivial, but there is no such thing as a "hover" or "mouseover" state on touch devices. If...

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

makandra dev

This note summarizes the ruby exception hierarchy. Exception NoMemoryError ScriptError LoadError NotImplementedError SyntaxError SignalException Interrupt Timeout::Error # < ruby 1.9.2 StandardError...

stackoverflow.com

Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...

miekd.com

A pull quote is a typographical technique in which an excerpt or quote from an article is duplicated within the...

When you print out a HTML pages, all raster images (like PNGs) will appear aliased. This is because a printer...

If you are using Mobiscroll for date pickers on touch devices, here is how to localize the Mobiscroll UI into...

Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...

Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...

github.com

Ruby bindings for Sundown, a fast and full-featured Markdown parser that lets you define renders for arbitrary output formats...

Association named 'variations' was not found; perhaps you misspelled it? I just was hunting down a strange error with this...

makandra dev

When you're getting this error, one possibility is that you've created a select field for an association instead...

One of the most common production errors are ActionController::MethodNotAllowed errors. They usually happen when someone reloads a form by...

peter.sh

A list of CSS vendor-prefixes.

github.com

When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...

Submit buttons in Rails come with a useful option :disable_with which will disable the button when clicked and change...

When you use google analytics to track your visitors interactions, you should ensure that it runs on your production site...

makandra dev

When you use one line Ruby comments in ERB templates you should never do this (notice the whitespace in front...