Better HN
topnewbestaskshowjobs
Log inSign up

physicles

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

Submissions

comment 2y ago · link · parent

It does not. The war is being waged with the intent to destroy Hamas (which has itself stated that its goal is to destroy Israel, if given the chance), not to kill every last Palestinian. See also https://youtu.be/L9n77DPJ7AE

comment 2y ago · link · parent

HN title should contain (2020).

TL;DR: nobody denies that the air in Lahore is bad, but there is controversy about who gets to measure it, and how that information is disseminated.

In particular, the author seems to be criticizing AirVisual for offering data and recommendations in a way that's 1) not properly contextualized (i.e. telling people they could breathe cleaner air without addressing that buying an air purifier is out of economic reach for many), and 2) tainted by commercial interest (they sell monitoring devices for what the average resident of Lahore would surely consider an exorbitant sum)

I understand those criticisms, but... is that really the most salient point to make about this whole situation?

Spend five minutes looking into it, and it's completely fucking obvious that the air is terrible and it will take years off your life. Perhaps attention should be diverted away from the question of how to do measurement perfectly, to the question of how to not kill tens of thousands more people this season.

comment 2y ago · link · parent

Btw, rolling is a relatively new technique. Before that you had hypertapping, where players would hold the controller normally and just press the d-pad obscenely fast. IIRC the fastest hypertappers were capable of 16 presses per second.

comment 2y ago · link · parent

As soon as you choose to use any SaaS that doesn’t have a local equivalent, it’s over.

We were fine until we started using Snowflake. The SQL doesn’t quite transpile to Postgres, and anyway we’re using some Python functions where the equivalent SQL would be nightmarishly complicated. I hate that we can’t iterate fast on that part of the stack.

Could we build something that works nearly identically, but locally? Yes, but we’d need to submit some patches to sqlglot, which nobody has time for.

Could we avoid using Snowflake altogether? Only with a lot more work. It solves a few real problems for us.

comment 2y ago · link · parent

Alipay is also pretty much an everything app (it also has its own ecosystem of mini-apps built on Alipay's platform). Except for the social aspect, it's nearly interchangeable with WeChat.

comment 2y ago · link · parent

I haven't found the distinction between unit tests and non-unit tests to be that useful in practice. The important questions are:

1. Is it kinda slow? (The test suite for a single module should run in a few seconds; a large monorepo should finish in under a minute)

2. Is there network access involved? (Could the test randomly fail?)

3. Do I need to set up anything special, like a database? (How easy is it for a new developer to run it?)

If the answer to any of those is Yes, then your test might fall in the liminal space between unit tests and integration tests -- they're unit-level tests, but they're more expensive to run. For example, data access layer tests that run against an actual database.

On the other hand, even if a test touches the filesystem, then it's generally fast enough that you don't have to worry about it (and you did make the test self-cleaning, right?) -- calling that test "not a unit test" doesn't help you. Likewise, if the database you're touching is sqlite, then that still leaves you with No's to the three questions above.

comment 2y ago · link · parent

Thanks, I’ve been looking for something like this since forever. OwnTracks is the thing I previously heard about, but at the time it required you to set up your own mqtt server for data ingestion. I’d rather not have to maintain something like that.

comment 2y ago · link · parent

Maybe an overzealous anti-procrastination AI a la https://xkcd.com/416/

comment 2y ago · link · parent

I wonder if that shows up in some error log of failed &si= lookups in their tracking database. Maybe some random engineer at Google will see it and be amused for about 10 seconds.

comment 3y ago · link · parent

Loved the documentary. I played the hell out of that game back in the day. There’s a renaissance of Half-Life Deathmatch too (short-lived, no doubt) if anyone wants a hit of nostalgia. Valve even released a couple of the concept art character models, some gameplay tweaks, and some new maps. New content for a 25 year old game.

Also FYI, Half-Life and HL2 are currently both very playable in VR. Half-Life even runs natively on the Quest 2.

comment 3y ago · link · parent

Agree. This is also true of UX design in general.

comment 3y ago · link · parent

The fact that Ariane 5 was chosen to launch the $10 billion must-not-fail JWST says a lot about trust in the rocket. The particular rocket that launched Webb also got some extra TLC from the engineers:

> The Ariane 5 program also selected the best components for Webb based upon pre-flight testing. For example, for the Webb-designated rocket, the program used a main engine that had been especially precise during testing. "It was one of the best Vulcain engines that we've ever built," Albat said. "It has very precise performance. It would have been criminal not to do it."

From https://arstechnica.com/science/2022/01/all-hail-the-ariane-...

comment 3y ago · link · parent

The current lame duck CEO, Bob Smith, was pretty unpopular and ineffective. We’ll see if his replacement is any better.

From [0]:

> As a space reporter, I have spoken with dozens of current and former Blue Origin employees, and virtually none of them have had anything positive to say about Smith's tenure as chief executive. I asked one current employee about the hiring of Limp on Monday afternoon, and their response was, "Anything is better than Bob."

[0]: https://arstechnica.com/space/2023/09/bob-smith-is-finally-g...

comment 3y ago · link · parent

Classic fence post error.

comment 3y ago · link · parent

> Jumping into bed with Musk and Altman and hoping for ethical non-profit "betterment of humanity" behaviour is laughable.

Now it's laughable, but OpenAI was founded in 2015. I don't know about Altman, but Musk was very respected at the time. He didn't start going off the deep end until 2017. "I'm motivated by... a desire to think about the future and not be sad," was something he said during a TED interview in 2017, and people mostly believed him.

comment 3y ago · link · parent

Also, Nadella last month repudiated his own decision to cancel Windows Phone. Purchasing Nokia was one of the last things Ballmer did.

comment 3y ago · link · parent

This would be fantastic. As someone who just occasionally touches Python, I can’t count the number of times I’ve been bitten by bugs caused by unwittingly mixing tz-naive and aware datetimes.

comment 3y ago · link · parent

Fun fact: there are currently no time zones with 15 minute offsets.

comment 3y ago · link · parent

You’re still in the mindset that Twitter is there to help you keep up with people and topics you care about, instead of… whatever the hell Elon is trying to do with it this month.

comment 3y ago · link · parent

For those who haven't heard of the Barkley before, there's a fantastic documentary about it. Apparently it's on Amazon Prime now.

https://barkleymovie.com/

The Barkley Marathons: The Race that Eats Its Young

If you apply to join and are accepted, the acceptance letter begins with something like, "Deepest condolences, you have been accepted..."

comment 3y ago · link · parent

And apparently Fortran too. TIL.

comment 3y ago · link · parent

Serious question: what is a dependency injection framework? If I need to pass in a mock/fake for testing, then I define an interface for that dependency and pass it in as a parameter. Takes a couple minutes. Why does this need a framework?

comment 3y ago · link · parent

> structs of arrays

It’s such a bummer that the optimal memory layout is also a pain to code with in most languages (thinking of numpy in particular, oof). Are there any languages out there that abstract this away? You’d have to give up pointers, but it’s worth it for some use cases.

comment 3y ago · link · parent

I love it when I find an actual performance problem with code that doesn’t hit the disk or network. Optimizing is super fun, but it’s so rarely needed.

My last time was last year. I noticed that our metrics service, which had been running for a couple years, was now often using 100% cpu. That can cause issues for other services on that node, so I looked into it. Turns out the Go code I wrote to parse Prometheus metrics was a little clunkier than you’d like for the sheer amount of metrics coming from some monitor (I think I’d just upgraded cadvisor or something). I tried getting it to return fewer metrics, but couldn’t figure it out.

So I spent an afternoon and rewrote my parser. My hypothesis was that I could make it faster by allocating fewer strings, which turned out to be correct. End result was nearly 10x faster. 10/10, super fun and satisfying.

I’ve got about a half dozen other things I’d love to optimize with our current system, but for now I can’t justify the cost.

comment 3y ago · link · parent

I was confused about Starfield until I saw https://youtu.be/lHiP5OPZ2sA?feature=shared , which explains what it actually is: Fallout, but in space. Also apparently it takes about 12 hours to get into it.

comment 3y ago · link · parent

There is indeed a fine line between “do things that don’t scale” and “keep your terrible process in place far longer than you should.”

comment 3y ago · link · parent

I live in China. According to my bank, my full name is LASTNAMEFIRSTNAMEMIDDLENAME. All caps, no spaces.

When it comes to the amount of ass-pain this can cause, that's just the tip of the iceberg.

Sometimes it's funny though. At hospitals, there's an automated system that announces the next person by name (GDPR? Privacy? What's that?). For non-Chinese names, it reads the name letter by letter. So now everyone in earshot knows there's a foreigner around somewhere.

comment 3y ago · link · parent

On some other YouTube channel, I recently saw a diagram where the width was 0.01 light-year. That’s “only” about 59 billion miles; surely we can’t be too far from the moment we can conceive of Voyager 1’s distance in light-years.

Nope. At its current speed, we’ve got another 129 years. That’s an underestimate because the spacecraft will continue to decelerate a bit as it pulls farther away from the sun.

That’s about 60,000 years to the nearest star.

comment 3y ago · link · parent

I don’t understand why a power user wouldn’t use a tool like this. IIRC I used AutoHotKey for this when I was on windows. Most Linux window managers have this built-in.

I mostly stopped grabbing window borders and title bars about 15 years ago.

comment 3y ago · link · parent

> They might just want a prober; ask every server for cloudflare.com every minute. If that errors, there are big problems.

Yeah this was my first thought too. Why don't they have such a system in place for as many permutations of their public services as they can think of? We're a small company and we've had this for critical stuff for several years.

1
101112
22