skysight-inc/HackerNews huggingface dataset:
You can definitely shape the data in any way you want with REST. You can find parallels with GraphQL features and REST and you can argue for either way because its 1:1 comparison. Comparing technologies requires looking both at a 1:1 level and as a whole.

But with your nested relations example, wouldn't getting a user always return its nested relations?

- what if a post has its own nested relations? some pages might need just a user's posts without the posts nested relations and some pages might need them all.

- what if a page only needs user info and doesn't need the user's posts?

With both similar scenarios, you'll need a way to communicate that to the user endpoint so it knows when and when not to return its nested relations and how deep. You could do that with query params sure but IMO that's a workaround with what the frontend really needs, a declarative way to let the API know that for this specific request, this is the exact data I need and its shape. No more no less. With also the flexibility to get everything in another request. You could also do nested resources with REST /user/posts/categories and /user/posts/etc but then that's multiple calls to get what you need. With GraphQL, these scenarios can be solve with a single API endpoint and single requests to it.

Also the productivity gain from GraphQL is actually more apparent in smaller eng org compared to a massive one. That's because for GraphQL to be at its best it requires the people implementing the schema to work closely with frontend folks. Even better if they are full stack and are the same people.
Apple return to work policy leads to ML lead departure
The bubble reached evaluations virtually impossible to meet, true, but the US torpedoing the largest semiconductor and electronics company in the world certainly was a contributing factor.
Here's why it's annoying: You're now taking my attention while I have to wait for you to actually type your question. If you just sent me your question, I can read it, answer it, and get back to what I was doing. But by saying hi first, now I can't go back to what I was doing because I know your question is coming in a minute or so, which isn't enough time to do anything else, but you've already broken my concentration because I had to check your initial message.
I honestly would prefer a premium-lite. I don't use YT as an audio source so background tab audio is annoying (even more on mobile - stopping my phone doesn't stop the video). Really want premium-lite for family sub :D
Ask HN: Donating to the Ukraine army – how to allocate funds?
So I support Ukrainians in their fight against the Russian aggression. There are multiple ways to do so and I decided to donate money.

There are at least two possible options: the official central UA account and some smaller scale actions organized by people who I reasonably trust.

My thinking so far:

Pro central account - pooling resources means they may have more leverage in buying stuff wholesale. Also, they have the global view so can direct the support where it's needed the most.

Pro local actions - they work directly with Ukrainian units and know what is needed locally. Small scale also means they can scrape the long tail of resources like buying a used truck from a local person.

Neither seems like a very clear win, so I split randomly.

Any thoughts on addressing this (admittedly not very precisely defined) optimization problem?
It wasn't always so though, there still is the Floriade park (these days called Amstelpark) next to the RAI:

https://en.wikipedia.org/wiki/Amstelpark

It's a gorgeous park and one of the lesser trafficked ones in Amsterdam, well worth a visit.
I believe this was due to Adobe threatening them with a lawsuit https://betanews.com/2006/06/02/adobe-to-sue-microsoft-for-p...
This was linked in the article and is a fascinating read by itself: https://shipilev.net/blog/2016/close-encounters-of-jmm-kind
Deepfake tech and art: Kendrick Lamar video with deep fake Kanye and Will Smith
Sure, a couple different ones.

The first involved an engineer friend who literally "went off the rails" with one of these big trains. The union went to bat for him for six months or a year or something to try and protect his job. Ultimately they determined that he was at fault, but without the union he would have had no representation or recourse against the train company at all.

A number of others involve injury: the unions make it difficult to terminate employees who are injured on the job; we don't really hear about how dangerous train work is. The article mentions that the conductor is "two" or "three miles" down the track at the end of train.

That is a big deal, because the engineer doesn't necessarily have immediate feedback on when to stop. I've seen with my own eyes guys on the ground trying to guide one of these super-long trains into the yard to connect to other cars and that is some scary stuff.

Finally, furloughs. I've had friends who were furloughed from their jobs at the train companies for years and had to go get a job at a grocery store stocking shelves. The train industry seems so have some regulation games going on at the governmental level and the union level. I'm not sure these guys would ever get their jobs back, with seniority, without union bargaining and playing interference with government.
There may be some projection in your comment, a 5 year old kid doesn't have the "let me enjoy my time off" attitude yet, thats something they'll get once they're older. At this age they are usually naturally curious about pretty much anything.
What I hate about software like PDF viewers is that they are akin to:

Here I printed your manuscript, but in order to read it, you need to pay me for these special glasses to see the ink.

Oh you want a change? Pay me for these special gloves so you may handle the pages and reorganize them as you like.
I think for the example given on the page, given it seems to be a quick question, it's easy for it to seem a bit petty (and I might agree). The hard part for me is by responding, I have no idea if I'm walking into a 2hr debugging session or a 30s question.
I would encourage people to read Rand on their own instead of going by untrue comments like this one.
There is also the built in Image Capture app that works with most flatbed scanners or printer/scanner combos. It has its own quirks, but works better than any manufacturer software I’ve ever tried.
I think that's really a question for kentonv. But I think it's hard to imagine us doing that. We are pretty heavily invested in our runtime and know how to make it work in our very large environment. And I think having multiple, open source run times is ultimately good for everyone.
I want preview on iOS!!
> Code reviews are a waste of time and present a great opportunity to destroy team morale

Great post, but we would have to come to agree on that one somehow, because in Capers Jones books, code reviews are measured to be the #1 most effective method at improving quality. I'd agree they are very easy to do badly, and often overused.
"This market isn't new; Google, AWS, OpenAI, etc. all have APIs they charge for."

And if they were standalone businesses they'd be losing money, it's neither a big nor profitable market.

When the business model for a project is not 'really obvious' it's usually a bad sign.

AirBnB, Uber, Stripe etc. - 'how' they make money is obvious, it's intrinsic to the product.
Why do you believe that buyer was able to see and inspect the package before they signed it?
The game and all of its future word list are hardcoded into the Javascript. Many users have it cached.
^ What he said
Well in the UK there were 11 derailments total in 2020-21. The UK has roughly ~10,000 miles of railway and the USA ~150,000. Probably not a good comparison tbh. EU wide would probably be more appropriate but I couldn't find anything.

https://dataportal.orr.gov.uk/media/1999/rail-safety-2020-20...
> And this is the recurring thing with PHP critique, vast majority of the time it just in imagination because nobody bothers to look it up.

I see this from the other side: Good languages guide programmers toward good solutions. Criticism of the simplest or obvious solution is valid, because the language determines what that solution is.

Conversely, arguing that it's possible to write good code is largely meaningless. It doesn't mean that the language is good, just that it isn't completely unfit for purpose. Just look at the number of people who commented about other int parsing methods: Are they bad programmers, because they didn't know to look for filter_var when parsing ints, or is PHP a bad language because something so simple is hard to find a solution for?
> I watched Lecture 1 of Harvard CS50 because everybody said that was the best starting point for people interested in web dev, product development, tech in general.

That was not good advice. CS50 is an excellent, introductory, survey CS course but it's still a CS course.
As far as I'm aware, that only applies to broadcast radio and over-the-air TV, not all media.
I agree 100% with the sentiment of nohello.com. I used to have it has my status message. I've also gone long periods where I just won't respond when someone hello or hi's me. I've since realized that I was just being difficult and now I just type hey back and it makes life a lot easier.
> Another tiny macOS feature I love is that you can drop a file icon on any Open or Save dialog to select the file in the dialog. On other OSs, this moves the file to the directory shown in the dialog, or does nothing.

The reason other OS's don't support that macOS feature is because their open and save dialogue is usable on its own. In my opinion the open and save dialogue is one of the worst designed interfaces on macOS (and easily the worst open and save dialogue across all of the popular desktop environments). The fact that it's "killer feature" is having to use another file navigator to find the target and then drag that file into the first dialogue (ie dialogue that should have been used to find the file to begin with) is more damning than anything.

If there were two things I wish Apple would add in macOS, it is:

1. draggable hotspots (like in Windows and KDE)

2. a completely redesigned open and save dialogue that works a little more like Windows and KDE

I can live (and even like some of) macOS's idiosyncrasies. But those two irritate the hell out of me on an almost daily basis.
The most vexing parse is not an issue in "C and C++ grammars", it is only an issue in C++ which has really stupid initialization syntax that looks like a function call.

C and C++ are not the same language nor even that similar. It's a shame they are always mentioned together under the same breath.
Most companies are just not async. That’s really hard to do I think!
A quick google search suggests that sodium is 1000x more abundant than lithium. Will distressed prices be 1000x lower?
Twitter doesn't count blocked accounts as ad impressions.

If I see an ad on twitter, I block the account that displayed it. Invariably, there is another ad in the next 3-5 tweets. I can do this 3 or 4 times in a row before I give up looking at the feed because the signal-to-noise ends up being too low when 25% of my feed are ads.

My guess is that after blocking an account, the ad you saw doesn't count as an impression. It's also possible that 25% is normal, but it doesn't seem that way if I scroll and not block accounts.
Oh wow, indeed. In case you want to see them on streetview, the address is Pastelstraat 1, Almere. Here is a link: https://goo.gl/maps/mpXgFFd4kGLBinge9
The question is which pioneer, there isn’t just a single person bucking any given trend.
I suspect with your comments you've been out the game a while. Most devs that I interact with hate SCRUM. Your Gantt chart is still there btw it's just not shown to devs but product are still creating all that but overlaying SCRUM over it.

Your 6 month project now has to be finished every 2 weeks now working shipped bug free in 2 whole weeks. The scope has been reduced for sure but now everything you do has to be in 2-3days at tops.
Great part about TVs is you can just... unplug them.
That's clearly a different kind of thing though. Sponsored content in videos is just stuff you don't like, but it's still the video you clicked on. Youtube injected ads on top of the video is not the content you clicked on. Youtube premium unambiguously solves the problem that the top-level comment was complaining about (mid-roll ads that can be a half-hour or longer), you're just moving the goal posts.
Part of the problem with train crews is the Department of Transportation's antiquated laws on cannabis. You can't hire anyone who's used it in the last 90 days, that's a pretty huge fraction of the country. Actually you can't even hire them with the understanding that they need to stop immediately and be clean in 90 days, they have to have been clean for 90 days before applying on the DOT form or their application will bounce immediately.

Instead of reforming that law, or telling railroads to deal with it and pay more/reduce capacity, they're just gonna bend the safety laws instead.

Same problem applies to government and clearance jobs. FBI has said they can't find anyone to hire because everyone smokes pot now and that it's a problem for their hiring pipeline.
USV is not simple if USVX exists. There is a potential for confusion. E.g. someone carelessly documents that some software accepts USV, when they mean USVX, or vice versa. You will forever have to be double-checking. Imagine if we had JSON and JSONX to contend with.

White space trim means that if you don't expect trim, your significant white space is eaten, causing a bug.

Most of the time, USV will be machine-generated. If the machine generates a field with leading or trailing space, then that's what the data is.
What sort of performance characteristics does Cassandra see from its implementation? I was fairly impressed with the 2.5M context switches per second (a fairly random unit, I know) I saw from virtual threads.

Have you found that the approach has made it easier for you to ship improvements to Cassandra?
This is not written in JS. It's c++ code compiled into something runnable under JS. If you want to run tesseract from python there is PyTesseract which is a wrapper around the tesseract cli. Also, I'm sure there are python bindings to invoke the tesseract libs without going over the cli but I've never looked it up.
Why don’t we create an even more extreme take: remote work is only truly remote if you communicate through git commit messages. The only thing that matters is the result of your work and anything higher level is simply corporate fluff.
I wrote for Mondo in my late teens and Ken was my friend and mentor. A remarkable man and extremely worthy of recognition and celebration. And a much kinder person than his rep might suggest.
Similar to you. There were several hints that the author didn't really understand software. The problem with waterfall wasn't that you had to do tasks in order, it was that you needed to know mostly everything in advance to get rid of issues at design time so they didn't bite you during coding.

Also, the rumblings of agile don't really point to anything to do with agile fundamentally, just the fact that people don't quite understand it or that management doesn't wholeheartedly embrace the mess.

"Agile meant that the team didn't really know what they were producing" - that is a Product Owner issue 100%.

So yeah, nothing's perfect but it's probably the least worse of the options we have!
It's just a distributed market problem, right?

As an agent in the market, if you correctly model tail risk you will still be out-competed by someone who does not model tail risk, since they can allocate resources somewhere other than tail risk mitigation. Given non-catastrophic events, this ends up being okay for the market system. After all, society doesn't care if Google is the search engine or Bing so long as they provide similar functionality.

For catastrophic events, though, we'd like to keep things operational rather than have someone else pop in. But that's okay. I think the right model is that the state steps in for true catastrophes and mitigates the effects (like we did in the pandemic).

And, to be honest, I don't see climate change as an extinction level risk. A few hundred million will die in the top end of what we expect, but that's acceptable. And this is clearly the position of most people, so I'm comfortably in the majority here.
I like the specific term of async work. Haven't seen companies use it in the wild yet.

I definitely agree that not everything can be done async, but the reality is that most companies don't even try. They just default to sync workflows without the office.

It takes some effort for sure, but I think the benefits are enormous.
When I needed to "destatify" executable, to patch statically compiled library functions to shared imports I used LIEF library: https://milek7.pl/.stuff/galdocs/destaticizer.py
By the same rules of logic that makes 'your privacy is important to us' superficially true.
Implementing an SSH Agent in Hare
This hit me hard a bit ago. I had hiked for an hour or so to the middle of a forest, pulled out my phone and was viewing a crystal clear live stream made by a random person on the other side of the planet, in higher quality than any movie I could have seen as a child, and it was free for both of us and needed no special equipment.
What do you not like about the existing dialog?
From ~3 minutes of browsing the site, it's not clear to me exactly what the project is. It seems like 'just' a distribution of python with lots of the numpy/scipy/sympy ecosystem bundled? There's something about the website that's making it hard for me to digest it. I can't quite put my finger on it, but it feels very dense.

I will say that the multiedge graph plot[0] does seem useful. Not useful enough for me personally to go through the trouble of adopting it, but it doesn't seem like I'm their target audience. It seems like I could probably hunt down which packages they used to make the plot, and adopt those.

[0] https://www.sagemath.org/tour-graphics.html
We See a Significant Risk That the Twitter Deal Gets Repriced Lower
I'm not convinced we've seen what "should" be with the pandemic. We've done a thing for a few years, that's not a lot of time.

I think it takes a lot longer to see what works about a thing, what doesn't, for each company, even individuals, and in the long run how they play out on an individual basis.

I guess we can come up with all sorts of very strict rules about what is "remote" ... but that will just mean everyone has to declare they're some sort of hybrid and I'm not sure we've gotten anywhere / know anything about it... kinda back to square one as far as the author is concerned.
California to Use Sound-Triggered Cameras to Catch Loud Cars
Meh.

From .NET Core 2.1 + Angular 5/6 to .NET Core 6.0 Web API + Angular 12/13 on the front-end = Total Win.

No need for changing what works. Svelte? React? Web Components? Naaaah, I am good.
The fact that people don't know about this sucks when the feature breaks. Around 2016 it was broken for a year and then after a year, just like that it was fixed.
Suggested in a previous essay, in a world of complexity and great specialization, political power should shift to the highly specialized committees:

https://demodexio.substack.com/p/why-have-politics-in-the-us...
The most concrete thing I read in the article seems to be:

"These trains exceed the coupler and drawbar limits of the very cars themselves."

This seems like something that can be explicitly proven true or false, so I would be interested to see whether that claim is true on investigation.
I personally wouldn't start a new, greenfield web API project with an MVC framework. There are still too many choices present in how to handle concerns like querying, authn, authz, caching, migrations, etc, etc. I would use a system like PostgREST or Hasura and generate the API from the database directly.

Business logic can be handled on the control plane with replication/subscriptions/whatever mechanism. Small, stateful services that react to the event stream and perform whatever actions needed based on your business policies: send notifications, insert new records, call external partner APIs, etc.

For server-rendered UI I think there's still a strong case for these frameworks but they could probably take some lessons and generate their data-layer models from the database DDL, push business logic down to the control plane, and focus on rendering current state from read-only models/streams. I've been meaning to try something like this in Haskell (I've written some foundational libraries to enable this on Postgres [0]) but there are frameworks that do this like Phoenix in Elixir.

[0]: https://hackage.haskell.org/package/postgresql-replicant-0.1...
All this, and yet you can't move forwards or backwards, when there are other files in the folder. I would be gladly wrong if someone could point out how to do this in Preview
I think that as the author matures, they’ll come to the realisation that software engineering is 20% coding and 80% working out who needs to code what where when. And that is much easier with synchronous communication.
so back when i used to spend an hour or more reading and responding to email every morning i was closer to this definition of "remote" even though i was sitting in an office.
Really? Because the top comment to which you replied stated:

>This is a problem as old as thought itself. One of the worlds first philosophers, Plato, wrote a book about it. He agreed, the best form of government is one where the terms are longer.
Yep, I created the new Avatar font
> Why would I use Docker when I know how to make nice, clean OS packages?

For isolating your database from your host OS.
I think in theory you just assume optimal implementation.
In engineering this is more of a luxury.
Always a pleasure to read Tufekci, she has a blunt and courageous way
of grabbing and nailing down what's floating in the air. Yes, the
"official narrative" of science and technology is held in far too few,
too powerful hands. Lockstep conformity and closing ranks to embargo
outsiders or to protect institutions and grant money ultimately
corrodes the scientific principles of openness, curiosity, fallibility
and truth seeking.
NetSec, CISSPs, OpSec, basically anything security.
Ah Xbox connect. Had mine and my brother's xbox on the same switch so we could play together with others.

We used to connect across the Atlantic to a host in the US, dude had a fat fibre pipe so 16 player Halo 2 with 0 lag and modded features (like spawning a warthog for each player in blood gulch for Cat vs. Mouse games.)

Fun times. Halo 3 iirc made some changes to the netstack to break it though :(
The impotence of the long-distance trillionaire
I'm curious why QuickTime Player is not what you want?
this surprised me so much I had to read it twice before realising that it's probably because I've used uBlock since I can remember
I think the parent was abundantly clear here:
> I am not sure if the US could already be classified as a low-trust society (probably not yet), but a strong negative trend is definitely present.
I'm not sure where your interpretation is coming from, but if it was a misreading of parent's comment then I think your downvote could be happily reversed.
They don't even need to be on the same axis (although probably not really orthogonal in practice).

Async on-site work is entirely possible -- if you're working in a high-security place, or where the physical infrastructure is the point, or where you're building some physical object, it might make sense that work can only be done on site, but scheduling might be entirely up to you. Similarly remote but synchronous is easy to understand (calls, etc.). Another dimension is probably consistent vs. variable on both of those dimensions over time -- my ideal job is sync remote, sync in person, async in-person, and async remote at different times.
Isn't that the point of a signature? An opportunity for a recipient to accept or reject a package based on it's condition?