hagenburger.net

Lemonade’s goal as a sprite generator is to be incredible easy to use, so you’ll use ist for...

positech.co.uk

It turned out this guy was Mark Rein from Epic, although he seemed to assume everyone within earshot knew exactly...

successfulsoftware.net

The first thing I need to say, right off the bat: Chinese users will not buy your software. Period. That...

rspec.info

RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...

Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...

The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...

Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some...

makandra dev
github.com

Nested exceptions for Ruby: When you rescue an error and then re-raise your own, you don't have to...

github.com

...updated with newly discovered issues and remove old issues as they're fixed or become obsolete. If you discover a bug that's not listed here, please report it so...

...everyone else can benefit...

...however that if your transform only matches a substring (no ^ and $ markers at the beginning and end), you are still expected to return a replacement for the whole string that...

In order to save the original value of a constant, set the new value and restore the old value after...

...Javascript feature detection alone, this approach will be painful when heavily customizing a feature beyond just tweaking the looks. Eventually you will want want the same detection logic to be...

makandracards.com

In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset...

github.com

...a convenience method on Strings (you may need to require 'whatlanguage/string'). >> 'Wir entwickeln und betreiben anspruchsvolle Webanwendungen'.language => :german Depending on your users' input, consider using less languages for better...

makandra dev

If you use the Better Errors gem, you will sometimes notice that it can be very slow. This is because it sometimes renders a huge amount of data that will...

You can significantly improve performance by adding this to config/initializers/better_errors: if defined?(BetterErrors) && Rails.env.development? module BetterErrorsHugeInspectWarning def inspect_value(obj) inspected = obj.inspect if inspected.size > 20_000 inspected = "Object...

Webpacker can automatically create an icon font from SVG files, which is really handy. When you're using the asset...

To avoid sending e-mails containing sensitive data unencrypted I strongly suggest you enable a confirmation dialog. Enigmail can show...

Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the...

makandra dev

If you're using jQuery, you need to update to 1.5.1 to get Internet Explorer 9 to work.

Don't insert table rows in a Rails database migration. This will break tests that expect that database to be...

github.com

From Ubuntu 17, rbenv fails to install Ruby below 2.4 because of a mismatching OpenSSL dependency: it needs libssl1.0-dev for...

...this global option, and use the :visible option when calling page.find(...). This way the behavior is only changed for this one find and your step doesn't have confusing side...

Capybara has an option (Capybara.ignore_hidden_elements) to configure the default query behavior of finding nodes within the DOM. It's default value is false. That means that...

makandra dev

...directory like ~/bin/rubymine, and update that link whenever you update RubyMine. This has many benefits: A launcher pointing to ~/bin/rubymine/bin/rubymine.sh runs the recent version. No need to touch it.

makandra dev

Next time you have to do more than trivial CSS changes on a project, you probably want to have live...