Did you know you can do in-place batch processing with plain ruby? The following script will in-place replace...

ActiveRecord has a feature called counter caching where the containing record in a has_many relationship caches the...

Sometimes you want to load code on demand. For instance, when a a large library is only used on a...

Since May 2011 we are cutting new gems using Bundler, which is less painful than cutting gems using Jeweler. You...

web.archive.org

...forward than I had expected. And, it turns out Internet Explorer’s RFC-incompliant behaviour makes it safer to host your websites with a www-prefix, so www.mxsasha.eu instead of...

makandra dev

...In Rails 3.1+ the asset pipeline will take care of this. Thus you're best off using an uncompressed version of your Javascript in development. Also load the non-minified...

makandra dev

...them by spaces: /alertson KEYWORD1 KEYWORD2 Keywords are case-insensitive. To revert to standard behaviour, use simply /alertson List of Skype commands

The method cookies is defined in the ActionController and should never be overwritten. Bad example class StaticPagesController < ApplicationController

css-tricks.com

...cannot detect whether a browser will do something useful with a tel: link. Your best options seem to be: Don't have tel: links and rely on the mobile browsers...

If Sunspot does not work and fails with a backtrace similar to this: /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:227:in `adapt_response' /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:164...

Spreewald now comes with a step that tests if a form field is visible: Then the "Due date" field should...

devblog.imedo.de

XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...

makandra dev
github.com

SitePrism gives you a simple, clean and semantic DSL for describing your site using the Page Object Model pattern, for...

ruby-toolbox.com

If you need a gem for a certain purpose, be sure to check this site. The rankings are determined by...

makandra dev
github.com

Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration...

...user@example.com'.split(/([@\.])/) => ["user", "@", "example", ".", "com"] Or, you can use a capture group with look-behind to keep them with the resulting substrings: >> 'user@example.com'.split(/(?<=[@\.])/) => ["user@", "example.", "com"] An example use...

Browsers usually cache website content in order to provide the user with faster responses. Examples are returning to a website...

...bug is fixed, you forget to take out that debug information. There is a better way. By copying one of the attached initializers into config/initializers, your forms will always render...

Modern cameras often produce JPEGs that have a "I should be rotated 90° to the left" flag. If you process...

Rubygems supports a 2FA for your account. Once enabled you need to provide your personal OTP code for every release...

I really love to use the shortcuts CTRL+Alt+ Arrow Left and CTRL+Alt+ Arrow Right to navigate through the...

You can throttle the network in your headless chrome via Selenium. This might be useful for debugging issues with flaky...

...on a string that was previously marked as #html_safe will lead to unexpected behavior. E. g. backreferences to captured groups ($1, $2) will be nil even if the group...

...be safe after using gsub on them. You can, however, fix the $1 gsub behavior on html_safe strings...

makandra dev
medium.freecodecamp.com

The linked article states that CSS breakpoints should group "similar" screen sizes and thus be at: 600px "narrow"