skysight-inc/HackerNews huggingface dataset:
> As a French, I remember that absolutely every adult around me used to ridicule the minitel for its ugliness, slowness and overall lack of diverse use cases.

It’s funny because I have exactly the opposite experience. I know people who used the Minitel professionally to order components until it was decommissioned well past after the introduction of an equivalent internet service and still complain that the UX was quicker to use.
https://www.mongodb.com/who-uses-mongodb

MongoDB is anything but dead.

Also MongoDB isn't even 15 years old, so how could it have died 15 years ago?

Disclaimer: ex-MongoDB employee.
but that is less of a cost than having to add "deleted=False"
predicates in all of your queries.

Maybe or maybe not. You can use a view. Or you may be using an ORM that lets you set a default scope (essentially, a default WHERE clause - ActiveRecord lets you do this)

It also depends on if you're designing an app for this from the ground up or if you're trying to retrofit an existing app with 90 million different hardcoded queries.

Also depends on what you want to do with the deleted records. Do you want to do things with them? Maybe after a user is deleted, you want them to be able to log in, but you would prefer them to see a "sorry - your account has been deleted" message instead of "user not found." Maybe you want your support staff to be able to look at deleted users. Etc. Now you need to update your app logic so that it's flexible enough to look at "users_deleted" and "users". Which may be at least as onerous as messing with the WHERE clause on every single query.

To be clear, I don't hate the "another table" solution. It's the right choice in a lot of situations IMO.
There's currently discussion within pip to support calling pip directly: https://github.com/pypa/pip/issues/11243
I am definitely not blind. But i listen at high speed to audio books and podcast all day at work, I average at around 2.5x/2.8x speed (lower for certain narrators and can get up to 3x + speeds if i am not doing something that requires much of the language processing part of my brain or anything mentally taxing) i could drive or play a non-text/plot heavy video game but not talk or problem solve.
The Chinese side of TikTok is called Douyin and is, externally, a separate user database.
Ask HN: Help me understand if my site is secure
Hey HN,

I have been working on a new website to replace a site that I used to use multiple times a day. Sometime last week passwordsgenerator.net went down and has not come back online. Though I know there are a million ways to do this, and some that are probably faster than passwordsgenerator, the tool became a part of my day to day workflow when clients require I provision new unique keys (often!).

Like a good dev, in the wake of its absence, I decided just to build my own replacement. www.copypassword.com was born over the weekend while I was holed up battling a rough couple days with Covid and im stoked on how its come out. Traffic is light but not negligible and I am using my own tool just as much as I was using passwordsgenerator.

I've decided why stop here? Maybe I can replace another tool that I use all of the time which is pwpush.com - the tool that I would formerly pair with passwordsgenerator to quickly spin up a unique password and send it to a client. I figure I can easily just combine the two tools under one roof and away we go.

So I got to building and I wanted to make things as secure as possible. Unlike pwpush I am not storing passwords in a db to delete later. The application works as follows:

1. User generates a password
2. On clicking "Copy Secure Share Link" the password is sent to a server side function via NextJS API route.
3. The password is then encrypted (AES) with a secret key that lives in a server side environment variable + the timestamp for when the encryption is done (rounded to the nearest hour).
4. The resulting hash is then used in the URL that gets shared i.e. "copypassword.com/share-pass/{hash}"
5. When the url is visited (after having been shared), the hash in the url is sent to a server side function via NextJS api routes and decrypted. The decryption works by rounding the current time to the nearest hour, combining it with the secret key and looping backwards 24 hours until a successful decryption is performed. If no successful decryption occurs, we know that the password has expired.

So my question for you HN....is this secure? I am no cryptography expert, just a humble dev trying to turn 2 tools into 1.
Huh? Wasn't meant to be 'snarky' at all. Sure you can use plain CSS classes but Tailwind is immensely popular. Htmx + alpine + tailwind is a fast-growing front-end stack, for good reason. Use it or don't use it, whatever. (the last sentence is snark)
Why BeReal is breaking out
What we did (and legal was OK with it) was to create a "GDPR Delete" function in the admin backend. It doesn't actually delete, but sets a soft delete identical to the regular user delete function and overwrites any PII with stuff like name:gdpr_delete_name_xxxx

That way log and system context is available for debugging, but the system no longer holds any PII. It does delete some logs, but anonymizing data seemed better than hard deletion. It wasn't hard to do, it took legal longer to approve than writing and testing the code and has come in handy a few times for debugging errors.

Edit: typo
Supporting the body allows us to find bugs in openpilot that wouldn't be easy to find in cars. For example, cars barely pitch and roll, so if you have something subtly off there, it's a lot easier to spot on the body. The body is also forcing us to reduce latency on things like the cameras and IMUs; this applies to the cars, just less obviously since cars change direction slower.

The mission is self driving, and while we believe it's solvable without the full solution to AI, having the body forces us to stay on a viable AI track and not write hacks. See http://www.incompleteideas.net/IncIdeas/BitterLesson.html

I wouldn't say it's on the level of a PR stunt giving supplies to elementary school students...
This is an interesting take. I wonder how much the last 20 years of relatively cheap capital contributed to this. A lot of VC money seems to already have dried up as interest rates start to rise.
That really mirrors my experience as well. Ruby is a very consistent language but I think one of the things people get really enamored with Ruby is the meta programming -- myself included and soon you're going to need a bunch of context in your head to understand all the "magic" that's happening.
This can be countered (somewhat) by purchasing food grown closer to home.

It's kind of ridiculous that we grow much of our food in CA and ship it all over the country.
Ruby, like so many other good things, is best enjoyed alone :-)

I've loved every Ruby codebase that I've written. I still consider it one of my favorite programming languages, and (in pedagogical terms) one of the best languages for learning "practical" functional programming (point-free style, blocks as intuitive closures, &c.). But when I work with others, I find that all of the things that I love are obnoxiously clever to others, and that the things they love are obnoxiously clever to me.

Python isn't immune to that kind of cleverness, but subjectively it's not as common. I chalk that up to the higher pain threshold for doing really obnoxious metaprogramming in Python, a lower community tolerance for unidiomatic interfaces, and (broadly) better QA tooling (RuboCop is great, but MyPy + isort + Black + flake8 is really hard to beat).
What I Miss About Working at Stripe
If you scroll down in the linked article it says:

> ALWAYS use an environment! Don't install into your global interpreter!

...

> When you need to create an environment for a project I personally always reach for venv and virtual environments. It's included in Python's stdlib so it's always available via python -m venv (as long as you are not on Debian/Ubuntu, otherwise you may have to install the python3-venv apt package)

I think this is good advice, and it's pretty easy to do, and you can have named environments (via directory names) for each version you can switch between easily.

Very occasionally some python libraries will use a globally installed system library or a particular version which changes per python version (I think maybe OpenCV has this problem on Windows or something?) and so then you have to reach for containers.
> Nor can anyone call up previous employer and require them to delete all the work they ever did from their company’s computer systems.

You can’t delete IP as this is not covered by GDPR, but you sure can ask them to delete your identification data from their records as GDPR also works for employees not just customers. It’s a problem with for example vcs.

Unless there’s another law in ruling, GDPR is the baseline. It’s for any identification of an individual, regardless of usage. Most “media apps” don’t have any other law that’s in effect, so GDPR is mandating what you need to do. (IANAL but worked on implementing GDPR with lawyers).
I've a lot of respect for Sony, partly because I loved the minidisc. This issue arose because you had one monolithic company on one hand making minidiscs - total piracy-friendly devices, and on the other hand, running a huge record label, justifiably scared of MP3 because it seemed like it was going to kill the music industry, and indeed did kill the form it was in at the time. Hence the label's panic caused the minidisc's extra features to become borked and it killed it. Minidisc really was the best format around though, for a time. They held 80 minutes of music / hundreds of megs of audio, at a time when even a 32mb solid-state card, like smartmedia, was really expensive.

Apple didn't have that problem – they just had to build a better MP3 player, and succeeded. It was only after the initial gunfire had died down that Apple saw fit to get the labels on-side, once everyone's iPods were full of pirated music.
Passing a bill is exactly what the Supreme Court is asking them to do. It may not be perfect, but the Democrats should take what they can get. Having a law on the books will make any SC ruling against gay marriage harder to justify. Also, there might be just enough Republican support for this to squeak by just to prove overturning Roe wasn't some slippery slope to overturning gay marriage, contraception, and inter-racial marriage.
> Company CEO Pat Gelsinger says semiconductor firms need subsidies to invest domestically — but there’s little guarantee the giveaway will actually help.

I mean, I don't think he's wrong. Who wrote the checks for TSMC? Who invested in Samsung's fabs, or Germany's domestic foundries? If the US wants to play ball in the semiconductor industry, they need the value proposition to be more attractive than the preexisting fabs.
I feel similar for DVD-RAM https://en.wikipedia.org/wiki/DVD-RAM#/media/File:DVD-RAM_FU...
> Pre-recorded MDs didn't sell well because that wasn't the point. You'd buy the CD album and then copy it onto MD yourself.

And my point is that model doomed MDs in the US. Everyone* in the US had a cassette player. Every car radio shipped with one, every stereo unit had one, and portable units were cheap and plentiful by the beginning of the 90s. There were also a huge number of pre-recorded albums available on cassette including stuff like books on tape. In the 80s and the first half of the 90s portable music meant a cassette deck.

When MDs came out in the US they were incredibly expensive, more expensive than CD players of the time. If you had a CD player at home you could make a tape off it with a ubiquitous tape deck then play it in the same.

A MiniDisc player was in the best case just a sound quality improvement over cassettes with a huge price premium. By the mid-90s portable CD players could be had for $100 while MD players were still several hundred dollars. In 1995 you could spend a hundred dollars and take your CD collection with you without spending hours transferring them to MiniDisc.

At least in Europe and Japan a MD owner could go to the store and buy pre-recorded albums for their players. I don't know if cassettes skipped those regions in the 80s but the US was lousy with them.

* for some values of everyone
Please, don't give ideas to whomever among their lawyers reads this later :-). We don't need another Schrems II..
I took the title to mean that HTMX is an SPA alternative, as in, an alternative way to write SPAs that is unlike the common approach. But as other commenters mentioned, HTMX seems to also focus on multi-page applications
Because the guy asked about styling and Tailwind is by far the most popular CSS styling toolkit. Never said it was "required," just common.
That's fair, although I will say I have seen some good discussions here at HN on the negative impacts of certain technologies which is encouraging. Those are the kinds of issues you'd hope tech people were giving some thought to.

I'll agree though that it's still very much encouraging of new technologies even those that will be certain to cause problems. For example, people here are far more interested in the cool things they can do using WebAssembly than they are worried about how it will be used to deliver malware and violate people's privacy.
Came here to mention generative.fm … it's great, been using it for years.

The creator, Alex Bainter[1], posts a lot of interesting/great stuff about generative music[2,3], and recently published the collection of music theory utilities he uses for generative.fm: https://github.com/generative-music/theory

[1] https://twitter.com/alex_bainter
[2] Like this interactive "How generative music works" by Tero Parviainen: https://teropa.info/loop/#/itsgonnarain
[3] Or his piece on corruption loops: https://corruptionloops.alexbainter.com/
In case the other answers are not obvious enough, a term loan is borrowed once; you borrow $X, and the pay it back before the end of the term. A revolver for $X can be tapped and repaid many times, so long as the total borrowed amounts outstanding at any one time do not exceed $X.
> Once someone starts doing advanced meta programming, get the shovel, because you’re going to kill whoever wrote it and need to bury the body.

Metaprogramming in application code is one of those trends I'm glad is behind us. Might look cool and work great initially, but a painful refactor is near inevitable once there's been some turnover on the team and the problem space shifts in a way that invalidates the underlying assumptions.

Library code is another matter though.
>nearby homeless encampment

I’m afraid to ask, but which country was this?
Keyboard Tutor: teach yourself to use both shift keys
Might work on Germany but on Brazil those that tried this model faced issues with stolen and vandalized bikes. People were stealing bike components that on principle weren't compatible with no other bike.
I agree generally with the two types of experiences, but I'd also submit that there's no easy, clear deliniating line and it's much more of a spectrum between the two types. I really think some of the quirky magic of the web comes from this doc / app hybrid thing it supports and bifurcating them fully would be a mistake.

Rich Harris speaks towards that here: https://www.youtube.com/watch?v=860d8usGC0o
Not really. Both examples came down to environmental regulation and the Endangered Species Act superceding water rights in the courts. Commercial and recreational fishing didn't really have anything to do with it
Quantum mechanics allows a basketball to spontaneously morph into a rocket and back .. It's not very likely, but it can happen in theory. Statisticians should be able to deal with it in any case.
Microcode isn't persistent - on reboot you'll be running whatever version was in the CPU at manufacturing time. That means there's a path to booting to a known-good environment and updating the firmware, which will then load patched microcode before any attacker-controlled code can run.
you think click bait and trolling have increased dramatically

In your opinion eternal September....
Tbh, k8s "system" namespaces also consume quite a bit (particulary if you wanna run a minimal system) - at least 0.5 vCPU on each node and something like 0.5-1GB of RAM. This is only important for the smallest systems, but still is a hindrance to K8s adoption for such projects.
Is absence of frame a frame?
> But in the early ’80s, the reality reversed: Air travel worsened (fares skyrocketed, carriers abandoned marginal routes, competition intensified), and some Americans turned again to their network of trains.

As all of my friends and co-workers relate the terrible experiences they've had with flying over the last year or two, I can't help but wonder if we might see this happen again. A guy can dream, I guess.
It's super easy to disable the speaker though.
It was a still night, tinted with the promise of dawn. A crescent moon was just setting. Ankh-Morpork, largest city in the lands around the Circle Sea, slept.

That statement is not really true.

On the one hand, those parts of the city which normally concerned themselves with, for example, selling vegetables, shoeing horses, carving exquisite small jade ornaments, changing money and making tables, on the whole, slept. Unless they had insomnia. Or had got up in the night, as it might be, to go to the lavatory. On the other hand, many of the less law-abiding citizens were wide awake and, for instance, climbing through windows that didn’t belong to them, slitting throats, mugging one another, listening to loud music in smoky cellars and generally having a lot more fun. But most of the animals were asleep, except for the rats. And the bats, too, of course. As far as the insects were concerned…

The point is that descriptive writing is very rarely entirely accurate and during the reign of Olaf Quimby II as Patrician of Ankh some legislation was passed in a determined attempt to put a stop to this sort of thing and introduce some honesty into reporting. Thus, if a legend said of a notable hero that “all men spoke of his prowess” any bard who valued his life would add hastily “except for a couple of people in his home village who thought he was a liar, and quite a lot of other people who had never really heard of him.” Poetic simile was strictly limited to statements like “his mighty steed was as fleet as the wind on a fairly calm day, say about Force Three,” and any loose talk about a beloved having a face that launched a thousand ships would have to be backed by evidence that the object of desire did indeed look like a bottle of champagne.

Quimby was eventually killed by a disgruntled poet during an experiment conducted in the palace grounds to prove the disputed accuracy of the proverb “The pen is mightier than the sword,” and in his memory it was amended to include the phrase “only if the sword is very small and the pen is very sharp.”
You should read "Cadillac Desert", if you live in the American Southwestern state--California, Arizona, and Nevada in particular. It has significant implications for the future survivability of large-scale civilization in the region.

Mark Reisner originally wrote the book in the early 1990s, and his predictions have turned out to be quite accurate over the last three decades.

If you want to make informed decisions, as a voter and a resident, this is probably the single most important thing you need to get educated about.
I think you've got a lot to learn about sales, marketing, and business in general
My main point was not to debate the the pros and cons of the fishery versus agriculture vs environmental protection, but to point out that there is some basis in reality to these claims, even if people disagree on them.

As an aside, the delta smelt are basically extinct, so they aren't contributing much towards our current salmon consumption. Thats not to say they can't someday recover and lead to the type of consumer utility you are talking about.
A murderous gangster named "Bugsy" thought it would be a good idea.

https://en.wikipedia.org/wiki/Bugsy_Siegel#Las_Vegas
I want to believe. But this smells of Russian disinformation.
>Fits well in a lot of use cases.

Can you share the use cases? Why Mongo works better than Postgres?
I appreciate that! I'll admit I was hesitant to publish the blog series at first because I was embarrassed by how much my limited knowledge influenced my design decisions, but I'm glad to hear it might make embedded development seem a little less intimidating. I'll definitely consider turning it into a YouTube series when I get the time.
> Hotz doesn't share your Tesla hate.

I hope you have realised that it is both autopilot and especially 'FSD' which is the problem that needs to be investigated (which it currently is) and each time it has proven not only to be unsafe, but a deceptively advertised product and at most, a dangerous scam.

So where did I say I hated all of Tesla Inc. again?

> He said numerous times, publicly, that Tesla will most likely win self driving. He doesn't think FSD is Fools Self Driving. He thinks FSD is ahead of openpilot.

He is entitled to his own opinions. I believe that unless Tesla complies with the many regulators around the problems I have already highlighted, it is still considered 'Fools Self Driving'. There is too much evidence to list here for the case for more regulations on this.

Anything that is going to 'likely win self driving' must comply with strict regulations and standards in both advertising, safety and the actual functionality. Both Tesla's autopilot and FSD with its repeated safety issues and most critically, the 'driver monitoring system' (DMS) for detecting attentiveness and eyes on the road was at first using the wheel which that has shown to be beyond unsafe and easily bypassed by its users.

Comma is a great example of a proper (DMS) with Level 3 autopilot capabilities which that has eye-tracking with night vision. Perhaps that's why Tesla had to learn from them for improving their DMS after woefully defending using the wheel for DMS and denying that they needed eye-tracking.

So one of them detects if you are using the product and requiring the driver to have their eyes on the road at all times, whereas the other will not work at all, especially at the dangerous time to drive; which is at night.
I don’t think it’s strange at all. I’m actively rooting for their implosion for all the reasons that you’ve mentioned. Social media is not good for humanity and the sooner we realize it (and get rid of it) the better
Unfortunately, this is what I've heard happened to a medium-sized org at least. It's less about the support itself, but more so on the strategic/partnership side.

But I understand, such things are expected and change over time, so this is not set in stone and depends on the current climate at any org/cloud.
My theory is this is also why Lisp never took off. Powerful macros are wonderful for the solo programmer but difficult for a large team to reason about.
Here that would not matter from a legal standpoint. They'd can and will get the money from you through small claims.

My question is: how can you be sure you're not billed, as the post I responded to implied, if you entered payment details?
Discover why GANs are awesome
This introductory tutorial covers what GANs really are, shows how they work, dives deep into the loss function that they use, and then shows us how to build our first simple GAN from scratch to generate MNIST.
alias pip="python -m pip"
Never been but the parks are apparently constantly fully booked out. And opening new parks is apparently a nightmare trying to secure land.

Not really sure what other options there are. People need to stop valuing Disney parks so highly. Or don’t and accept the price.
Someone should tell Ecma then: https://tc39.es/ecma262/multipage/ecmascript-language-functi...

I was wrong, though, tail calls are in ES14, and eliminating them is probably not implemented anywhere yet.

Edit: Wrong again, tail-call optimizations are in WebKit; iOS has had them since iOS 12 according to this: https://kangax.github.io/compat-table/es6/#test-proper_tail_...