When you have string contents (e.g. a generated binary stream, or data from a remote source) that you want to...

You need to update a lof gems. Make sure you don't have any version constraints in your...

Running rails server will start a local server that you can access via http://localhost:3000. When you are working...

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

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

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

relishapp.com

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

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

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

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

Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...

ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...

medium.freecodecamp.com

Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...

So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

This method will remove automatically installed packages that no other packages depend on any more. This, of course...

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...

makandra dev
vectormagic.com

Automatically convert bitmap images like JPEGs, GIFs and PNGs to the crisp, clean, scalable vector art of EPS, SVG, and...

If you are on a Linux shell and want to open a file with whatever default application is configured for...

The following sums up all connections (ESTABLISHED, TIME_WAIT, FIN_WAIT, etc.) and sorts it: netstat -n | awk ' $5 ~ /^[0...

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...