How to skip Sprockets asset compile during Capistrano deployment
Asset compilation can slow deployments when stylesheets and scripts are unchanged; skipping deploy:assets:precompile reuses shared Sprockets assets in Capistrano.
User-defined Order in SQL
Storing item order in a database is easy with a position column, but moving one item can force multiple row updates; alternative schemas avoid that churn.
RSpec: Expecting multiple calls of the same method
expect(...).to receive can handle repeated method calls with the same or different arguments by chaining return values or using ordered expectations.
How to resize your boot partition when there is an encrypted partition after it
Running out of space on /boot can block updates on older Ubuntu installs. Resizing it after an encrypted partition requires rebuilding the partition layout without losing the LUKS volume.
RubyMine: You can disable inspections you don't care about
Persistent RubyMine warnings can clutter code and hide real issues; unused inspections can be turned off or adjusted to match your workflow.
Geordi 1.9 released
Cleanup commands for leftover dump files and unneeded local MySQL, MariaDB, and Postgres databases, with whitelisting and flexible authentication methods.
Running Rails 2 apps with modern MariaDB SQL server
Rails 2 apps can break on MySQL 5.7; MariaDB 10.x is a compatible replacement for old and new applications, with gem rebuilds sometimes needed after switching.
Store MySQL passwords for development
Store a MySQL root password in ~/.my.cnf on a trusted development machine to avoid password prompts for mysql and mysqldump.
Making httpclient use the operating system's SSL cert store
httpclient can ship with an outdated custom certificate store, causing SSL verification failures. Using the operating system’s default CA paths keeps trust roots current.
Upgrading a Rails app to Cucumber 3
Rails apps upgrading to Cucumber 3 often need gem updates, new tag syntax, and step-definition fixes to avoid parser and argument-mismatch errors.
Delegating an instance method to a class method in Ruby
Expose a class-level answer through instances by delegating an instance method to class with ActiveSupport's delegate.
Legacy docs for Font Awesome 4.7
Font Awesome 4 icon names differ from Font Awesome 5, where each name is valid only together with an icon set name.
VNC browser disappears while typing
Typing d in a Geordi VNC browser can switch to a grey screen; pressing d again brings the browser back.
Firefox: Focus-sensitive Selenium tests do not work reliably in parallel test execution
Firefox suppresses focus and blur events when its window is unfocused, making Selenium tests flaky in parallel execution. ChromeDriver is the recommended workaround.
Nested Spreewald patiently blocks are now patient
Nested patiently blocks now wait independently in Spreewald, preventing detached DOM failures when with_scope reuses cached elements.
PostgreSQL: Upgrading your user to a superuser
Limited PostgreSQL privileges can block database cleanup, dump imports, and storage-path queries; granting the application user superuser rights avoids PG::InsufficientPrivilege.
How to: Fix incorrect MySQL client library version
mysql2 fails to load when the installed MySQL client library version does not match the version used at compile time. Rebuilding the gem with gem pristine mysql2 usually fixes the native extension.
How to: Restart vnc server for geordi
VNC viewer startup can fail with “Connection refused” when the geordi session server on display :17 is hung or still locked. Restarting the server and removing the stale lock file restores access.
Mysql::Error: BLOB/TEXT column can't have a default value
MySQL 5.6 rejects default values on BLOB and TEXT columns, blocking migrations that rely on them. Adjust the migration, move defaults into the application, or temporarily change sql_mode.
How to: Solve gem loaded specs mutex
Ruby 1.8.7 test runs can fail with Gem::LOADED_SPECS_MUTEX NameError under older Bundler; Bundler 1.16.1 resolves it.
List of :status symbols for rendering in Rails
Rails render accepts HTTP status symbols such as :bad_request, making responses more readable than numeric codes.
How to stub class constants in RSpec
RSpec cannot stub constants directly; using attributes, wrapper methods, or test helpers makes constant-dependent code easier to isolate.
How to control Chromedriver using curl
Use curl to drive Chromedriver directly for simple debugging, opening pages, finding elements, and reading text without selenium-webdriver.
Ruby: Removing leading whitespace from HEREDOCs
Ruby 2.3+ supports <<~ for automatic HEREDOC unindentation; older versions can use ActiveSupport's String#strip_heredoc to remove common leading whitespace.