Xfce gives you a million options to configure your panels. Together with Xfce's sometimes arcane configuration UI, this can...
Global keyboard shortcuts can be configured in two separate panels in the Xfce Settings manager: Shortcuts related to managing windows...
In Rails 2, when calling instance_eval or instance_exec on a scope, the scope will fetch its records from...
Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...
If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...
Browser rendering engines are very slow at rendering large box shadows. I had a situation where a complex layout with...
Show failing specs instantly. Show passing spec as green dots as usual. Configuration: # spec/spec.opts (.rspec for rspec 2) --require rspec/instafail...
The linked slidedeck holds many tips, of which I list the most interesting to me below DATA and END
Ruby's mathn library changes Fixnum division to work with exact Rationals, so 2 / 3 => 0 2 / 3 * 3 => 0...
Browsing the git stash is a bit tricky. Here is how to see the changes without applying them:
There is no reason to leave trailing whitespace characters in your project's files, so don't add any.
The ActionMailer in Rails 2 depends on a buggy version of TMail, which sometimes inserts a blank line into the...
Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...
If you have an html_safe string, you won't be able to call gsub with a block and match...
This works in modern RSpecs (RSpec >= 2.x) and Cucumbers: rspec spec/models/node_spec.rb:294:322 cucumber features/nodes.feature:543:563:579
Assuming the following sunspot setup of the post class: class Post < ActiveRecord::Base searchable do text :title string :state
Jedes nicht rein private Profil auf Social Media Portalen muss ein Impressum haben, das heißt insbesondere Unternehmen und Freiberufler (§ 5...
Sometimes you need to look at the filter chain in specs. You can do it like that on Rails 2...
Explanation of the "bootstrap 2" base CSS. Contains information about: Typography Code Tables Forms Buttons Icons
assignable_values now lets you define a secondary default that is only used if the primary default value is not...
The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...
In a nutshell: Use git rebase --onto target-branch source-commit target-branch means "branch you want to be based...
Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing...
The asset pipeline from Rails 3.1 packported to 2.3. By Michael Grosser from parallel_tests fame.