makandra dev
litmus.com

The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...

When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...

When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load...

You need to update a lof gems. Make sure you don't have any version constraints in your...

Bundler::GemRequireError: There was an error while trying to load the gem 'mysql2'. Gem Load Error is: Incorrect MySQL client...

makandra dev

When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...

makandra dev
makandracards.com

Rails applications and ruby gems should have a README that gives the reader a quick overview of the project. Its...

Situation: You want to write a spec for a function inside an Angular service. This function at some point makes...

postgresql.org

PostgreSQL's Common Table Expressions (CTEs) can be used to extract sub-queries from bulky SQL statements into a temporary...

We're usually running Ubuntu LTS versions. Sometimes newer hardware requires packages from more recent Ubuntu releases that only come...

A common pattern in Ruby is to to require all files in a specific diretory, using something like Dir.glob(Rails.root.join...

After loading a staging dump into development, you might get an ActiveRecord::EnvironmentMismatchError when trying to replace the database (like...

When localizing model attributes via I18n you may run into errors like this: I18n::InvalidPluralizationData: translation data {...

...} can not be...

askubuntu.com

You need to disable "Bluetooth low energy", then follow these core steps: Make sure the headphones are in pairing mode...

First, go to the webinterface of your phone. Choose Software Update in the navigation on the left. Next, you have...

Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...

When you load a dump for development, records may reference images that are not available on your machine.

medium.com

As web developers, we know how easy it is to end up with web page bloat. But loading a webpage...

makandra dev
github.com

Reminder of what you can do with Geordi. Note: If you alias Geordi to something short like g, running commands...

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

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

github.com

When running tests via parallel_tests, you may encounter an error: cannot load such file -- parallel_tests/gherkin/runtime_logger Error creating formatter...

unixetc.co.uk

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