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

#40: macports thinks python26 needs xorg

Solved!
on May 01, 2009, 07:19 AM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 2,103 views )
Clearly that is just plain ridiculous.
Tags: python, macports, osx
1 solution | 1 reference     Add Solution | Add Reference    

#37: make url_for() generate a URL for the current page including GET params

Solved!
on April 17, 2009, 12:44 AM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 897 views )
If you just use url_for() in a view, it will generate the url corresponding to the controller/action/id that generated, but it will leave out the precious GET params.
Tags: ruby, url_for, views, templates, urls, Rails
1 solution | 0 references     Add Solution | Add Reference    

#35: validating date_select in rails

Solved!
on April 15, 2009, 11:39 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 1,337 views )
If you use the date_select helper in Rails, setting all fields except for the year will result in MultiparameterAssignmentErrors. You can catch the exception, but it's kind of hard to catch it in a place where you can add errors to a model instance.
Tags: ruby, validation, hacks, sadness, Rails
1 solution | 1 reference     Add Solution | Add Reference    

#34: Indexing the results of an nested set ancestry query

on April 15, 2009, 08:59 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 602 views )
I would like to use Sphinx and ThinkingSphinx to index the results of a nested set ancestry query, but I'm not entire sure how. The kind of query I need to do would be something like SELECT id FROM taxa WHERE taxa.lft <= $target_taxon_lft AND taxa.rgt...
Tags: sphinx, indexes, search, ThinkingSphinx, SQL, Rails
0 solutions | 0 references     Add Solution | Add Reference    

#33: Addicted to Buffy the Vampire Slayer

on April 15, 2009, 06:46 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 731 views )
I started watching and now it rules my life.
Tags: tmi
2 solutions | 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