Rails has a built-in slug generator
Ruby on Rails includes parameterize for turning text into URL-friendly slugs, normalizing spaces, punctuation, and accented characters.
Responsive Tables in Pure CSS
Small-screen table layouts often break readability; using data-attributes to label cells keeps content usable without heavier scripts.
Custom loggers in Ruby and Rails
Ruby and Rails logging to files or stdout can be timestamped, thread-safe, and formatted consistently; Logger also supports full backtraces for errors.
Dusen (>0.5) now with "exclude from search"
Dusen search now supports excluding words, phrases and fielded terms with -, making queries more precise and reducing irrelevant results.
Angular: Fixing "Referencing DOM nodes in Angular expressions is disallowed"
CoffeeScript can accidentally return DOM nodes from Angular click handlers, triggering the “Referencing DOM nodes in Angular expressions is disallowed” error. An explicit return value avoids leaking a node into Angular.
How to use CSS to rotate text by 90° in IE8 (and modern IEs)
CSS can rotate text in older IE versions without breaking modern browsers by combining transform with -ms-writing-mode and resetting -ms-transform.
Communication between collaborating directives in Angular
Collaborating directives often model one component split across multiple behaviors, requiring clear communication so the parts work together reliably.
Linux: Kill a process matching a partial name
Terminate running programs by matching part of the command line, useful when the process name is not exact or several instances need to be stopped.
How to enable WebGL in Chrome
WebGL may be disabled in Chrome even when the GPU supports it. Hardware acceleration and Chrome flags can restore 3D graphics rendering.
Angular: Solving "$digest already in progress" error
Calling $scope.$apply() or $scope.$digest() from Angular-invoked code can trigger $digest already in progress errors and break scope updates.
Angular Style Guide
Opinionated Angular conventions for teams improve code consistency, readability, and maintainability across components, services, and templates.
Slack integration for deployments via Capistrano
Send deployment notifications from Capistrano to Slack channels using slackistrano and incoming webhooks, with customizable message formatting.
Use CSS sibling selectors instead :last-child (or :first-child)
Styling repeated elements with :last-child breaks when unrelated siblings appear; sibling selectors like + and ~ handle spacing and borders more reliably.
Exporting to Excel from Rails without a gem
Generate Excel spreadsheets from Rails views without a gem, using .xlsx.erb templates and avoiding spreadsheet gem limits on performance and styling.
Multiline comments in indented Sass syntax
Indented Sass uses // comments with every following line indented two spaces, making multiline documentation blocks possible.
FactoryBot: How to get the class from a factory name
Look up the model class behind a FactoryBot factory name; FactoryBot.factories.find('admin').build_class returns the associated class.
Speed up file downloads with Rails, Apache and X-Sendfile
Rails can hand file delivery to Apache with X-Sendfile, reducing application-server load and preventing zero-byte downloads when local files are sent.
Detecting when fonts are loaded via JavaScript
Webfonts can change layout after first render; detecting readiness avoids wrong measurements. Modern browsers use document.fonts.load, while older support needs font-dimension watching.
Fixing jerky CSS3 animations
CSS3 animations can flicker or stutter when browser rendering shifts between CPU and GPU paths. Forcing GPU compositing with translate3d(0,0,0) can smooth motion, with possible image-quality tradeoffs.
Sass Mixins vs Extends: The Data - Belly Card Engineering
Sass mixins and extends both support modular styles, but current browsers produce smaller gzipped CSS and faster evaluation with mixins.
Redis Pub/Sub... How Does it Work?
Redis Pub/Sub provides a lightweight way to broadcast messages to multiple subscribers in real time.
Download Google Webfonts
Official Google GitHub repository with binary font files from Google Fonts for local download and installation.
Ruby: Enumerable#partition
Split an enumerable into matching and non-matching groups with Enumerable#partition, returning two arrays and working naturally with destructuring assignment.
SQL: Find out number of rows of all tables within a MySQL database
Count table records in a MySQL database without querying each table separately, using INFORMATION_SCHEMA.TABLES to inspect row estimates.