If your external displays not switching on or showing a weird behavior (for e.g. all displays getting the same configuration all the time) you can fix it by switching off...

...in the first step. Afterwards you can apply your whole configuration via xrandr. This behavior could be a bug in the kernel and may be fixed in linux 4.8.

On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually...

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...

...supports standard Hash.new forms There's also a Concurrent::Cache class that sort of behaves like an unordered Hash, but is much faster. Info If you're using Rails you...

makandra dev

We have projects that have been developed using many different versions of Ruby. Since we do not want to...

bugs.ruby-lang.org

TL;DR Under certain circumstances, dynamically defined symbols may break keyword arguments in Ruby 2.2. This was fixed in Ruby...

makandra dev

Never use raise_error without specifying the Error you expect. expect { do_a_lot_of_complicated_stuff }.to raise_error...

...failed apparently. Here is a traceroute to 1.2.3.4: HOST: foo.example.com Loss% Snt Last Avg Best Wrst StDev...

...after hooks. But, just like the default task, it calls update_code at the beginning, symlink to link the "current" path and restart once all done. -- Those are the hooks...

...first update the code and then migrate -- making the deploy:update_code hook the better choice...

When writing a Sass function, you may run into an error message that may be confusing: @function rules may not...

ariejan.net

...to choose smaller column sizes for performance (it won't matter until your project becomes big, so don't worry about it for now). Integer column lengths, mediumint, bigint, and...

...use this kind of call if your code is run by a background job. Better, don't use it at all. Exception Notifier 2.6 and 3 ExceptionNotifier::Notifier.background_exception_notification...

When you try to remove a non-existing index using remove_index, the migration will incorrectly pass without an error...

...to when precompiling your assets, and give your stylesheets access to all the regular bells and whistles (like asset_path, proper @imports etc): class DynamicStylesheetsController < ApplicationController def show logical_path...

Rails comes with a Rake task notes that shows code comments that start with "TODO", "FIXME", or "OPTIMIZE".

...the first time it was referred to, causing user to be loaded, which Ruby believed it had not seen before. And that caused a completely different spec to fail at...

There seems to be no built-in matcher in RSpec to check if a string contains terms in the desired...

tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...

Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...

To read the Rails session from a Rack middleware, use env['rack.session']. It's an ActionDispatch::Request::Session object.

a fraction, with a decimal point before it. I.e., -M5 becomes 0.5, and is thus the same as -M50%. Similarly, -M05 is the same as -M5...

makandra dev
innig.net

If you want to get a deep understanding of how closures, blocks, procs & lambdas in Ruby work, check out the...

Simply add this to your .rspec instead: --require spec_helper If you are on rspec >= 3 and use a rails_helper.rb...

makandra dev

Spreewald now has a spreewald binary that lists all available steps, optionally filtering them. Example: $> spreewald # All Spreewald steps