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...

Just install the texlive-xetex package: sudo apt-get install texlive-xetex Running integration tests without texlive-xetex will produce...

You select some characters, make them bold and suddenly your entire document is bold? Here's how to fix that...

Browsers make this very hard. Even when you explicitely set the selection inside the textarea (e. g. using jquery-fieldselection...

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

vitalets.github.io

Angular-xeditable is a bundle of AngularJS directives that allows you to create editable elements. Such technique is also known...

api.jquery.com

Simply use one(...) instead of on(...). It takes the same arguments.

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' };

Creating records in specs can be so fast that two records created instantly after one another might have the same...

Returning an empty scope can come in handy, e.g. as a default object. In Rails 4 you can achieve this...

We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...

p ActiveRecord::Base.connection.indexes(:table_name)

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

This is what worked for me in a Rails 4: # JSON data as first argument, then parameters patch :update, { some...

Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...

github.com

A collection of useful filters for AngularJS, e.g. for fuzzy string searching, displaying numbers as percentages an more.

class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...

makandra dev
ankane.github.io

Create beautiful Javascript charts with one line of Ruby. Promising chart library for easily rendering charts with Google Charts.

Have you tried the Search everywhere dialog? You can open it by pressing Shift twice.

makandra dev
github.com

A different take on what we're doing with ActiveType. Since it lives under the rails organization it might be...

engineyard.com

Nice tutorial about packaging Ruby bindings to your API in a Ruby gem, with tests using VCR casettes.

makandra dev

You need to copy an entire website? Use wget like this: wget -kr http://host.tld/ This will fetch all content...