If you have a very large datadir in MariaDB and you want to transfer the data to another host (e.g...

makandra dev

While debugging a SPF record I found spf-record.de to be very helpful. it lists all IPs that are covered by...

gem-session.com

...the file robots.exclude.txt instead. In your Apache Vhost config, rewrite requests for the staging server only: RewriteEngine On RewriteCond %{HTTP_HOST} ^staging\.project\.com$ RewriteRule ^robots\.txt$ /robots.exclude.txt Your robots.exclude.txt...

...looks like this: # This file is returned for /robots.txt on staging servers User-agent: * Disallow: / Important Note: If your setup is incorrect and /robots.txt is not accessible, it means there...

To connect to the serial console of an EC2 instance, you can use the aws cli. Add your public ssh...

Sometime we've seen this error when executing e.g. bundle exec rake asset:precompile: double free or corruption (out)

...sends the e-mail that we expect, but it also does stuff on the server that takes some time, eventually redirecting the user to a new page, showing other things...

If the browser is still waiting for further responses from the server (like after following redirects), it is locked -- and the next test using it will fail...

... you probably have a time zone issue. When you get Timecop.travel(Date.parse("2011-11-11 00:00") do Time.current # Thu...

greg.molnar.io

Greg Molnar has written a neat article about creating a single-file Rails app. This is not meant for production...

When you are using PgBouncer with e.g. a Ruby on Rails application which uses different application_names for the PostgreSQL...

So you want to organize your I18n using multiple .yml files but your Rails 4.1 application simply won't use...

It's a great way to mock network requests to an external service without going through the pain of logging network traffic with Wireshark or similar tools...

If you have a single node elasticsearch instance and indices with replicas enabled your cluster state will be yellow. If...

Ubuntu has a package mysql-sandbox that lets you install multiple MySQL versions into your user home: Install mysql-sandbox...

Insbesondere kleine Applikationen oder einzelne Aufgaben können mit sogenannten "Serverless" Funktionen gut bereitgestellt werden. Dabei ist keinerlei Infrastruktur zu verwalten, da sich der Cloud Provider vollständig darum kümmert. Allerdings entsteht...

...dafür Komplexität an anderer Stelle. Ziele Was genau versteht man unter Serverless? Erkläre Vor- und Nachteile von Serverless Applikationen gegenüber einer Container oder VM Infrastruktur Wie reagiert eine AWS Lambda...

87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET /monitoring/pings/ HTTP/1.1" 200 814 "-" "Ruby" 87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET...

Puma allows you to specify the max and min threads. In development this could be useful if you use a...

sudo gitlab-rails console Note This takes some minutes to start Send a mail Use the following...

Working with a self-signed certificate is much easier, when the browser accepts it. Google Chrome Warnings from chrome might...

Rails Active Support provides some helpful methods for calculating times and dates, like Duration#ago or Duration#from...

makandra dev

Option 1: JSON dump In config/webpack/environment.js you can get inspect environment which includes all webpack config options set for the...

makandra dev
github.com

...About Exception#cause Ruby 2.1 has a built-in mechanism with Exception#cause, which serves a similiar purpose as Nesty. However, any code printing your stack trace (Exception Notifier, Airbrake...

When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:

...s possible you get this "error" message: *** [err :: example.com] There are no Phusion Passenger-served applications running whose paths begin with '/var/www/example.com'. *** [err :: example.com] This is just because there were...

...no running passenger instance on the server. It's not a real error...

Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...