Thursday, March 18th, 2010

afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

  • Got triggered in a horrible (and horribly embarrassing) way last night, so I hopped offline while I was still able, then took the night off for my sanity


  • On the good side, I managed to catch [personal profile] aveleh, [personal profile] pauamma, and [personal profile] idonotlikepeas online. It's been rare that I've been able to touch base with all three in the same evening


  • Timezones, and timezone differences suck! I am looking forward to starting on Dreamwidth officially. I'll be able to adjust my time to align with other people's peak times, if I need to, instead of trying to steal an hour of their time just before they head to bed, or staying up an extra three hours past midnight when I should be asleep because there is still dayjob the next day (it is embarrassingly obvious where my priorities lie *G*)


  • I have a lingering cold and a lingering aching shoulder. I consider this ample excuse for the next thing:


  • I left my bag with all my important things at home this morning. No cellphone, no wallet, no hard drive, no earphones, no key to my work locker (which contains my laptop), no house keys. It is scary how much of my life is in that one small black bag!

    I managed to borrow a spare set of keys, though, so at least I managed to set up my work laptop.


  • PS. I'm not really fuzzy-minded enough from the cold to actually be able to blame it for this


  • So far, QA has not found any big issues with my latest (last!) project. Since there's nothing I need to code for work, I've been spending my afternoons picking up tiny DW bugs. I feel less guilty picking up tiny bugs than more involved ones when I'm at my dayjob -- even now that there's really nothing else for me to do here. I can drop them any time in case I need to fix something for dayjob :-) (again, it is embarrassingly obvious where my priorities lie. But there is literally nothing for me to do, unless QA finds a bug, so I refuse to feel guilt)


  • Coding is therapeutic


  • So is going through [site community profile] dw_news and basking in the DW love in the comments.


  • Last night was a kickboxing night. I love kickboxing nights, especially when my trainer tells me that my punches are took weak, giving me permission to go wild. (He asked for it)


  • This evening, I plan to try out the track at Ultra, where I have never been. It should be fun *g* And I need to do something to work off my frustration at myself for what has been a really scatterbrained day.

AGH. Silly mistakes

Thursday, March 18th, 2010 04:42 pm
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
In my attempt to conquer Bug 2344: Default View/Default filters should be default when adding from hover menu, I wrote this line of code:

$success ||= $filter->add_row( userid => $u->id )

What I thought it said:

* add this user to the filter
* once you've added the user, check whether it was successful, and keep a running tab on the status so you'll know in the end whether everything succeeded or not

What it was actually saying:
* once you've successfully done one thing (e.g., added the user to a filter or subscribed to that user), we're done. We don't need to do anything else (in this case, adding a user to the filter).

So now I've rewritten it more properly as:

$success = $filter->add_row( userid => $targetu->userid ) && $success;

(I got the boolean logic initially wrong too *rueful*)


This was an entire afternoon's worth of frustration (whyyyyyyy isn't it adding the user to the filter? Why doesn't it print out any of my warn statements within add_row? I didn't realize I wasn't calling it at all), solved with one of those flashes of insight you get when you get up and grab a glass of water and happen to reread your code when you get back.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
I'm taking part in the March Suggestions Hackathonthat [personal profile] yvi suggested. I plan to do five bugs from suggestions this month.

I've been off to a really slow start; here's what I have so far:


  1. Default View/Default filters should be default when adding from hover menu (patch submitted)

  2. Warning for Bad Markup (patch submitted)



(I'll update this entry as I do more)