I Fixed HTML5 Video
snippet
const videos = document.getElementsByTagName('video');
Array.prototype.forEach.call(videos, video => {
video.addEventListener('error', () => video.load());
});
The Promise Point
The biggest misuse of promises in JS is when you write this:
action1().then(() => {
return action2().then(() => {
return action3();
});
});
when you would be writing this:
action1().then(action2).then(action3);
“Knowing the solutions lets you sequence-break. Replaying the game, I can skip those instructional rows of puzzles and go right to the door. The game has changed me, put something in my brain I didn’t have when I first played it. I didn’t get some virtual ice beam, nor did I unlock a grappling hook or wingsuit. I learned something.”
- Stephen Totilo, on the confoundingly gorgeous game, The Witness
“Past research by Dweck and others shows that people tend to hold one of two views about their own personal qualities: that they are fixed over the lifespan, or that they are malleable and can be developed at any point. These beliefs impact how people respond to setbacks. For example, when people consider intelligence to be something fixed, they’re less likely to persist in the face of failure than people who believe that intelligence can be developed.”
I’m not going to vouch for this article, but I agree with the main point. It’s why I’m strongly bothered by horoscopes and Myers-Briggs types. Convincing people that they have a static nature prevents them from participating in the uniquely human ability to learn, grow, adapt, and transform.
“Whiteness is not a kinship or a culture. White people are no more closely related to one another, genetically, than we are to black people. American definitions of race allow for a white woman to give birth to black children, which should serve as a reminder that white people are not a family. What binds us is that we share a system of social advantages that can be traced back to the advent of slavery in the colonies that became the United States. ‘‘There is, in fact, no white community,’’ as Baldwin writes. Whiteness is not who you are. Which is why it is entirely possible to despise whiteness without disliking yourself.”
http://mobile.nytimes.com/2015/12/06/magazine/white-debt.html
“I used to spend ninety per cent of my constituent response time on people who call, e-mail, or send a letter, such as, ‘I really like this bill, H.R. 123,’ and they really believe in it because they heard about it through one of the groups that they belong to, but their view was based on actual legislation,” Nunes said. “Ten per cent were about ‘Chemtrails from airplanes are poisoning me’ to every other conspiracy theory that’s out there. And that has essentially flipped on its head.” The overwhelming majority of his constituent mail is now about the far-out ideas, and only a small portion is “based on something that is mostly true.” He added, “It’s dramatically changed politics and politicians, and what they’re doing.”
http://www.newyorker.com/magazine/2015/12/14/a-house-divided
The consequences of lies are dire.
“NEUROTIC SENSITIVE GUY IS ALSO SUPER-UNHAPPY
A half-hour cable comedy show about a wealthy L.A. or N.Y.C. man who makes his living doing something creative, and is miserable despite having suffered no traumas and having no immediate health problems. If he has kids, they are invoked only as impediments to his sex life. The pilot always involves a child’s birthday party with a bouncy castle, or a clown who breaks character when he’s not around the kids. Deemed brilliant and hilarious, this show usually has no jokes.”
yup
Emoji I Desperately Need
- eyes darting back and forth, suspiciously “yeah… that thing i was supposed to remember…”
- eyes twirling in confused spirals “but why? i don’t understand!”
- look of shivering terror “ewwww, the horror.”
“Aren’t there parts of ourselves that are just better left unfed?”
The Host by David Foster Wallace
DFW gets closer than anyone to communing with our hungry ghosts.
It’s a sorrowful Q&A, and one wonders, “with the rise of secular comfort, how will we choose to spend our free time? Will we just gorge ourselves until eternity?”
Some stats:
- 3/4s of white Americans have 0 non-white friends.
- 70% of millenials (polled by MTV) consider themselves color blind.
Some thoughts:
- A lot of white children grow up in towns that are almost entirely white, and this is out of their control (mostly). But I still ask, how can people consider themselves “color blind”, when they choose to solely hang out with people of their race?
- And honestly, being “color blind” is just a way of ignoring inherent bias. Shouldn’t we be color conscious?