Today I Learned

27-04-17

TIL

  • of Referrer-Policy, a new security header that allows controls over referrer information
  • that PHP 5.4 and older have a funny (read: sad) easter egg, where adding ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 to the URL of a PHP script will produce the PHP logo
  • that php -r 'class A { public function __clone() { clone $this; } } clone new A();' produces a SegFault error in PHP, a bug still exists in PHP 7

26-04-17

TIL

  • that JavaScript has a battery status API
  • that absolute pure water is actually lethal, because it would pull essential minerals out of your cells and leave you deader than dead
  • of Postal, an open-source SendGrid/Mailgun alternative

25-04-17

TIL

  • the difference between Composer CLI options --prefer-dist and --prefer-source
  • that the expansion of the universe can be faster than light. This explains why the universe is estimated to be 92 billion light years in diameter even though the Big Bang happened “only” 13.8 billion years ago.

24-04-17

TIL

  • of the latest guitarist of Stratovarius, Matias Kupiainen, and his mad skills
  • that Uber was still tracking its users even after the app had been deleted, and
  • that Uber identified Apple personnel using geo-data and would obfuscate the app’s code to hide said activity from Apple
  • that people almost never kick in a street fight, simply because they’re not properly trained – it takes a lot of skills to actually kick someone

23-04-17

TIL

  • when interrogated by an SS officer about his painting Guernica, “Did you do that?” Picasso replied, “No, you did.”
  • that lodash uses splice in its mutative functions (remove, pull etc.), causing Vue’s array change detection to fail (EDIT: this doesn’t seem to be the cause, which I’m too tired to find out now)
  • how to change a Git commit’s timestamp with GIT_COMMITTER_DATE

22-04-17

TIL

  • that Facebook is developing a way to read our minds
  • that if the earth would be a 40 year old guy, humans would have been using tools for a week and a half, and just left Africa 8 hours ago to settle around the globe
  • of a saying by Mark Zuckerberg:

A squirrel dying in front of your house may be more relevant to your interests right now than people dying in Africa.

which is quite true when you think about it

21-04-17

TIL

  • that “Weird Al” Yankovic did a parody of “Bohemian Rhapsody” titled Bohemian Polka with the same lyrics and structure, but in polka style
  • of Google.org, Google’s charitable arm – can’t believe I’ve never thought about this before
  • that dragons are real, albeit a bit smaller than those depicted in Game of Thrones

20-04-17

TIL

  • that mobile navigation is moving to the bottom of the screens
  • how to create slightly more advanced fish functions
  • that there’s this child molester who posted swirled images of his face online, which then got un-swirled by the Interpol using computer technologies, leading to his arrest in 2007

19-04-17

TIL

  • that one of Apple’s goals with every OS update is to break libraries and make developers suffer
  • of BackBlaze, a (seems to be) great S3-alternative and good candidate for Koel’s next integration
  • of scroll-behavior, a new CSS property to define whether the browser should jump (auto) or smoothly scroll to an anchored location
  • that support for CSS variables (aka “custom properties”) is pretty decent now, which also means I should start using them, lest I get lagged behind
  • of “Culture add > culture fit”, quoting @Una, a saying so awesome that GitLab added it into their handbook

18-04-17

TIL

  • that Victor Hugo and his life-long mistress Juliette Drouet spent the first night together on 16 February 1833, which is the same date as Marius and Cosette (of Les Misérables)’s wedding night.
  • about Antinous, Gracchus, Saint-Just, Aristogeiton, and Harmodius
  • that I need to avoid using words like “obviously,” “basically,” “simply,” “clearly” etc. in my documentation, because they’re not any helpful