This method will remove automatically installed packages that no other packages depend on any more. This, of course...
If you use awesome 3.5, and a gnome or mate panel, the panel will often receive focus when you switch...
There is no CSS selector for matching elements that contains a given string ¹. Luckily, Capybara offers the :text option to...
When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...
Yesterday I stumbled across a talk in which the guy mentioned module sub-classing. I was curious what you can...
A haml angular 1 template with .thing(class="is-{{:: item.type }}") will be compiled (by haml) to which is not what...
In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...
Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...
When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...
If you want to find the commits that touched a specific text in a file, use git log -G 'text...
Run dconf-editor (as your user) Go to org / mate / panel / objects / clock / prefs Change the key format to custom...
Detect if a gem has been activated A gem is activated if it is either in the current bundle (Gemfile.lock...
We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...
Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end.
These are Chrome plugins that proved useful at makandra. Each is the best-in-class. Dimensions Auto-measure distances by...
ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...
Similar to our snippet that runs all Cucumber features matching a given string, the following will run all modified or...
You know those helper methods that just render some HTML but look weird because of content_tags all over the...
In this article, we’ll look at what side effects are, why they are problematic despite being necessary, and how...
We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...
Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...
Presentation about optimizing Ruby on Rails apps. From Nico Hagenburger (homify's lead frontend developer).
To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...
This pretty-prints a JSON object, with two spaces of indentation: JSON.stringify(object, null, 2)