18 May 2013

The Ruby Reflector

Topic

Rule

  Source Favicon
Email

…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 …

robots.thoughtbot.com Read
  Source Favicon
By miraculous1 of mir.aculo.us 7 months ago.
Email

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 …

mir.aculo.us Read
  Source Favicon
By Patrick of Kalzumeus Software 7 months ago.
Email

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

kalzumeus.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 1 year ago.
Email

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 …

afreshcup.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup over 1 year ago.
Email

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.

afreshcup.com Read
  Source Favicon
By Jennifer of Opscode Blog almost 2 years ago.
Email

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…

opscode.com Read
  Source Favicon
On Luigi Montanez over 2 years ago.
Email

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 …

luigimontanez.com Read
  Source Favicon
By Assaf of Labnotes almost 3 years ago.
Email

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 …

blog.labnotes.org Read
  Source Favicon
By Occams of OmniNerd 3 years ago.
Email

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 …

omninerd.com Read
  Source Favicon
Email

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) …

railstips.org Read