Hexbook | A Public Library of Beautiful Hexcodes
Curated color tone collection for finding attractive hex codes and palette inspiration.
Input: Fonts for Code
Customizable programming fonts improve code readability and reduce eye strain, letting developers choose typefaces that match their workflow and preferences.
Angular directives: How to find out if you have transcluding content
Angular transcluded content cannot leave fallback text inside ng-transclude; checking the transclusion target in link lets directives show default content when nothing is projected.
MySql lost connection trouble
MySQL connection drops can stem from network issues, long queries, slow initial handshakes, or packets that exceed max_allowed_packet.
Feedjira
Ruby gem for consuming RSS feeds faster and more robustly than RSS::Parser, including tolerance for slightly malformed feeds and Feedburner URL cleanup.
Iterating over a Ruby Hash while tracking the loop index
Ruby Hash iteration can carry an index with each_with_index, but key and value must be destructured explicitly in the block.
How to undo a 'git reset --hard'
Accidentally erased work with git reset --hard? Recovery is often still possible by finding the lost commit and restoring the branch state.
Cucumber: Skipping steps in a scenario outline, based on the current example
Scenario outlines can conditionally run steps per example row, avoiding duplicated long tests when only some inputs need extra actions.
Fixing Ruby debugger: *** Unknown command: "something". Try "help".
Ruby debugger breaks on plain expressions at breakpoints unless they are evaluated explicitly; eval or set autoeval lets unknown input run in the breakpoint context.
Manually purge binary logs on MariaDB
Old binary log files consume disk space and can be removed safely after retention needs are met. PURGE BINARY LOGS deletes archived logs older than a chosen cutoff.
6 front-end techniques for Rails developers. Part I: From big ball of mud to separated concerns
Untangling JavaScript spaghetti in Rails front ends by splitting responsibilities into separate layers without a JavaScript framework.
gazay/ids_please
Parses social-network URLs to extract IDs or screen names without confusing child routes. It does not resolve IDs from screen names alone.
Rails 4 drops support for the :assets group in Gemfile
Rails 4 no longer needs the :assets Gemfile group because production no longer triggers unwanted on-demand asset compilation.
RSpec 3 no longer chooses a spec's type based on its directory
RSpec 3 no longer infers spec type from folder names, which can break helpers like routing in existing suites. Set type explicitly or re-enable file-location inference.
Git: Listing branches with their latest author
List every branch with the author of its newest commit, useful for spotting ownership or stale branches. git for-each-ref with sorting outputs branch names and commit authors.
Test if all your favicons exist
Favicon variants can break silently when some image sizes or platform-specific tags point to missing files. An integration check can verify that every icon URL returns 200.
Spreewald 1.1.0 released
Spreewald 1.1.0 removes be_true and be_false to stay compatible with RSpec 3 and Ruby 2, replacing them with == true and == false.
blatyo/page_rankr
Retrieve Google Page Rank, Alexa Rank, backlink counts, and index counts for a site without manual lookup.
jQuery and cross domain AJAX requests
Cross-domain AJAX requests with jQuery suppress X-Requested-With and CSRF headers for security, so servers may not recognize them as AJAX. A prefilter can re-enable headers for trusted hosts.
Howto respond html or json in the same controller action with Rails 2
Rails 2.3 can return either HTML or JSON from one controller action, but render_to_string inside format.json may trigger ActionView::MissingTemplate.
jpillora/xdomain ยท GitHub
Makes cross-domain XHR work by tunneling communication through an IFRAME on the page, enabling requests that browser same-origin rules would block.
Defining Ruby strings with % (percent) notation
Ruby percent notation offers an alternative way to write strings without escaping quotes, useful for embedded apostrophes or quotation marks.
Ruby lets you redefine backticks
Ruby can override the backtick operator with a method named `, making command execution syntax callable as ordinary object behavior.
Spreewald 1.0.0 released
spreewald now provides a binary that lists available steps and can filter them by a search term.