When using GROUP BY, MySQL now complains if the SELECT includes columns which are not part of the GROUP BY...

When you have a multi-server setup, you'll be adding a new server from time to time. Before doing...

Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...

You can use gem list to list all gems available from a remote gem server: gem list -r --clear-sources...

By default Middleman generates files with a .html extension. Because of this all your URLs end in /foo.html instead of...

Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...

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

Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.

In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...

For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in...

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

makandra dev

Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.

makandra dev
badssl.com

Website that offers lots of different kinds of HTTPS configurations, bad or good or complicated. They also offer a dashboard...

Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...

manpages.ubuntu.com

run-one is a wrapper script that won't run the given command while another instance of it is running...

Add the following to /etc/rc.local: (sleep 3 && echo disable > /proc/acpi/ibm/bluetooth)& Bluetooth icon will be active for a few seconds, then...

To create a 10 GB file: fallocate -l 10G huge_file.dat

We generally use multiple application servers (at least two) and you have to search on all of them if you...

If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...

On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually...

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 an error like this: undefined method `activate_bin_path' for Gem:Module (NoMethodError)

Chrome gives you the currently selected element in the inspector with $0. If you select a button in the DOM...