When restoring a PostgreSQL dump using pg_restore, you usually add the --clean flag to remove any existing data from...

tableplus.io

To remove all tables from a database (but keep the database itself), you have two options. Option 1: Drop the...

We figured out, that ActiveJob Inline might lead to autoloading problems in development. The result was an exception when running...

makandra dev

If you need to run a program on a remote machine (e.g. to your office PC) with a graphical UI...

As a web developer, you know Google Analytics (GA). Probably you've dropped the GA snippet into more than one...

To make a local copy of an S3 bucket, I use the s3cmd command line tool. Configure access keys:

On some machines, installing Ruby 1.8.7 with ruby-build can lead to this error: math.c:37:13: error: missing binary...

Whenever is a Ruby gem that provides a nicer syntax for writing and deploying cron jobs. Leading zeros are important...

To catch all possible exceptions from a network call, we need to rescue many error classes like this: rescue SocketError...

Boot partitions from installations prior to the 16.04 era are terribly small. When you install updates and encounter errors due...

You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...

Sometimes it's necessary for you to check which ports are in use on your local machine and which process...

makandra dev

Git has two kind of tags: annotated lightweight Annotated tags are stored as full objects in the Git database. They...

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

makandra dev

An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...

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

Let's say you have a folder images and want to to move all files in there to a new...

forums.linuxmint.com

On my Ubuntu MATE machine, switching applications with ALT + TAB was impossible, because it took nearly 2 seconds. The culprit...

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

If you want to ssh into your vagrant box without switching into the project directory and typing vagrant ssh, you...

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

You can configure a Ubuntu system as a gateway in order to share it's internet connection (maybe via WLAN...