skysight-inc/HackerNews huggingface dataset:
Given the origin of modern police forces in the Met, the principles set down by Peel would indicate that the aim was to have a force that was backed by the public - "policing by consent".

One of their predecessor organisations was the Bow Street Runners which was set up by magistrates with the aim of providing a less corrupt system than that of "thief takers" and a more professional one than parish constables.
This is a technical decision some developers make because they're well versed in Javascript, or because their business can only fund the management of one codebase, or because there's libraries that add massive convenience functions to their development. Or because they believe that their UI needs to have a consistent experience. Or <insert reason X, Y, Z here>...

This whole article is about Chromium and Electron. I am not sure what the purpose of your question is.
They hope that I have cookies disabled by browsing incognito? Or they just want to subject me to nonsensical popups to be jerks? What? Huh?
It's simple, reliable, and quite necessary. Pistol chamberings feature heavy bullets in straight-walled, short cases. Blowback bolts are always extremely heavy to compensate for those attributes. Beretta and FN are famous for resisting Browning short-recoil for alternatives like rotating barrels and locking blocks. But they pay for those tradeoffs: Heat buildup, wider slides/frames, extra complexity, and more. Browning short recoil is the best of all worlds. Replacing rotating links with simple cam cuts sealed the deal.
you are, too
Anzu Castle Gracula
Sorry to hear about your neck and wrist. I like this site:

https://www.painscience.com/

This article was especially helpful:

https://www.painscience.com/tutorials/trigger-points.php

I suspect the damage you're concerned about is reversible, if you're sufficiently persistent with research and experimentation. That's been my experience with chronic pain.
No, according to third party police use of force tracking projects: https://www.washingtonpost.com/graphics/investigations/polic...
You're requiring PHP 8.3 but not using some of the most powerful tools in 7+: strict types.

```
/* @var array<string, mixed> Variables stored in the context */
private $variables = [];
```

This should be typed as `array` (heck, I'd argue ArrayObject instead) and all your classes should have `declare(strict_types=1);` at the top.

Your `Dumbo\Helpers` classes are basically static mine traps that you are unable to mock in unit tests. Why does `BasicAuth` expose a single static method but then calls a bunch of other static methods? What ends up happening in any class that uses any of your `Dumbo\Helpers` classes will always run whatever code is defined in these helper classes.

I'm unsure where the bootstrapping process begins. What file does your webserver need to call to handle a new request? I am hoping it is within a root-level directory and not at the root level itself. In other words, `/public/index.php` vs `/index.php`. Your quickstart in README.MD makes it pretty clear that you expect the latter, which is highly unsafe. See any number of poorly configured webservers that stop processing PHP for any reason but now show your site's full contents to anyone passing by.

I would strongly argue against _any_ magic in your framework. Specifically, routes: they should be explicitly defined. I still work with a legacy Symfony 1 framework project and I can't tell you how much I detest magic routing. For a modern example see how Symfony 2+ requires explicit route definition. Heck, how it requires explicit everything because magic should be left to magicians.

Your framework seems like it can only handle `application/json` and `application/x-www-form-urlencoded` requests, but not `multipart/form-data`.

Take these as positive criticisms of your work. It's "fine". I wouldn't use it, I would actively recommend against using it, but I would actively recommend against using anything that's not Symfony (or Laravel if I were drunk). I do not think your project is at the "Show HN" level - it is still far too under-developed.
Well, I'm pretty sure the people living off subsistence farming in Europe during the Middle Ages were mostly content with their lives too (at least during peacetime), despite much worse education and health care than the modern Bhutanese are getting. The difference is that this was simply their way of life and they didn't have any alternatives. "Contentment" means being content with what you have - no matter if it's because you consciously decide that it's enough for you or because you simply don't know any better.
That is the same bullshit logic used for zero tolerance policy for "preventing lawsuits" but somehow even worse.
Assuming the glue code to the native OS (i.e. things like actual local file access, access to hardware, raw network sockets) has roughly the same interface across all the major platforms, you only need one code base and it will run on anything capable of running a web browser - phones, tablets, fancy tablets and other embedded devices, all common computer operating systems, game consoles, whatever. All the hard work of maintaining a common runtime environment is abstracted to the underlying browser framework, and the best is, whenever the browser framework gets ported to some new platform,
your app will get support for that platform as well for virtually no effort and expense.

I get why people are upset at that (especially the sometimes significant performance issues), but I also get why many applications went down the "Electron everything" route. In the end people who know C++ well enough to be able to deal with cross-platform bullshit are expensive and coding for cross-platform is a nightmare. There's a reason why there aren't many "top dogs" left.
obervables move to modules makes a lot of this tenable. Im still using their hosted gui but this is inspiring me :)
I don't think they're trying to get anyone murdered by cops.

I think they're really fucking stupid. I think they think that since they are making up claims that everything will be alright. Like the cops are going to bust in, see that there's no drugs/hostages/satanic rituals/whatever, say "My bad", and fuck off.

But there's always the chance that things go horribly wrong. And that chance is actually pretty high.
Highly related to my paper on why tokenization in LLMs is the devil: https://paperswithcode.com/paper/most-language-models-can-be...
Does your state pay you retail for your production? And have you gotten your first annual true up bill yet?

That setup is a dream for a lot of people, but it's not always easy to make happen depending on state regulations (and how powerful the utilities there are)...
When their smart young people leave to earn more money abroad, wouldn't it make sense to take smart young people from other countries that aren't that materialistic? Just asking for a friend...
The USA is the only first-world country I'm aware of where many people are happy to argue that a 2+ victim shooting (in any context) is NOT a mass shooting.
for a second I thought 404 was the joke. Tried thinking hard for maybe 10 seconds to figure out why it was the joke, but then realized it was not.
Economics is not my field, but I’d reason that tariffs can be useful if they’re used as a scalpel instead of as a sledgehammer.

So for example, if the goal is to stimulate domestic automakers to be more competitive without unnecessarily risking killing them off entirely, a moderate tariff that pushes the price of ultra cheap foreign cars up to a level that’s reasonably achievable by the domestic automakers but still well below the average price could be a good thing.

Where tariffs are just plain bad is when they’re so high that domestic manufacturers don’t even have to think about trying to compete and can continue to drive up prices unabated.
I honestly don't get it - the median income in the US is like $35k - assuming people don't want to drive vehicles older than a decade, do people really spend a sixth of their total income on cars?

In Europe the numbers are even worse. I'm fairly convinced only rich people and businesses buy new cars
> All we had to do was change the isInvokedByMouse to check that screenX and screenY don't equal 0, rather than checking if they are greater than 0.

It's obviously extremely unlikely but what if the mouse is actually at 0,0 when the user clicks? I'm not very familiar with JS, is checking for != 0 really the best/only way to do this?

EDIT: actually upon going back, I realized I didn't fully process this sentence originally but it seems to address this:

> We should probably do further refactoring of the event handler function, since it's complicated by the fact that it also handles keydown events. For now, though, this fix will do just fine.
You are basically also pushing people into malware/malicious files with such a statement.
I don't think it's a matter of making process for the weakest engineers. It's more likely that we're trying to apply one monolithic process to highly variable work.

You hit on something super important that I don't see discussed often enough: Different phases in the software lifecycle require different approaches. Trying to apply "maintenance mode" to a greenfield project (or vice-versa) can be a disaster for the reason you mentioned - sometimes you just can't break the job into small changes until you have something concrete to change! There is time for principled slow change, and there is a time for rapid prototyping. But most teams use a single process for both.
Right, but we're currently at a point politically where we're heavily considering regressions in healthcare and insurance, not progressions. We're talking about bringing back denying coverage for existing conditions and allowing insurance to deny medication on grounds of religious reasons.

Changing the tax deduction status would harm businesses, and therefore I can't see a conservative administration ever letting that fly.
Would be great if the US government somehow facilitated micropayment. Either by creating their own system or removing the capital gains reporting requirements on crypto (maybe up to $10k/year).
Most of 2023's Top Exploited Vulnerabilities Were Zero-Days
> The teenager is making an implicit moral judgement, with themselves as the only moral patient.

No they're not! You have made a claim of the form "these things are the same thing"—but it only seems that way if you can't think of a single plausible alternative. Here's one:

* Humans are motivated by two competing drives. The first drive we can call "fear", which aims to avoid suffering, either personally or in people you care about or identify with. This derives from our natural empathic instinct, but is can be extended by a socially-construction of group identity. So, the shrimp argument is saying "your avoiding-suffering instinct can and should be applied to crustaceans too", which is contrary to how most people feel. Fear also includes "fear of ostracization", this being equivalent to death in a prehistoric context.

* The second drive is "thriving" or "growing" or "becoming yourself", and leads you to glimpse the person you could be, things you could do, identities you could hold, etc, and to strive to transform yourself into those things. The teenager ultimately wants the PS5 because they've identified with it in some way—they see it as a way to express themself. Their "utilitarian" actions in this context are instrumental, not moral—towards the attainment of what-they-want. I think, in this simple model, I'd also broader this drive to include "eating meat"—you don't do this for the animal or to abate suffering, you do it because you want to: your body's hungry, you desire the pleasure of satiation, and you act to realize that desire.

* The two drives are not the same, and in the case of eating meat are directly opposed. (You could perhaps devise a way to see either as, ultimately, an expression of the other.) Human nature, then, basically undertakes the "thriving" drive except when there's a threat of suffering, in which case we switch gears to "fear" until it's handled.

* Much utilitarian discourse seems to exist in a universe where the apparently-selfish "thriving" drive doesn't exist, or has been moralized out of existence—because it doesn't look good on paper. But, however it sounds, it in fact exists, and you will find that almost all living humans will defend their right to express themselves, sometimes to the death. This is at some level the essence of life, and the rejection of it leads many people to view EA-type utilitarianism as antithetical to life itself.

* One reason for this is that "fear-mode thinking" is cognitively expensive, and while people will maintain it for a while, they will eventually balk against it, no matter how reasonable it seems (probably this explains the last decade of American politics).
> There is an insane wealth gap.

Your unexamined prior is that this is a bad and unsustainable thing. It was always thus.

> People always seem to be stressed.

They really aren't. Americans are extremely happy and relaxed compared to where I'm from.

> We don’t even need to start on healthcare and housing and college tuition.

I think we do. Healthcare in the US has more red tape and expense than would be optimal, but the actual outcomes are still good. Keep in mind some caveats:

- US healthcare spend drives a ton of medical innovation that then benefits the rest of the world

- North America is going through a Fentanyl crisis that's cutting life expectancies

> Then there is gun violence. Women’s rights are going away slowly too.

This is a problem but not with the economy.
US Congress has mandated a growing list of advanced features, leading to complex vehicles, complex supply chains, and higher sticker prices.
Making a parallel Rust workload 10x faster with (or without) Rayon
I agree those are problems in many places (and to some extent will be with anywhere), but would not describe them as militarisation.
That article has to have some of the worst written language I’ve seen in a wikipedia article in a while.

Just bad, unclear, convoluted explanations.

Thankfully they provide a lot of examples - they should probably just skip to those and you’d be better off for it.
If you expect 99% of normal internet users to maintain a crypto wallet of any kind just to access certain websites—even leaving aside the actual cost—you're going to be sorely disappointed.
It's also almost always a lie.

Most managers have a budget. They just don't want to spend it on you.
Can you use dlopen in wasm already?
> He's also the only President in my lifetime who did not start a new war.

There is no coherent standard by which both Trump did not start a war and every other recent President has. This is just a “say something often enough and people begin to accept it as true” thing.

> The extreme hysteria around Trump actually prevents people like me from evaluating Trump on his actual merits.

You seem to have a very firm opinion of him on the merits, which is inconsistent with believing that you have been prevented from that.

> Every article only highlights the negative of anything Trump doe
Where'd you get the idea that he is the only President in your life not to start a war then? The truth is that there are plenty of outlets pushing neutral and positive Trump outlets, and even actively suppressing stories that might hurt Trump (less so now than immediately before the election, as a whole bunch stopped such suppression when it no longer served to influence the election), and “every article highlights only the negative” is a lie.

> But no, I don't think Trump is a fascist, textbook or otherwise

He openly has proposed personal-loyalty-based purges of the military officer corps and thr civilian civil service, deploying the military domestically in a deportation operation he explicitly modeled on the notoriously racisr, due process denying, legal injigrant and citizen expelling Operation Wetback of the 1950s (which itself, unlike Trumps overt olan, stopped short of using the military), massively scaled up, and has proposed solving urban homelessness by forcibly relocating the homeless to concentration camps.

And lets not get started on Musk, D.O.G.E., and fascist corporatism.

(But I, too, think Trump is not exactly a fascist, he’s a kleptocrat hiding behind fascism. But the functional difference between that and an actual fascist is likely to be minor.)
Tesla cars sold in US are the most American build cars. See https://www.carpro.com/blog/most-american-made-vehicle-the-t...

What it means that if you count what percentage of car parts are made in America, Tesla has higher percentage that other brands, even those you might consider "more" American, like GM or Ford. All Teslas sold in America are assembled in America (California or Texas). Ford Mustang, for example, is assembled in Mexico.

As far as I know Tesla never sold Chinese built cars in US. They used Chinese manufacturing (CATL) and Korean batteries in some model, but also manufactured batteries in US (Nevada, with Panasonic) and are expanding battery production in US with 4680 (used in Cybertruck).

Cheaper Teslas are coming to US but they'll be manufactured in US (Texas). Tesla told us that they'll start making a cheaper model sometime in 2025.
>maybe familiarize yourself with the country at a deeper level before throwing out recommendations based on a few select metrics which may or may not be that relevant (GDP in particular is not a good metric)

Perhaps there's more analysis for you personally but when I look at those numbers.

30% poverty, 20-40% unemployment is coming. identical to their peers in similar financial situations.

I dont need any further analysis. What other 'deeper' facts do you want to look at?

How about a huge one I didnt even add.

Firearms per 100 people, places Bhutan about 196th in the world. They arent even a free country. Flee asap.
An unfortunate mistake...
Reminds me of a cool proof I saw recently that there are two numbers a and b such that a and b are both irrational, but a^b is rational:

Take sqrt(2)^sqrt(2), which is either rational or not. If it's rational, we're done. If not, consider sqrt(2) ^ (sqrt(2) ^ sqrt(2)). Since (a^b)^c = a^bc, we get sqrt(2) ^ (sqrt(2))^2 = sqrt(2)^2 = 2, which is rational!

It feels like a bit of a sleight of hand, since we don't actually have to know whether sqrt(2)^sqrt(2) is rational for the proof to work.
Antibacterial material restores the efficacy of antibiotics
Ask HN: How do I transition to be an SWE?
I've worked in academia for roughly ten years but don't really see my future there. I've always enjoyed working with computers since I was a teen, and have reached an advanced level as a programmer, however, mostly for academic prototypes and hobby projects. What should I do/learn to prepare for a successful career as a software engineer in the industry?
That would be one way; it would offer the best theoretical memory layout for well-behaved programs. But, I expect it to be very painful to work with and to come with some performance penalties in mixed use cases due to the extra indirection required.

No, my thinking is that properties would be stored into tables based on their size class: All objects that have 4-7 properties are in the same table, and all of their first property would be in the same slice, second property in another etc.
My favourite painting of all time "The Escorial from a foot-hill of the Guadarrama mountains" by Lucas van Uden [https://data.fitzmuseum.cam.ac.uk/id/image/media-4256550851] is quite a small painting that I'm sure most people have never heard of, hell, I'd never heard of it before I found it tucked politely in a corner of the Cambridge Fitzwilliam Museum, and I sure as hell don't know who Lucas van Uden is. Nevertheless, it is a remarkably beautiful painting and demonstrates true craft from the artist. I have no idea what a painting like this would cost, but I can't say it would be worth much compared to some of the other pieces in there. Your comment leads me to wonder what the incredibly wealthy would have to say about this painting's quality. It certainly feels worthy to me.
Half of America doesn't want to support the incoming administration either, and Musk has decided to closely and personally align himself with it. I wonder if that will affect Tesla sales.
You only linked the image.

https://en.wikipedia.org/wiki/%27No_Way_to_Prevent_This,%27_...
Show HN: CSV Table – Proper GUI for View and Edit CSV, JSON
BMW makes an PHEV X5 50e with about 30ish miles range and the B58 straight six. Most other options get a dinky little engine. The 5 series also has one that is just making its way to the US, 550e.

Typed this before I saw that you said expensive. I’ll leave my comment anyway.
> How other engineering industries deal with this phenomena? Why those approach do not work with programming?

A lot of engineering discipline is a way to prevent engineered works from causing unintentional injury, physical or fiscal.

Most software development is far away from physical injury. And fiscal injury from software failure is rarely assigned to any party.

There's no feedback loop to push us to standardized process to cover our asses; we'd all prefer to do things our own way. It's also pretty hard to do convincing studies to determine which methods are better. Few people are convinced by any of the studies; and there's not been a lot of company X dominates the industry because of practice Y kinds of things, like you see with say Toyota's quality practices in the 80s and 90s.
"religion is the opium of the masses" (I cannot remember who said it). It is not damning per se: what it says is that people who dislike thinking will go to the simplest cure for their existential woes. For me, religion and belief are not necessarily the same. I have an agnostic view to the concept of god, and a complete dislike of Religions (as organisations). I prefer to view my life as guided by morality (which is christian due to upbringing). As to "hope" and "salvation": these are in my hands alone.
First, HN consistently misuses the term "third world". In 2024, this term is now very out of date to describe developing economies (and below). Also, the original meaning was not at all what most people think -- it was about Soviet vs US alignment. And, no, South Africa was definitely middle income when he grew up there -- and it still is (sadly). For a long time (maybe still true?), the GDP per capita in SA nearly the highest amoung all African countries. (I think Seychelles is the richest African country now.)
They have Bazookas, Grenade Launchers, Predator drones, and mine resistant vehicles up to and including Armored Personnel Carriers. None of these are available to private citizens.

Obama went so far as to say the following when trying to reign in the 1033 program in 2015

"We've seen how militarized gear can sometimes give people a feeling like it's an occupying force as opposed to a force that's part of the community that's protecting them and serving them ... So we're going to prohibit equipment made for the battlefield that is not appropriate for local police departments."
> The "military model" goes so much further than that.

Claiming that police are being militarized is a very broad statement. Depending on your perspective it can be positive or negative.

You could argue that consistency and having a common operating model with accountability is a good thing. Unfortunately many would argue the adopted model is very flawed and that the level accountability is tied to public outrage or scrutiny.

I think everyone would agree that adequate training is essential but we would disagree on what type of training is appropriate. Some argue that sensitivity and deescalation training are where the focus should be, while others are arguing for the warrior training.

The true conservative would say that we can't do it right so we shouldn't attempt because doing it badly will be more harmful than not having done it at all.