github.com

Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...

makandra dev

Just dumping this in case somebody might need it. When you need a CSS value (a padding, margin, height etc...

Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.

Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...

makandra dev

Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...

makandra dev
iamvdo.me

Line-height and vertical-align are simple CSS properties. So simple that most of us are convinced to fully understand...

There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...

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

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

stackoverflow.com

This error message may occur when rspec gets loaded by rake, e.g. when you migrate the test database. NoMethodError: undefined...

medium.freecodecamp.com

Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...

Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...

makandra dev

You may know the double asterisk operator from Ruby snippets like Dir['spec/**/*_spec.rb'] where it expands to an arbitrary...

Ruby's regular expressions can be represented differently. When serializing them, you probably want to use inspect instead of to...

In general, you should not put a block element inside an inline element. So don't do this: text

So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...

Plot graphs in Ruby WebGraphviz renders in your browser via JavaScript (to store the rendered graph, extract the SVG using...

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

This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...

You can use three different versions of the regular expression syntax in grep: basic: -G extended: -E(POSIX)

This method will remove automatically installed packages that no other packages depend on any more. This, of course...

When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...

unixetc.co.uk

When a directory has more than a few thousand entries, ls will start taking really long to list its content...

You can have a command repeatedly executed and the output displayed. This is useful e.g. for monitoring file system changes...