When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...
BubbleTree is a library for interactive visualization of hierarchical data. Originally developed mainly for spending data, the library is now...
An amped-up alternative to Turbolinks that differs in points like this: It's opt-in instead of opt-out...
Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...
Cucumber allows for prose in features and scenarios. Example: Feature: Cancel account There are several ways to cancel a user...
Google Calendar integration into Thunderbird suddenly did not work any more for me. Thunderbird kept asking me for my password...
Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.
Javascript library for drag'n'drop that seems to have more options than native HTML5 drag'n'drop.
To bind an HTML value to ng-bind-html, you need to mark it as "trusted" first. Among other ways...
Put the font files (e.g. ttf) into ~/.fonts Run fc-cache -v Or, if you prefer to use the GUI...
If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...
You select some characters, make them bold and suddenly your entire document is bold? Here's how to fix that...
The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...
Angular-xeditable is a bundle of AngularJS directives that allows you to create editable elements. Such technique is also known...
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
Returning an empty scope can come in handy, e.g. as a default object. In Rails 4 you can achieve this...
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...
class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...
tl;dr: Use with_index ActiveRecord's find_each with index If you do not provide a block to find...
A different take on what we're doing with ActiveType. Since it lives under the rails organization it might be...
In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...
You need to copy an entire website? Use wget like this: wget -kr http://host.tld/ This will fetch all content...