Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...

Google Chrome has a subtle rendering bug that hits me once in a while. It usually occurs in sliders with...

As a web developer, you know Google Analytics (GA). Probably you've dropped the GA snippet into more than one...

Rails defines a #truncate helper as well as a method String#truncate. = truncate("my string", length: 5) = "my string".truncate...

makandra dev
litmus.com

The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...

guides.rubyonrails.org

TL;DR Append your locale keys with _html to have them marked as html_safe and translate them with = t...

When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...

You know that you can use jQuery's text() to get an element's contents without any tags.

For outputting a given String in HTML, you mostly want to replace line breaks with or tags.

Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...

If you have a single node elasticsearch instance and indices with replicas enabled your cluster state will be yellow. If...

api.rubyonrails.org

Rails offers a way to prepend (or append) view paths for the current request. This way, you can make the...

Form fields can be rendered as noneditable by setting the disabled or the readonly attribute. Be aware of the differences...

makandra dev

When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...

This is painful. Consider using Microsoft Office or switching careers. If you need to write < 20 letters consider doing it...

makandra dev
curl.haxx.se

When making requests using curl, no cookies are sent or stored by default. However, you can tell curl to re...

When you print (or print preview) and elements are cut off (e.g. after 1st page, or "randomly") you should check...

Situation: You want to write a spec for a function inside an Angular service. This function at some point makes...

By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...

makandra dev

An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...

When your public-facing application has a longer downtime for server maintenance or long migrations, it's nice to setup...

Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...

If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...

Download the dictionary from http://www.winedt.org/dict.html, e.g. http://www.winedt.org/dict/de_neu.zip unzip de_neu.zip mkdir ~/Documents/dic iconv -f UTF-16 -t...