makandra dev

The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...

Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...

tutorialzine.com

A very clever hack to parse a structured URL object is to create a element and set its href to...

makandra dev
github.com

Shortener is a Rails Engine Gem that makes it easy to create and interpret shortened URLs on your own domain...

Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...

Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...

By default, Twitter Bootstrap's print styles include printing links. /* Bootstrap's way of printing URLs */ @media print {

Restangular can make use of $http's built-in response cache. # Cache response for single request Restangular.one('accounts', 123).withHttpConfig...

Firefox 5.0.1, which we were using for most Rails 2.3 projects, does not run on Ubuntu 14.04 any more. Here...

makandra dev
blog.idrsolutions.com

If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...

The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...

github.com

bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...

github.com

JavaScript structures that include circular references can't be serialized with a"plain" JSON.stringify. Example: a = { name: 'Groucho' };

There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...

makandra dev

We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv

makandra dev
developers.facebook.com

For server-to-server requests to the Facebook Graph API you can skip requesting an Oauth token, an...

Let's say you have two screens: Show a given project Show a report for all projects Ideally you want...

makandra dev
github.com

PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...

When using jQueryUI's Sortable plugin (either directly or via Angular's ui.sortable), you might struggle testing your nice drag...

github.com

Restmod creates objects that you can use from within Angular to interact with your RESTful API.

makandra dev
feedjira.com

Great gem to consume RSS feeds. I was missing some features on Ruby's RSS::Parser that I found in...

makandra dev
github.com

Parses URLs of social networks to extract IDs or screen names. It does not get confused by child routes: you...

When you don't only have a favicon.ico in your project but also PNGs of different sizes and backgrounds, you...