When you have a powerful machine with many CPU cores, you might run into an error like

You can use .ids on an ActiveRecord 4+ scope to pluck all the ids of the relation User.where("users.name LIKE...

Rails' params hash contains any request parameters (URL parameters or request payload) as well as routing parameters like :controller, :action...

For searching in large database tables we usually use PostgreSQL's fulltext search capabilities. While this works reasonably well for...

makandra dev

Ubuntu has decided to disable PDF processing because ImageMagick and the underlying Ghostscript had several security issues. When your Ghostscript...

Rubymine 2024.3 bundles Grazie Lite by default. You need to enabled "German" under Settings/Preferences | Editor | Natural Languages.

github.com

Phusion Passenger changed the way how it gets restarted several times. Through the project's history, these all were valid...

makandra dev

Geordi provides a pretty neat way to generate beautiful commit messages according to your stories in Linear: geordi commit

plnkr.co

Flexbox is awesome. Most of it even works in IE11, but flex: 1 won't work reliably in Internet Explorer...

web.archive.org

Restricting access to cookies is essential for security in many web apps. For example, the session ID, the secret token...

makandra dev

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

Migrating data from a legacy into a new system can be a surprisingly large undertaking. We have done this a...

Having a unique selector for an element is useful to later select it from JavaScript or to update a fragment...

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

stackoverflow.com

Ruby has this handy block shortcut map(&:to_i) for map { |x| x.to_i }. However, it is limited to argument...

caniuse.com

Since late 2015, all major browsers (still excluding Firefox) support pointing device media queries. These can be used to distinguish...

developer.mozilla.org

Touch devices have their own set of events like touchstart or touchmove. Because mobile browsers should also work with with...

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

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

On your local system that only hosts non-critical development data and only you have access to, you can store...

stackoverflow.com

Your default postgres user is named like your linux user. That default user has limited access privileges, which can cause...

w3c.github.io

Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...

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