Live data from Hacker News

Infinite loop in macOS Night Shift in the summer near the Arctic Circle

twitter.com

111–120 of 175 posts

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#111

Perhaps it's because they implemented the "Sunrise equation" naively, which becomes indeterminate for high latitudes when the Sun is close to the maximum? https://en.wikipedia.org/wiki/Sunrise_equation cos(\Omega) = - tan(\phi) x tan(\delta) Where \Omega = hour angle (sunrise, sunset offset from noon), \phi = latitude, \delta = sun declination. Clearly if the right hand side gets big enough (>1), this doesn't work.

Never knew about that equation! That's cool.

Angles are always such a pain. In my experience it's worth applying trigonometric identities and working in terms of unit vectors, sines, and cosines instead of using angles directly. In this case angles seem unavoidable, though: acos(tan(x)*tan(y)) doesn't simplify to anything useful.

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#112

Earlier quoted context omitted.

Meridian in this context is noon. 12 “anti meridian” is 12 hours before noon. 12am. Which is exactly correct. I’m no domain expert but I’m guessing flights are scheduled at 12:01am because people are bad at time. For instance some people would think 12am is the last minute of the previous day instead of the first minute of the next day. 12:01 removes the potential ambiguity.

12 "post meridian" is 12 hours after noon. 12pm. Which is midnight. But you don't use 12pm to mean midnight. Why not? Midnight doesn't actually belong to a day at all. Our current conventions of 12am and 12pm seem to be mostly products of digital time keeping.

[deleted]

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#114

Earlier quoted context omitted.

Personally I believe that earth is flat disk carried by 4 elephants, which are standing on the back of a giant turtle

Sure, but that turtle is carried by four "elephants, which are standing on the back of a giant turtle". And that turtle ...

[deleted]

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#115
post #35

I wonder if Apple shares that code in iOS too?

CoreBrightness is similar across the platforms.

Maybe, but I don’t think there’s a CoreSunrise or CoreSunset. The problem isn’t in setting the brightness or colour tone, it’s calculation when to switch between them.

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#116

Earlier quoted context omitted.

Personally I believe that earth is flat disk carried by 4 elephants, which are standing on the back of a giant turtle

Sure, but that turtle is carried by four "elephants, which are standing on the back of a giant turtle". And that turtle ...

I really wish people would find true enlightenment. It's obvious a turtle in space wouldn't need anything underneath -- because turtles swim!

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#117

Earlier quoted context omitted.

Personally I believe that earth is flat disk carried by 4 elephants, which are standing on the back of a giant turtle

Sure, but that turtle is carried by four "elephants, which are standing on the back of a giant turtle". And that turtle ...

Are you sure it's only four? Because what happens when you have over four billion elephants? Is there a potential overflow issue here?

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#118

Earlier quoted context omitted.

Sure, but that turtle is carried by four "elephants, which are standing on the back of a giant turtle". And that turtle ...

I really wish people would find true enlightenment. It's obvious a turtle in space wouldn't need anything underneath -- because turtles swim!

Sure. But really, it's all illusion. So better just unask the question.

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#119
post #39
post #26

Earlier quoted context omitted.

My favorite incorrect fact is that there are 24 timezones. In fact, the number of offsets from UTC fluctuates throughout the year (at least last I worked on scheduling in 2012. Back then it was either 39 or 40 depending on DST)

Yeah I always feel like a jerk when people open tickets in the summer saying “Please do this at #:## EST” and I have to reply “thanks for providing a time but it’s currently EDT in NYC. Is that what you meant?”

That's only slightly worse than how I feel when people say that something's happening in the summer when it's actually winter where I live.

Re: Infinite loop in macOS Night Shift in the summer near the Arctic Circle

#120
post #78

Earlier quoted context omitted.

Because there is neither a 12:00 am, nor a 12:00 pm. One is 12 noon, the other is 12 midnight. AM and PM are "ante meridian" and "post meridian": before" and after . But 12 is on* the meridian; neither one. You can meaningfully say 12:00:01 am, or 11:59:59 pm, but for 12 sharp nobody can say whether am or pm is dark or day. Airlines schedule flights at 12:01 for this reason.

Meridian in this context is noon. 12 “anti meridian” is 12 hours before noon. 12am. Which is exactly correct. I’m no domain expert but I’m guessing flights are scheduled at 12:01am because people are bad at time. For instance some people would think 12am is the last minute of the previous day instead of the first minute of the next day. 12:01 removes the potential ambiguity.

Nitpick but since we’re talking about time: AM means “ante meridiem”, as in “before”. Not anti as in “against” :)
Post reply on HN