Hacker Newsnew | past | comments | ask | show | jobs | submit | dnlzro's commentslogin

To add to jeroenhd's comment, if you're only sending mail from a single server (e.g., you are using a custom domain with Proton Mail, Zoho, etc.), then you probably don't need DMARC reports at all.

To avoid them, you can remove the `rua` or `ruf` tags from your DMARC DNS record.


> that don't implement both SPF and DKIM

I don't see how that's related at all to specifying report addresses in the DMARC record.


What makes you draw that connection between climate policy and a lack of new hospital/healthcare construction projects?


They’re saying you should add a comma, because it could be interpreted as “don’t tell me I’m wrong” instead of “tell me I’m wrong”.


> Maybe you’re at a restaurant and they need you to open a website for example. You may end up having to bug some people around you for their phone. It can be annoying but I haven’t found this to be too troublesome.

I have been using a profile-based restricted iPhone setup for about 6 months now, and this has been the biggest holdup for me. I've pretty successfully blocked almost everything distracting, but I'm pretty good at finding ways to bypass my restrictions. e.g., I'll find an alternative Reddit client (like Redlib) to bypass my Reddit blocks.

The obvious solution is to use a whitelist instead of a blacklist, but then you completely lose the ability to scan QR codes in the wild.

I'm thinking of building a browser designed for this purpose. Your browsing can begin at certain pre-defined entrypoints, like a news aggregator or a QR code, but you can't manually enter arbitrary URLs or use search engines.


They have menus. Every place I’ve been to (post-Covid) that tries to force the “use-your-phone” thing brought me a menu when I asked and said I didn’t have my phone.


> Your browsing can begin at certain pre-defined entrypoints, like a news aggregator or a QR code

I would definitely use this.


There is no visible plumbing because it kinda is magic! Astro provides adapters for different server runtimes (e.g., Vercel, Cloudflare, Netlify), and it's basically just plug and play. The Cloudflare adapter exposes a bunch of bindings [1] through `Astro.locals.runtime`, which can be accessed during each request. The `cf` binding contains incoming request properties [2], including latitude and longitude.

These bindings (or at least some of them) are also mocked when developing locally, in a non-Cloudflare-Workers environment.

[1] https://developers.cloudflare.com/workers/wrangler/api/#supp...

[2] https://developers.cloudflare.com/workers/runtime-apis/reque...


Any ideas on how to do this without the Cloud flare magic, so entirely in the client? Just based on time will suffice, with latitude approximated to somewhere such as London?


Great explanation; thanks.


I'm sure that's your totally unbiased opinion ;)


I was a fan of Astro long before I became a maintainer. That's why I joined!


It's always facing the sun (although it doesn't include the sun itself).


Maybe someone smarter than me could add stars to the night sky, so it's not just black.


I was just thinking about how to slice up a star map projection, and apply it as an overlay. I don’t do such things often enough to do it quickly, although I can imagine how it could be achieved. I’d imagine someone working in game dev probably could whip up a mechanism for applying coordinates to a star map fairly quickly, but realizing it in pure CSS would probably require exporting all the slices to a folder as SVG squares that are labeled with coordinates, and then using a bit of JS to stitch it all together in the rendered page.


I wrote a simple web-based night sky viewer a while ago [1], which renders the 750 brightest stars from coordinates in a data file (along with the moon). It uses D3.js to do fully client-side SVG-based rendering for interactive use, but it could be simplified to render server side to an SVG file. I think the main complication is that by adding stars, a projection needs to be decided on, and you'd need to consider the aspect ratio of the browser window.

[1] https://github.com/mpetroff/nightsky


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?


(not author) from the source:

  const { latitude = "0", longitude = "0" } = Astro.locals.runtime.cf || {};
To do it client-side, you would probably have to call some less-reputable IP geolocation service, or settle for navigator.geolocation which has a permission popup


Depending on how "approximate" is acceptable, I've found that using timezone names can be a good proxy for location. As most users have their timezones set correctly it's more consistent and private than IP or GPS.

I've made a library for my own use cases that does this (https://github.com/mcteamster/virgo), but it's also pretty straightforward to parse the city/state name out of the timezone and look it up somewhere.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: