Show HN: Visualize your day as 144 rectangles

3 years ago (rectangles.app)

It is a good idea, but the layout hurts my eyes due to the Hermann grid illusion.

https://en.wikipedia.org/wiki/Grid_illusion

  • It wasn't intentional!

    I experimented with different colors, but seems like all of them produce this illusion :/

    I'll see what I can do.

    • UPDATE:

      * rounded corners to make rectangles look more pleasant

      * switched to pastel colors to lower the contrast and make the grid less taxing for the eyes

      Thanks everyone for the input!

    • You might have to do 144 circles instead, I think that would have enough whitespace around each one to stop the illusion.

    • Fiddled around with it a bit and if you reduce the spacing between the boxes to a few pixels the illusion goes away for me or is barely noticeable. But, the aesthetics of the whole thing are quite different then.

    • Seems better with a border radius of 1.25rem. Also making the border thickness very thin seems to help, as well as some making it more oblong.

    • Maybe try using circles instead of rectangles, and the progress within each circle is shown like a pie chart?

It would be fun to see this with local daylight hours mapped to the squares, so I could get a feel for where my consumption is at within "daylight" vs the whole "day"

SunCalc is a good tool for this, if you're interested: https://github.com/mourner/suncalc

(I've used it on a personal project, and the API was a little awkward but the results are good: https://daylight.website/)

  • That's interesting - didn't cross my mind! Thanks for the pointer.

    Btw, the website you linked doesn't work for me. I get the "Uncaught (in promise) TypeError: navigator.geolocation is undefined" on Firefox 98.0.2 on macOS 12.3.1

  • Your personal project is a pretty cool and interesting way to visualize daylight (especially using the fast forward button to go through a week at a time). Thanks for making it.

    • Thank you, I'm glad you enjoyed it. I love the week skip too, interesting to see the shape change over the year.

      Undocumented feature: if you hold down "w" or "shift+w" keys you can skip through weeks even faster.

  • I love your personal project! Would make an amazing smartwatch face!

    • There's an Apple watch face called "solar dial" that's pretty similar, and I've seen others like this.

      To me this is the most logical watch face — everything else just confuses matters.

      2 replies →

Those perspective items don't really provide perspective. I don't hate them, but a Jupiter day means nothing to me. The "average workday" is good and meaningful.

Some thoughts on good "perspective" items:

* Average runtime of a film

* Average commuting time (US, presumably)

* 15-minute standup

  • You do have a point. Replaced Jupiter's day length with a good night's sleep. Thanks!

I am grossly offended by this

    .grid-item {
      ...
      height: 4.5rem;
      width: 4.5rem;
    }

That's a square.

Fine, a square is a rectangle. But that's a square.

There's no media queries to eliminate the square. There's no JS that affects the square-ness. It's all squares.

144 squares.

  • Yikes, I haven't thought anyone would venture there and see that monstrosity...

    Well, now they're rectangles!

    •       height: 4.5rem;
          - width: 4.5rem;
          + width: 4.6rem;
      

      consider my offense revoked

I see that I'm not the only one inspired by this blog post [1]. I did a similar visualization with blocks to display my working hours [2].

[1] https://waitbutwhy.com/2016/10/100-blocks-day.html [2] https://github.com/am-on/work-timer

And yet the vast majority of these rectangles will be spent JUST on maintaining you so you can spend a minority of them on either work or things you actually want to do.

Sleep, eat, exercise, shower, dress, undress, shop, drive (often in traffic), errands, poop, pee, fap (or sex if you are so positioned), then theoretically get a few hours of work done (hopefully productive and fulfilling but often filled with meetings and other drudgery), then babytime if you have one, and THEN there's maybe 1 row of rectangles left for you to spend how you actually please!

  • It's why I follow the "wake up early, work-out, get something done" organizing principle for my day. My day is usually in pretty good shape by 9am, even if nothing else happens.

    • I have to say, it took me a very long time as a self-identified "night owl" but I finally came around to this. I schedule an Orangetheory class at 8:15 M-W-F (I could go earlier, and have, but I have a 9 month old now and the nanny comes @ 8) and I certainly feel like I get a lot more done (also my energy starts off high).

Side note, I really appreciated the "no javascript" message:

>Sorry pal, but this won't work without JavaScript. You are probably doing that for privacy reasons, and I do respect that. You can download this website, inspect the source code, and run it locally. Or, you can whitelist it in your browser/script blocker. I don't have any third-party trackers on this website, and the code is open-sourced, so there's not much to be worried about.

That is far too many rectangles. My cortisol spiked just reading the headline. Please turn it down to a more manageable number, like 3.

Cool project! Just a quickie, but might be worth changing "nitty gritty" to "the details". Depending on the etymology you look at, the term could be considered offensive (so probably not worth the risk!).

  • I was very confused by this, so I looked it up:

    "It has been suggested that the word originally referred to the debris remaining in the holds of slave ships after the slaves had been disembarked, but there is no evidence of such use before the 20th century when slavery was prevalent." -- Wiktionary

    I do not think we should be deprecating colorful words because someone invented a fake etymology for them. Nor, for that matter, because someone somewhere might unreasonably take offense.

Two ideas:

1. How about just 48 Pomodoro-sized rectangles?

2. For those of us with a shifted sleep rhythm it would be nice to be able to set the start-of-day time.

  • I agree that 1 Pomodoro ≅ 1 half hour, and 1 day = 48 half hours. But does 1 day = 48 Pomodoros? Maybe with lots of stimulants.

Visitors on mobile devices can’t hover. Why not just show the examples all the time?

  • You mean rotating between examples every X seconds?

    • Perhaps making them toggles would work better.

      Even if hover pseudo classes would work in mobile, we don’t see the grid while looking at the list items, so we would not even notice something has changed.

Suggestion: Change the cursor when hovering over the text. I didn't understand whether to hover over the text or the rectangles.

Apart the way to visualize the blocks if you spent 44 blocks to sleep (almost 8 hours) you have exactly 100 blocks (10x10) of 10 minutes.

So this is like a calendar but just for a day?

should we have some columns grayed out to show downtime similar to a weekend for a week?

hehe had a thought in the past a countdown from 100 years old minus your current age, tells you how much longer you have left to live. Not an original idea but yeah.

  • I remember stumbling upon a website which did this, but instead of just taking 100 years it prompted the user to select his country and gender. The algorithm then used data about the average lifespan of the selected gender in the selected country to tell the user how much they have left to live.

Nothing happens when i hover over the squares.

  • You should hover over the list items, not the individual rectangles. Also, it doesn't work on mobile devices, and I'm not sure what could be done about this.