stackoverflow.com

Your default postgres user is named like your linux user. That default user has limited access privileges, which can cause...

w3c.github.io

Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...

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 a small example on how you can check if your Postgres index can be used by a specific...

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

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

Summary: Don't add chromedriver-helper to the Gemfile the executables might break your tests in projects where chromedriver-helper...

makandra dev

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

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

requestb.in

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

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

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

docs.sentry.io

The linked documentation explains how to get a JSON list of the latest 100 events of a given issue. Simply...

askubuntu.com

You need to disable "Bluetooth low energy", then follow these core steps: Make sure the headphones are in pairing mode...

gist.github.com

Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...

docs.ruby-lang.org

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

You can use local copies of gems in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you...

github.com

rack-cargo gives your API a new /batch route that lets clients perform multiple API calls with a single request...

github.com

Use Traim to build a RESTful API for your ActiveRecord models with very little code. Traim assumes your API resources...

Sometimes you add Paperclip image styles, sometimes you remove some. In order to only keep the files you actually need...