Rubymine 7: Howto disable backspace deletes lines instead of whitespaces
Backspace in RubyMine can delete whole lines instead of whitespace when smart indentation is enabled; adjusting the editor's smart key settings restores normal deletion behavior.
Bower complains about missing NodeJS on Ubuntu
bower may fail on Ubuntu when /usr/bin/node is missing; using Ubuntu’s node package can also leave bower unresponsive. A symlink to nodejs fixes the mismatch.
Upgrading a Rails 3.2 application to Ruby 2.1 is really easy
Ruby 1.8.7 to 2.1.2 upgrades are usually straightforward for Rails 3.2 apps, with a few compatibility fixes for load paths, debugging, removed gems, and UTF-8 defaults.
Deutsche Bahn: Show details of past rides
DB BAHN order numbers on credit card statements can be used to look up details of past rides on the Deutsche Bahn ticket portal.
How to (possibly) fix Google Calendar in Thunderbird (Lightning) on Ubuntu
Google Calendar stops syncing in Thunderbird on Ubuntu, leaving calendars inaccessible and password prompts unresolved. Reinstalling the calendar add-ons from Thunderbird can restore access.
PSA: Dont allow private gems to be pushed to rubygems.org
Bundler’s default release task can publish private gems to rubygems.org; allowed_push_host in gem metadata restricts pushes to a trusted host.
MetricsGraphics.js
D3-based charting library for time-series data with responsive, consistent layouts for line charts, scatterplots, histograms, rug plots, and simple linear regression.
Speed up JSON generation with oj
Use oj to generate JSON much faster for large Ruby hashes, but account for symbol handling, Rails compatibility, and HTML escaping to avoid XSS.
Downgrade Bundler in RVM
RVM installs bundler into @global, so one version can affect every gemset and Ruby. Reinstalling a specific version in @global restores a compatible setup.
Bootstrap: How to avoid printing link URLs
Bootstrap print styles append link URLs to anchors by default; overriding a[href]:after prevents printed hrefs on paper.
Angular: Caching API responses in Restangular
Restangular can reuse AngularJS $http response cache for individual requests or globally, but stale data requires explicit invalidation.
Draggabilly
JavaScript library for drag-and-drop interactions with more control than native HTML5 support, plus touch and multi-touch behavior for modern browsers.
Angular: Binding an HTML value
Angular requires trusted HTML for ng-bind-html; a custom $sce filter can sanitize values and replaces the removed ng-bind-html-unsafe directive.
How to install fonts in Ubuntu
Add custom fonts to Ubuntu by placing font files in ~/.fonts and refreshing the font cache, or install them through the font preview window.
New Firefox and gem versions for our Selenium testing environment (Ubuntu 14.04+)
Firefox 5.0.1 no longer runs on Ubuntu 14.04, so Selenium test setups need browser and gem updates to keep Rails 2.3 and Cucumber projects working.
Fixing tlmgr cannot setup TLPDB
tlmgr on Debian can fail with “cannot setup TLPDB” when the TeX Live user tree is not initialized, blocking package and configuration management.
Pitfall: ResourceController overwrites where ActiveRecord enqueues
Callback definitions can silently replace each other in ResourceController, unlike ActiveRecord’s queued hooks, so trait-based behavior may disappear.
Accept nested attributes for a record that is not an association
Pass nested form data to a plain model reader such as home_page, without a real association. Works for singular references, with manual record construction and no deletion support.
How to install the `xelatex` binary on Ubuntu 14.04
Missing xelatex causes RTeX::Document::ExecutableNotFoundError during tests; installing texlive-xetex on Ubuntu 14.04 provides the binary.
Prevent LibreOffice from changing standard styles when you format individual characters
Character formatting in LibreOffice can trigger unwanted style changes across the whole document. Disabling AutoUpdate on the affected style keeps direct formatting local.
Scroll a textarea to a given position with jQuery
Textarea cursors and selections do not reliably bring the view to the target position. Focusing a shortened value can force the browser to scroll there.
/usr/ports/converters/ruby-iconv This port is marked IGNORE
FreeBSD Ports may try to upgrade ruby-iconv even though it is ignored for Ruby 2.0 and newer; setting RUBY_VER=1.9 makes the port match the installed Ruby version.
bower-rails can rewrite your relative asset paths
Precompiled CSS breaks relative image and font URLs when asset paths change; bower-rails can rewrite url(...) references into ERB asset helpers before deployment.