Live data from Hacker News

Show HN: The current sky at your approximate location, as a CSS gradient

sky.dlazaro.ca

111–120 of 171 posts

Re: Show HN: The current sky at your approximate location, as a CSS gradient

#111

Earlier quoted context omitted.

is that something that could have be done in the dot file for server override? what was it, .htaccess or something?

Sure, if you wanted to deal with configuring Apache. Or getting your hosting provider to do that. If you knew to ask, and didn't mind waiting, and your hosting provider knew how...and was willing to do it, a condition I forgot to add in my last comment here, but which applies equally there. (User-provided .htaccess files were the source of a number of relatively high-profile early CVEs, as I recall. Apache grew a num…

but that was the point of the dot file to allow vhosts to change the default server settings without needing access to the root config. maybe they weren't designed specifically for vhosts, but that was my main use of them.

Re: Show HN: The current sky at your approximate location, as a CSS gradient

#112
I refreshed the page, enabled js, refreshed again and again and finally I gave up thinking it is not loading because it was hugged to death. While reading the comments here it dawned on me that it was just a black background because it is night outside and the paged worked fine from the start...

Re: Show HN: The current sky at your approximate location, as a CSS gradient

#113

Earlier quoted context omitted.

Sure, if you wanted to deal with configuring Apache. Or getting your hosting provider to do that. If you knew to ask, and didn't mind waiting, and your hosting provider knew how...and was willing to do it, a condition I forgot to add in my last comment here, but which applies equally there. (User-provided .htaccess files were the source of a number of relatively high-profile early CVEs, as I recall. Apache grew a num…

but that was the point of the dot file to allow vhosts to change the default server settings without needing access to the root config. maybe they weren't designed specifically for vhosts, but that was my main use of them.

Yes. If the main Apache config was set up to allow it to read a dotfile, and if configured not to ignore the options you wanted to use, that is what the dotfile did. That's why, if you wanted an option easily portable across hosting providers, you used the meta tag instead. Which is my point, and my only point, and not really up for debate by some pettifogging rando with nothing better to fill a Saturday night.

Re: Show HN: The current sky at your approximate location, as a CSS gradient

#114
post #95

Earlier quoted context omitted.

Not sure what you are on about. Adding an HTTP header to a request is one of the easiest things to do.

I think you are the one who doesn't know what they are on about. First, the header must be added to the response, not the request. Second, in many environments (managed hosting etc.) there is not an easy way (or indeed a way at all) of adding headers to responses.

> Second, in many environments (managed hosting etc.) there is not an easy way (or indeed a way at all) of adding headers to responses.

It's getting better. Most serverless hosts (including Cloudflare, which this site uses) follow the (req: Request) => Response pattern, which by definition allows sending headers.

Re: Show HN: The current sky at your approximate location, as a CSS gradient

#115

Earlier quoted context omitted.

but that was the point of the dot file to allow vhosts to change the default server settings without needing access to the root config. maybe they weren't designed specifically for vhosts, but that was my main use of them.

Yes. If the main Apache config was set up to allow it to read a dotfile, and if configured not to ignore the options you wanted to use, that is what the dotfile did. That's why, if you wanted an option easily portable across hosting providers, you used the meta tag instead. Which is my point, and my only point, and not really up for debate by some pettifogging rando with nothing better to fill a Saturday night.

Wtf, seriously. I was just asking. Sorry if that resulted in me pissing in your cheerios. Just because a question was asked doesn’t mean it was challenging your knowledge. I was just asking to clarify based on personal experience. If you don’t have time for questions or feel personally slighted that someone would have the gall to question the written word of the almighty throwanem, then posting on the internet is probably something you stop doing

Re: Show HN: The current sky at your approximate location, as a CSS gradient

#117

Earlier quoted context omitted.

Yes. If the main Apache config was set up to allow it to read a dotfile, and if configured not to ignore the options you wanted to use, that is what the dotfile did. That's why, if you wanted an option easily portable across hosting providers, you used the meta tag instead. Which is my point, and my only point, and not really up for debate by some pettifogging rando with nothing better to fill a Saturday night.

Wtf, seriously. I was just asking. Sorry if that resulted in me pissing in your cheerios. Just because a question was asked doesn’t mean it was challenging your knowledge. I was just asking to clarify based on personal experience. If you don’t have time for questions or feel personally slighted that someone would have the gall to question the written word of the almighty throwanem, then posting on the internet is pro…

It isn't a question of "challenging [my] knowledge," it's a question of you acting like kind of a jerk. I realize you don't see yourself as the one starting an argument here, and I have observed your manners likewise lacking on many occasions on this website before. Your opinion of the matter is not well qualified. You're being an ass. Knock it off.

I realize you're probably not accustomed to being called on your lousy behavior. I doubt you will need to become so. But just for once, here we are. You don't bother to find out what you're talking about before you speak and then you want your hand held on points that were already clarified, had you but bothered to catch up. I don't tolerate that in candidates, I won't tolerate it in colleagues, and I see no very pressing reason to tolerate it here.

Re: Show HN: The current sky at your approximate location, as a CSS gradient

#118
Very cool. We are launching a sensor that mounts on the inside of your window and measure the sky color for a small cone of the sky and transmits this to our skylight and window fixtures inside (see innerscene.com) so they can replicate exactly the same thing indoors. You could potentially use a computer monitor to do this, but it generally doesn't provide great light due to using RGBs instead of wide-spectrum sources.

One issue with the current code is it doesn’t model clouds, haze, or smoke so the rendered sky can differ from what you see outside (numerous HN comments notice this). You can partially correct for this by using semi-realtime satellite imaging but hard to get super accurate which is what pushed us to develop our own sensor. There are various CCT sensors on the market already but they only measure directional+diffuse+reflected light which is typically ~7500k but the sky color goes up to 40,000k.

Here is a plot showing the color of the sky as it changes during the day from real sensor readings. Each one is 30s apart, so it change change quickly. https://www.innerscene.com/built_pages/cs_specsheet/cct/cct_...

A bit more info as well: https://www.innerscene.com/SpecHelp/CircadianSky/cct/cct.htm...

Re: Show HN: The current sky at your approximate location, as a CSS gradient

#119

Earlier quoted context omitted.

Though sometimes the higher ups might not be the same as (or understand) the actual audience. In this case the higher ups may have been confused due to, say, looking at the app while indoors (and from the perspective of "let's judge this developer's work"), while the actual users would see it in a vehicle alongside the real sky (and from the perspective of "let's see how easy this is to match up with reality").

Ah, I see the confusion. You think the users are the dev's audience! /s

I suppose this is the lesson OP learned!

Re: Show HN: The current sky at your approximate location, as a CSS gradient

#120

Earlier quoted context omitted.

Ah, I see the confusion. You think the users are the dev's audience! /s

I suppose this is the lesson OP learned!

I wish more people knew it. So many times frustration of the system is directed at devs. They couldn't figure out X? Why is Z feature so shit? Etc.

That's a management thumbprint on the deliverable.

Post reply on HN