Posted over 5 years ago by Arne Hartherz.

By convention, common protocols use a defined port, like 80 for HTTP or 443 for HTTPS. You can use nmap...

Posted about 7 years ago by Henning Koch.

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

Posted over 1 year ago by Michael Leimstädtner. github.com

The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...

Posted almost 2 years ago by Emanuel De.

With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...

Posted almost 2 years ago by Michael Leimstädtner.

A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...

Posted almost 2 years ago by Michael Leimstädtner.

Embedding videos on a website is very easy, add a tag to your source code and it just works...

Posted about 4 years ago by Dominik Schöler. makandracards.com

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

Posted almost 6 years ago by Henning Koch.

Redirect responses to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to GET and POST...

Posted over 4 years ago by Arne Hartherz.

After loading a staging dump into development, you might get an ActiveRecord::EnvironmentMismatchError when trying to replace the database (like...

Posted over 7 years ago by Dominik Schöler.

Be careful to name any file @imported by SASS with a leading underscore. SASS files not beginning with an underscore...

Posted almost 10 years ago by Tobias Kraze. weblog.jamisbuck.org

How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...

Posted over 8 years ago by Arne Hartherz. weblog.jamisbuck.org

Capistrano 2 brings the shell command which allows you to run commands on your deployment targets. There is also invoke...

Posted almost 2 years ago by Emanuel De.

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...

Posted almost 4 years ago by Arne Hartherz. jsfiddle.net

When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself.

Posted about 6 years ago by Pascal Roth. github.com

Add a custom maintenance page for each vhost. We have automated this with capistrano 3.x, but you can do...

Posted almost 4 years ago by Henning Koch.

MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...

Posted almost 6 years ago by Henning Koch.

jQuery's deferred objects behave somewhat like standard promises, but not really. One of many subtle differences is that there...

Posted over 8 years ago by Henning Koch.

1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...

This website uses short-lived cookies to improve usability.
Accept or learn more