Better HN
topnewbestaskshowjobs
Log inSign up

physicles

1,822 karma · joined Feb 3, 2019 (7y ago) · 645 submissions

Submissions

comment 2y ago · link · parent

Could you unpack what you mean by pessimism? The author and some people here probably understand it differently.

I’d define pessimism as the mindset that things usually don’t work out, despite our best efforts. That’s different from believing in Murphy’s Law while also believing that you still have the ability to get shit done.

comment 2y ago · link · parent

I sympathize. As someone who used to hold essentially fundamentalist views, I'm now deeply suspicious of anything supernatural. When I left, I didn't even try to smuggle out any of the good parts.

However, there's now tons of secular support for meditation. Sam Harris, a neuroscientist and one of the most anti-religion and anti-supernatural people out there, is basically leading the charge. I think that says something.

comment 2y ago · link · parent

They have monitoring for their infrastructure, right? Add 50 lines of code that connects to all public domains on ipv4 and ipv6 and alerts if the cert expires in under 19 days. Set automatic renewal to happen 20 days out. Done. I wrote this code years ago, after missing a couple ssl renewals in the early days of our small company. Haven’t had an ssl-related outage since.

Edit: this is the only necessary fix, no need for calendar invites:

> We also plan to update our prober infrastructure to check IPv4 and IPv6 endpoints separately.

comment 2y ago · link · parent

I still wire things up by hand: pass concrete parameters, use defer foo.Close(), use context.Context for signaling close. It’s super obvious how stuff works. In a 200k line code base, there are maybe 2 components where I haven’t been able to simplify the shutdown sequence to my satisfaction, but I doubt a framework would add clarity there.

Maybe I just don’t know what I’m missing.

comment 2y ago · link · parent

I guess you’d need to fork the third-party library (or, if you can build locally, just yolo and chmod +w) and inject something to track those goroutine metrics. But I suppose by the time you’re doing that, you already know where the problem is.

comment 2y ago · link · parent

I modified my bash prompt to detect and auto-activate Python environments, and show if one is currently active. Haven’t thought about activate in years. It’s great.

comment 2y ago · link · parent

I’ve built a few of these in snowflake for time series data (with dbt, which is fine but I don’t love it). My feeling so far is that the incremental bits are kinda fiddly and often domain-specific. Is it possible to define a single “shape” that would solve >90% of these incremental refresh scenarios?

comment 2y ago · link · parent

Sure, the frontier is always messy. Scientists talk about “quarks” and “dark energy” but those are just placeholders for “we kinda get what they do but we have no idea what they actually are.”

100 or 500 years from now, QM and GR will turn out to be approximations, or shadows, of some deeper theory. But that won’t change how insanely accurate their predictions are.

Our understanding of reality isn’t just moving forward, it’s getting asymptotically closer to ground truth. New theories may upend the conceptual framework, but they still just add decimal points — they have to, otherwise they’re worse theories than what we already have.

comment 2y ago · link · parent

Unfortunately I don't have any books to recommend. I don't remember where I learned about Cepheid variables and type 1a supernovae (maybe science shows, maybe youtube, ...) but I learned about the transit of Venus stuff on a big Wikipedia rabbit hole one evening.

I think the pre-quantum mechanics era for physics and astronomy is super interesting. People figured out so much with such primitive tools, and it's all very accessible and easy to understand.

comment 2y ago · link · parent

The article mentions the cosmic distance ladder, which is one of my favorite things in all of science. How do we know how far away the really far stuff is? It's non-trivial and I find the history fascinating.

It all started with knowing the distance from the earth to the sun. Nobody had a clue until Richer and Cassini got within 10% in 1672. Then we nailed it down in 1769 with James Cook's voyage to Tahiti, the primary purpose of which was to observe the transit of Venus from the other side of the world.

From there if you know basic geometry, you can observe the nearby stars shift a bit when the earth goes around the sun (parallax), but that only works to about 10k light years.

Then, we discovered a couple unbelievably convenient astrophysics hacks: Cepheid variables (Henrietta Swan Leavitt, 1908) and Type 1A supernovae (Subrahmanyan Chandrasekhar, 1935, the namesake of the Chandra X-Ray Observatory). These allowed us to move out a couple more rungs on the ladder.

From there, the relationship between redshift and distance becomes significant and that takes us to the edge.

https://www.uwa.edu.au/science/-/media/Faculties/Science/Doc...

comment 2y ago · link · parent

https://youtu.be/PdFB7q89_3U?feature=shared

Classic.

comment 2y ago · link · parent

Thanks, this looks fantastic. I just installed the mobile app and will be migrating off Authy as well. Don’t have a lot of faith in Authy’s longevity after they discontinued the desktop apps, and the dead end is an issue too.

comment 2y ago · link · parent

Sometime in the last several years, it became possible to download a windows .iso from microsoft.com and use it in a VM ~forever without activating. (I don’t know the precise timing because I switched to linux in 2018)

Does anyone remember when this shift happened, and what was the justification? Has Microsoft given up on making money on end-user windows licenses, relying instead on OEM licenses and monetizing users with shitty ads?

comment 2y ago · link · parent

> Do you have a need to spin up a partial subgraph of microservices, and have them talk to each other while developing against a slice of the full stack?

Yeah we do. We use k3s, and use kustomize to scale down or disable services from prod. minio replaces S3, postgres runs nicely in a container, environment variables for service discovery. Add in a liberal sprinkling of NodePort services to allow connections from web browsers or whatever.

Been using it for about three years now. Works great. Upgrading is easy, rebuilding is easy.

We even use it to run our one-box testing environment on an EC2 instance, rather than spinning up an actual EKS cluster. Also works great.

I love that we use the exact same tools to manage all environments -- yaml+kustomize for manifests, kubectl+k9s for ops -- so we get really used to using them.

comment 2y ago · link · parent

We address this by not using helm, and not using terraform for anything in the cluster. Kustomize doesn't do everything you'd want from a DRY perspective, but at least the output is pure YAML with no surprises.

We upgrade everything once a quarter. Usually takes about four hours per cluster. Occasionally we run into something that's deprecated and we lose another day, but not more than once a year.

comment 2y ago · link · parent

Everyone is talking about enshittification these days, but hardly anyone is doing anything about it (including myself). Thanks for doing something about it. Do you have a blog post with your thoughts on monetization?

comment 2y ago · link · parent

Coming from yaml+kustomize, all those curly braces are a tough sell. It looks like they roughly double the number of lines in the file.

comment 2y ago · link · parent

Why Postgres? DuckDB is column-based and Postgres is row-based. For analytics workloads, I’m having a hard time thinking of a scenario where Postgres wins in terms of performance.

If your data is too big to fit into DuckDB, consider Clickhouse, which is also column-based and understands standard SQL.

comment 2y ago · link · parent

Sam Harris recently interviewed historian Brian Muraresku about just this topic. Brian studies ancient mystery religions, in which a central part of the “faith” was often an experience that was likely induced by psychedelics. It’s frustrating how little first-hand literary evidence there is, but archaeologists have managed to find actual ancient wine jars laced with all sorts of interesting crap — wine back then wasn’t the pure stuff we have today.

comment 2y ago · link · parent

QR codes do this too, as explained by yesterday’s front page post about decoding QR codes by hand.

comment 2y ago · link · parent

> In China once their AI systems or whatever decides that you are using a VPN you will be punished by increasingly blocking your Internet for more and more time.

This isn’t true. VPN use is widespread here, but I’ve never heard of anyone’s internet getting wholesale blocked because of it.

Selling VPN services, however, is a big no-no.

comment 2y ago · link · parent

As a non-EE I don’t have any intuition for antenna sizes, so this is a great first-principles explanation.

Here’s the interesting part: I don’t see the supporters of SBSP disagreeing about antenna sizes. Yet, they somehow still see economic viability in the future. How?

As far as I can tell, in order to get close to commercial viability they’re doing the math with the launch services market of 2040, but comparing it against the cost of ground-based solar in 2023. As long as you’re making the solar panels on earth, it’s always going to make more sense to install them there.

comment 2y ago · link · parent

Agreed on the dark patterns. I’m pretty adamant about staying on the free 5GB plan. So once a year or so my backup fails and I have to spend half an hour fighting with their intentionally terrible UI to reduce its size.

comment 2y ago · link · parent

Agreed. It must’ve been terrible for the people on that plane, but I don’t think it’s worth my time to worry about what plane I’m flying on, or what the maintenance record of the airline is. For developed countries, they’re super good enough.

comment 2y ago · link · parent

It's not a full solution, but there must be lists of good levels out there on the internet. I just found https://www.reddit.com/r/TraditionalMarioMaker/.

For me, couch multiplayer would make it 10x better. I bought the game and was sorely disappointed to see that this wasn't included.

comment 2y ago · link · parent

I can’t imagine not having this. We use k3s to run everything locally and it works great. But we (un)fortunately added snowflake in the last year — it solves some very real problems for us, but it’s also a pain to iterate on that stuff.

comment 2y ago · link · parent

Do you still have your original code? Finding out if the weird repeats were real, and especially why, would make a super interesting blog post.

comment 2y ago · link · parent

The main problem with paper is that it's not searchable, so I've been using [0] since 2018. Each invocation just appends a timestamped line of text. I have a crontab that pops up a box every hour and I type in what I'm working on. Sometimes I'll add extra notes if I'm working through a particularly thorny problem. It's always right there on the terminal.

I'd say it's saved my ass at least a dozen times over the years, where I hit a problem that I've seen before but can't quite remember how to solve it. I also page through it quarterly to get a good summary of what I've worked on for that quarterly 1:1 with the boss.

[0]: https://gist.github.com/mfischr/f1ee2967ec0181b934639c30f4e6...

comment 2y ago · link · parent

Do you have some relatively neutral sources that are reporting on the discourse among the leadership? I've heard bits here and there, and of course Netanyahu is a human piece of shit who is unfortunately still in power.

But most pro-Palestine sources are both-sidesing and merely comparing raw civilian casualty numbers. They ignore the fact that Hamas's intention on Oct 7 was to target and brutally murder civilians, and that Hamas is intentionally making it hard for Israel to minimize civilian casualties as it wages this war.

comment 2y ago · link · parent

“We just need to do less”

“But that’s called a recession. It won’t happen”

“WE JUST NEED TO DO LESS”

For better or worse, in a democracy anyone who tells the populace to scale back their lifestyle will not get elected. “We need to do less” is not a solution. It’s wishful thinking.

What other solutions are there? Make our current lifestyle less carbon-intensive over time. Yeah it’s not as good as perfect collective action, but it has the advantage of actually being possible.

1
91011
22