stackoverflow.com

I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...

makandra dev
tldp.org

...is functional as of Bash 4. This seems to result in a slightly differing behaviour when redirecting output in Ruby scripts. Instead of cmd &> file, prefer cmd > file...

If you want to load an SQL dump from an ActiveRecord migration, you might find this to be harder than...

web.archive.org

...step above is that the console output of Cucumber will always be one step behind the Selenium window. This is because the sleep is blocking the completion of the step...

Install Ruby from the Ubuntu repository: sudo apt-get install ruby ruby-dev \ ruby is the meta package. If you...

makandra dev

The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium 0.2.2. It may not recognize a select field if the...

...value. If you don't have the possibility to upgrade these Gems, probably the best way to go is to distinguish the current Capybara driver: Then /^"([^"]*)" should be selected for...

makandra dev

This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...

smartinez87.github.io

The new exception_notification has awesome options like :ignore_crawlers => true and :ignore_if => lambda {...

...}. These options should be helpful...

We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...

If you get this error (probably because you want to load some modules): # modprobe xt_comment FATAL: Could not load...

We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...

Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...

When you have an element you want to hide, you can add a ng-show='isOpen' attribute to that element...

Defining one callback several times in the same class behaves different in ActiveRecord and ResourceController. While in ActiveRecord the callbacks are enqueued, they overwrite each other in ResourceController. ActiveRecord - a...

class Post < ActiveRecord::Base does 'post/behavior' before_validation :do_something end module Post::BehaviorTrait as_trait do before_validation :do_something_else end end do_something_else and do...

You're using exception_notification and want to send exception mails within a model. Here's how. The ExceptionNotifier class...

If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...

>> ?> errors => {:base=>["foo", "bar"]} If you need to hack anything with these errors, beware that it behaves in a special way. If you iterate over the errors it will...

When you just went through a long debug-fest and infested your code with dozens of debug messages, it can...

rails-assets.org

At makandra we made a choice to use bower-rails instead. While we believe Rubygems/Bundler to be superior to Javascript package managers, we wanted to use something with enough...

...community momentum behind it that it won't go away in 10 years. Mixing Rails Assets with other Javascript sources Note that you can get into trouble when you mix...

If you are connected with a network that forbids e-mail traffic but allows SSH, you can tunnel your e...

If you get a Quota error with OpenStack, it doesn't have to be what it tell. For example, I...

When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you...

The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...

Let's say you have two XML strings that are ordered differently but you don't care about the order...