If you're using the :header_html option in PDFKit (or the corresponding --header-html option in wkhtmltopdf), and the...

Capybara and most assistive technology will fail to find tags that are missing an href attribute. This will probably happen...

In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug...

# config/initializers/sidekiq.rb # Perform Sidekiq jobs immediately in development, # so you don't have to run a separate process.

makandra dev
developers.facebook.com

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

github.com

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

stackoverflow.com

If you want to move an element inside an array, neither JavaScript/ES6+ nor libraries like LoDash offet that natively.

blog.mailgun.com

Styling HTML email is painful. Tables, inline CSS, unsupported CSS, desktop clients, web clients, mobile clients, various devices, various providers...

Yesterday, Rails fixed a security issue (CVE-2014-3514) in Rails 4+. It was possible to use .where...

Nearly all jQuery traversal functions ignore elements that are not HTML tags. To work with other type of nodes (like...

These two addons will change your life: Search as list This will always open search results in the list views...

Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with...

makandra dev
github.com

edge_rider is Power tools for ActiveRecord relations (scopes). Please note that some of the functions edge_rider provides have...

Due to network or hardware failures, it can happen that one of your cronjobs will not run at the time...

zerosixthree.se

See attached link. The gist is: .element { position: relative; top: 50%; transform: translateY(-50%); } Works in all web browsers and...

dev.mysql.com

Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...

makandra dev
feedjira.com

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

In Cucumber, scenario outlines help avoiding tests that are basically the same, except for a few variables (such as different...

blog.arkency.com

Amazing guide how to divide a ball of Javascript spaghetti distinct separate layers (model, view, controller, backend adapter).

While RSpec 1 and 2 decided that specs inside spec/model are model specs, and those inside spec/features are feature specs...

Run this command to list the authors of the most recent commit of each branch: git for-each-ref --format...

Safari on iOS accepts an apple-touch-icon favicon that is used for stuff like desktop bookmarks. Always define a...

Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...

material.angularjs.org

The material design project for Angular is a complementary effort to the Polymer project's paper elements collection. Our goal...