Minor bug fix: autocomplete styling on quantifiedawesome.com

Posted: - Modified: | geek

I haven't really touched quantifiedawesome.com's codebase in a while. I'm afraid of breaking it in a way that requires focused time to fix. I'm starting to be able to code teeeny tiny bits after A- goes to bed, but I can't stay up too late or the next day gets pretty tough. I also feel myself thinking less effectively as I stay up longer.

Still, I thought I'd dust it off and give it a try, especially since it turns out that other people actually still use the thing frequently enough to notice when the site isn't working. (I accidentally messed up my database permissions the other night. Fortunately, it was something I could fix by chown-ing my MySQL data directory back to my mysql user instead of docker. Oops.)

Maybe thinking out loud will help. Back to using blog posts for writing my way through a problem.

Okay. Small bug. Autocomplete dropdown doesn't look so nice. I have to go figure out where to set the styles againā€¦ That's in app/assets/stylesheets/style.css.sass . I think I've figured out the change to make. How do I build rails app scss assets again? RAILS_ENV=production rake assets:precompile – oh, I need rake assets:precompileā€¦ Oops! That really didn't like that, resulting in lots of errors like this:

.../lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated .../lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated rake aborted! SystemStackError: stack level too deep

Hmm, maybe I have the wrong Ruby version. I peeked in ruby-with-env and used the source line from that to load the right environment. I really need to upgrade Ruby and gem versions, but that requires lots of focused time and kindergarten is looking like less of a possibility.

Okay, that rebuilt my CSS file. Yay! Wait, I think I'm starting to remember how to restart this thing. touch tmp/restart.txt

It's not very pretty, but it's marginally better than before. It'll do.

You can comment with Disqus or you can e-mail me at sacha@sachachua.com.