Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

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

Tyler Schultz
Friday, November 13, 2009

Help:

Anyone have any IP Geolocation software recommendations?

  • MaxMind provides downloadable databases and updates
  • Google provides an api called google.loader.ClientLocation

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.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

4 Comments

  1. Brad Greenlee says:

    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.

    November 13, 2009 at 9:14 pm

  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)

    November 13, 2009 at 9:47 pm

  3. Duncan Beevers says:

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

    November 14, 2009 at 2:14 pm

  4. rapid4me says:

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

    February 9, 2010 at 8:03 am

Add New Comment Cancel reply

Your email address will not be published.

Tyler Schultz

Tyler Schultz
San Francisco

Recent Posts

  • [Standup][SF] 09/21/12: Get older faster
  • Ah, ah, ah. Now, that was silly. Wouldn’t you agree, my bats? Ah, ah, ah.
  • [SF][Standup] 09/19/12: ActiveAdmin vs. RailsAdmin… Arrrggg!
Subscribe to Tyler's Feed

Author Topics

rails (5)
time (2)
css (1)
heroku (2)
javascript (1)
activerecord (1)
android (3)
robolectric (1)
tdd (1)
agile (7)
amazon (1)
default scope (1)
hudson (1)
rspec (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >