skysight-inc/HackerNews huggingface dataset:
What the author seems to miss is that a "resource" in the REST sense (in practical usage at least. I'll leave the official recommendation pedantry to those who care for it more strongly than I do) doesn't need to reflect a data structure.

It's definitely easier to link data structures to REST commands--I imagine REST was created with them in mind--but the recommended "commands" can still be thought of as resources. Not every REST verb applies to them, true, but that's not really impactful or relevant. The point is that you can continue structuring your API in typical REST fashion, but with the addition of command-oriented RESTful paths that implement the appropriate verbs for that command.

The author's own suggestion, `POST on /commands/{command-type}/version/{command-version}`, is still effectively REST as far as I'm concerned, with the identifier being a string ('command-type') instead of a number or UUID. The structure of the API hasn't changed, we just broadened our definition of a resource. Purists might disagree there, but from a day-to-day practicality perspective, nothing significant changed in our API development. The article is arguing semantics rather than actually criticizing REST as it's used in practice.

That said, the author does seem to have listed a few things I disagree with:

> So when the server receives a PATCH /schools/{school-ID}/students/234 { "lastname": "Luthor" } request, it needs to understand that a student has requested for their lastname to be changed, and it then needs to decide what to do about it. What if some fields cannot be changed? What if the value of some fields is constrained by the value of some other fields? By allowing an arbitrary PATCH operation, these concepts are hard to model and validate requests against.

I'm not sure what difficulty they're seeing here. If some of the values can't be changed, it's a failed request, return the errors without any updates. The "arbitrary" parts feel like they derive more from their own API implementations than anything practically REST-ful. Or maybe it's in the official REST spec, which, as comments here demonstrate on repeat, holds very little ground.

> This also sucks, because HTTP status codes are about the HTTP protocol, not your business semantics. The 404 Not Found status code indicates that a path doesn’t exist. If you use it to say that a student doesn’t exist, these two get mixed up. If a client invokes the wrong path by mistake, there’s no telling whether it’s due to a protocol error or to a nonexistent student.

If there's no student with the ID 4, then the path `/students/4` doesn't exist. It's not saying that `/students/<id>` doesn't exist, because the path-with-variable only exists as a theoretical construct, not an actual path. So I'm not quite seeing their argument here (unless, again, they're arguing against the semantics of the official recommendation, which I've never seen implemented in a straight fashion anywhere). And if there's user error in invoking the wrong path, then that's hardly on the API design.
Kids will typically play dreidel once in their life and then refuse to play it again "it's boring".

Instead the fun part is trick shots - spin it upside down, longest spin, start the spin high in the air and throw it still spinning, how many can you keep spinning simultaneously, spin a dreidel into the other player's dreidel. Things like that.
Looks like the classic Soldat [1], except uglier, only 1v1 and less interesting maps...

[1] https://store.steampowered.com/app/638490/Soldat/
If double negatives cancelled regress we'd drown in mediocrity. (Failure is a feature.) If a double positive cancelled progress we would stand next to the giants rather than on their shoulders.
> I mean, the easy solution is don’t use Python

:)

People will be much better off and happier if they switch to Go for 99% of tasks. I’ll understand if it’s python for machine learning.
The article mentions the Black Buck series of raids the UK made on the Falkland Islands while they were under Argentinean occupation in 1982:

"It also allowed for extremely long range missions like the famous raid on Port Stanley Airport during the Falklands War in 1982, where Vulcan bombers based in England flew nonstop to the South Atlantic and back."

However, it's worth noting these missions were actually flown from Ascension Island in the South Atlantic, not from the UK. Although it is also interesting that the in-flight refueling aircraft which had a similar range to the Vulcans also had to be in-flight refueled themselves.

https://en.wikipedia.org/wiki/Operation_Black_Buck
> You also lose the killer feature of Vim, which is being able to work over an SSH connection on any sort of device, even those that don't have a GUI.

The gold standard for remote development is Visual Studio Code. All of the UI stuff happens locally, and it transfers files and runs commands remotely. It's way less chatty than going over SSH or an X11 connection.
> I keep hearing this, but in years of shipping Alpine based images into prod the problems never materialized.

Postgres has very subtly different sort ordering when we use the alpine based images.

That the dev trying the upgrade locally happened to pick alpine got what should have been a very simple couple person-days upgrade backlogged. And drawn out & stumbled over. Multiple people wading through a long series of changelogs. We eventually figured out what was going on, but it was a miserable long soggy sad trudge to get ourselves back on track. All because someone used a not-so-standard library.

Musl causes a more regular pain of node add-ons needing to be specially compiled, but at least we typically see these coming. Time lost, but at least predictable time lost.

One other gripe: musl also is not designed for server workloads at all. It's designed for space efficiency & small systems. Sometimes memory can be a dominant cost or a crucial factor for online services, but for most workloads, you are probably misoptimizing your system by misapplying what was intended as a niche standard library to your system.
It's really and very odd to sign in to use a search engine just so that the search engine can know every search about me.

I'm really upset and just baffled about this trend that this is going on the web especially for search engines.

And Kagi isn't open source either.
eclipse was a child of the java components era, even a trimmed down eclipse would still have tons of baggage

i really despised (to stay polite) everything about eclipse/java culture.. lots of generic layouts and components, nothing i cared about or bringing me dense information about code. way too much chrome and perspectives and what not. it was a cultural dead end, the people who "enjoy" working this way are on a different axis from me.. give me emacs+magit where things are right under your fingers and easy to extend.. and people using this kind of tools (i'm sure vim/neovim crowd likes that too even more) produce more tools of that kind
If you enter the wrong PIN, does it let you continue anyway? That’s a simple test to see if it’s the app or the OS that’s asking.
Once the lock condition evaluates to true, the lock bit flips and the train is locked forever (until the manufacturer brings the "magic wand" and unlocks it. It's a scam.
This is a lawsuit, not a call for regulatory action. They are claiming there are guilty parties under existing law. Culpability is the point.
My phone has a hardware kill switch for mic/camera.
> what you're watching in rocket disaster videos is multiple tonnes

But this one hardly had multiple tonnes,hadn't it? It was a spent side booster, so the most of the stuff had been burned before the separation, I think.
Related:

Anytype Desktop 0.37.0 Released - https://news.ycombinator.com/item?id=38772317 - Dec 2023 (1 comment)

Anytype – local-first, P2P Notion alternative - https://news.ycombinator.com/item?id=36799548 - July 2023 (273 comments)

Anytype. FOSS Notion Alternative - https://news.ycombinator.com/item?id=34167322 - Dec 2022 (7 comments)

Anytype: A local, privacy-first Notion alternative - https://news.ycombinator.com/item?id=31542354 - May 2022 (41 comments)

Show HN: Anytype – an offline-first private alternative to Notion - https://news.ycombinator.com/item?id=24921137 - Oct 2020 (12 comments)

Show HN: Anytype – self-hosted open-source operating environment - https://news.ycombinator.com/item?id=21983381 - Jan 2020 (32 comments)
this is the standard we have company-wide and it works pretty well, unless you make a mistake in the uri (like picking up the wrong api version). however, all apis will return some info on their root, so it's easy to distinguish and troubleshoot
You would need to buy a new lock tough wouldn't you? Unless you had a spare key, but that would have worked with a digital key as well, right?

If someone stole your key, then they could've done anything to your house while your away, just like with a digital key, right?
My very high level wish is that immigration basically gave a free pass to anyone earning more than mean salary, since that by definition makes the nation wealthier.

I think you can derive generic and robust definitions of “exceptional” like this too; eg anyone that is getting paid $1m/yr is clearly exceptional. This is robust to Goodhearting because again, net contributor to the wealth of the country. (1m is an arbitrary number for discussion, obviously you can tune it to get the count you are looking for.)

Trouble is, “exceptional at art” is fundamentally subjective and won’t show up in salary. Similar salary concerns with “exceptionally talented PhD”. I think you need per-industry considerations here. Top N most-cited AI researchers should get a pre-filled green card sent to them.

Personally think we should be allowing any PhD or med school graduate from top institutions to stay indefinitely; so many talented researchers come to the US to study and then get kicked out. We want to keep these people.
Can't find my own address and I even edited OSM maps to add it a quite some time ago. Zooming in on the map and there it is. Hmmm... not a good start at all.
No, because there are multiple independent variables there: OEM mobile browsers, for example, and the fact that the overall number and distribution of observed browsers is not static.
I recently started paying for email service and it's been somewhat of a revelation to me. I started after getting sick of the constant attempts by the likes of Google, Microsoft, et al, trying to force more and more details from me.

The point I'm making is I can now see the benefit of not being the product. Why would I pay for search?
A Wikipedia gem:

"Robert Feinerman has shown that the game of dreidel is unfair, in that the first player to spin has a better expected outcome than the second player, and the second better than the third, and so on"
As an OpenStreetMap contributor this looks weird. Some names are off from what is recorded in OpenStreetMap. I wonder if…

…and sure enough. This app uses one of those moronic map styles which doesn't just use the names for places in the OpenStreetMap database, but also draws them for Wikidata. Great. Those often suck for use on a map, because they tend to include stuff like 'Province X' for a province named 'X', and because the translations stored in Wikidata are often archaic or plain wrong.

The argument the developers who use the wikidata IDs stored in many place name objects to draw in 'missing' translations is that this is surely better than just showing the local name, but this completely misses that in OpenStreetMap name data is already really quite accurate, whereas Wikidata…

As an OpenStreetMap contributor I am not interested in having to keep two databases up-to-date to get names (exonyms and endonyms) to show up correctly. I know a number of developers are pushing this dumb solution, but it is hurting the project more than it is helping.
> “why don’t most people I meet have personal websites?”

The bigger question for me is, if it was dead simple and all they had to do was -say- pay $10/mo, would most people actually choose to have a personal website?

I think the issue comes down to most people not seeing enough value to have a personal site to pay for it. And if they don't want to pay, the free DIY options are either a site like Medium or the technical hurdles they have to jump through to get it up and running manually
na but they can steal your belongings couldn't they. Obviously I didn't mean that they have all the same properties, because then they would be the same thing more or less, but that they share some properties...
> Unfortunately they cannot consent to conditions like "Don't burden the hospital system if you take the wrong dosage".

By this logic the FDA would have to ban Tylenol and Robitussin. Tens of thousands of ER visits every year.

The government should generally be concerned with preventing deception and coercion and pricing externalities, because otherwise people have the incentive to do them and they would be prolific.

Things nature punishes directly don't need the state to deter them. They happen by accident rather than by motive and we choose purposely to spread the cost of this across the population as a form of insurance and a cost of living in a free society, sometimes even when the misfortune is a result of their own stupidity. Other times we send them a bill for costs.
XY-Write anyone?
Related:

Alpine makes Python Docker builds slower, and images larger - https://news.ycombinator.com/item?id=22182226 - Jan 2020 (149 comments)
Buying shady penis pills on the Internet is a voluntary risk. Play stupid games, win stupid heart attacks and priapisms.

Though I do think Amazon should have a share of the blame. Buyer and seller are both wrong here.
> the staying power of a language has implications for the staying power of the project

So Emacs' staying power is due to being written in LISP ?!
Got the same feeling - this is designed for people who turn taking notes into a _thing_ in itself. The productivity nerds. Linking their notes, categorising, organising, diligently making sure their knowledge base is up to date.

And that is the complete opposite of how I use notes - as notes.
Just a place to write stuff down and get back to it later.

Wish there was an app that organises them for you - instead of me having to do all the work - but it seems like all these "superproductive knowledge base gigachad note-taking apps" are made to waste more time on "productivity" procrastination of setting things up instead of actual "lets help the user" part.

Edit:

Also, if someone from Anytype is reading this - can you have a "clear space" button or something? After creating my Personal space, it is filled with "tutorial" stuff. I don't want it. I don't need it. It's distracting and completely killing the vibe that instead of using the app as I want, first I have to delete all your pre-defined tutorial stuff, one by one.
That's only true for libraries with zero transitive dependencies.

Otherwise you're almost guaranteed to be pulling in un-patched vulnerabilities.
If you haven’t already, and I know this doesn’t hold up for GUI emacs or vim, but consider running them through https://mosh.org/
similar in some aspects surely, you can't say that they there is 0% overlap can you?
Paint by number: https://en.wikipedia.org/wiki/Paint_by_number

A prompt:

Generate a JS + SVG color by number coloring book page for children from the image at this URL: , such that when the user interacts with the SVG layer object of that segment of the coloring page its background changes in any of a number of ways: solid fill, fill under the touch path bounded by the hull(s) of the segments which correspond to the selected numbered color, reveal the image underneath, fill with Chiaroscuro shading,

Include addition and subtraction math problem solution explanations and sample problems

Link to the most relevant (Khan Academy) sequences with lessons and exercises for the corresponding curricula

Include IPA characters, corresponding alphabetic letter phonemes, short words which feature such phonemes, and draw smiley faces on svg graphics depicting said words
I'll have to add a client API to one of my projects soon and I've been thinking about this particular problem lately.

The one API I worked with a lot is that of VKontakte. It's as unRESTful as they come. You send requests to URLs like api.vk.com/method/users.get. The HTTP method doesn't matter at all, how you pass parameters doesn't matter at all (can be a combination of query and form-data for all it cares), the version is just `v` parameter, the access token is also just a parameter, and errors come with 200 OK. That is kinda not well thought out. But only kinda.

The one I'm contemplating is somewhere in between the two. The endpoints are still "methods", but the HTTP method does have a meaning: GET is for retrieving something, and POST is for active actions. The access token will have to be passed in Authorization header. The version will still be a `v` parameter. There will not be any IDs in the paths because of how awkward that is. The errors will set the HTTP status code.

Any opinions on this?
Show HN: New platform to cut churn of SaaS businesses automatically
> prompts for player name. smh...

Also triggers Firefox canvas fingerprinting protection, but doesn't seem to need it to function. What's it doing there?
Yes, but the fact that react uses the DOM is because that is what the very restricted platform gives you out of the box, and opting for other options would have several disadvantages that are purely the result of those other options not being directly provided by the platform itself. A reactive UI library (like react) could very easily be implemented on top of other UI paradigms as well, including decidedly non-OOP ones. There's nothing special about object oriented UI systems that motivates reactive UI libraries to use them except for the fact that that's what the underlying platform provides because that was what was in fashion when the platform was taking shape.
I hope Apple's banhammer will solve this quickly
> your entire wardrobe is flannel, cotton or linen

This is not that hard to accomplish and I've done it somewhat by default just by being a bit mindful about how my fabrics feel.

Still, I'm curious about your comment. I assume the airborne particles are from synthetic materials? Are any from soaps that go through the cycle, and if so, is liquid or powder a better option? It would be interesting to see data on microplastics in our laundry since most of what I see is focused on foods and water supply.
Plenty. I always liked Pocket Tanks. And there was an online game called Gunbound, but it was a little bit pay-to-win.
> Even more concerning, experts say the reasons why TikTok — which had reportedly been caught red-handed spying on journalists in the past — remains unclear.

Is there a missing word here? What is it?
Go is such an ugly language. It has it’s place but it’s not the end-all be-all.
Because it's far better than Google. I'd encourage you to try it.
> in zero-gravity, liquid fuels turn into bubbles floating around in nearly-empty fuel tanks

Perihelions says it absolutely right. (Fitting nick name :))

There is a beautifull footage of the phenomenon from spacex: https://youtu.be/mVAGoWJuDKk?si=AkjH5hAm-dHC0V87

From 34s onwards it shows an internal view of the liquid oxygen tank. Just to better understand the picture the camera is inside the cylindrical tank. The viewpoint is facing backwards, so the camera is at the bulkhead closer to the tip of the rocket and it is looking “down” towards the engines. The blue “magical portal” is the surface of the liquid oxygen draining away rapidly by the rocket engines. And then suddenly there is main engine cutoff and the rocket is no longer pushed forward by the engines. That is when you see that the “magical portal” sloshes to the side and then breaks up into many floating bubbles. They float because the whole rocket, including the liquid oxygen is in free fall.

Why is this a hard problem? It is absolutely not a problem… unless you want to re-ignite the engine. (Which you might want to do to conduct further maneuvers) If you do that and don’t do anything special to shepherd the fuel to the pumps of the rocket engine they might not suck in a propellant bubble. If they don’t your engine fails to reignite. If the engine ignited, but then the pumps suck in a gas bubble they will break apart. So you absolutely have to coax the fuel to the intake before you try to reignite.

How do you do that? There are multiple strategies. At smaller scales you can try to have a flexible bladder. But at large rockets your best bet is to accelerate the rocket forward so all the propellant sloshes to the back and then
you can ignite. Once the engine(s) are ignited you don’t have to worry about it anymore (that much) because the acceleration will keep the propellants bunched up at the aft bulkhead.

But if you need the engines to be ignited to accelerate, and you need to accelerate to ignite them then you have a circular dependency. How do you in theory solve this? You have some other mean of temporary propulsion. Either a cold gas truster, or a monopropellant rocket with a flexible blader, or a solid propellant engine. It doesn’t have to be powerfull, and it doesn’t have to push you for long. Just enough to collect the propellant while the main engines are reignited. These auxilary motors are frequently called ullage rockets.[1]

Now of course how long is long enough, and how much push you need is the black magic with the whole thing.

(And of course this has nothing to do with the pictured rockets. I don’t think those are reignitable.)

1: https://en.m.wikipedia.org/wiki/Ullage_motor
I am still surprised on how people install on their phones apps from Facebook/Meta, TikTok, and other shady companies.

We've seen here in comments were people say that they access FB over their phone's browser JUST SO they don't install that data siphon to their phone.
You're signing in so a paid service can know you paid for the service.

Is there an alternative im unaware of?
So Bighead and Gavin Belson?

https://youtu.be/CFsRif1wVGs?si=5939fsuM2AigbB_9
Mozilla Privacy Not Included
They are a global brand now. If you use their apps in Europe you are presented with the choice of cloud locations (Germany) and they do comply with the GDPR. There are far worse actors out there then Xiaomi.
This is answered in kagi’s faq. https://help.kagi.com/kagi/faq/faq.html#why-does-kagi-search...
This really depends on your environment. I've been running legacy Python servers continuously for 4+ years without breaking them or extensively modifying them because I invested in the environment and tooling around it (which I would do for any app I deploy). I can't say I want to bring all of them entirely up to date with dependencies, but they're still perfectly functional. Python is pretty great, honestly. I rarely need to venture into anything else (for the kind of work I do).