Mike Olsen

  • ask me anything
  • rss
  • archive
  • Guess latest Chrome version based on date?

    Using past two years of chrome releases from wikipedia: https://en.wikipedia.org/wiki/Google_Chrome_version_history

    Curve fit with almost perfect fit, take the simple y = mx + b and we can guess the latest version of chrome based on the current epoch.

    image

    javascript fiddle proof of concept: https://jsfiddle.net/artfulhacker/e6c1qmff/

    var epoch = Date.now() / 1000;
    var slope = 0.000000251;
    var yintercept = -316;
    alert(Math.floor(epoch * slope + yintercept));

    • March 18, 2017 (11:41 am)
© 2013–2021 Mike Olsen