When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...

This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...

alfajango.com

The CSS Emoticons plugin is a simple jQuery plugin (and stylesheet) that allows you to turn any text emoticons on...

paulirish.com

Cached fonts WILL caused an unstyled flash of text.

github.com

This gem is designed to provide CSS views to Rails, and a process to concatenate and minify these files to...

wmd-editor.com

WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD...

Expiration of Rails sessions By default Rails sessions expire when the user closes her browser window. To change this edit...

When submitting textareas, browsers sometimes include carriage returns (\r) instead of just line feeds (\n) at the end of each...

makandra dev

There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

To return non-HTML responses (like XLS spreadsheets), we usually use the respond_to do |format| format.xls do # send spreadsheet...

The box shadows created rendered in IE by CSS3PIE look darker and are blurred differently than in browsers that render...

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

When you create e.g. a sidebar box that contains headlines and paragraphs, the final paragraph's margin in that box...

When you need to add a event listener to hundreds of elements, this might slow down the browser. An alternative...

When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.

Use this if you want to show or hide part of a form if certain options are selected or boxes...

ubuntuforums.org

Keyboard layout reverting to US on (every) reboot Cause: I found the same problem, but only on my wife...

The following Sass will do it: hr color: #ddd background-color: #ddd border: none height: 1px

github.com

PaintbrushJS is a lightweight, browser-based image processing library that can apply various visual filters to images within a web...

github.com

Currently not possible as the linked .htc file contains JavaScript which is not explicitly called. The developers are working on...

In Webkit you can use the HTML5-attribute autofocus: = form.text_field :title, :autofocus => 'autofocus' Here is a jQuery fallback for...

morris-photographics.com

Some browsers render PNG images with color profiles and other shenanigans, some do not. The cleanest way to have consistent...

makandra dev

Notebook: 1280x800 (many consumer notebooks) Netbook: 1024x600 Desktop: 1440x900 / 1680x1050 (19"- und 22"-Widescreen-TFTs) iPad: 768x1024