If you want to make a screenshot of a website that works well in print or on a high-DPI...

Note netstat has mostly been superseeded by its more modern rewrite ss which nowadays comes pre-installed rather than netstat...

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

makandracards.com

Rails applications and ruby gems should have a README that gives the reader a quick overview of the project. Its...

To find and replace (CTRL + H) empty cells in Libre Office Calc you can use a regular expressions (also called...

web.archive.org

wrap the text with a span use line-height for the spacing between lines ("margin")

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

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

relishapp.com

In most projects I know, Cucumber test suite speed is not an issue. Of course, running 350 features takes its...

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

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

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

gist.github.com

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

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

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

First, go to the webinterface of your phone. Choose Software Update in the navigation on the left. Next, you have...

Shoulda Matchers don't provide canditional validations (validations with if: option). Here is how to write tests for the condition...