SelfSolved

Record, recall, share

  • Log in
  • Sign up
  • About
  • What's New
  • Home
  • All Problems
  • SelfSolvers
148c663fd665c53518538e093ce3c2ab_thumb
28944 views

Registered: 2009-04-15

Update: over 5 years ago

Problems: 25

Solutions: 24

References: 9

Problem views: 28944

Unsolved problem views: 1310

Ken-ichi

kueda

User

Website: http://inaturalist.org

Location: Oakland, CA

I am the hand of doom. All code withers at my buggy touch.

Recent problems

Atom Feed

#93: inspecting the state of a named_scope

Solved!
on May 10, 2010, 09:22 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 690 views )
I know named scopes are getting all changed around in Rails 3, but I figured this out a while ago, and then forgot it, came here to find my answer, and realized I never wrote it down. The problem is that when you're building complex chained scopes its often...
Tags: ruby, Rails
1 solution | 0 references     Add Solution | Add Reference    

#91: piping stderr and stdout

Solved!
on April 21, 2010, 05:58 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 756 views )
Well, I think I've already looked this up and forgotten it twice.
Tags: bash
1 solution | 0 references     Add Solution | Add Reference    

#89: view readline history in irb

Solved!
on April 01, 2010, 06:53 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 2,834 views )
I wanted to view a log of all the lines I'd written in an IRB session, but didn't see a simple equivalent of bash's "history" command.
Tags: irb, ruby, history
1 solution | 1 reference     Add Solution | Add Reference    

#81: associated STI subclasses not loading in dev

Solved!
on January 08, 2010, 06:47 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 964 views )
Let's say you have class Chili < ActiveRecord::Base has_many :beans end class Bean < ActiveRecord::Base; end class Pinto < Bean; end Now, let's say you have one chili record that's associated with one pinto (it's a sad chili). If you do this...
Tags: ruby, STI, Rails
1 solution | 0 references     Add Solution | Add Reference    

#64: facebook feed update complains about img objects

Solved!
on August 27, 2009, 06:20 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 1,497 views )
When posting an update to Facebook through their API, were occasionally getting Application response error img objects must have valid 'src' and 'href' attributes. You can see this because you are one of the developers of the app.
Tags: facebook, API
1 solution | 0 references     Add Solution | Add Reference    
« Previous 1 2 3 4 5 Next »
  • About Us
  • Contact
  • Terms of Service
  • Privacy
  • Feedback
  • © 2009-2010 All rights reserved