Large projects usually have large test suites that can run for a long time. This can be annoying as running...

Starting with Ruby 2.0 you can define methods with keyword arguments. In 2.1+ required keyword arguments can be defined by...

...its internal state. It is usually sufficient to use the then() function. Where promiseState() becomes useful is when writing unit tests for a function that returns a promise.

The maximum version of Internet Explorer you can have depends on your version of Windows. E.g. Windows 7 users can...

httpd.apache.org

If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...

A word of caution There should rarely be a reason for you to split up config/routes.rb. If you need to...

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

...supports standard Hash.new forms There's also a Concurrent::Cache class that sort of behaves like an unordered Hash, but is much faster. Info If you're using Rails you...

caniuse.com

Since late 2015, all major browsers (still excluding Firefox) support pointing device media queries. These can be used to distinguish...

makandra dev

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

stackoverflow.com

Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.

MariaDB (and MySQL) is released in different versions with different behaviors. For backwards compatibility this can be managed with the sql_mode option. Following you can find behavior differences which...

Fix Ensure your step definition cannot generate invalid selectors and instead prints better error messages. Adding field.should be_present might help, Note This error may be caused when...

Keep in mind Swap is not evil by definition. Some bytes per process beeing put to Swap will not have that much of performance influence. If you want the...

Look here for informations how you can show the MySQL default character set. At first you need the Amazon RDS...

awsdocs.s3.amazonaws.com

There is a new card about how to do this with the new AWS Command Line Interface

When writing a Sass function, you may run into an error message that may be confusing: @function rules may not...

If you want to know your public key's fingerprint, do this: ssh-keygen -lf ~/.ssh/my.key.pub This may be necessary...

When writing Rails migrations to convert a string column to an integer you'd usually say: change_column :table_name...

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...

...you're using Rails 4 (which brings String#indent in ActiveSupport), you'll be best of defining it yourself. This card has it for you. Gems that define String#indent...

To read the Rails session from a Rack middleware, use env['rack.session']. It's an ActionDispatch::Request::Session object.

We often use VCR to stub external APIs. Unfortunately VCR can have problems matching requests to recorded cassettes, and these...

makandra Curriculum

...as separate commits or branches. After the review with mentor you can keep the best version and delete the others. Asking for help You're working in a team of...