skysight-inc/HackerNews huggingface dataset:
This makes me wonder if named pipes is a solution to a problem I'm having.

I use a 3rd party took with a Python API which only takes filenames (not stdin and not Python file objects). It natively understands gzip and non-gzip files.

I would like it to support zstandard compression.

I think I can set up a named pipe with ["zstdcat", "filename.zstd"] as input, directed to a named pipe, and have the 3rd party toolkit read from that named pipe, as a regular text file.

But I'm a bit confused about the coordination.

1) how do I find a valid file system location? I can use tempfile to get a writable file location, but that might be on a network scratch disk. Is that going to be okay, or do I need some mechanism to be able to specify a local writable filesystem?

2) I can start the zstdcat via subprocess, but how do I know when to wait() on it, given that the 3rd party doesn't (easily) tell me when it's done. (I guess I can put a wrapper around the API, and check with the reader finishes.)

3) How do I manage removing the named pipe? Is there a way to do that automatically when both sides close? Or is there some other mechanism I could do?

I can do all this via wrappers of various sorts, but the coordination seems complex, and I'm not sure what will happen if I ^C in the middle of things.

Has anyone here done something like this before? I don't see any relevant package on PyPI for this sort of wrapping.
Sounds about right. A pretty good friend of mine worked at Apple for a year or two, and I once asked if he enjoyed his time there. He answered: "no comment".
I'm not your personal shopper. I'm sure if you want a machine with no ports someone is willing to oblige you.

Or you can go back to one-size-fits-all Apple-land.
Fonts Used by US Court of Appeals in Opinions
Don't have time to find the links, but one study indicated that Japan had an excess of 10,000 or more (??) excess suicides per year as a result of its economic downturn in the 90s (?).

And a recent paper in the UK asserted that there have already been 20,000 (??) excess deaths due to people who need cancer screening and treatment not going (or not being able to go) to medical facilities.

Perhaps most tragically, people with stroke symptoms are far less likely to go to the ER in the first critical hours to possibly receive (clot-busting?) medical treatment. Wait a day or two, and it's too late.

My memory on those numbers might be wrong, but if anything, I think they're too low. But these are just for a few cases in a few places. Extrapolate that out to the whole situation, are we're talking about a huge amount of death and suffering caused by the lockdowns.

It's true that many people (like me) are going to stay locked down for months if not years no matter what the government says. That seems like more of an argument for letting up (like Sweden) than locking down harder.

Most importantly is to understand that there is no endgame other than herd immunity. That might be achieved by a vaccine, but many scientists doubt that this will be had soon, if ever. No one is seriously talking about wide-spread vaccination in less than 12-18 months, and even that seems wildly unrealistic. More realistically, we might simply have to "choose" which 70% (or whatever) of the population gets the virus and when. We should choose the young and healthy, and "when" should be pretty soon, if we want to save lives.

In any case, this needs to be studied hard and quickly by lots of boring, disinterested people. We can't just stop with "everyone who wants to loosen the lockdown is a money-grubbing bastard". People are dying.
I've recently tried out Keycloak(https://www.keycloak.org/) and have been impressed with it. Saved at least a few weeks on a personal project. It does have a learning curve though.
Oh, that's intentional? I had no idea what was going on and am just now realizing I haven't had a weird bug or something this whole time.

edit: just remembered because it happened again. I'm not sure if it's related but I often find now that when I type "n" the bar doesn't autocomplete "ews.ycombinator.com" with the rest of the text highlighted anymore. It still goes there if I hit enter, though.
Source: https://github.com/prashantbaid/scrolltrotter
I feel bad for the drivers that are being taken advantage of, but AB5 was a terribly written law with good intentions (aren't they all?).

The big companies they were obviously targeting have the resources to get around it, but in the meantime it killed independent journalism in the state, as an example.

I know a few journalists who can no longer work in CA, despite liking the system they had. The publications won't touch them for fear of violating AB5.

There are lots of other folks in CA who like being contractors who are finding it much harder now, because the people hiring them are afraid of running afoul of AB5 but also can't afford to hire them as employees.

They really need to scrap AB5 and rewrite it, now that they've seen how much it missed the mark.

AB5 has had a chilling effect on 1099 work in California.
It's pretty poor though, try Gnome Web, which excels at it, and see how much more could be done.
That's true for jemalloc, but mimalloc is pretty simple. The reference paper is pretty short and really accessible and IIRC the implementation is around 5klocs. I doubt musl's implementation would much simpler than this.
But that would be a quite a different app from what is described here; as far as I can see self-diagnosis is how you use the app.
Principles for Building New SaaS Products on AWS
As British car sales collapse, Tesla Model 3 becomes top-selling U.K. vehicle
I hate slow sites and am pretty aggressive about bailing on anything that I consider slow.

But speed is a visitor's feature, not a benefit. The benefit (to the web site operator) of an ecommerce site is $ spent by visitor.

So for example yes, the Amazon site feels slow and bloated, but they've been doing live A/B testing for over 20 years and I'm pretty sure they don't care about speed unless it affects conversion; they'll be happy to cram something in even if it slows the site down, if it increases revenue.
Perfect, if we determine that housing is an important cause, then can we:

* Enact consequences for those that do refuse housing when available (ie, banning homeless lifestyle).

* Arrest illegal aliens that are making the lack of housing even worse.

* Stop open-air drug dealing and abuse so that people can get back on their feet.

And if not, why not?
I think Gigabyte Aorus line is just entirely screwed up.

Never had any issues with any of my desktop hardware before. Did a 3900X+Gigabyte Aorus Elite X570 build in december. Aside from overheating and throttling issues (which I mostly sorted out), everything was fine for a while, but then my mobo straight up died in February. I tried everything possible with no success, it wouldn't even get to the BIOS screen, not even talking about the OS load screen. The error code on the mobo was pointing at the GPU, but that definitely wasn't it (that GPU worked fine for years before, and currently works fine in my build after I got rid of that Gigabyte mobo).

Then I saw a friend doing a build in March with the same components. I didn't think much of my mobo dying, since random accidents happen, so I didn't really discourage him from getting the same mobo. His mobo died on day 2 after the build.

I got a X570 asus mobo instead as a replacement, and had zero issues since. Neither with stability/perf nor with overheating. Aside from swapping the mobo and adding an extra SSD, I had made zero changes to my build, so I blame solely the mobo.
What's the efficiency of using actual plants to produce fuel? Either through refining e.g. corn oil directly or using plants to feed bacteria that produce a fuel. That's a carbon neutral way to convert sunlight to fuel.
At least one problem is that Oauth2 isn't a protocol; it's a framework for making protocols. Things like endpoints, scopes, security practices, etc aren't prescribed, so every implementation is different. And unfortunately none of the big players are really incentivized to standardize anything.
"I've already accepted it that this is the way I learn and life"

After you identify a personality trait of yours that you don't like, it is not healthy to just accept it as it is. You can always improve. Choose better, invest less time in every try and spread it longer, or... Change your mindset! You don't really need to stick with all of your curious learnings, but of course, we have to stick with some otherwise you are just wasting time.
I don't understand this claim. ansible-vault uses AES256 which is anything but homebrew.
Haven't you ever heard of computer viruses?
The parent poster didn't complain about anything, he pointed out the flaw in the grandparent poster's claim.
The 3gb of ram that the overnight chrome tabs are gobbling up.
> road-warrior endpoints

would or could often have a vpn tunnel back to some static infrastructure, this and not the public network can be used for mgmt
And you are missing mine. Given that they are political appointees, and their ideology reflects that of the appointing president, it is reasonable to suspect that they, in fact, are politically motivated.

I suppose if we wanted to figure this out, we could just ask the Federalist Society what they think.
This has more to do with the mantissa than the biased exponent.
X Window System programming principles in 2020: Use xcb.
>If you require executing javascript to display things you've already lost and your site is already unhealthy no matter what because it's not a website.

That ship has sailed, nobody cares if it's not a "website" as in HTTP only, including 99% of users...
x11 manuals?
When I really listen to something or someone I draw geometric shapes.

My team when they first met me thought I was showing them that I am uninterested when doing that. Now when they need a hard decision or bring a difficult problem they come with paper and pens.

This somehow became a private joke.
Maybe relevant, but Pokemon Blue is part of the American release, which came quite a while after the original Japanese release of Green (both had a red). They had to rework some things to handle English. It wouldn't surprise me if that contributed somewhat to a less ordered structure in that it's an alteration of the original.
But they are making a year-on-year relative analysis, so even for a non-representative sample, you can identify a strong trend.
This isn't just by a small margin. Both Social Security and Health and Human Services are close to twice the amount spent on defense.

https://en.wikipedia.org/wiki/United_States_federal_budget#/...

https://en.wikipedia.org/wiki/United_States_federal_budget
For another visual explanation in words, floating point numbers (ignoring subnormal) are just a linear approximation of 2^x [1] where there is one piece for each integer (x = 4 to x = 5, etc). As an example, draw a straight line between 2^4 (16) and 2^5 (32). The floating point numbers in that range are evenly spaced on that line.

Another explanation using the window + offset terminology used in the post is that the offset is a percentage of the way through the window. So, for a window of 2^x, the difference between an offset of y and y + 1 is 2^(x-23) or 1/2^(-23) of 2^x. Put another way, floating point numbers do not have absolute error like integers (each number is within 1 of a representable value), but % error (each number is within 1/2^(-23) of a representable value). Essentially, floating point numbers use % error bars instead of absolute error bars.

Using this model you can even see how to create your own floating point numbers. Just pick a % precision you want, for single FP that is 1/2^(-23) and double FP 1/2^(-52), that defines the range of your mantissa (offset). Then pick a range of x values you want to represent, that is the range of your exponent (window).

As an aside, subnormal numbers do not respect this principle. They extend the expressible range for very small numbers by sacrificing % error for those numbers. In the very worst case of the smallest subnormal number you can get 25% error (it might actually be 50%). As might be imagined, this plays havoc on error propagation since if you ever multiply by a number that just so happens to be the smallest subnormal, all your multiplies might suddenly be off by a factor of 25% instead of the normal 100 * 2^(-23)% which is 2,000,000 times the % error which is quite a bit harder to compensate for. This is why many people consider subnormals to be a blemish.

[1] The approximation is actually offset in the x direction for the bias. If you want to be more accurate, you are actually graphing 2^(x - 127).
On design:

Don't switch between dark/light and light/dark text. It's jarring.

Your use of red/yellow/green/blue makes it look like you're ripping off Google. That's skeezy.

Your sizes and placements are all over the place. Tiny text. Giant text. GIANT screenshots. Shit thrown all over the place. The key to good design is planning. It looks like you didn't have a plan.

On content:

Phrases like "Empowering people", "Uniting communities", and "help people get things done in the real world" are all meaningless fluff that tell me literally nothing about what service or product you provide. The very first thing I see when loading your page should be a PRECISE statement of exactly what you do for me.

On tech:

Navigation performance is terrible and things are interactive for no reason. I don't need or want a rendered globe that spins around when I drag on it. But if you're going to do it anyway, at least make sure that it's not super janky.

There's some extreme layout pop when mousing around your navbars.

On advice:

Practically speaking, nobody cares about someone else's shitty side project. If you want it to look nice, hire someone with even a modicum of aesthetic sense.
This would be true if the website drew a random sample of residents of San Francisco and asked them. They didn't. Rather, they drew a census of their website. No one is doubting that the website has correctly confirmed that 90% of the SF-related searches on their website were people looking to migrate outbound (so the "sampling error" here is effectively 0, unless we choose to model the census as a sample from a meta-population, in which case the classical MOE would be +-1.7% without a finite sample adjustment);

The issue here is whether we can draw a reasonable inference from that sample to the target population (all people in San Francisco). My guess is it does not. The title is not justified by the data presented.

The claims we're able to make are narrow:

A combination of annual secular growth, advertising spend, and COVID that we cannot disentangle suggests 30% increase in move requests to this moving site in the area; Separately, the sample of people using this website are more interested than outbound moves than last year.

If we want to combine these, we have "Website Shows 90% growth in raw outbound move searches among SF visitors"
This is one of my favorite mobile games, and kudos to the developer for donating so much (hundreds of thousands of dollars) to charitable causes during the pandemic.
The original comment asked about desktops, not laptops.

Figuring out which Clevo laptops can run Linux and which ones can't is work that is worth money.
I guess prisoners technically aren't homeless.
I used to hate those eleven bloody manuals back in the day and didn't lose a single chance to complain about how the whole thing is a big designed-by-committee mess.

Count your blessings though: Wayland has pretty much no up-to-date documentation about anything except the most trivial concepts. The only reason I can do anything with it today is that I had the chance to learn it as part of my job, so I could invest 8+ hours/day in it for several weeks and read heaps upon heaps of source code (of variable quality), ask stupid questions on IRC and mailing lists, and not the least of all, attend some workshops that my employer was glad to pay for (and thank God they were 'cause there's no way I'd have spent that kind of money to learn about Wayland).

I mean, I definitely don't want to go back to writing code with the kind of technology that you can write a 12-volume manual about. Just thinking about Xlib makes me shudder. But I sure wish I had 12 volumes of information about Wayland...
This guy's Quake 1/2/3 source code deep dives are well worth checking out as well.
A visual explanation for regularization of linear models
Medicare is hardly a wealth redistribution scheme. Everybody needs healthcare.

While a fully organized single payer health system is obviously a massive expense, it is still the more financially moderate option compared to what we have today.
Nope. It's literally the C in ICE.

The FDA and FTC have their own jobs to do related to the matter, but this part is what the ICE has been doing for ages.
> Uninstall libc in prod.

When you start to miss the thrill of it :D
It looks broken, doesn't it?! It's because the spacing doesn't match anything else in the UI. Graphic design usually follows a grid system.

I'm just so perplexed by the whole thing.
If you aren't offending someone you aren't doing it right. Theres always someone somewhere whom will be offended about something.
The irony is that N64 got leaked and not Saturn, Jaguar or some console where the owner isn't continually exploiting the IP in some fashion...
Because no one can demonstrate it makes an appreciable impact, and the cost is that we get ghettos where no one will report crime. So we don’t do it.
Yep, just like rapes in Sweden. Change the definition and voila!
Relating to another HN submission today about site optimization: my brain interprets this as "a slow loading site" and I just abandon the page after the first paragraph or two (exception: some private blog pages).

Then again I started reading print newspapers about 40 years ago and this was also the approach for reading the paper so I learned a long time ago to be parsimonious with my time.
I wonder what the figures really are when you separate regular people (if you'll forgive the loaded term) from the category of "super rich people who can afford $3,000/month rent or whatever it is these days".
The OP never said their example wasn't an outlier, they were just making a point that these things happen.

Regardless, you can't just respond to a specific example with broad generalizations. It's textbook 'whataboutism'.
Well, a billion someones, anyway.
Please don't start using HN for ideological battle again or we'll have to ban you again. It's not what this site is for, and it destroys what it is for.

https://news.ycombinator.com/newsguidelines.html
Does anyone know the resolution of this surveillance footage? I.e if I have a house with lots of glass ceilings or greenhouses can it see at that detail? Does this matter?
Nintendo's WiFi Expansion Strategy Deck
Perhaps it was condescending, but it was, first of all, not intended to be malicious. I have had the luxury of having used a lot of programming languages for various projects. The first N years of my career, I used mostly C++ and Python. I didn't like Python much and was pretty convinced that C++ was the pinnacle of programming languages.

Since then I've done (real, professional, for-profit) projects in PHP, Go, Java, Kotlin, Swift, Rust, JavaScript, Elixir, and Clojure.

So when I work on PHP and Java I can feel what they're missing. It's simply the luxury of having experienced working in (what I consider to be) better languages. Clojure and Elixir were not my cup of tea, but I still find them to be better quality languages than JavaScript.

I have met many developers in my life. Some with quite a lot of experience. The VAST majority of them have only ever worked in a handful of very similar languages. Mostly the ones I listed originally (I forgot C# in the list, but that's more-or-less Java++). If I'd only ever used PHP and Java I would literally not know what a good type system looks like. It's ignorance, but not stupidity.

And I'm talking about people I have much respect for. People who I acknowledge are smarter than me. That doesn't mean I don't know anything they don't, though. And if they've only used PHP and Java, then I know some things they might not. That's all.

EDIT: Also, I'm not sure what Peter Norvig has to do with it. I bet he doesn't like PHP, either.
I agree, but I see the upvote button as a weak form of that. Good comments & those within the echo chamber rise to the top, but comments "outside" the echo chamber still stand a chance to be seen and considered on their merits. Also, the authors are not as discouraged to comment in the future which keeps a better diversity of opinion.

Perhaps upvotes and responses should be weighed similarly. That way garbage/spam can be ignored and fall to the bottom while discussion is still promoted.
I remember wanting a math co-processor so I could use autocad at home as a kid.
Regulators created the 1099 / W-2 distinction for a reason. There are probably good reasons to adjust the rules to take into account the so called gig economy, but making 1099 nearly illegal is not a net regulatory improvement when considering all the collateral damage.

One option that seems very reasonable to me would be to introduce a third option: Employee (W-2), Independent Contractor (1099), Dependent Contractor (new gig economy group).
Seems pretty similar to KiSS (Keep it Simple Stupid)
The only thing holding me back is iOS support for changing the default browser. Here's to hoping the rumors about iOS 14 are true, and I'll be able to switch everywhere.
It's fairly easy to implement goto using exceptions. At least it will be all pythonic (I don't think it will become less ugly). So I don't know why this implementation has to be considered at all.

How to do this: create your ExceptionGoTo class which will be handled on high level function and add callback as exception parameter, in catch you can call it.

I'm not saying that it will be exactly goto to certain line, but logically it will behave as you suppose to use goto.
I think you forgot the "ColdFusion" crowd looking down on PHP too... :)
There's a book called "Spy Dust" about tools of the trade, which the wikipedia article links to and which has this to say on p. 121 (https://www.google.com/books/edition/Spy_Dust/U0eEd6Jc3koC?h...):

> KGB defector Yurchenko, who defected to the U.S. that same year, had confirmed that the KGB not only continued to employ spy dust, but was also experimenting with other powerful tracking substances and techniques under a top-secret umbrella program called METKA. We understood that spy dust could be used to track the Soviets' own citizens as well; it could be very useful in picking an individual out of a crowd, even at night, or in bad weather. A special light was used to illuminate and spot the tiny chemical particles, which, when used in small amounts, could be nearly invisible to the naked eye. Typically the technical readout would be performed at a chokepoint that the KGB controlled. The entrance to the U.S. Embassy compound, manned by the Soviet Militia, or a bridge over a well-traveled corridor were the sort of locations where a light and optics unit could be mounted.

The wikipedia article also mentions luminol (a different chemical), so it is hard to be sure whether references to UV refer to luminol instead. I'm not sure if both chemicals glow under UV.

Nevertheless, wikipedia also links to a NY Times article from 1986 (https://www.nytimes.com/1986/02/15/world/us-says-spy-dust-us...) which says, "The ''spy dust'' reportedly glowed under ultraviolet light." So unless the NY Times got them mixed up, it sounds like "regular" (non-luminol) spy dust glows too.

Of course, the wikipedia article also mentions a method that involves collecting a chemical sample, so it's possible they might have also used it to detect residue to check whether a spy touched some object.