SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...

postgresql.org

PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...

If you have many connections to your MySQL or MariaDB (as we have) you might want to filter the list...

Regular expressions in Javascript are represented by a RegExp object. There also is a regex literal as in many other...

I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...

mail-tester.com

You can use mail-tester.com to check your application's e-mails for issues that might cause e-mails to be...

You want to test your 1GE or 10GE internet uplink? We needed to ensure we have full 10GE to the...

When dealing with AR scopes, you can remove conditions, order, etc by using the unscope method. It is available on...

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

makandra dev

Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...

Method lookup Understand all the terms in How Ruby method lookup works, in particular: include extend singleton class

stackoverflow.com

With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...

makandra Curriculum

Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...

Many of our clients can't or don't want to design their user interfaces. In the absence of a...

makandra Curriculum

Your MovieDB gained traction and is now a popular tool among cineasts. This comes with a downside: You noticed a...

We are using the BEM pattern ("Block, Element, Modifier") to structure our CSS in all new projects. We try to...

makandra Curriculum

Built-in matchers Get an overview of all the matchers that are built into RSpec. Play with some of...

aws.amazon.com

I am happy to announce that this information is now available in JSON form at https://ip-ranges.amazonaws.com/ip-ranges.json. The information...

makandra Curriculum

Read the Rails Guide about Active Record migrations Understand why we never use models in migrations. Checkout the repository...

Understand how asynchronous JavaScript works: Read Henning's presentation about asynchronous Javascript (there's also a German video presentation...

As you most likely know validates_uniqness_of :foreign_id does not allow nil values by default.

Use form models to handle this problem Or soften the validation to validates_presence_of :parent

Reason: You very likely have a model that has a delay attribute. You can configure Sidekiq to remove its delay...

Web security basics Einführung in die Web Security 🇩🇪 provides essentials for the topic of this card. Read following chapters: