makandra dev

Before installing chef, make sure curl is installed and sudo finds your gems setup chef-client: follow this guide

smashingmagazine.com

Debugging in CSS means figuring out what might be the problem when you have unexpected layout results. We’ll look...

When you receive a ZIP file from a Windows user, umlauts and other non-latin1 characters in filenames may look...

When using ActionMailer, you can set an array of email addresses as recipients. If this array is generated by e.g...

If you worked with a system Ruby before switching to RVM, this system Ruby will be in your way when...

This can be helpful when you need the latest file inside a directory for processing in a shell script:

github.com

Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...

If your Angular app has some decent complexity, it will not be easy to use UI Router straight away. Here...

stackoverflow.com

TL;DR: Variables not declared using var are stored outside the current scope, most likely in the global scope (which...

markembling.info

...as it breaks Rails' magic, e.g. when using form_for. You'll always be better off using simple pluralizable resources. Rails automatically creates path names for routes defined via the...

If you need the initial user which you used to login to your Linux system or the time when you...

To change a commit message of the most recent (unpushed) commit, you can simply use git commit --amend -m 'new...

Many box shadows will make your app unusable on smartphones and tablets Designing Beautiful Shadows in CSS

If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...

This may be hard to find in the docs, but if you want CoffeeScript classes that instantiate their properties from...

api.jquery.com

The $.cssHooks object provides a way to define functions for getting and setting particular CSS values. It can also be...

Put the attached file into config/initializers/ to be able to say created_within on any ActiveRecord or its scope chain...

Sometimes you want to see what data you get through a TCP or UDP connection. For example, you want to...

You might get the above error message when cloning certain git repositories (for example the rails repository). It indicates that...

Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is as described in Solution 1. When doing integration testing with...

...retries in the most deeply nested patiently-block, but it may lead to unexpected behaviour, especially if the outermost patiently is "hidden". For example consider the following step, which wants...

...Use transactions where possible. It is the faster option all around, and will scale better than deletion as your number of records grow. Use deletion for Selenium features (here's...

chartjs.org

Chart.js seems to be a good alternative to Google's Chart API and other commercial chart drawing libraries.

medium.com

...Why, oh why, is this built with Rails when Node.js would be so much better?” or “how could the previous developer not have forseen that the database would need referential...

makandra dev
piwik.org

...Analytics. Since it is open-source, it can be self-hosted and thus offers better data protection and privacy. Notes Actuality Piwik does not show live reports, but updates its...