Write tests. They'll save your ass.
If it's happened more than twice, don't ever do it by hand again.
| • Photoshop Anthology | |
| • Everything You Know About CSS is Wrong! | |
| • The CSS Anthology | |
| • The Art & Science of CSS | |
| • DHTML Utopia: Modern Web Design Using JavaScript & DOM |
| match(%r[/v1/entities/(.+?)/(.+?)(?:\.(xml|html))?$]). | |
| to(:controller => 'v1', :action => 'facets_for_entity', | |
| :type => "[1]", :id => "[2]", :format => "[3]") | |
| # calls to /v1/entities/foo/bar or /v1/entities/foo/bar.xml | |
| # result in 500 error with the following message: | |
| # Name Error 500: undefined local variable or method `path2' for Merb::Router:Class |
| Essential OS/X software & tools | |
| * LaunchBar or Quicksilver (I switched to LaunchBar) | |
| * Adium (cross-protocol IM client) | |
| * iStat Menus (see what your box is up to) | |
| * Colloquoy (IRC client) | |
| * 1Password (the most awesome password tool ever written) | |
| * Caffeine (dock app to keep your MacBook from sleeping) | |
| * MacPorts (essential for common FOSS) | |
| * iWork (if you do presentations, KeyNote can't be beat) |
| regatoave sent you a message. | |
| -------------------- | |
| Subject: Hello, | |
| Hello, | |
| Nice to meet you, how is everything, hope all is well with you. My name is Madam Avelin Regato, I found your contact after reading your profile I picked interest to contact you. I've something very important which I would love to share with you privately, therefore, would advise you to kindly write me back on: (avelin_regato7@yahoo.com) so that I'll give you details. Waiting anxiously for your anticipated corporation, | |
| Yours, | |
| Madam Avelin |
| foo = { :alpha => "one", :bravo => "two" } | |
| class << foo | |
| def howdy! | |
| "howdy!" | |
| end | |
| end | |
| foo.howdy! #=> "howdy!" |
| * Usage Store | |
| ** Total number of known entities | |
| ** Total number of unknown entities | |
| ** Number of hit-data messages processed (per day) | |
| ** Number of index-count messages processed (per day) | |
| ** Number of GET requests (per day) | |
| *** Response times? | |
| *** Broken out by resource? | |
| * Message Store |
| What I want in a Twitter app: | |
| * A UI that stays out of my way | |
| * Does URL-shortening automagically | |
| * Integrates messages, replies and direct messages in a single view | |
| * Supports re-tweets | |
| * Has media library integration for photos | |
| * Supports pause to avoid distractions | |
| * allows easy replies | |
| * allows easy direct messages |
| #!/usr/bin/env ruby | |
| ## | |
| # A dead-simple way to display formatted JSON output that is the result | |
| # of an HTTP GET request | |
| require "rubygems" | |
| require "json" | |
| require "net/http" | |
| require "uri" |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'httparty' | |
| require 'radar_love' | |
| require 'pp' | |
| require 'yaml' | |
| class TopEntities | |
| include HTTParty |