brhfl.com

365 Numbers

I’m not one to put stock into New Year’s resolutions, but I do occasionally have ideas for little things-to-do during a given year. One such idea for 2019 is to set my homepage such that I’ll be redirected to the Wikipedia entry for the number of the current day (out of 365, so February 14 will return the page for 45 (Number)). This is easily attained with a small bit of HTML stored locally:

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Let's learn about numbers!</title>
</head>
<body>
<script type="text/javascript">
var today = new Date();
window.location.replace("https://en.wikipedia.org/wiki/" + ((Date.UTC(today.getFullYear(), today.getMonth(), today.getDate()) - Date.UTC(today.getFullYear(), 0, 0)) / 24 / 60 / 60 / 1000) + "_(number)");
</script>
</body>
</html>

(Or just use this link.)

Once you get into the hundreds, there’s less and less interesting information about a given number. In fact, bunches of numbers start to get lumped into a single article. So, we’ll see, I may abandon this by the end of the year. But I think it’ll be an interesting way to learn some weird little numerical tidbits.