Aurora Surprise

Whilst walking back from an event the other night, I saw this - pretty cool and very unexpected.

Aurora - Okotoks
Aurora - Okotoks

Idiots

The world are full of idiots. Some days more so than others. I hate "some days".

Whore frost

Some evenings are just magical.

Hoar Frost
Hoar Frost

JavaScript: prop vs attr

I just ran into a stupid issue that took 30 minutes of debugging to figure out. I have some JavaScript that would cause a radio button not to be checked by my code after a certain code flow was taken. So take code path 2 - it works, radio button gets checked. Take code flow 1 then code path 2 - does not work, radio button does not get checked.

Turns out code path 1 used prop('checked', false) and code path 2 used attr('checked', true) and they are incompatible. Each on their own worked, but if I ever set the checked property using prop, setting that same attribute using attr would no longer function. Weird.

Pointless Stats

"$15.8 million every 60 seconds. That's how much US consumers spent in two hours on Monday night," reports CNN

Kind of meaningless if you do not also specify how many people this include. Spending per person would have been much more interesting. As in 4.7c per person per minute. Hmmm...