10 September 2010

The Ruby Reflector

Topic

Alex Chaffee

  Source Favicon
By Alex Chaffee of alex blabs 1 month ago.
Email

Uh-oh! ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Moved Permanently 301 (http://gems.rubyforge.org/latest_specs.4.8)

Whew! gem sources -a http://rubygems.org/ gem sources -r http://gems.rubyforge.org/

Looks like they weren't kidding when they said to switch from rubyforge to rubygems.org (née gemcutter)!

[Edited to change "http://production.s3.rubygems.org/" to "http://rubygems.org/". Note that the trailing slash is significant!]

pivotallabs.com Read
  Source Favicon
By Alex Chaffee of alex blabs 1 month ago.
Email

Uh-oh! ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Moved Permanently 301 (http://gems.rubyforge.org/latest_specs.4.8)

Whew! gem sources -a http://production.s3.rubygems.org/ gem sources -r http://gems.rubyforge.org/

Looks like they weren't kidding when they said to switch from rubyforge to rubygems.org (née gemcutter)!

pivotallabs.com Read
  Source Favicon
By Josh Susser of has_many :through 10 months ago.
Email

Alex Chaffee: Erector - http://erector.rubyforge.org

Steven Parkes: http://github.com/smparkes

Jeff Casimir: 4 Things I Love - http://github.com/jcasimir/things_i_love

Yasuko Ohba: Sub-resources - http://github.com/nay/sub-resources

Marc Chung: Parsley - http://github.com/fizx/parsley

Miss Ruby on Rails

Jugyo: g - http://github.com/jugyo/g

Will Emerson: Spree - http://www.spreecommerce.com …

blog.hasmanythrough.com Read
  Source Favicon
By Alex Chaffee of alex blabs 1 month ago.
Email

The error: /Library/Ruby/Gems/1.8/gems/json_pure-1.4.3/lib/json/pure/generator.rb:232:in `__send__': undefined method `except' for #<JSON::Pure::Generator::State:0x102f245b0> (NoMethodError)

The environment: Ruby 1.8.7, DataMapper, dm-types, ActiveSupport, or just require 'json/pure' require 'active_support'

(as seen in http://gist.github.com/339528 )

My solution: # workaround for activesupport vs. json_pure vs. Ruby 1.8 glitch if JSON.const_defined?(:Pure) …

pivotallabs.com Read
  Source Favicon
By Alex Chaffee of alex blabs 1 month ago.
Email

When two strings fail to match, if the difference is somewhere in the middle of the strings, it can be annoying/impossible to track down the actual difference. I've written a little Comparison object that overrides the failure message for .should == like this: Strings differ at position 12: expected: ..."efghijklmnopqrst"... actual: ..."efghijklXXopqrst"...

It shows a "prelude" of a few characters, then the difference, lined up on successive …

pivotallabs.com Read
  Source Favicon
By Alex Chaffee of alex blabs 4 months ago.
Email

My company launched our app, Cohuman , a few weeks ago. The rush of finishing features, fixing bugs, and responding to user feedback has subsided a bit, and it's time to go back and give the little baby a tune-up. I find that a good development process will ebb and flow, and as long as you don't let something slide for too long, it's perfectly acceptable to let bugs, or performance issues, or development chores pile up for a bit and then attack them concertedly for an entire …

pivotallabs.com Read
  Source Favicon
By Alex Chaffee of alex blabs 6 months ago.
Email

That's it. I'm done with TextMate. It hasn't been updated in over 2 years, either for essential functionality (replace in path) or performance fixes (searching through log files) or UI issues (how many boxes must you click to enable autosave?) or bug fixes. Every few months the author pokes his head up and says "I'm working on TextMate 3.0!" and then disappears again, happily accepting new license fees into his PayPal account.

pivotallabs.com Read
  Source Favicon
By Alex Chaffee of alex blabs 8 months ago.
Email

Now that I'm starting to use DelayedJob to perform jobs in the future in my Heroku Sinatra app, its important that they happen at the scheduled time. But unless you pay attention, you'll find that times get mysteriously changed -- in my case, since I'm in San Francisco in the wintertime, by +/-8 hours -- which means that some conversion to or from UTC is being attempted, but it's only working halfway.

Trying to keep a handle on which libraries are attempting, and which …

pivotallabs.com Read
  Source Favicon
By Alex Chaffee of alex blabs 9 months ago.
Email

I lost my Blabs posting privileges, and before I go begging Edward to reinstate me I'd like to know if anyone is following this blog here. Could you reply in a comment if you're receiving this transmission?

pivotallabs.com Read
  Source Favicon
By Alex Chaffee of alex blabs 9 months ago.
Email

The rules for how to make parts of your HTML page translucent are kind of hard to understand -- in other words, the opacity rules are pretty opaque. (Anyone who can make that into a good pun, let me know and I'll change the title of this article accordingly.) The following represents the results of a couple of days of empirical research and as such may be incomplete or inadequate, but here goes.

In the brave new HTML5 world, with all the CSS gizmos supported by Safari and Chrome

pivotallabs.com Read