I upgraded from Mavericks to Yosemite on my MacBook tonight and thought I’d share some of the fixes I had to apply to get my development environment set up again. I’ll continue to update this post as I discover new things that aren’t quite working the same as before.
I always lag behind Jon when it comes to trying out build tools or frameworks that are supposed to make my programming life easier. He tells me about cool new things he’s using, and I say “yeah, that looks cool, but I just want to be productive, so I’ll do things they way I’ve been doing them.” Then eventually I get a chance and I try out the cool thing and Jon was right, it’s totally great. That happened for me recently with Yeoman and Bower.
Recently, I had need to change the value of a select menu in an iframe from the outer page containing the iframe. There was a
I wanted to change the value of the select menu and for the
to happen. As you can see, the iframe didn’t use jQuery to set the
event handler, so I couldn’t do the following:
// doesn't trigger callback function! var iframe = $('iframe'); var iframe_select = iframe.contents().find('select#menu'); iframe_select.val(value); iframe_select.trigger('change');
That didn’t work. I could inspect the select menu after this code ran and its
value was definitely updated, but the
change callback never happened.
What ended up working for me was the following code. I’d never used
dispatchEvent before, so I thought I’d
I recently ordered a Fitbit Zip because I missed the Moves app but didn’t want to return to them now that they’ve been acquired by Facebook. I also wanted something I could carry around more easily on my person than my phone. Sure, I take my phone almost everywhere I go, but I have to remember to grab it if I’m going to go downstairs or otherwise take a quick walk. With a Fitbit, my hope was to always wear it without even having to think about it.