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.
Show HN: The current sky at your approximate location, as a CSS gradient
141–150 of 171 posts
Re: Show HN: The current sky at your approximate location, as a CSS gradient
#142https://www.icloud.com/shortcuts/c8ba254a0272453cbe39357b144...
Just make sure that your last (or only) iDevice Home Screen is set to type “image”.
Re: Show HN: The current sky at your approximate location, as a CSS gradient
#143Earlier quoted context omitted.
Whipping down the innovator with the stupidity whip. Great management
This is a wildly unprofessional attitude. Programmers are craft(wo)men. They employ their craft toward creating things people pay them to create. We aren't painting sistine chapels, we are running the plumbing in the sistine chapels basement. The job doesn't exist to give you emotional fulfillment. A mason doesn't insist that a client who needs a warehouse must pay him to spend a week detailing corbelled brick cornic…
Sure, but in plumbing - or any trade - there is a huge spectrum of quality of work. Tons of little details add up that confer the person’s skill level to anyone checking it out in the future.
> It's profoundly disrespectful when we build monuments to our own ego instead of just getting the work done and it speaks to a professional immaturity of the highest order.
When I insist that something must be done a certain way, it’s not for my ego, it’s because I know that a year from now, I will be called upon to fix it during an incident if I don’t do it right this time. I am so absolutely sick of hacky bandaids being thrown on the ever-increasing pile of tech debt. To me, it’s profoundly disrespectful when product tells engineering that yet again, they will not yield time to fix the backlog, and to ship New Feature X.
Re: Show HN: The current sky at your approximate location, as a CSS gradient
#144Earlier quoted context omitted.
Yep, if you have to draw the Sun, you better draw it yellow. If you have to draw a cloudless day sky, you better draw it blue. That doesn't apply to every single instance of those, but if the sky isn't the focus of your application, a realistic one is just a distraction.
> Yep, if you have to draw the Sun, you better draw it yellow. This one always gets me in how dirty the sky must have been "back in the day" in order for people to see a yellow sun. I've never looked into what gas would be needed to make the sun look yellow, but it must have been hell to breathe.
Re: Show HN: The current sky at your approximate location, as a CSS gradient
#145Awesome. I remember much earlier in my career I was working on a 3D turn-by-turn navigation software, and one of my tasks was to draw the sky in the background. The more senior guy on the team said, just draw a blue rectangle during the day and a dark gray one at night and call it job done. Of course, I had to do it the hard way, so I looked up the relevant literature on sky rendering based on the environment, latitu…
This is why specifications are important, and why design is important. The reality is that we have certain conventions that are immediately understandable, and that too much visual complexity results in confusion rather than clarity. If the sky is hazy white when I expect it to be blue, I'm confused as to whether it's the sky or if the map is still loading. It's adding cognitive complexity for no reason. Stars simila…
Re: Show HN: The current sky at your approximate location, as a CSS gradient
#146Earlier quoted context omitted.
A server is needed to calculate the sun's position from latitude + longitude + time, and then render the gradient. I could use HTML templating in some other language/framework, but I used Astro because that's what I'm familiar with and it's very easy to deploy to Cloudflare Pages.
it's beautiful. btw, could this be all done in client side js? didnt look at the implementation, probably server is used to resolve location?
Re: Show HN: The current sky at your approximate location, as a CSS gradient
#147Awesome. I remember much earlier in my career I was working on a 3D turn-by-turn navigation software, and one of my tasks was to draw the sky in the background. The more senior guy on the team said, just draw a blue rectangle during the day and a dark gray one at night and call it job done. Of course, I had to do it the hard way, so I looked up the relevant literature on sky rendering based on the environment, latitu…
Re: Show HN: The current sky at your approximate location, as a CSS gradient
#148would love this to be a desktop background -- linux or macOS
It looks very similar!
Re: Show HN: The current sky at your approximate location, as a CSS gradient
#149Re: Show HN: The current sky at your approximate location, as a CSS gradient
#150Awesome. I remember much earlier in my career I was working on a 3D turn-by-turn navigation software, and one of my tasks was to draw the sky in the background. The more senior guy on the team said, just draw a blue rectangle during the day and a dark gray one at night and call it job done. Of course, I had to do it the hard way, so I looked up the relevant literature on sky rendering based on the environment, latitu…
Ironically, I'm in the South of England wih clear blue sky, and the site thinks I have a much darker and beautiful reddish sunset. Im fairness, it's probably only out by an hour if that.