Handy! RGB to HSL and RGB to HSV color model conversion algorithms in JavaScript - Axon Flux // A Ruby on Rails Blog
Here is a set of additive color model conversion algorithms that I found published on Wikipedia and have implemented in JavaScript.
Creating Filesystems with Ruby and FUSE
The FUSE project allows you to create filesystems in userspace - which means you can create a filesystem without having to get your hands dirty and modify your kernel source. This is insanely cool, and can be used for many purposes. Here we're going to look at using the Ruby bindings to create a simple filesystem.
Wintermute Engine
Wintermute Engine Development Kit is a set of tools for creating and running graphical “point&click” adventure games, both traditional 2D ones and modern 2.5D games (3D characters on 2D backgrounds). The kit includes the runtime interpreter (Wintermute Engine, or WME) and GUI editors for managing and creating the game content (WME tools) as well as the documentation, demonstrational data and prefabricated templates.
Handy: A regex that validates all valid email addresses (give or take) - Axon Flux // A Ruby on Rails Blog
/^([\w!#$%&'*+-/=?^`{|}~]+.)*[\w!#$%&'*+-/=?^`{|}~]+@((((([a-z0-9]{1}[a-z0-9-]{0,62}[a-z0-9]{1})|[a-z]).)+[a-z]{2,6})|(\d{1,3}.){3}\d{1,3}(:\d{1,5})?)$/i
Lessons learned from 13 failed software products « Successful Software
I asked other software entrepreneurs to share their stories of failure in the hope that we might save others from making the same mistakes. To my surprise I got excellent 12 responses, which I include below along with one of my own. It is a small sample and biased by self selection, but I think it contains a lot of useful insights.
Will Rails 3 obstruct plugin innovation? - Gem Session
Where there was once a consistent API to manipulate and hook into the lifecycle of a persistent object, plugins must now perform very careful checks whether an object supports more advanced traits like transactions, observers or dirty attribute tracking.
jnicklas's carrierwave at master - GitHub
File upload solution that supports form roundtrips when a validation fails.
How bad is link rot? A study of dead links
In order to find out whether I'm having a problem with link rot, I wrote a script that goes through my bookmarks and checks for dead links.
Recurring & Subscription Billing System - Chargify Recurring Billing
Chargify handles every aspect of recurring billing for your Web 2.0 or SaaS company so there’s no need to build a custom billing application. In addition to processing one-time and recurring transactions, Chargify handles free trial periods, one-time fees, promotions, refunds, email receipts and even dunning (reminders for failed credit card payments).
cortesi - Host-proof applications: doing it wrong
Once we have a secure client-side application, we need to make the tools and information available to allow users to actually verify that the code running in their browser is secure.
When is a global variable not a variable? · andrew.hedges.name
When is a global variable not a variable? When it is a property of the global object.
What's wrong with defining JavaScript variables within if blocks? - Stack Overflow
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.
eliotsykes's asset_fingerprint at master - GitHub
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
How to test a confirm dialog with Cucumber? - Stack Overflow
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
I don’t know, can you? | this oughta be interesting…
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.
Localized external services - GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS
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.
Why I won't help you - Gem Session
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.