How to fix: Pasting in IRB 1.2+ is very slow
Long pastes in irb 1.2+ can become extremely slow because multiline mode and syntax highlighting add heavy overhead. Disabling multiline restores fast pasting.
Variable fonts for web developers
Variable fonts bundle multiple weights and widths into one file, reducing font requests and management overhead, but browser support and CSS settings require careful handling.
Improving browser rendering performance
Web apps feel sluggish when JavaScript, layout, or repaints miss the 16 ms frame budget; Chrome DevTools and requestAnimationFrame() help diagnose and reduce jank.
Vortrag: Elasticsearch Grundlagen und Rails-Integration mit searchkick
Elasticsearch liefert Volltextsuche, Mappings, Shards und Aggregationen per REST-API; in Rails übernimmt searchkick Indizierung, Reindexing und Suchabfragen.
Check that an element is hidden via CSS with Spreewald
CSS-hidden text can pass Rack::Test because it inspects only the DOM, while Selenium checks actual visibility for user-facing content.
Minidusen: Filtering associated records
Filter associated records by text in joined tables, such as finding contacts through their group name with Minidusen and a qualified column.
Show/Hide Rubocop marking in RubyMine
RubyMine can surface RuboCop violations directly in the editor, and the marking can be enabled or hidden through a settings toggle.
How to configure file watchers in RubyMine
File change automation in RubyMine requires the official file watchers plugin and a PATH-accessible program; b can act as a shim for bundle exec when running RuboCop.
Convert curl commands to ruby code
Turn curl requests into Ruby Net::HTTP code for easier reuse, debugging, and integration when shell commands need to become application code.
Using ffmpeg as a HLS streaming server
Live HLS streaming with ffmpeg can serve as a lightweight server for segmented video delivery, multiple bitrates, and lower playback delay.
Tailwind versus BEM
Two common CSS writing styles trade component-level structure for utility-driven speed and consistency, each with different maintenance and collaboration trade-offs.
Terminator: do not broadcast to other windows
Broadcasted input in Terminator can reach other running windows and create dangerous side effects. Disabling the DBus server keeps Alt+a broadcasting local to the current terminal.
IIFEs in Coffeescript
Coffeescript loop variables can leak into later callbacks, causing repeated values; do and IIFEs create a fresh scope for each iteration.
Ruby: Comparing a string or regex with another string
Using === with strings and regexes can change matching behavior in Ruby; match? is only safe when the left side is definitely a regex.
Ruby: A short summary of available hooks in Cucumber
Cucumber Ruby offers scenario-level, step-level, and global lifecycle hooks, plus tag filtering and World modules for reusable helper methods.
Manage Linux services on the command line (Ubuntu)
Ubuntu 18.04 uses systemd to manage services; systemctl starts, stops, enables, disables, and lists units, while service handles System V init scripts.
HTML file inputs support picking directories
Directory uploads are possible with <input type="file" webkitdirectory multiple>, letting users select a folder and its nested files instead of choosing individual files.
Migrate gem tests from Travis CI to Github Actions with gemika
Moving gem test suites from Travis CI to GitHub Actions reduces maintenance and aligns CI with current Ruby support. gemika generates the workflow for gems already using it.
How to downgrade Google Chrome in Ubuntu
Need to roll back Google Chrome on Ubuntu after an update breaks it; fetching an older .deb from Google’s servers can isolate the regression, but outdated browsers are risky.
Installing old versions of mysql2 on Ubuntu 20.04+
Legacy mysql2 gem versions 0.2.x and 0.3.x fail on Ubuntu 20.04+ for older Rails apps; a fork and libmariadb-dev can restore compatibility.
Installing Ruby <= 2.3 on Ubuntu 20.04+
Old Ruby versions fail to build on Ubuntu 20.04+ because they need OpenSSL 1.0, which current Ubuntu releases no longer ship.
VCR: Alternative way of mocking remote APIs
VCR records real HTTP interactions and replays them from YAML, making network-dependent tests run offline without manual stubs.
Error when deploying 1.8.7 app: "NoMethodError: undefined method `select!' for ["zlib@openssh.com", "zlib"]:Array"
Deployment failures with older Ruby apps can come from net-ssh and select! incompatibilities, and pinning net-ssh to 2.9.1 restores compatibility.
PostgreSQL: Importing dumps created with newer versions
Loading a pg_dump file can fail with unsupported dump format versions when pg_restore is older than the dump creator. Installing a newer PostgreSQL client and connecting through localhost resolves the mismatch.