Because javascript has something called "Hoisting" which makes your code do things it doesn't look like it should be doing. Basically, that means a javascript interpreter will move all var declarations, regardless of where they are in the body of a function, to the top of the function body.
Asset Fingerprint Plugin for Ruby on Rails - allows you to use md5 or timestamps in query string or in asset filenames as suggested by Google Page Speed
Seems like there's no way to do it in Capybara, unfortunately. But if you're running your tests with the Selenium driver (and probably other drivers that support JavaScript), you can hack it
As far as I know, the only plugin out there that handles this (semantic issue) correctly is Makandra’s Aegis. And they are GERMAN. It functionally works about the same as well. So props to them for that.
ShamRack mounts a Rack app locally, just for your tests. It goes one further: it “mounts” it using Net::HTTP such that requests to the Rack app never hit any network.
But then there are those posts where the author pastes 10 pages of confused code with no context whatsoever and then demands to know why they're getting funny errors. I find this sort of behaviour offensive to all the people who are basically dealing out free support. I'd rather spend my time helping people who actually give a damn.
"You're coming of age in a 24/7 media environment that bombards us with all kinds of content and exposes us to all kinds of arguments, some of which don't always rank that high on the truth meter," he told the students.
This seriously limits the kinds of applications you can develop on the iPhone. One notable exception, however, is the support for tracking the location of devices, through a combination of GPS, Wi-Fi, and cellular triangulation.
The Aves Engine is a software development kit to generate spectacular isometric browsergames without the need for third-party plugins like Microsoft Silverlight or Adobe Flash on the end-user side.
When so many obviously spammy and trademark-infringing apps are getting through, it makes every trivial rejection by real developers even more frustrating.
Subfolio provides an elegant, practical and customizable web interface to your file system. Super fast to set-up and use, you’ll be up and running in minutes. Flexible and feature-rich, you’ll soon be inventing new ways to use it.
Inheritance is built into Chinese. You might as well use it.
Pretty much everyone who claims to have a REST API, in fact, does not. The closest I’ve found is the Sun Cloud API which actually defines a number of custom media types for resources and is discoverable based on a single known end-point. Everyone else, thanks for playing.
Here you will find pointers to manuals, tutorials and references that will come in handy when you feel like coding in Ruby.
Rack middleware for rate-limiting incoming HTTP requests.
I wanted to jot down some of my thoughts on country roads, so that customers of our iCar may better understand why we don't allow iCars to ever get on country roads.
This thing leaves any other tag-completion method I have ever seen for HTML in the dust. It's light-years beyond anything else I've witnessed -- and autocompletion is something I've looked into deeply, with multiple editors and IDEs.
Rails plugin which adds a convenient way to override attr_accessible protection.... You can mark certain attributes as trusted for different roles.
When I realized what had gone wrong, the light almost blinded me.
Pretty print your Ruby objects with style -- in full color and with proper indentation