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

If your Angular app has some decent complexity, it will not be easy to use UI Router straight away. Here...

Git has two kind of tags: annotated lightweight Annotated tags are stored as full objects in the Git database. They...

Sometimes when working with VCR you still want to use webmock. Since VCR hooks into webmock and fails when an...

github.com

When you're using Sidekiq::Web to monitor the Sidekiq status AND have your session cookie configured to a wildcard...

requestb.in

Requestb.in is a webservice that gives you a temporary URL you can use to test request. The page will automatically...

We're usually running Ubuntu LTS versions. Sometimes newer hardware requires packages from more recent Ubuntu releases that only come...

A common pattern in Ruby is to to require all files in a specific diretory, using something like Dir.glob(Rails.root.join...

Checking if a JavaScript value is of a given type can be very confusing: There are two operators typeof and...

RSpec allows you to mark a single Example/ExampleGroup so that only this will be run. This is very useful when...

github.com

When an Rspec example fails, I usually investigate by running that example again using rspec . However, this does not work...

You are not using javascript tests The file is served from a public folder (not via controller) Problem description...

makandra dev

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

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

When you want to group rails models of a logical context, namespaces are your friend. However, if you have a...

RSpec allows defining methods inside describe/context blocks which will only exist inside them. However, classes (or any constants, for that...

When localizing model attributes via I18n you may run into errors like this: I18n::InvalidPluralizationData: translation data {...

...} can not be...

docs.ruby-lang.org

Use return to return from a method. return accepts a value that will be the return value of the...

before(:all) runs the block once before all of the examples. before(:each) runs the block once before each...

sitepoint.com

Scope is all about where something is visible. It’s all about what (variables, constants, methods) is available to you...

You should prefer native promises to jQuery's Deferreds. Native promises are much faster than their jQuery equivalent. Native promises...

Native promises have no methods to inspect their state. You can use the promiseState function below to check whether a...

ImageMagick can automatically crop surrounding transparent pixels from an image: convert input.png -trim +repage output.png