If you want to know your public key's fingerprint, do this: ssh-keygen -lf ~/.ssh/my.key.pub This may be necessary...

makandra dev

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

When writing Rails migrations to convert a string column to an integer you'd usually say: change_column :table_name...

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...

...you're using Rails 4 (which brings String#indent in ActiveSupport), you'll be best of defining it yourself. This card has it for you. Gems that define String#indent...

We often use VCR to stub external APIs. Unfortunately VCR can have problems matching requests to recorded cassettes, and these...

MariaDB (and MySQL) is released in different versions with different behaviors. For backwards compatibility this can be managed with the sql_mode option. Following you can find behavior differences which...

Many of our developers love to use the "awesome" window manager on Linux. However, RubyMine dialogs occasionally defocus while typing...

...no longer executed. Both are caused by the return inside of the block. This behavior is by design, just so that you can break out of a block -- and you...

...buffer { return block.call(*args) } end end This can come bite you with extremely unexpected behavior of your application, as this will mean a slightly different result of your capture:

When you have files in your .gitignore they won't be considered for changes, but still you might want to...

...your code a good manner, it can affect readability in a terrible way. The better option is to bundle your local font into an npm package and to add a...

travisonrails.com

You set a flash message and it shows up as it should. However, it is displayed again the next time...

Add deprecation warnings and their solution or link to available solutions. Global access to Rake DSL methods is deprecated. Please...

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

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

makandra dev

...I want to point out that it has clear strengths, too. Pro Simple and beautiful interface. Outstandingly organized source code. Have never seen a JS library that was this structured...

...name ( by ) until it starts replacing into tags. Seriously. This is just horribly broken beyond repairs, so we do it ourselves. While the documentation states that allowedTags is processed upon...

This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|

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.

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

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...

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

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...

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