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

Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

When a paperclip attachment gains a new style and you have many attachments, reprocessing can take ages. This is because...

has_attached_file( :avatar, :styles => { :large => "300x300", :small => "100x100" }, :convert_options => { all => "-colorspace RGB" } )

github.com

We built cucumber_spinner to have a progress bar for Cucumber features, which also outputs failing scenarios as soon as...

To parse XML-documents, I recommend the gem nokogiri. A few hints: xml = Nokogiri::XML(" foo bar ") parses an xml...

See the lemonade descriptions. Unfortunately, the gem has a few problems: it does not work with Sass2...

makandra dev

This is about converting Haml to ERB and not the other way round which you probably want! This process can...

.error, .information, .warning { font-weight: bold; } .notice { color: #11bb00; } .error { color: #F53A31; } .information { color: #557; } .warning { color: #d07d2d; }

ActsAsSolr::Post.execute(Solr::Request::Delete.new(:query => "#{Location.solr_configuration[:type_field]}:#{ModelClass}")) ActsAsSolr::Post.execute(Solr::Request::Commit.new)

makandra dev

tmp/* storage/* db/*.sqlite3 db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html

code.google.com

JSViz makes it easy to create dynamic 2D views of information. Practical applications include network graphs, navigation, and other dynamic...

video.yahoo.com

Web performance expert Nicole Sullivan discusses a set of best practices in the creation of supremely fast, visually impactful web...