…to work correctly. While we put some effort into not passing too many arguments, we fall back to Rule 0 and leave the parameters if we can't find a better way to do it.
Only instantiate one object in the controller
This rule raised the most eyebrows before we started the experiment. Often one need more than one type of thing on a page. For example, a homepage may have both an activity feed and a notification counter.
We solved this using the Facade Pattern . It looks like …
As for Rule #2—100% of the profits (after payment fees) will go to you. For some topics, 3rd-party sales channels work really well, but most highly specialized technical topics are not among those. (If you sell more than a 100 copies you're selling more than most other self-publishing authors. But most of those authors fail to market right.)
Once you figure out the price (you need to set the price first, and remember to not base your price on what feels right, see #5), to be profitable …
Keith Perhac and I recorded our 3rd podcast episode with special guest Brennan Dunn. Listen to it (or read the transcript) for:
why you should increase your freelancing rate
how to discuss your value with your clients such that they're happy to pay your increased rates
how to scale to a multi-employee consultancy, without being bankrupted by poorly timed receivables
three stories from successful consultants on three very different trajectories in their businesses
Faraday: One HTTP Client to Rule Them All - I hadn't realized that Faraday had an entire middleware stack built into it. Among other things that makes it useful for writing fake responses in tests.
A few cURL Tips for Daily Use - Download resuming, faking AJAX requests, using requests from a file and more.
Wirb - Syntax highlighting for irb. Based on Wirble but without the other tools.
Measure Anything, Measure Everything - How to …
…Rails 3.1 application to production - I'm still trying to figure out all this asset pipeline stuff, but there are some clues here to making capistrano work with Rails 3.1.
One Base Class to Rule Them All - An amusing little bit of Ruby trolling.
Installing PostgreSQL 9.0 on Ubuntu 10.04 - Turns out there's a backports repo to make this simpler.
The 2011 Velocity Conference has begun! Opscode's presense began with a great Chef Presentation by Christopher Brown, Joshua Timberman, Matt Ray, Aaron Peterson and Seth Chisamore. If you are attending Velocity, make sure to stop by Opscode's booth (#505/507) to say hello and pick up Opscode's new Rule The Cloud stickers and T-shirt. Also, don't miss Adam Jacob and Jesse Robbins presentation, Choose Your Own Adventure 2; Electric Boogaloo…
The lazy way to accomplish Rule #2 is through a password manager like 1Password or my personal favorite, LastPass . I prefer LastPass because it's a simple browser extension and it's free, while 1Password is a $ 40 desktop app. Both will generate unique, one-time passwords for your accounts, and store them securely. Of course, you still need a "master password" for those apps.
So how do you generate a unique yet memorable password that's unguessable …
1Password — Rule #1: use a unique password for every site, that way if one site gets compromised, the rest of your online life remains unharmed. Rule #2: use a password manager to prevent entering passwords into phishing sites. Hence, 1Password installed on both iPhone and iPad.
WeatherBug — What is it about iPad apps that make you walk across the room, turn the iPad on and fire up the app, even though you were just sitting in front of a powerful computer with x5 the screen …
I think we have seeen numerous examples of Godwin's Law right here on Omninerd.
Godwin's law (also known as Godwin's Rule of Nazi Analogies or Godwin's law of Nazi Analogies) 1 2 is a humorous observation made by Mike Godwin in 1990 which has become an Internet adage. It states: "As an online discussion grows longer, the probability of a comparison involving Nazis or Hitler approaches 1." 3 2
entity_239677 …
One URL to Rule Them All
The key to this being effective is only having one true url for each page. We do this right now by redirecting www to no-www and ensuring that each page has a trailing slash. First, no-www. # no www RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1$1 [R=301,L]
Next, we ensure that there is always a trailing slash when needed. This means that /foo redirects to /foo/ and foo.json just stays as foo.json. RewriteCond %{THE_REQUEST} ^(GET|HEAD) …