Live data from Hacker News

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

twitter.com

161–170 of 175 posts

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

#161

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 ...

C'mon, everyone knows its just turtles, all the way down

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

#162
post #147

Earlier quoted context omitted.

Most standard libraries still have support for the Julian calendar. That stuff is never going away.

I doubt it's "most". Python, Javascript, and C++ don't seem to. The only ones I found that do seem to are C# and Java.

I just got a ruby gem from someone who actually made tables on the stuff. I made a script that cut out far past and future times to lower loading time from 10m to 30s and figured I could upgrade the gem to leverage an expert’s research as timezones changed (e.g. India changing zones)

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

#163
post #91

Earlier quoted context omitted.

No reason to be snarky with people. They mean whatever time it currently is or will be.

Are you sure though? If they copied that date from some automated system it might as well be any of these. Humans usually say “New York time”.

In my experience, humans never say "New York time", or "San Francisco time", or anything like that, they say "EST" and "PST" regardless of whether daylight saving's is on.

I'm guilty of this too, since I can never remember which part of the year constitutes "on" and which is "off", only where the boundaries are. If I stop and think I can usually remember "spring ahead is turning it on", but never off the top of my head.

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

#164

Earlier quoted context omitted.

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.

iOS and macOS share GeoServices, which performs the actual calculation of sunrise/sunset times (among other things).

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

#165
post #135

Earlier quoted context omitted.

I wonder how long time it will take to forget DST if it is abolished. Will that messy spaghetti code be ripped out and never seen again.

Most standard libraries still have support for the Julian calendar. That stuff is never going away.

Julian calendar is still used by the US Navy. Every supply department office you go into has a conversion table up on the wall.

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

#166

Earlier quoted context omitted.

You’re splitting hairs and failing at it. They have clearly found a “bug” if Night Shift is consuming 100% CPU without end, even if their hypothesis for the reason might be wrong.

> They have clearly found a “bug”... This depends on your definition of "bug". I think, in the classical sense, a bug is something that you understand both the cause and the resultant undesired behaviour and, as of consequence, you can reproduce the chain of events. Given that definition, I would be disinclined to agree with calling it a "bug". However , I would also like to point out that we're getting so nuanced in…

I disagree. If you have to understand the cause of undersires behaivor before a bug can be said to exist, then debugging is a prerequisite to a bug existing.

If I write a program that computes 2+2 and it tells me the answer is 5, that’s a bug. Why is irrelevant until I want to fix it.

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

#167
post #150

This is a beautiful example of the importance of diversity on a team. I have no idea how diverse the team is and I am not speaking of racial or sex diversity... this is the core of the discussion, having people with varying life experiences prevent obvious bugs like this or innovative ideas that no one person could think about. This is a fun bug

Whilst that’s true, I think it’s also a good example of how shortsighted most attempts at diversity are; in this case a Scandinavian would perhaps have the “diverse experience” to preempt a naïve implementation of a sunrise fiction, however diversity seems to always be about race or sex or identity, which seems to miss the point somewhat. Edit: Which is to say that a male with fair hair and skin and a university educ…

Apple's diversity manager said something to that effect, and then she was made to apologize and leave.

So, yes, diversity of experience is important, and no, that's not what is accepted as diversity in modern corporate culture.

https://www.telegraph.co.uk/news/2017/10/17/apples-head-dive...

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

#168
post #167

Earlier quoted context omitted.

Whilst that’s true, I think it’s also a good example of how shortsighted most attempts at diversity are; in this case a Scandinavian would perhaps have the “diverse experience” to preempt a naïve implementation of a sunrise fiction, however diversity seems to always be about race or sex or identity, which seems to miss the point somewhat. Edit: Which is to say that a male with fair hair and skin and a university educ…

Apple's diversity manager said something to that effect, and then she was made to apologize and leave. So, yes, diversity of experience is important, and no, that's not what is accepted as diversity in modern corporate culture. https://www.telegraph.co.uk/news/2017/10/17/apples-head-dive...

That episode proves the point I think. It seems to demonstrate perfectly how the only diversity that counts is race and sex. The article literally concludes with a breakdown of Apple’s workforce by ethnicity and sex.

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

#169

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.

It's omega = acos( - tan(x) * tan(y)), not that that makes much of a difference.

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

#170

Has anyone ever determined how many times you have to drive around Infinite Loop before Apple Security calls the police on you?

I had a friend who once drove around a traffic circle as many times as he could. He got up to 39 times before a police officer pulled him over. Does anybody know if there is a law on that?

I was pulled over with a few friends after a few loops. One of the roundabout entrances was a hospital. I didn't get a citation of any sort, but the cop basically handwaived with "blocking traffic" (of which there was none).

Basically, it depends how bored your local police are

Post reply on HN