• Archive
  • RSS
  • About Me
  • Résumé
  • github
  • twitter
  • Email

Dima Sabanin

Hey, I'm Dima Sabanin and I love programming.
I work on Beanstalk for Wildbit.

Too Cool for Internet Explorer

  • Link

    20th May 2008

    my twitter

  • Link

    20th May 2008

    Productivity: Nice background noise generator

    Creates really pleasant pink noise. For Mac.

  • Note

    20th May 2008

    Google AdSense made no sense for me. Turned it off

  • Note

    20th May 2008

    Rails tip if you use association proxy methods

    I like doing following in my code:
    class Blah < ActiveRecord::Base
      has_many :somethings
    end
    
    class Something < ActiveRecord::Base
      def self.for(person)
        find(:first, :conditions => {:owner_name => person})
      end
    end 
    
    # And then later
    @the_blah.somethings.for("dima") # => #<Something ....> 
    
    But I also can accidentally do this and break the expectation for the code, since I don’t have full conditions specified in the Something.for method:

    Something.for("dima")

    Right, no conditions from Blah will be applied and first Something with name “dima” will be returned. However, here’s a workaround I figured out, just write a Something.for method like this:
    class Something < ActiveRecord::Base
      def self.for(person)
        raise unless scoped?(:find)
        find(:first, :conditions => {:owner_name => person})
      end
    end
  • Link

    1st May 2008

    Coworking: Social club or work space?

    I started working at Indy Hall almost two weeks ago. Indy Hall is a coworking space in Old City, Philadelphia where people who would normally work at home can now work in an office with…

  • Link

    19th April 2008

    Viddler API RubyGem

    This week we released a RubyGem for Viddler’s Video API. We created it for our Beanstalk help system so we could upload video in each post, then pull back the player code to embed screen casts….

  • Link

    1st April 2008

    Beanstalk is moving to Engine Yard

    If you haven’t noticed, Beanstalk has been growing. With the growth we’ve also had some pains. In the last couple months our servers have been far from what we (or anyone else) would consider…

  • Link

    15th March 2008

    ING: Nice UI Transition

    I logged into my ING account and noticed a different welcome screen. They made an update to the navigation and instead of just making the change, I was notified upon login. This says a lot to me,…

  • Link

    14th March 2008

    Free Beanstalk Accounts!

    We are running contests on two sites, giving away multiple paid Beanstalk accounts for one year. If you like Beanstalk and want a free paid plan for a year, check out these sites.

    • Working With…
  • Link

    13th March 2008

    How to clean .svn folders from your project

    If you use Subversion to manage your projects you probably have noticed hidden .svn folders in your checked out projects. A Subversion client creates them to store any information about the…

Prev Next
sdmitry at gmail.com

The Workshop — Мастерская скрапбукинга — Открытки ручной работы