TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The faulty digital clock problem

91 pointsby andersourcealmost 4 years ago

8 comments

gzaloalmost 4 years ago
One thing I noticed a few years ago but never wrote about it: Some sequences of numbers might be interpreted differently (increasing instead of decreasing) if you cover some of the segments up! <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;B2LZjqC" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;B2LZjqC</a><p>That happens when viewing off-axis some of the traffic lights that have a weather shield, like this: <a href="https:&#x2F;&#x2F;upload.wikimedia.org&#x2F;wikipedia&#x2F;commons&#x2F;3&#x2F;3a&#x2F;Semaforo_de_Avenida_Pueyrredon.JPG" rel="nofollow">https:&#x2F;&#x2F;upload.wikimedia.org&#x2F;wikipedia&#x2F;commons&#x2F;3&#x2F;3a&#x2F;Semaforo...</a>
marcan_42almost 4 years ago
I can&#x27;t help but feel bothered by the fact that the author didn&#x27;t use the standard 7-segment display nomenclature&#x2F;order for the segments (a-f clockwise starting from the top, middle is g) :-)<p>Another thing to note is that there isn&#x27;t one standard 7-segment display font; in fact, whole papers have been written on the &quot;optimal&quot; font. The differences are the extra serifs that are optional on 7, 9, 6. It would be interesting to add this variability to the problem, where you don&#x27;t know exactly what variant the clock is using.
评论 #27359489 未加载
评论 #27351670 未加载
______-almost 4 years ago
Slightly tangential thing I learned: Have you ever wondered why VCR clocks always showed 12:00 and were never set[0]?<p>It&#x27;s because people simply didn&#x27;t bother set the time on the VCR. I learned this from Mikko Hyppönen when he was telling us that people never change the default password on their IOT devices allowing hackers to access the devices and probably use the devices for cryptocurrency mining or launching a DDoS attack.<p>[0] <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;AskReddit&#x2F;comments&#x2F;3a06hk&#x2F;were_vcr_clocks_actually_very_difficult_to_set&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;AskReddit&#x2F;comments&#x2F;3a06hk&#x2F;were_vcr_...</a>
评论 #27349772 未加载
评论 #27353299 未加载
评论 #27351658 未加载
tzsalmost 4 years ago
That is assuming 6 segments for “6” and 5 for “9”. It is most common to use 6 for “9” also. Does it change the answer if the clock does that? How about if it uses 5 for both? Or 5 for “6” and 6 for “9”?<p>I think every display I’ve checked either uses 5 for both or 6 for both. I don’t recall ever seeing them mixed.<p>“7” also varies, using 3 segments most commonly but sometimes 4.
评论 #27351186 未加载
rahimnathwanialmost 4 years ago
This reminds me of Peter Norvig&#x27;s Sudoku solver: <a href="https:&#x2F;&#x2F;norvig.com&#x2F;sudoku.html" rel="nofollow">https:&#x2F;&#x2F;norvig.com&#x2F;sudoku.html</a>
atamyratalmost 4 years ago
Also check out z3 library for solving constraint satisfaction problems.<p>Python binding examples (<a href="https:&#x2F;&#x2F;ericpony.github.io&#x2F;z3py-tutorial&#x2F;guide-examples.htm" rel="nofollow">https:&#x2F;&#x2F;ericpony.github.io&#x2F;z3py-tutorial&#x2F;guide-examples.htm</a>) has really cool similar problems and solutions.
LeonBalmost 4 years ago
I was hoping the clock would turn out to be upside down, or reflected in a mirror or both.
CRConradalmost 4 years ago
A woeful <i>sight</i> strikes your eyes.