web.archive.org

Use the compile function to change the original DOM (template element) before AngularJS creates an instance of it and before...

makandra dev

CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...

MariaDB (and MySQL) is released in different versions with different behaviors. For backwards compatibility this can be managed with the...

When a user shares your content, a snippet with title, image, link and description appears in her timeline. By default...

You can share a state in Ruby with global variables. Even if you should avoid them whenever possible, for debugging...

When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...

Sometimes, due to git or other "accidents", important files get deleted or overwritten. At a state when even Ctrl+Z...

makandra dev

webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...

RubyMine comes with a nice way to grep through your project's files: The finder (ctrl + shift + f). Don't...

Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

With ActiveType 1.2 you can modify associations (has_many etc.) after they have been defined. One common use case for...

In Ruby on Rails, all objects have a useful blank? method. It returns true for nil but also for empty...

The gem json fails to install for Ruby 2.5 if you use a version equal or below 1.8.3.

makandra dev
github.com

Katapult was an endeavor to dramatically speed up starting a new Rails application. However, it turned out to save less...

Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...

The issue in this card can occur if the node_modules directory is checked into your Git repository. We usually...

Cucumber up to version 2 had a neat feature called Step Argument Transforms which was dropped in favor of Cucumber...

When deploying with capistrano it's possible you get this "error" message: *** [err :: example.com] There are no Phusion Passenger-served...

jQuery has a function $.fn.trigger(). You can use it to dispatch an event on a jQuery object: let $element = $('.foo...

To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...

Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...

We're always striving towards keeping our website's JavaScript as small as possible. If you're using webpack(er...

If you struggle with a /boot partition that is too small for updates, and you are too intimidated by the...