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

httpie.org

HTTPie consists of a single http command designed for painless debugging and interaction with HTTP servers, RESTful APIs, and web...

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

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

If you already selected an element and want to get its parent, you can call find(:xpath, '..') on it.

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

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

askubuntu.com

While the hardware mute button of my Lenovo x230 worked on Ubuntu 14.04 out of the box, it does not...

docs.sentry.io

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

There are several gems that make it easy to read and process xlsx files. Parsing the entire file at once...

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

I frequently find myself needing a combination of group_by, count and sort for quick statistics. Here's a method...

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