makandra dev

If you use a form (or form fields) multiple times inside one view, Rails will generate the same id attributes...

adobe.com

Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to...

Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.

makandra dev

Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use...

makandra dev
code.google.com

Javascript that implements client-side hyphenation of HTML-Documents.

getfirebug.com

You know Firebug as a Firefox extension but there is also a "Lite" version which runs purely off JavaScript.

github.com

jQuery plugin to register callback functions to keyboard shortkuts. Keyboard events in vanilla Javascripts are super-painful to work with...

Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...

alfajango.com

The difference between .bind(), .live(), and .delegate() is not always apparent. Having a clear understanding of all the differences, though...

This card describes a Cucumber step that lets you say: When I perform basic authentication as "username/password" and I visit...

From time to time we're convinced that an error must be very close to the network card, OS IP...

You cannot use Array#join on an array of strings where some strings are html_safe and others are not...

cssdiscussion.com

If you want your application to display properly on iPad, iPhone or Android there are two things to do:

imperialviolet.org

In January this year (2010), Gmail switched to using HTTPS for everything by default. Previously it had been introduced as...

The following Sass will do the trick: button, input[type="reset"], input[type="button"], input[type="submit"], input[type="file...

Our collection of the most useful Cucumber steps, Spreewald, now supports exact matching of form fields and lets you use...

When you need to see the content of a page (i.e. not all the HTML but the relevant text body...

Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:

Use the htmlentities gem. Encoding works like this: require 'htmlentities' coder = HTMLEntities.new string = "<élan>" coder.encode(string) # => "&lt;élan&gt;"

When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...

Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...

apidock.com

E.g. when you're using a tagging gem, you have seen virtual attributes that get and set a string array...

web.archive.org

This step tests whether a given select option comes preselected in the HTML. There is another step to test that...

This collection of Sass mixins enables cross-browser styling (including IE with CSS3PIE) with less lines of code.