Upgrading a Rails app to Cucumber 3

Posted About 6 years ago by Henning Koch.

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

Advantages of using appname.daho.im:3000 over localhost:3000

Posted About 6 years ago by Henning Koch.

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

Chrome: Making high-resolution website screenshots without add-ons

Posted About 6 years ago by Henning Koch.

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

Form letters with LibreOffice Writer

Posted Over 6 years ago by Henning Koch.

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

How to fix HTML elements being cut off when printing

Posted Over 6 years ago by Arne Hartherz.

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

Cucumber: Identifying slow steps that drag down your test speed

Posted Over 6 years ago by Dominik Schöler.
relishapp.com

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

Running Rspec examples by name, or: Running a single shared example

Posted Over 6 years ago by Dominik Schöler.
github.com

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

Spreewald: Content-Disposition not set when testing a download's filename

Posted Over 6 years ago by Emanuel.

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

Async control flow in JavaScript: Promises, Microtasks, async/await

Posted Over 6 years ago by Henning Koch.

Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...

How to fix broken font collisions in wkhtmltopdf

Posted Over 6 years ago by Michael Leimstädtner.

If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...

Custom Ruby method Enumerable#count_by (use for quick statistics)

Posted Over 6 years ago by Dominik Schöler.

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

Quickly printing data in columns on your Ruby console

Posted Almost 7 years ago by Dominik Schöler.

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

How to view Image Metadata on the Linux Command Line with ImageMagick

Posted About 7 years ago.

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

Things you probably didn’t know you could do with Chrome’s Developer Console

Posted Over 7 years ago by Tobias Kraze.
medium.freecodecamp.com

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

Bundler: Gemfile.lock is corrupt & gems are missing from the DEPENDENCIES section

Posted Over 7 years ago by Henning Koch.

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

Debugging cucumber feature with javascript + firefox vnc

Posted Over 7 years ago by Emanuel.

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

Howto: Free disk space when /boot is full

Posted Over 7 years ago by Emanuel.

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

Building web applications: Beyond the happy path

Posted Over 7 years ago by Dominik Schöler.

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

Testing terminal output with RSpec

Posted Almost 8 years ago by Arne Hartherz.

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

Bitmap to Vector Converter

Posted Almost 8 years ago by Dominik Schöler.
vectormagic.com

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

Linux: Open a file with the default application

Posted About 8 years ago by Henning Koch.

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

netstat: Sum open connections by IP (and sort it)

Posted About 8 years ago by Thomas Eisenbarth.

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

Geordi 1.3 released

Posted About 8 years ago by Dominik Schöler.

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

bash: print columns / a table

Posted About 8 years ago by Claus-Theodor Riegg.

Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...