Ramiro Franco

Rails 3.1, Sass, Compass, and Comments.

Written on Tuesday January 17, 2012 at 7:27 a.m.

So I'm in the middle of upgrading one of the projects at my company from Rails 3, to Rails 3.1. An endeavor that I was very excited about. This means we'll be switching to the new rails 3.1 asset pipeline, which I've found very enjoyable in my own projects at home. There are a couple of issues I've encountered on the way though and thought I'd document them ( in case someone else is looking for a solution to a similar problem ).

One of these issues was that the current version of compass ( 0.11.7 ), actually changes the behavior of the image-url() tag in sass. Normally, this should generate a link to the dynamically compiled assets in /assets/, but with compass installed rails continues to point to /public/. I couldn't find any great documentation for the error, but did find someone asking about it in an obscure post in the sass github.

The other issue I ran into was that in my current configuration with rails 3.1.3, sass 3.1.12, and sprockets 2.0.3, adding /* this style */ comments to a sass file, after a line of code causes a "stack level too deep" error. It wouldn't have been so hard tracking this down as the problem if the same lines didn't also have complex linear-gradients which I had first assumed were the problem, since a post-line comment seemed much more benign.

The New Year Rolls In

Written on Sunday January 1, 2012 at 1:22 a.m.

The new year has come in and I'm looking forward to a year filled with all sorts of learning and new projects.

I ushered in the new year with my wife and friends at Gary and Dena's place, and I now have a new project to build a website for their wedding, which sounds fun.

I recently started taking my Japanese lessons online again, and my wife decided to brush up on her Spanish while I do that, which is a pretty fun arrangement.

We're doing it all through Rosetta's "totale" program. Which is way better than the previous iterations of their software, and at 20$ a month, is a pretty good deal. Recently though, it seems their website stopped offering this plan on a month-to-month basis, so you have to actually have to buy a whole year before you're switched to a monthly plan, which is kind of douchey, and hardly competitive considering there are programs like Babbel out there which are just as good ( and even better ) for some situations.

A Boring Christmas Story

Written on Sunday December 25, 2011 at 1:52 p.m.

I want to be clear, that I'm not complaining about the lack of excitement this holiday season. It has passed very much like previous ones have in recent years. I'm actually pretty relieved that nothing new or tragic has popped up to make this weekend any fuller than it's already been.

We did have the addition this year of my younger sister's boyfriend, who's a pretty fun guy. We got to show him and my sister The Observatory and Ground Kontrol the night before. Both of which felt like good "Portlandy" choices to take out-of-state visitors to.

I spent Christmas Eve at my families home, watched moves and played video games until midnight We opened presents then and had a couple of drinks before we said our good nights.

This morning Brenda and I went north to her parent's house to unwrap more gifts and enjoy a good family day. Lunch or Dinner is cooking now and it smells great but as picky as I am, I'm not sure what the choices available to me will be when the food is done cooking.

My Sad Rat

Written on Tuesday December 20, 2011 at 11:14 a.m.

I have this pet rat named Alfred. He's a super sweet albino fancy rat who has recently developed a very large tumor and unfortunately I won't be able to pay for the cost to have it removed.

He seemed comfortable enough living with it at first but about a week after it first appeared he began to bite at it to the point where it began to bleed, and he hasn't relented long enough for it to scab over since.

I'm thinking now the poor little guy probably needs to be euthanized, but I'm not really sure how to ask my vet about that without feeling like a terrible person.

Attending the Winter Social

Written on Tuesday December 13, 2011 at 10:40 p.m.

I participated in the Coder's Winter Social today hosted at Urban Airship, and managed to meet at least a few people. A couple of those were trekkies / Joss Whedon fans so I had a pretty good time chatting about that for a bit.

I managed to meet someone there with a really interesting project idea, that I won't reveal here in case she wants to keep that private, but I am hoping she sends me a message regarding that so I can help do some work on it, even if my schedule has been kind of packed recently.

I think I've made a choice not to go back to school. I really like the idea of being back in classes, and it can never hurt to continue your education, but financially it's probably not worth the benefit I would get out of going back at this point. I'm already doing what I love, every day. I still have time before I have to decide, maybe if my fafsa funding comes through i'll go.