Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

LABS
Standup 11/13/2009: IP Geolocation, Firebug bugs, Optional params to a lambda, Rubymine 2.0 RC2, Startup Crawl

Help:

Anyone have any IP Geolocation software recommendations?

Firebug binds up and forces me to restart Firefox when modifying CSS.

  • Try Safari or Webkit. You can add css styles to a class on an element by editing an existing element, finishing the current style with a semi-colon, and declaring a new style.

Interesting:

  • Optional params to a lambda: declare the lambda with *args and get warning free lambda to which you can pass no arguments.
class MyClass
  named_scope :in_progress, lambda { |*args| param = (args.empty? ? true : args.first); {:conditions => {:in_progress => param} }}
  #MyClass.in_progress           # < return all in progress records
  #MyClass.in_progress(false) # < return all non-in-progress records
  #MyClass.in_progress(true)  # < return all in-progress records
end
  • Rubymine 2.0 RC2 is out. Release notes include better performance and reduced memory usage.

  • Pivotal Labs will be a stop on the Startup Crawl during Rubyconf.

Comments
  1. I find the Firefox Web Developer add-on (https://addons.mozilla.org/en-US/firefox/addon/60) to be the easiest way to play with CSS.

  2. Matthew Todd says:

    There’s a nice gem for accessing MaxMind’s data files:

    * [http://gemcutter.org/gems/geoip](http://gemcutter.org/gems/geoip)

  3. Highly recommend MaxMind + GeoIP. Simple + Fast, no network connectivity dependency.

  4. rapid4me says:

    Duncan Beevers , thanks for your tip! It was the most helpful!

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *