pjax loads HTML from your server into the current page without a full reload. It's ajax with real permalinks, page titles, and a working back button that fully degrades...
It's the last bugfix release. We will get another year of security fixes, then no more patches...
On case-insensitive file systems like Mac's HFS+ (per default – you may change this, but it won't work for all programs), git won't recognize when you change...
Read the linked article together with this reply to get an appreciation for why it's a bad idea to...
File upload with nice UI, progress bar and preview, allowing multiple files and supports drag & drop. Its default is built on Bootstrap, but there's a version for jQuery-UI...
The article gives a very short tutorial how to customize tabs and fields of CKEditor's dialogs...
...to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions) in Rails 2. You also get #to_sql for scopes...
A short tutorial for XPath. It's the first XPath introduction that ever stuck with me. Also see XPath in 5 Paragraphs...
features are pre-sold without any option to negotiate what’s important and what may be left out, you inevitably end up with too much complexity. Such pre-sold features...
I think this pattern is really useful not just for upgrading suites from Webrat, but really anywhere you have an HTML fragment or string that you’d like to use...
We are changing our name from Hoptoad to Airbrake. You see, some folks much larger than us reached out and claimed trademark over all things related to frogs and toads...
...and little animals of that ilk. After speaking to our lawyers we reluctanctly decided it’s best to change the name...
Automatically convert bitmap images like JPEGs, GIFs and PNGs to the crisp, clean, scalable vector art of EPS, SVG, and PDF with the world's best auto-tracing software...
Make sure you understand differences between git's areas (such as stash, workspace, upstream, etc.) and what commands affect which areas...
...looks inside popular package managers, finds changes you made to configuration files, and archives software you built from source to generate Puppet, Chef, or shell code. Everything blueprint sees is...
...stored in Git to be diffed and pushed. It runs on Ubuntu Linux 10.04 and newer...
...m working on a problem for a client which involves connecting to a Microsoft SQL Server 2005 database from Linux using Ruby. Here’s what I did to get it...
...and titles, like [#15775609] Index view for conflicts The geordi command commit automates this. (See: Pretty Commit messages via geordi). Just run geordi commit and it will connect to PT...
...and let you select from a list of all started and finishes stories. Then it runs git commit with the generated message (i.e. all staged changes will be commited).
You should test the callback methods and its correct invocation in two separate tests. Understand the ActiveRecord note before you move on with this note. Say this is your Spaceship...
...class with a transition launch and a release_docking_clamps callback: class Spaceship state_machine :state, :initial => :docked do event :launch do transition :docked => :en_route end before_transition :on...
E. g. in the following example, Array could mean either Foo::Array or simply Array: class Foo def list Array.new end end What Ruby does here is to see...
...if the name Array makes sense inside of Foo::, and if that fails, resolves it to ::Array (without a namespace). The bad This is relevant for old Ruby versions. Ruby...
...multiply a BigDecimal with another BigDecimal, the result will be a new BigDecimal with sufficient precision to represent the result. No rounding or clipping should occur in that operation.
...means you just transitioned back into the land of random rounding errors. Don't screw up your clean BigDecimal values by thoughtlessly multiplying them with a Float. For instance, this...
...s Deferreds. Native promises are much faster than their jQuery equivalent. Native promises are supported on all browsers except IE <=11, Android <= 4.4 and iOS <= 7. If you need Promise...
...support for these old browsers you can use a Polyfill. A very fast and small (2 KB minified and gzipped) polyfill is Zousan. If you want to waste even fewer...
Non-static elements will not inherit their parent's opacity in IE for no good reason. This can lead to unexpected behaviour when you want to fade/hide an element and...
To fix it, give the parent element defining the opacity a non-static positioning. For example: .parent { opacity: 0.2; position: relative; /* for IE */ } While the linked article describes...
Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some CONSTANT you have defined in an other class. Since actually...
...constants are called constants because they're constant, there's no way to easily stub a constant. Here are three solutions for you. Easiest solution Rethink! Do you really need...
If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page yet, or it still has a pending AJAX request. You...
...ll often see workarounds like When I wait for the page to load Then ... Workarounds like this do not work reliably, will result in flickering tests and should be avoided...
Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes laid out clearly whenever you need it. Put gem 'awesome...
...ap that will give you a colored, formatted output of whatever you pass it. See the example output of the User class below. For customization visit the repository on Github...